Skip to content

Commit 3de5f6a

Browse files
greg-schrammelBrodyHughes
authored andcommitted
maxFeePerGas (#5949)
(cherry picked from commit 3b22a23)
1 parent fead3b8 commit 3de5f6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/__swaps__/screens/Swap/providers/swap-provider.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
useSharedValue,
1515
} from 'react-native-reanimated';
1616

17-
import { equalWorklet, lessThanOrEqualToWorklet } from '@/__swaps__/safe-math/SafeMath';
17+
import { equalWorklet, lessThanOrEqualToWorklet, sumWorklet } from '@/__swaps__/safe-math/SafeMath';
1818
import { INITIAL_SLIDER_POSITION, SLIDER_COLLAPSED_HEIGHT, SLIDER_HEIGHT, SLIDER_WIDTH } from '@/__swaps__/screens/Swap/constants';
1919
import { useAnimatedSwapStyles } from '@/__swaps__/screens/Swap/hooks/useAnimatedSwapStyles';
2020
import { useSwapInputsController } from '@/__swaps__/screens/Swap/hooks/useSwapInputsController';
@@ -220,7 +220,7 @@ export const SwapProvider = ({ children }: SwapProviderProps) => {
220220

221221
if (selectedGas.isEIP1559) {
222222
gasParams = {
223-
maxFeePerGas: selectedGas.maxBaseFee,
223+
maxFeePerGas: sumWorklet(selectedGas.maxBaseFee, selectedGas.maxPriorityFee),
224224
maxPriorityFeePerGas: selectedGas.maxPriorityFee,
225225
};
226226
} else {

0 commit comments

Comments
 (0)