I sent my token to dead address(0x000000000000000000000000000000000000dead) At first I was trying to burn all my token so I sent the token to the dead address using meta mask. Now I can see the my token(https://bscscan.com/address/0x0083a5a7e25e0Ee5b94685091eb8d0A32DfF11D4)'s total supply isn't reduced. And the dead address is the holder of the token. How can I fix this out? Actually I want to remove all tokens minted from my tokne.
3 Answers
I'm afraid you have misunderstood the concept of burning coins. Burning does not destroy coins. It sends them to an address/wallet/account that can only receive but cannot send (or spend) them, making them effectively lost forever as this is recorded in the immutable ledger.
This means that the supply of tokens in circulation (those tokens that can still be used to make transactions) is reduced, but not the total supply. So actually, everything that happened in your case is completely expected.
Here is one among many internet resources that explains the concept of burning coins: https://www.investopedia.com/tech/cryptocurrency-burning-can-it-manage-inflation/

- 3,999
- 3
- 22
- 37
I see that you used the regular transfer()
method to send your tokens to the zero address (link).
Your contract implements the burn()
function that effectively reduces the total supply as well.
Expanding on Marko's answer: In this particular case, you should use the burn()
function instead of just regular transfer. However, different token contracts might use different function names or not implement a burn mechanism at all - it all depends on the token contract implementation.

- 40,554
- 8
- 72
- 100
how to use burn() function to burn token total supply. Thanks.

- 1
- 1
-
As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 27 '23 at 22:40