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?
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?
Yeah, of course, you can. And at the same time, it will bring some issues,
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: https://medium.com/balancer-protocol/incident-with-non-standard-erc20-deflationary-tokens-95a0f6d46dea
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