Skip to content

Commit

Permalink
return error if route does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Sep 18, 2024
1 parent 9fb48d8 commit 94846ac
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ export const getBridgeLimitsController = async (req, res) => {
null
)

if (!maxBridgeAmountQuote || !minBridgeAmountQuote) {
return res.status(400).json({ errors: 'Route does not exist' })
}

const maxAmountOriginQueryTokenOutInfo = tokenAddressToToken(
toChain,
maxBridgeAmountQuote.destQuery.tokenOut
Expand Down

0 comments on commit 94846ac

Please sign in to comment.