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 ModuleArguments
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
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
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
Arguments
Name
Type
Description
_from
address
_to
address
_amount
uint256
_holderCount
uint256
configure
Used to initialize the variables of the contract
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
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
Arguments
Name
Type
Description
getPermissions
⤾ overrides IModule.getPermissions
Returns the permissions flag that are associated with CountTransferManager
Arguments
Name
Type
Description
Last updated
Was this helpful?