Skip to main content
7 events
when toggle format what by license comment
Oct 11, 2017 at 3:38 comment added Ismael @thefett The ERC20 standard define functionality you have to implement, ie transfer, approve, transferFrom, etc. If you define those methods then you are ERC20 compliant. A limitation/feature of ERC20 is it assumes a single token, none of the methods allow to select a token for a transaction. In my opinion it is not a good idea to manage multiple tokens through a single contract if you want to be ERC20. Lots of people (and contracts) expect a single token, and will not work if the same contract manages two tokens.
Oct 11, 2017 at 3:27 comment added Ismael @AlexBeebe Sorry, I didn't see your questions until now. A contract can only access the public members of other contracts, if you define a public interface with the information you need you should be able to share information between contracts.
Oct 11, 2017 at 0:41 comment added thefett would this contract still be considered ERC20 if you have multiple coin types?
Jun 9, 2016 at 22:59 comment added Alex Beebe Thank you for the detailed response! I think nested mappings is the way I want to go but I do have a question about launching the contract multiple times. If I launch the contract once for each coin type that I want is it possible to check the balance of the other coin types in one of the contracts? For example would I be able to check to see how many of the Coin3 coin type an address has in the Coin1 contract?
Jun 9, 2016 at 22:57 vote accept Alex Beebe
Jun 7, 2016 at 6:05 history edited Ismael CC BY-SA 3.0
Expand answer
Jun 7, 2016 at 5:47 history answered Ismael CC BY-SA 3.0