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

View Source: contracts/modules/TransferManager/CTM/CountTransferManager.solarrow-up-right

↗ Extends: CountTransferManagerStoragearrow-up-right, TransferManagerarrow-up-right ↘ Derived Contracts: MockCountTransferManagerarrow-up-right

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.executeTransferarrow-up-right

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.verifyTransferarrow-up-right

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.getInitFunctionarrow-up-right

This function returns the signature of configure function

Arguments

Name

Type

Description

getPermissions

⤾ overrides IModule.getPermissionsarrow-up-right

Returns the permissions flag that are associated with CountTransferManager

Arguments

Name

Type

Description

Last updated

Was this helpful?