Skip to content

Commit

Permalink
increase buffer to cover extra cost of wallet output for swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
benwolski committed Nov 13, 2023
1 parent 9d19970 commit 9759d74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Trade/Limit/Limit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export default function Limit() {
const costOfMainnetLimitInETH =
gasPriceInGwei * averageLimitCostInGasDrops * 1e-9;

setAmountToReduceEthMainnet(1.5 * costOfMainnetLimitInETH);
setAmountToReduceEthMainnet(1.75 * costOfMainnetLimitInETH);

const gasPriceInDollarsNum =
gasPriceInGwei *
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Trade/Swap/Swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function Swap(props: propsIF) {
const costOfMainnetSwapInETH =
gasPriceInGwei * averageSwapCostInGasDrops * 1e-9;

setAmountToReduceEthMainnet(1.5 * costOfMainnetSwapInETH);
setAmountToReduceEthMainnet(1.75 * costOfMainnetSwapInETH);

const gasPriceInDollarsNum =
gasPriceInGwei *
Expand Down

0 comments on commit 9759d74

Please sign in to comment.