0

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

1 Answer 1

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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