Git Source

Inherits: HandlerAccountMinMaxTokenBalance, HandlerUtils, AppAdministratorOrOwnerOnlyDiamondVersion

Functions

checkTaggedAndTradingRules

This function uses the protocol’s ruleProcessor to perform the actual tagged rule checks.

function checkTaggedAndTradingRules(
    uint256 _balanceFrom,
    uint256 _balanceTo,
    address _from,
    address _to,
    address _sender,
    uint256 _amount,
    ActionTypes action
) external onlyOwner;

Parameters

NameTypeDescription
_balanceFromuint256token balance of sender address
_balanceTouint256token balance of recipient address
_fromaddressaddress of the from account
_toaddressaddress of the to account
_senderaddressaddress of the caller
_amountuint256number of tokens transferred
actionActionTypesif selling or buying (of ActionTypes type)

_checkTaggedIndividualRules

This function consolidates all the tagged rules that utilize account tags plus all trading rules.

function _checkTaggedIndividualRules(
    uint256 _balanceFrom,
    uint256 _balanceTo,
    address _from,
    address _to,
    address _sender,
    uint256 _amount,
    ActionTypes action
) internal;

Parameters

NameTypeDescription
_balanceFromuint256token balance of sender address
_balanceTouint256token balance of recipient address
_fromaddressaddress of the from account
_toaddressaddress of the to account
_senderaddressaddress of the caller
_amountuint256number of tokens transferred
actionActionTypesif selling or buying (of ActionTypes type)