How do I have a single contract handle receiving payments in Ether in the constructor and receiving/transferring an ERC20 Standard Token in the same contract's methods?
constructor = receiving msg.value in Ether contract method 1 = receiving msg.value as ERC20 Token contract method 2 = transfer ERC20 Token to address
I understand and have implemented the receiving payment in Ether for the constructor, but I am kind of confused as to how to handle the ERC20 Standard Token in two other contract payable methods.
I understand I could keep track of the amounts of the ERC20 Token inside the contract, but I am wondering how to verify on receiving/transferring that it is that type of token?
Do I need to interface with the deployed ERC20 Token contract to hold all the values and process the transactions for this contract?