From 037a9995cb5494d3278f394302ec494080244161 Mon Sep 17 00:00:00 2001 From: tunghp2002 Date: Thu, 2 Jan 2025 12:30:37 +0700 Subject: [PATCH] [Update] Add 0.01 to min join --- .../src/services/earning-service/handlers/special.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/extension-base/src/services/earning-service/handlers/special.ts b/packages/extension-base/src/services/earning-service/handlers/special.ts index 97f1820644..e64119eaa2 100644 --- a/packages/extension-base/src/services/earning-service/handlers/special.ts +++ b/packages/extension-base/src/services/earning-service/handlers/special.ts @@ -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); @@ -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` }; }