When the contract executes the swap and liquify at the specified amount, the v2 pair contract is unable to sell unless the fee’s and swap and liquify are disabled. Which halts being able to sell.
If the v2 pair is excluded from fee’s the fee’s are not collected.
The contract is using the pancakeswapv2 router address and is collecting the fee balance up until it needs to execute the sell, which completes when the fees and swapandliquify are disabled, after re-enabling it it will work again until it reaches the amount.
Has anyone run into this before.
Using V2 Router:
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E);
// Create a uniswap pair for this new token
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())