Skip to content

TRC-009 FullSaleRestriction

Description

Users are unable to sell their entire position all at once. They can only trade a portion as a percentage or retain a certain amount of holdings.

Risk Pattern

function _transfer(address from, address recipient, uint256 amount) internal virtual override returns (bool) {
  require(_balances[_msgSender()] >= amount, );
  require(_balances(from).sub(amount)>=1*10**18,);
  _balances[_msgSender()] -= amount;
  _balances[recipient] += amount;
  emit Transfer(_msgSender(), recipient, amount);
  return true;
}

Risk Samples