Skip to content

TRC-014 AntiWhale

Description

AntiWhale describes whether the contract limits the maximum transaction amount or the maximum token holding for a single address.

Risk Pattern

function _transfer(address from, address recipient, uint256 amount) internal virtual override returns (bool) {
  require(_balances[_msgSender()] >= amount, );
  _balances[_msgSender()] -= amount;
  require(amount <= maxAmount,);
  _balances[recipient] += (amount-fee);
  emit Transfer(_msgSender(), recipient, amount-fee);
  return true;
}

Risk Samples