Is it possible to receive and send other tokens (like DAI for example) by smart contract?
1 Answer
As long as you implement into your contract functions that allows it to interact with the contract that created the tokens, this is possible. If the token is a standard, like ERC20, the same code (changing only the address of the particular token) will work.
-
but for example, I want to create smart contract that will hold DAI send by group of people, then invoking contract method send all DAI to one of them, it is possible? Commented May 10, 2018 at 18:15
-
Yes. This is possible and is not difficult to do, but you need to know what functions are implemented in the contract. If it is ERC20 then using
transfer
function is all you will need in your contract.– JaimeCommented May 10, 2018 at 18:40 -
thanks for help, I am trying find source code DAI contract, but I can not find them, on etherscan there is no source code tab, maybe some clues? Commented May 10, 2018 at 18:51
-
-
Here is the sourcecode for DAI token :) etherscan.io/address/…– 6egicCommented May 10, 2018 at 23:36