Skip to content

Commit

Permalink
fix add lp
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzshia committed Dec 9, 2024
1 parent 1c9c87c commit 7e89fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amm/addLiquidity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const addLiquidity = async () => {
),
amountInB: new TokenAmount(
toToken(poolInfo.mintB),
new Decimal(r.maxAnotherAmount.toExact()).mul(10 ** poolInfo.mintA.decimals).toFixed(0)
new Decimal(r.maxAnotherAmount.toExact()).mul(10 ** poolInfo.mintB.decimals).toFixed(0)
),
otherAmountMin: r.minAnotherAmount,
fixedSide: 'a',
Expand Down

0 comments on commit 7e89fde

Please sign in to comment.