Skip to content

Commit

Permalink
[Update] Add 0.01 to min join
Browse files Browse the repository at this point in the history
  • Loading branch information
tunghp2002 committed Jan 2, 2025
1 parent 4629d9b commit 037a999
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export default abstract class BaseSpecialStakingPoolHandler extends BasePoolHand
if (bnInputAssetBalance.add(bnAltInputAssetBalance).lt(bnMinJoinPool)) {
const missingAmount = bnMinJoinPool.sub(bnInputAssetBalance).sub(bnAltInputAssetBalance);

console.log('Missing amount', missingAmount.toString());
const originChain = this.state.getChainInfo(inputTokenInfo.originChain);
const altChain = this.state.getChainInfo(altInputTokenInfo.originChain);

Expand All @@ -122,7 +123,7 @@ export default abstract class BaseSpecialStakingPoolHandler extends BasePoolHand

return {
passed: false,
errorMessage: `You need to deposit an additional ${parsedMinJoinPool} ${originSymbol} (${originName}) or ${parsedMinAltJoinPool} ${altSymbol} (${altName}) to start earning`
errorMessage: `You need to deposit an additional ${Number(parsedMinJoinPool) + 0.01} ${originSymbol} (${originName}) or ${Number(parsedMinAltJoinPool) + 0.01} ${altSymbol} (${altName}) to start earning`
};
}

Expand Down

0 comments on commit 037a999

Please sign in to comment.