Hi. I created two tokens.
I want next logic:
User transfer x token2 to system account and after that mint token1 to the user.
How to implement this or see the example?
1 Like
Hi @Test_Meold,
You could look at the crowdsale contracts in OpenZeppelin Contracts 2.x: https://docs.openzeppelin.com/contracts/4.x/crowdsales (these accept Ether) and you could adapt for tokens: Example on how to use ERC20 token in another contract