Skip to content

Commit

Permalink
[Fix] Sum
Browse files Browse the repository at this point in the history
  • Loading branch information
tunghp2002 committed Jan 2, 2025
1 parent dc29965 commit 4629d9b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ export default abstract class BaseSpecialStakingPoolHandler extends BasePoolHand

const bnMaxXCM = new BN(altInputTokenBalance.value).sub(xcmFee.mul(new BN(XCM_FEE_RATIO)));
const inputTokenDecimal = _getAssetDecimals(inputTokenInfo);
const maxValue = formatNumber(bnMaxXCM.toString(), inputTokenDecimal);
const maxBn = bnInputTokenBalance.add(new BN(altInputTokenBalance.value)).sub(xcmFee).sub(xcmFee);
const maxValue = formatNumber(maxBn.toString(), inputTokenInfo.decimals || 0);
const maxXCMValue = formatNumber(bnMaxXCM.toString(), inputTokenDecimal);

const symbol = _getAssetSymbol(altInputTokenInfo);
Expand Down

0 comments on commit 4629d9b

Please sign in to comment.