Skip to content

Commit

Permalink
remove try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant committed Jun 20, 2024
1 parent ac572a5 commit b261708
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/custom/usdPrice/useFetchPrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,7 @@ export function useUsdValue(
// chooses the best trade
let bestTrade;

try {
bestTrade = TradeV2.chooseBestTrade(trades, true);
} catch (error) {
setIsFetching(false);
return;
}
bestTrade = TradeV2.chooseBestTrade(trades, true);

const quoter = new IQuoter(LB_QUOTER_ADDRESS[chainId], massaClient);

Expand Down

0 comments on commit b261708

Please sign in to comment.