0

Is it possible to receive and send other tokens (like DAI for example) by smart contract?

1

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? – needprayfornotaxes May 10 '18 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. – Jaime May 10 '18 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? – needprayfornotaxes May 10 '18 at 18:51
  • I tried as well but couldn't find it. – Jaime May 10 '18 at 18:53
  • Here is the sourcecode for DAI token :) etherscan.io/address/… – phant0m May 10 '18 at 23:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.