Everything works but the bug is occurring when the minimumContractBalanceToSwap is hit at L310, buys and sells in uniswap stop working for everyone except the ower().
I have been trying to figure this out for 3 days now. I am simply stunned. Any ideas as to why this is? I even tried isolating the swapTokensForEth(contractTokenBalance.div(2)); and swapAndLiquify(contractTokenBalance.div(2)); with no success.
I am out of ideas. Any help would be really appreciated and thank you in advance!
Hehe no problem Yes that is just my notes. I am testing it fine on rinkeby with no problem. Everything works but the bug is occurring when the minimumContractBalanceToSwap is hit at L310, buys and sells in uniswap stop working for everyone except the ower() .
from != uniswapV2Pair means it’s not a buy, right? I might have confused it then. But everything is blocked both sells and buys. The problematic code doesn’t check for buys or sell. That’s why I am so confused.
Well that’s the thing. Is not failing the transaction. Once the minimum amount is reached and it has to execute swaps, uniswap doesn’t even issue the transaction. It’s just pops with a message of invalid output or something.