Skip to content

TRC-014 AntiWhale

Description

The contract imposes restrictions on the maximum transaction volume or maximum holding amount.

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