Skip to content

Commit

Permalink
feat: Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Dec 1, 2023
1 parent a9b2dde commit b1c97ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/web/src/hooks/swap/use-swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const useSwap = ({
return null;
}
const pools = await poolRepository.getRPCPools();
console.log("pools", pools);
swapRouterRepository.updatePools(pools);

return swapRouterRepository.estimateSwapRoute({
Expand All @@ -59,7 +60,9 @@ export const useSwap = ({
setEstimatedRoutes(response.estimatedRoutes);
setEstimatedAmount(response.amount);
return response;
}).catch(() => {
}).catch(e => {

console.log(e);
setEstimatedRoutes([]);
setEstimatedAmount(null);
return null;
Expand Down

0 comments on commit b1c97ae

Please sign in to comment.