0

If a transfer happens from one account to another thru metamask,how do we burn coins per transfer ? can this be done thru a contract? (using besu).

Is this change in java code or can be down thru a contract?

4

That is called a Deflationary Token.

You can override the transfer function of an ERC-20 token and add a burn function that will burn a percentage of tokens that are being transferred.

Keep in mind that you should check both from and to addresses are non-zero, otherwise it would burn the mint and burn transfers.

4
  • Thanks trizin for the answer. I am new to the ethereum world. Is this change in java code or can be down thru a contract?
    – mkm
    Jun 30 at 12:37
  • Is this change in java code or can be down thru a contract?
    – mkm
    Jul 6 at 14:52
  • Must be done in contract
    – trizin
    Jul 6 at 14:53
  • Can the basefee in 1599 be used or this ?
    – mkm
    Jul 14 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.