Skip to content

Commit

Permalink
Update limits.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Sep 6, 2024
1 parent a6be83d commit c75c9de
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
);

Expand Down

0 comments on commit c75c9de

Please sign in to comment.