diff --git a/src/__swaps__/screens/Swap/hooks/useEstimatedGasFee.ts b/src/__swaps__/screens/Swap/hooks/useEstimatedGasFee.ts index a77dccd683d..7ef5f2978af 100644 --- a/src/__swaps__/screens/Swap/hooks/useEstimatedGasFee.ts +++ b/src/__swaps__/screens/Swap/hooks/useEstimatedGasFee.ts @@ -27,7 +27,7 @@ export function calculateGasFee(gasSettings: GasSettings, gasLimit: string) { return null; } - return add(gasSettings.maxBaseFee, gasSettings.maxPriorityFee); + return multiply(gasLimit, add(gasSettings.maxBaseFee, gasSettings.maxPriorityFee)); } if (isFeeNaN(gasSettings.gasPrice)) { diff --git a/src/__swaps__/screens/Swap/providers/SyncSwapStateAndSharedValues.tsx b/src/__swaps__/screens/Swap/providers/SyncSwapStateAndSharedValues.tsx index 46dba532c92..c8e9b7e12ef 100644 --- a/src/__swaps__/screens/Swap/providers/SyncSwapStateAndSharedValues.tsx +++ b/src/__swaps__/screens/Swap/providers/SyncSwapStateAndSharedValues.tsx @@ -93,7 +93,7 @@ export function calculateGasFeeWorklet(gasSettings: GasSettings, gasLimit: strin return null; } - return sumWorklet(gasSettings.maxBaseFee || '0', gasSettings.maxPriorityFee || '0'); + return mulWorklet(gasLimit, sumWorklet(gasSettings.maxBaseFee || '0', gasSettings.maxPriorityFee || '0')); } if (isFeeNaNWorklet(gasSettings.gasPrice)) {