Documentation Index
Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Git Source
Inherits:
RuleAdministratorOnly, ActionTypesArray, ITokenHandlerEvents, IAssetHandlerErrors
Author:
@ShaneDuncan602 @oscarsernarosero @TJ-Everett
Setters and getters for the rule in the handler. Meant to be inherited by a handler
facet to easily support the rule.
Functions
getTokenMaxSupplyVolatilityId
Rule Setters and Getters
Retrieve the token max supply volatility rule id
function getTokenMaxSupplyVolatilityId(ActionTypes _action) external view returns (uint32);
Parameters
| Name | Type | Description |
|---|
_action | ActionTypes | the action type(this left in to keep signatures the same for dependent apis) |
Returns
| Name | Type | Description |
|---|
<none> | uint32 | totalTokenMaxSupplyVolatilityId rule id |
setTokenMaxSupplyVolatilityId
that setting a rule will automatically activate it.
Set the TokenMaxSupplyVolatility. Restricted to rule administrators only.
function setTokenMaxSupplyVolatilityId(ActionTypes[] calldata _actions, uint32 _ruleId)
external
ruleAdministratorOnly(lib.handlerBaseStorage().appManager);
Parameters
| Name | Type | Description |
|---|
_actions | ActionTypes[] | the action types |
_ruleId | uint32 | Rule Id to set |
setTokenMaxSupplyVolatilityIdFull
that setting a rule will automatically activate it.
Set the setAccountMinMaxTokenBalanceRule suite. Restricted to rule administrators only.
function setTokenMaxSupplyVolatilityIdFull(ActionTypes[] calldata _actions, uint32 _ruleId)
external
ruleAdministratorOnly(lib.handlerBaseStorage().appManager);
Parameters
| Name | Type | Description |
|---|
_actions | ActionTypes[] | actions to have the rule applied to |
_ruleId | uint32 | Rule Id corresponding to the actions |
clearTokenMaxSupplyVolatility
Clear the rule data structure
function clearTokenMaxSupplyVolatility() internal;
clearTokenMaxSupplyVolatilityAccumulators
Clear the rule data accumulators
function clearTokenMaxSupplyVolatilityAccumulators() internal;
setTokenMaxSupplyVolatilityIdUpdate
that setting a rule will automatically activate it.
Set the TokenMaxSupplyVolatility.
function setTokenMaxSupplyVolatilityIdUpdate(ActionTypes _action, uint32 _ruleId) internal;
Parameters
| Name | Type | Description |
|---|
_action | ActionTypes | the action type to set the rule |
_ruleId | uint32 | Rule Id to set |
activateTokenMaxSupplyVolatility
Tells you if the Token Max Supply Volatility rule is active or not.
function activateTokenMaxSupplyVolatility(ActionTypes[] calldata _actions, bool _on)
external
ruleAdministratorOnly(lib.handlerBaseStorage().appManager);
Parameters
| Name | Type | Description |
|---|
_actions | ActionTypes[] | the action type |
_on | bool | boolean representing if the rule is active |
isTokenMaxSupplyVolatilityActive
Tells you if the Token Max Supply Volatility is active or not.
function isTokenMaxSupplyVolatilityActive(ActionTypes _action) public view returns (bool);
Parameters
| Name | Type | Description |
|---|
_action | ActionTypes | the action type |
Returns
| Name | Type | Description |
|---|
<none> | bool | boolean representing if the rule is active |