Skip to content

Commit

Permalink
remove unnecessary baseFee roundup
Browse files Browse the repository at this point in the history
  • Loading branch information
pdp2121 committed Nov 12, 2024
1 parent d907ce5 commit a36a8f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/xrpl/src/sugar/autofill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,10 @@ export async function calculateFeePerTransactionType(
if (tx.TransactionType === 'EscrowFinish' && tx.Fulfillment != null) {
const fulfillmentBytesSize: number = Math.ceil(tx.Fulfillment.length / 2)
// BaseFee × (33 + (Fulfillment size in bytes / 16))
const product = new BigNumber(
baseFee = new BigNumber(
// eslint-disable-next-line @typescript-eslint/no-magic-numbers -- expected use of magic numbers
scaleValue(netFeeDrops, 33 + fulfillmentBytesSize / 16),
)
baseFee = product.dp(0, BigNumber.ROUND_CEIL)
}

const isSpecialTxCost = ['AccountDelete', 'AMMCreate'].includes(
Expand Down

0 comments on commit a36a8f0

Please sign in to comment.