-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Uniswap has a to field allowing the output tokens to be sent to an address other than the signer.
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data)Ref should implement this. Suppose we have a proxy contract for swaps-
- In EVM, we can set the the
tofield as the signer's address. This way the tokens directly go to the user. - With Ref, the proxy contract will get the output tokens. Sending the tokens to the user will require another transfer. This more more code and higher gas fee.
Metadata
Metadata
Assignees
Labels
No labels