Put in order · Blockchain and Web3 course · Module 8: ERC-20 & Token Creation

Sorting: Burning process

Arrange the steps for burning tokens (burn):

Items to put in order

  • Check whether the user has a sufficient balance
  • Decrease totalSupply by amount
  • Decrease the user's balance by amount
  • Emit Transfer(user, address(0), amount)

You can check the correct answer by solving this task in the CodeWorlds game.