tokens from contract to user wallet by using transfer or transferFrom from IERC20…
Should I do the token.transfer() before or after discounting that from the contract?
Case A:
token.transfer(wallet,amount)
userPool[wallet] -= amount
Case B:
userPool[wallet] -= amount
token.transfer(wallet,amount)
Thanks!!!
Second one
Обсуждают сегодня