Hey guys, i can't figure out what is wrong with this function and its prevent pcs to swap token for eth even with lower wallets

Sep 7, 2021, 8:23 PM
if(from != owner() && to != owner() && to != address(0) && to != _burnAddress && to !=pancakePair){
uint256 contractBalanceRecepient = balanceOf(to);
require(contractBalanceRecepient + amount <= _maxWalletAmount, "Exceeds maximum wallet amount");
}
Sep 7, 2021, 8:23 PM
any error message?
Sep 7, 2021, 8:33 PM
Nothing
Sep 7, 2021, 8:34 PM

© 2024 Draquery.com All rights reserved.