From e56073a6cb4f91cd45a33e6fa8ef17879b44a459 Mon Sep 17 00:00:00 2001 From: nicholaspai Date: Sat, 21 Dec 2024 12:03:11 -0500 Subject: [PATCH] Update ethereum.ts --- src/gasPriceOracle/adapters/ethereum.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gasPriceOracle/adapters/ethereum.ts b/src/gasPriceOracle/adapters/ethereum.ts index 05f2a6d0..6a376632 100644 --- a/src/gasPriceOracle/adapters/ethereum.ts +++ b/src/gasPriceOracle/adapters/ethereum.ts @@ -37,7 +37,7 @@ export async function eip1559Raw( assert(BigNumber.isBigNumber(baseFeePerGas), `No baseFeePerGas received on ${getNetworkName(chainId)}`); return { - maxFeePerGas: maxPriorityFeePerGas.mul(baseFeeMultiplier).add(baseFeePerGas), + maxFeePerGas: maxPriorityFeePerGas.add(baseFeePerGas).mul(baseFeeMultiplier), maxPriorityFeePerGas, }; }