From c1cdfaf24d657ed5cb46648e19e3c5d4dacf8652 Mon Sep 17 00:00:00 2001 From: Zikriya Date: Sat, 18 May 2024 20:34:51 +0500 Subject: [PATCH] Bug fixed --- src/services/signature.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/signature.service.ts b/src/services/signature.service.ts index 02bc5f4..cc59dd2 100644 --- a/src/services/signature.service.ts +++ b/src/services/signature.service.ts @@ -138,7 +138,9 @@ export const isValidSettledAmount = async ( ); if ( sdAmount.gte(Big(minDestinationAmountIn)) && - Big(destinationAmountIn).eq(Big(settledAmount)) + Big(destinationAmountIn).eq( + Big(decimalsIntoNumber(settledAmount, dDecimal)), + ) ) { destinationAmountIn = numberIntoDecimals(settledAmount, dDecimal); return { isValid: true, destinationAmountIn };