From c75c9de2866799acc457a4accbbfa7fb588b3bc5 Mon Sep 17 00:00:00 2001 From: nicholaspai Date: Fri, 6 Sep 2024 15:49:53 -0400 Subject: [PATCH] Update limits.ts --- api/limits.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/limits.ts b/api/limits.ts index 00b52768b..79ac1ae88 100644 --- a/api/limits.ts +++ b/api/limits.ts @@ -57,7 +57,8 @@ const handler = async ( const { REACT_APP_FULL_RELAYERS, // These are relayers running a full auto-rebalancing strategy. REACT_APP_TRANSFER_RESTRICTED_RELAYERS, // These are relayers whose funds stay put. - REACT_APP_MIN_DEPOSIT_USD, + MIN_DEPOSIT_USD, // The global minimum deposit in USD for all destination chains. The minimum deposit + // returned by the relayerFeeDetails() call will be floor'd with this value (after converting to token units). } = process.env; const provider = getProvider(HUB_POOL_CHAIN_ID); @@ -85,8 +86,8 @@ const handler = async ( } = validateChainAndTokenParams(query); const minDepositUsdForDestinationChainId = Number( - process.env[`REACT_APP_MIN_DEPOSIT_USD_${destinationChainId}`] ?? - REACT_APP_MIN_DEPOSIT_USD ?? + process.env[`MIN_DEPOSIT_USD_${destinationChainId}`] ?? + MIN_DEPOSIT_USD ?? 0 );