State Variables
MAX_HOLD_TIME_HOURS
Functions
activateTokenMinHoldTime
-------------SIMPLE RULE SETTERS and GETTERS--------------- Tells you if the minimum hold time rule is active or not.Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | the action type |
_on | bool | boolean representing if the rule is active |
setTokenMinHoldTime
that setting a rule will automatically activate it. Set the TokenMinHoldTime. Restricted to rule administrators only.Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | the action types |
_ruleId | uint32 | the rule id |
setTokenMinHoldTimeFull
that setting a rule will automatically activate it. This function does not check that the array length is greater than zero to allow for clearing out of the action types data Set the setTokenMinHoldTimeRule suite. Restricted to rule administrators only.Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | actions to have the rule applied to |
_ruleIds | uint32[] | the rule ids corresponding to the actions |
clearTokenMinHoldTime
Clear the rule data structureresetTokenMinHoldTime
reset the ruleChangeDate within the rule data struct. This will signal the rule check to clear the accumulator data prior to checking the rule.setTokenMinHoldTimeIdUpdate
that setting a rule will automatically activate it. Set the TokenMinHoldTime.Name | Type | Description |
---|---|---|
_action | ActionTypes | the action type to set the rule |
_ruleId | uint32 | the rule id |
getTokenMinHoldTimePeriod
Get the minimum hold time rule hold hoursName | Type | Description |
---|---|---|
_action | ActionTypes | the action type |
Name | Type | Description |
---|---|---|
<none> | uint32 | period minimum amount of time to hold the asset |
isTokenMinHoldTimeActive
function to check if Minumum Hold Time is activeName | Type | Description |
---|---|---|
_action | ActionTypes | the action type |
Name | Type | Description |
---|---|---|
<none> | bool | bool |