Timeline for How can we detect if tokens are transferred to our smart contract and avoid "allow"?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 1, 2019 at 20:52 | vote | accept | Sophie259 | ||
May 1, 2019 at 15:19 | comment | added | Rob Hitchens | No, it is not. You can make a contract that runs a tokenFallback function whenever an ERC223 token is received. Most contracts are concerned with 1 utility/payment/app token only and wouldn't know what to do with other types. ERC223 provides a method to reject unwanted ERC223 but it does not catch unwanted ERC20. | |
May 1, 2019 at 13:16 | comment | added | Sophie259 | I found something ( ethereum.stackexchange.com/questions/31643/erc223-gas-savings ) but I don't understand if the ERC223 would be a 1-step solution for ERC20s as well | |
May 1, 2019 at 10:07 | comment | added | Sophie259 | I'm nearly ready to accept your solution, I just want more details because I feel like I'm missing some points. You say that ERC223 is the 1-step solution but I don't fully understand how. Is there a reference to some practical code that I can see as an example? | |
May 1, 2019 at 1:24 | history | answered | Rob Hitchens | CC BY-SA 4.0 |