VolumeRestrictionLib.sol
View Source: contracts/libraries/VolumeRestrictionLib.sol
VolumeRestrictionLib
Contract Members
Constants & Variables
Functions
deleteHolderFromList
Arguments
Name | Type | Description |
_holderToRestrictionType | mapping(address => enum VolumeRestrictionTMStorage.TypeOfPeriod) | |
_holder | address | |
_dataStore | IDataStore | |
_typeOfPeriod | enum VolumeRestrictionTMStorage.TypeOfPeriod |
addRestrictionData
Arguments
Name | Type | Description |
_holderToRestrictionType | mapping(address => enum VolumeRestrictionTMStorage.TypeOfPeriod) | |
_holder | address | |
_callFrom | enum VolumeRestrictionTMStorage.TypeOfPeriod | |
_endTime | uint256 | |
_dataStore | IDataStore |
isValidAmountAfterRestrictionChanges
Arguments
Name | Type | Description |
_amountTradedLastDay | uint256 | |
_amount | uint256 | |
_sumOfLastPeriod | uint256 | |
_allowedAmount | uint256 | |
_lastTradedTimestamp | uint256 |
getRestrictionData
Provide the restriction details of all the restricted addresses
Returns
address List of the restricted addresses
Arguments
Name | Type | Description |
_holderToRestrictionType | mapping(address => enum VolumeRestrictionTMStorage.TypeOfPeriod) | |
_individualRestrictions | struct VolumeRestrictionTMStorage.IndividualRestrictions | |
_dataStore | IDataStore |
_setValues
Arguments
Name | Type | Description |
_restriction | struct VolumeRestrictionTMStorage.VolumeRestriction | |
_allowedTokens | uint256[] | |
_startTime | uint256[] | |
_rollingPeriodInDays | uint256[] | |
_endTime | uint256[] | |
_typeOfRestriction | enum VolumeRestrictionTMStorage.RestrictionType[] | |
_index | uint256 |
_isVolRestricted
Arguments
Name | Type | Description |
_flags | uint256 |
_getTypeOfPeriod
Arguments
Name | Type | Description |
_currentTypeOfPeriod | enum VolumeRestrictionTMStorage.TypeOfPeriod | |
_callFrom | enum VolumeRestrictionTMStorage.TypeOfPeriod | |
_endTime | uint256 |
_isExistingInvestor
Arguments
Name | Type | Description |
_investor | address | |
_dataStore | IDataStore |
_getKey
Arguments
Name | Type | Description |
_key1 | bytes32 | |
_key2 | address |
Last updated