Commit 84f76e34 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: do not fetch wrap price (#3673)

* fix: do not fetch wrap price

* fix: abort trade computation for wraps
parent b965bed8
......@@ -43,7 +43,7 @@ function useComputeSwapInfo(): SwapInfo {
() => tryParseCurrencyAmount(amount, (isExactIn ? currencyIn : currencyOut) ?? undefined),
[amount, isExactIn, currencyIn, currencyOut]
)
const hasAmounts = currencyIn && currencyOut && parsedAmount
const hasAmounts = currencyIn && currencyOut && parsedAmount && !isWrapping
const trade = useBestTrade(
isExactIn ? TradeType.EXACT_INPUT : TradeType.EXACT_OUTPUT,
hasAmounts ? parsedAmount : undefined,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment