How give your users the ability to withdraw tokens ERC20 worth a certain amount of USD?
Example:
1 - I have an ERC20 token called MyToken, its current price is $2.00 USD.
2 - I want my contract to pay $10.00 USD to the user with MyToken.
In this case, the contract must pay 5 MyToken on withdrawal.
Does anyone have any simple examples that I can use as a basis?! 🤔
Dec 16, 2021, 7:16 AM