Can we send ERC20 tokens to a contract address??
1 Answer
Yes, any address (contract or not) can be the recipient of ERC20 tokens.
The token contract keeps track of each address's balance. The implementation is usually very simple; just a mapping of addresses to their balances. The transfer
method implementation probably won't do anything aside from check the sender's balance before making the transfer.
For more details see here.
-
2Make sure the contract your sending tokens has some way to send tokens ( or acknowledge tokens have been received), otherwise the tokens will be stuck, nontransferable. Often you have to first approve the token, then tell the smart contract to transfer, so it's aware of this token. Check out ERC165, ERC820– BarrardCommented Dec 16, 2018 at 11:52