Uniswap / universal-router

Uniswap's Universal Router for NFT and ERC20 swapping
GNU General Public License v3.0
410 stars 210 forks source link

when to use PAY_PORTION and SWEEP after V3_SWAP_EXACT_IN ? #375

Closed OneMore14 closed 1 month ago

OneMore14 commented 2 months ago

When I use uniswap dapp, I found the command bytes are 0x000604, which means V3_SWAP_EXACT_IN -> PAY_PORTION -> SWEEP.

But sometimes I found the command bytes are 0x00 only, so when should we use the two extra commands? thanks for any help

poodlepp commented 1 month ago

I'm also confused

OneMore14 commented 1 month ago

I'm also confused

实际上是不需要管这个的,PAY_PORTION是你在uniswap官网上swap需要付费,有些没有PAY_PORTION是因为他们稳定币不收费