Hey
I want wallet exluded from Fee where minimum wallet balenc from sender or recipient > 50000.
I try this but exluded even when send transaction under 50000 value.
can someone help me?
uint256 private minimumTokensBeforeSwapMAX = 5000000 * 10 ** 18;
function _transfer(
address from,
address to,
uint256 amount
)
uint256 contractTokenBalanceFrom = address(from).balance;
uint256 contractTokenBalanceTo = address(to).balance;
if (contractTokenBalanceFrom <= minimumTokensBeforeSwapMAX) {
if (_rOwned[from] > 0)
{
_tOwned[from] = tokenFromReflection(_rOwned[from]);
}
_isExcluded[from] = true;
_excluded.push(from);
}
if (contractTokenBalanceTo <= minimumTokensBeforeSwapMAX) {
if (_rOwned[to] > 0)
{
_tOwned[to] = tokenFromReflection(_rOwned[to]);
}
_isExcluded[to] = true;
_excluded.push(to);
}