Transfer Manager for limiting maximum number of token holders (CountTransferManager.sol)

View Source: contracts/modules/TransferManager/CTM/CountTransferManager.sol

↗ Extends: CountTransferManagerStorage, TransferManager ↘ Derived Contracts: MockCountTransferManager

CountTransferManager

Events

event ModifyHolderCount(uint256  _oldHolderCount, uint256  _newHolderCount);

Functions

Constructor

function (address _securityToken, address _polyToken) public nonpayable Module

Arguments

Name

Type

Description

_securityToken

address

Address of the security token

_polyToken

address

executeTransfer

⤾ overrides ITransferManager.executeTransfer

Used to verify the transfer transaction and prevent a transfer if it passes the allowed amount of token holders

function executeTransfer(address _from, address _to, uint256 _amount, bytes ) external nonpayable
returns(enum ITransferManager.Result)

Arguments

Name

Type

Description

_from

address

Address of the sender

_to

address

Address of the receiver

_amount

uint256

Amount to send

bytes

_from Address of the sender

verifyTransfer

⤾ overrides ITransferManager.verifyTransfer

Used to verify the transfer transaction and prevent a transfer if it passes the allowed amount of token holders

function verifyTransfer(address _from, address _to, uint256 _amount, bytes ) public view
returns(enum ITransferManager.Result, bytes32)

Arguments

Name

Type

Description

_from

address

Address of the sender

_to

address

Address of the receiver

_amount

uint256

Amount to send

bytes

_from Address of the sender

_verifyTransfer

function _verifyTransfer(address _from, address _to, uint256 _amount, uint256 _holderCount) internal view
returns(enum ITransferManager.Result, bytes32)

Arguments

Name

Type

Description

_from

address

_to

address

_amount

uint256

_holderCount

uint256

configure

Used to initialize the variables of the contract

function configure(uint256 _maxHolderCount) public nonpayable onlyFactory

Arguments

Name

Type

Description

_maxHolderCount

uint256

Maximum no. of holders this module allows the SecurityToken to have

changeHolderCount

Sets the cap for the amount of token holders there can be

function changeHolderCount(uint256 _maxHolderCount) public nonpayable withPerm

Arguments

Name

Type

Description

_maxHolderCount

uint256

is the new maximum amount of token holders

getInitFunction

⤾ overrides IModule.getInitFunction

This function returns the signature of configure function

function getInitFunction() public pure
returns(bytes4)

Arguments

Name

Type

Description

getPermissions

⤾ overrides IModule.getPermissions

Returns the permissions flag that are associated with CountTransferManager

function getPermissions() public view
returns(bytes32[])

Arguments

Name

Type

Description

Last updated