From 3de5f6a89f4c2e25bccfe8b79d8ae3f922686ee3 Mon Sep 17 00:00:00 2001 From: gregs Date: Wed, 24 Jul 2024 15:13:05 -0300 Subject: [PATCH] maxFeePerGas (#5949) (cherry picked from commit 3b22a2383233bbf2889831eedd0174047077543a) --- src/__swaps__/screens/Swap/providers/swap-provider.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__swaps__/screens/Swap/providers/swap-provider.tsx b/src/__swaps__/screens/Swap/providers/swap-provider.tsx index f192af5819d..07b79f7a126 100644 --- a/src/__swaps__/screens/Swap/providers/swap-provider.tsx +++ b/src/__swaps__/screens/Swap/providers/swap-provider.tsx @@ -14,7 +14,7 @@ import { useSharedValue, } from 'react-native-reanimated'; -import { equalWorklet, lessThanOrEqualToWorklet } from '@/__swaps__/safe-math/SafeMath'; +import { equalWorklet, lessThanOrEqualToWorklet, sumWorklet } from '@/__swaps__/safe-math/SafeMath'; import { INITIAL_SLIDER_POSITION, SLIDER_COLLAPSED_HEIGHT, SLIDER_HEIGHT, SLIDER_WIDTH } from '@/__swaps__/screens/Swap/constants'; import { useAnimatedSwapStyles } from '@/__swaps__/screens/Swap/hooks/useAnimatedSwapStyles'; import { useSwapInputsController } from '@/__swaps__/screens/Swap/hooks/useSwapInputsController'; @@ -220,7 +220,7 @@ export const SwapProvider = ({ children }: SwapProviderProps) => { if (selectedGas.isEIP1559) { gasParams = { - maxFeePerGas: selectedGas.maxBaseFee, + maxFeePerGas: sumWorklet(selectedGas.maxBaseFee, selectedGas.maxPriorityFee), maxPriorityFeePerGas: selectedGas.maxPriorityFee, }; } else {