Open OKBoomerbsc opened 3 years ago
Leaving takeFee = true, changed the standard _transfer to the TransferBothExcluded block and that block to the standard _transfer block as well as _transferToExcluded and _transferFromExcluded. This should treat regular transfers as excluded from any fees and any transaction with an "excluded" address should be forced a ten percent fee. The router address on pancakeswap is hardcoded to be excluded. Any update to a router will just need the address added to the "excluded" list.
Try to remove FreezyEx suggestion and write an original line which should represent either setting bool takefee=false and making it true on buy and sells involving uniswapV2pair OR leave as is and make the sender of a transaction to another wallet exempt from fees using the _exempt function.