Skip to content

Commit

Permalink
Bean UI - Convert - Tweaked gas estimate (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofromguy authored Sep 25, 2023
2 parents cda0508 + 4b1c5a6 commit 311998b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions projects/ui/src/components/Silo/Actions/Convert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,6 @@ const ConvertPropProvider: FC<{
const isPlanting =
plantAndDoX && values.farmActions.primary?.includes(FormTxn.PLANT);

const lpConversion =
tokenOut.equals(sdk.tokens.BEAN_ETH_WELL_LP)
|| tokenIn.address.toLowerCase() === sdk.tokens.BEAN_ETH_WELL_LP.address.toLowerCase();

const convertTxn = new ConvertFarmStep(
sdk,
tokenIn,
Expand All @@ -615,7 +611,7 @@ const ConvertPropProvider: FC<{
convertTxn,
amountIn,
slippage,
lpConversion ? 1.2 : undefined
1.2
);

const txn = await execute();
Expand Down

0 comments on commit 311998b

Please sign in to comment.