Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
thal0x committed Dec 26, 2023
1 parent 6381711 commit 38d064e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/components/SwapWidget/useSwapWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,6 @@ export function useSwapWidget() {
}, [swapPriceImpactPercent]);

const usdDiffPercent = useMemo(() => {
// if (route?.usdAmountIn && route?.usdAmountOut) {
// usdDiffPercent =
// (parseFloat(route.usdAmountOut) - parseFloat(route.usdAmountIn)) /
// parseFloat(route.usdAmountIn);
// }

if (!routeResponse) {
return undefined;
}
Expand All @@ -207,8 +201,6 @@ export function useSwapWidget() {
return (usdAmountOut - usdAmountIn) / usdAmountIn;
}, [routeResponse]);

console.log(usdDiffPercent);

const routeWarning = useMemo(() => {
if (!routeResponse) {
return undefined;
Expand Down

0 comments on commit 38d064e

Please sign in to comment.