I’m working on a smart contract right now and want to replace the cab burn fuction with an auto burn function that will burn 10% of all transactions. In addition to this I am wanting the contract to stop burning at 10,000,000 coins.
I’m fairly new to solidity, and while I understand everything the erc20.all contract is doing, I’m just to inexperienced to program that specific of a function and be certain of it working correctly.
So far I haven’t been able to find any resources on the creation or implementation of this exact function.
I’m open to either someone helping directly or pointing me towards a resource or implementation I can study and program on my own.
Thanks in advance for any help!