We are creating a smart contract and are having issues with implementing a small burn tax based strictly off of sells. We are looking for consultation and reviewing the code for it to properly work when using using Ropsten Test
The created ERC20 will have tax on sells. We are trying to achieve this by creating a mapping(address => bool) where we set the pool address = true, and then in _transfer function checking if a recipient == to the pool, based on that there is either a normal transfer or a transfer that is taxed.
The end goal is that on sales there will be a tax implemented, which will be allocated to a burn wallet. We are open to using other methods is necessary. The priority is for it to work on swaps.
Below in the files you will see the current solidity code.