Transfer Manager module for limiting percentage of token supply a single address can hold (Percentag
View Source: contracts/modules/TransferManager/PTM/PercentageTransferManager.sol
↗ Extends: PercentageTransferManagerStorage, TransferManager
PercentageTransferManager
Events
Functions
Constructor
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 given account to end up with more tokens than allowed
Arguments
Name | Type | Description |
_from | address | Address of the sender |
_to | address | Address of the receiver |
_amount | uint256 | The amount of tokens to transfer |
bytes | _from Address of the sender |
verifyTransfer
⤾ overrides ITransferManager.verifyTransfer
Used to verify the transfer transaction and prevent a given account to end up with more tokens than allowed
Arguments
Name | Type | Description |
_from | address | Address of the sender |
_to | address | Address of the receiver |
_amount | uint256 | The amount of tokens to transfer |
bytes | _from Address of the sender |
_verifyTransfer
Arguments
Name | Type | Description |
_from | address | |
_to | address | |
_amount | uint256 |
configure
Used to intialize the variables of the contract
Arguments
Name | Type | Description |
_maxHolderPercentage | uint256 | Maximum amount of ST20 tokens(in %) can hold by the investor |
_allowPrimaryIssuance | bool |
getInitFunction
⤾ overrides IModule.getInitFunction
This function returns the signature of configure function
Arguments
Name | Type | Description |
changeHolderPercentage
sets the maximum percentage that an individual token holder can hold
Arguments
Name | Type | Description |
_maxHolderPercentage | uint256 | is the new maximum percentage (multiplied by 10**16) |
modifyWhitelist
adds or removes addresses from the whitelist.
Arguments
Name | Type | Description |
_investor | address | is the address to whitelist |
_valid | bool | whether or not the address it to be added or removed from the whitelist |
modifyWhitelistMulti
adds or removes addresses from the whitelist.
Arguments
Name | Type | Description |
_investors | address[] | Array of the addresses to whitelist |
_valids | bool[] | Array of boolean value to decide whether or not the address it to be added or removed from the whitelist |
setAllowPrimaryIssuance
sets whether or not to consider primary issuance transfers
Arguments
Name | Type | Description |
_allowPrimaryIssuance | bool | whether to allow all primary issuance transfers |
getPermissions
⤾ overrides IModule.getPermissions
Return the permissions flag that are associated with Percentage transfer Manager
Arguments
Name | Type | Description |
Last updated