Add commission to ERC20 transfer

Can I in a token for example in the _transfer function add a commission of 1% of the transfer?

Does that give some kind of problem?

1 Like

Yeah, of course, you can. And at the same time, it will bring some issues,

:warning: If you create a fee on transfer or deflationary token (burn a percentage on transfer) this can cause issues with use in other contracts such as:

Any solution should be appropriately tested (including testing with services that you want to use) and appropriately audited.

I also suggest looking at Points to consider when creating a fungible token (ERC20, ERC777) .

Thanks for @abcoathup

1 Like