Timeline for How to add requirements to the token contract: 1) owner has enough tokens and 2) minimum sum of ETH of the receivers before updating balances
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 8, 2017 at 21:25 | comment | added | Ismael♦ | @MichaelP Also you can move the first require outside of the for loop, will save some gas if you have more than one address to check. | |
Oct 8, 2017 at 15:11 | comment | added | Michael P | Thank you! You're right, the function getEthBalance is not necessary here. | |
Oct 8, 2017 at 15:08 | vote | accept | Michael P | ||
Oct 8, 2017 at 12:58 | history | answered | Jesbus | CC BY-SA 3.0 |