Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
piersy authored and github-actions[bot] committed Oct 14, 2024
1 parent f4b6e8d commit 28006e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/celo/fees.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ describe('celo/fees', () => {
},
} as any)

// The fees maxFeePerGas is calculated as (baseFee * multiplier) + maxPriorityFeePerGas
// Which is ((15057755162-602286) * 150 / 100) + 602286 = 22586331600
// The fees maxFeePerGas is calculated as (baseFee * multiplier) + maxPriorityFeePerGas
// Which is ((15057755162-602286) * 150 / 100) + 602286 = 22586331600
expect(fees).toMatchInlineSnapshot(`
{
"maxFeePerGas": 22586331600n,
Expand Down
2 changes: 1 addition & 1 deletion src/celo/fees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const fees: ChainFees<typeof formatters> = {
),
])

const adjustedBasFee = params.multiply(maxFeePerGas-maxPriorityFeePerGas)
const adjustedBasFee = params.multiply(maxFeePerGas - maxPriorityFeePerGas)

return {
maxFeePerGas: adjustedBasFee + maxPriorityFeePerGas,
Expand Down

0 comments on commit 28006e8

Please sign in to comment.