We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e1718c commit 7d989fbCopy full SHA for 7d989fb
src/swapRouter.ts
@@ -402,7 +402,7 @@ export abstract class SwapRouter {
402
}
403
404
const chainId = sampleTrade.route.chainId
405
- const zeroForOne = position.pool.token0 === totalAmountSwapped.currency.wrapped
+ const zeroForOne = position.pool.token0.wrapped.address === totalAmountSwapped.currency.wrapped.address
406
const { positionAmountIn, positionAmountOut } = SwapRouter.getPositionAmounts(position, zeroForOne)
407
408
// if tokens are native they will be converted to WETH9
0 commit comments