Skip to content

Commit

Permalink
refactor: update max percent calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
marko85MVP committed Nov 2, 2023
1 parent 5cea030 commit f0acef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/organism/WithdrawPoolLiquidity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ const WithdrawPoolLiquidity = () => {
nativeTokenExistentialDeposit,
assetTokenInfoMinBalance
);
setMaxPercentage(truncateDecimalNumber(max));
setMaxPercentage(minimumTokenAmountExceededCheck ? truncateDecimalNumber(max) : 100);
}
}
};
Expand Down

0 comments on commit f0acef9

Please sign in to comment.