Skip to content

Commit

Permalink
fix(earn-withdrawal): use amount in lp token for withdrawal transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
MuckT committed Oct 23, 2024
1 parent d1bf9ee commit d2fd398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/earn/EarnConfirmationScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function EarnConfirmationScreen({ route }: Props) {
loading: isPreparingTransactions,
error: prepareTransactionError,
} = usePrepareWithdrawAndClaimTransactions({
amount: withdrawAmountInDepositToken.toString(),
amount: new BigNumber(withdrawAmountInDepositToken).dividedBy(pool.pricePerShare[0]).toString(),
pool,
walletAddress,
feeCurrencies,
Expand Down

0 comments on commit d2fd398

Please sign in to comment.