Uniswap / universal-router

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

Why exactInputSingle did not return amoutOut? #312

Closed lispking closed 5 months ago

lispking commented 1 year ago

The exactInputSingle method did not return the quantity of currency exchanged, making it inconvenient to use in other contracts. When will this value be opened? like this: https://github.com/Uniswap/v3-periphery/blob/v1.0.0/contracts/SwapRouter.sol#L87

hensha256 commented 5 months ago

this contract does not have a function called exactInputSingle. It works with commands that cannot return values currently. For now I recommend using a difference in token balances to find this value - this will help you support fee on transfer tokens too.