Skip to content

Commit

Permalink
Update limits.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris authored Jan 6, 2025
1 parent 28566a4 commit e5c1e2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ const handler = async (
getLpCushion(l1Token.symbol, computedOriginChainId, destinationChainId),
l1Token.decimals
);
liquidReserves = liquidReserves.sub(lpCushion);
if (liquidReserves.lt(0)) liquidReserves = ethers.BigNumber.from(0);
liquidReserves = maxBN(liquidReserves.sub(lpCushion), ethers.BigNumber.from(0)) ;

maxDepositInstant = minBN(maxDepositInstant, liquidReserves);
maxDepositShortDelay = minBN(maxDepositShortDelay, liquidReserves);
Expand Down

0 comments on commit e5c1e2a

Please sign in to comment.