Uniswap / v3-periphery

🦄 🦄 🦄 Peripheral smart contracts for interacting with Uniswap v3
https://uniswap.org
GNU General Public License v2.0
1.15k stars 1.06k forks source link

docs IUniversalRouter#execute x ISwapRouter#swapExactInputSingle x IUniswapV3PoolActions#swap #357

Open crzypatchwork opened 10 months ago

crzypatchwork commented 10 months ago

docs suggests you to use ISwapRouter swapExactInputSingle while on prod uniswap app uses Universal Router https://docs.uniswap.org/contracts/v3/guides/swaps/single-swaps https://docs.uniswap.org/contracts/v3/reference/periphery/interfaces/ISwapRouter

this v3 pool as an example also doesnt have such public method https://polygonscan.com/address/0x0f663c16dd7c65cf87edb9229464ca77aeea536b#writeContract

seems it would make sense to either have instructions on how to use universal router or https://docs.uniswap.org/contracts/v3/reference/core/interfaces/pool/IUniswapV3PoolActions#swap instead in such guide as nothing in these docs makes sense