gelatodigital / gelato-network

V1 implementation of Gelato Network
https://gelato.network/
MIT License
231 stars 29 forks source link

made actionuniswap accept either proxy address or address 0 #221

Closed hilmarx closed 4 years ago

hilmarx commented 4 years ago

At the moment, in the Uniswap action, we check in termsOk if origin == address(0) and in the actual address if origin == address(this).

Hence I changed it so that devs, if they want to skip the transferFrom, can input origin == address(0) or userProxy. This is done because, if you e.g. use create instead of create2, the proxy address might not be known before the transaction was mined. That way, devs could simply input address(0) to skip the transferFrom if they like