Reputation: 3011
I am trying to build a contract where not only the native asset but also e.g. USDC can be deposited and transferred.
I am reading through the ink! documentation and figured i will need PSP22 support, which is the equivalent for ERC20 token standards on ethereum. but how do I, in my contract e.g. do call functions like transfer or balanceOf on a contract.
Would I need to know the token address of the USDC token and then just do a cross contract call?
Upvotes: 0
Views: 17