From c8c26847401980e14ab36f2d4ce95d2a2493fa75 Mon Sep 17 00:00:00 2001 From: Zikriya Date: Sun, 26 May 2024 15:02:48 +0500 Subject: [PATCH] Error message updated for isValidAmountSwap --- .../helpers/feeDistribution/feeDistributionHelper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/middlewares/helpers/feeDistribution/feeDistributionHelper.ts b/app/lib/middlewares/helpers/feeDistribution/feeDistributionHelper.ts index 8dba276..b20bd1a 100644 --- a/app/lib/middlewares/helpers/feeDistribution/feeDistributionHelper.ts +++ b/app/lib/middlewares/helpers/feeDistribution/feeDistributionHelper.ts @@ -74,9 +74,9 @@ export async function getDataAfterCutDistributionFee( pf = common.numberIntoDecimals__(pf, foundaryDecimals); if (!isValidAmountSwap(decimalAmount, pf)) { return { - error: `Swap amount should be ${getPlatformFeeInNumber( + error: `Swap amount should be more than ${getPlatformFeeInNumber( pfInNumber - )} USDC worth or greater`, + )} USDC`, }; } totalFee = pf;