I have a token that has this inside the _transfer function. With it in there, everything works as intended. It keeps wallets from having more than a certain amount of tokens. BUT, it doesn't allow me to pull liquidity. If I // it out, removing liquidity works, but there is no max wallet.
if (
to != address(0) &&
to != address(0x000000000000000000000000000000000000dEaD) &&
from != address(this) &&
to != address(this) &&
to != uniswapV2Pair) {
require(balanceOf(to).add(amount) <= maxWalletBalance, "Exceeds maximum wallet token amount.");
}
I'm not planning on rugging, but would like to be able to pull liquidity if months have gone by and the project seems to have failed.
What could be keeping this from happening?
Jan 24, 2022, 8:40 PM
This makes testing difficult, as I'm not able to pull LP and try again. And the faucet isn't helpful with 1bnb a day.
crazy, but been trying to wrap my head around this since last night. Asked in here, then figured it out on my own.
Thanks anyway.
Thanks anyway.
Jan 24, 2022, 9:17 PM