restore use v3 (#2449)

This commit is contained in:
Justin Domingue 2021-09-27 12:04:59 -04:00 committed by GitHub
parent 81b8afdd3d
commit cd4a2313ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -160,7 +160,7 @@ export function useDerivedSwapInfo(toggledVersion: Version | undefined): {
// skip if other version is toggled // skip if other version is toggled
const v2Trade = useBestV2Trade( const v2Trade = useBestV2Trade(
isExactIn ? TradeType.EXACT_INPUT : TradeType.EXACT_OUTPUT, isExactIn ? TradeType.EXACT_INPUT : TradeType.EXACT_OUTPUT,
parsedAmount, toggledVersion !== Version.v3 ? parsedAmount : undefined,
(isExactIn ? outputCurrency : inputCurrency) ?? undefined (isExactIn ? outputCurrency : inputCurrency) ?? undefined
) )
const v3Trade = useBestV3Trade( const v3Trade = useBestV3Trade(