diff --git a/src/celo/fees.test.ts b/src/celo/fees.test.ts index fa486a2217..efab97af64 100644 --- a/src/celo/fees.test.ts +++ b/src/celo/fees.test.ts @@ -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, diff --git a/src/celo/fees.ts b/src/celo/fees.ts index 591c31a8dd..257399bc5b 100644 --- a/src/celo/fees.ts +++ b/src/celo/fees.ts @@ -30,7 +30,7 @@ export const fees: ChainFees = { ), ]) - const adjustedBasFee = params.multiply(maxFeePerGas-maxPriorityFeePerGas) + const adjustedBasFee = params.multiply(maxFeePerGas - maxPriorityFeePerGas) return { maxFeePerGas: adjustedBasFee + maxPriorityFeePerGas,