From 1bab8acf4cf4462b9b5e879bc0e57fcdf74b046a Mon Sep 17 00:00:00 2001 From: Matt Rice Date: Thu, 19 Dec 2024 16:40:03 -0500 Subject: [PATCH] feat: remove amount too low error Signed-off-by: Matt Rice --- api/suggested-fees.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/suggested-fees.ts b/api/suggested-fees.ts index ceb724057..ca4c68a02 100644 --- a/api/suggested-fees.ts +++ b/api/suggested-fees.ts @@ -237,12 +237,12 @@ const handler = async ( const isAmountTooLow = BigNumber.from(amountInput).lt(minDeposit); - const skipAmountLimitEnabled = skipAmountLimit === "true"; - if (!skipAmountLimitEnabled && isAmountTooLow) { - throw new AmountTooLowError({ - message: `Sent amount is too low relative to fees`, - }); - } + // const skipAmountLimitEnabled = skipAmountLimit === "true"; + // if (!skipAmountLimitEnabled && isAmountTooLow) { + // throw new AmountTooLowError({ + // message: `Sent amount is too low relative to fees`, + // }); + // } // Across V3's new `deposit` function requires now a total fee that includes the LP fee const totalRelayFee = BigNumber.from(relayerFeeDetails.relayFeeTotal).add(