Skip to content

Commit

Permalink
maxFeePerGas (#5949)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3b22a23)
  • Loading branch information
greg-schrammel authored and BrodyHughes committed Jul 25, 2024
1 parent fead3b8 commit 3de5f6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__swaps__/screens/Swap/providers/swap-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 3de5f6a

Please sign in to comment.