@ismailb so yesterday i asked about whether it is required to approve to swap on uniswapv2. I thought it is required to approve but from reading the docs, its actually doesn't. If I am not using the periphery library but calling swap directly I wont need to approve. But I need to somehow transfer funds to the pair contract first. Is that true?

Mar 6, 2022, 5:13 AM
if it is, is there any examples? I can't find any example online that uses transfer and calling swap. All of the examples use 'swapETHForExactTokens'
https://docs.uniswap.org/protocol/V2/concepts/core-concepts/swaps
this is the docs that explains this. The second paragraph under sending
Mar 6, 2022, 5:18 AM
Yh
Mar 6, 2022, 8:59 AM
yh? do you mean yes? if so where can i find these examples?
Mar 6, 2022, 9:01 AM
Dm
Mar 6, 2022, 9:01 AM
why not post it here so it can potentially help anyong in the future?
Mar 6, 2022, 9:04 AM

© 2024 Draquery.com All rights reserved.