Hello everyone, I have a problem with the creation of a token.
My goal is to create a token with burn fees only when buying/selling and not when transferring between 2 wallets or when adding/removing liquidity.
In the constructor I also create the pair MyToken / ETH under the name "AddressPair" and the address of the Uniswap router is noted "UniswapRouterV2Address" I arrive at the following conclusions:
Transfer between 2 wallets: from and to != AddressPair or UniswapRouterV2Address
Remove liquidity: from or to = UniswapRouterV2Address
My problem is that for adding liquidity I notice that to = AddressPair but For a swap MyToken -> ETH : to = AddressPair too. So I can't separate the two cases, knowing that I only want fees when swapping and not when adding liquidity...
There is a similar subject without answer dating from 1 year and a half so I
Thanks for your help