Functions
checkAccountMaxValueByAccessLevel
Check if transaction passes Account Max Value By AccessLevel rule.Name | Type | Description |
---|---|---|
_ruleId | uint32 | Rule Identifier for rule arguments |
_accessLevel | uint8 | the Access Level of the account |
_balance | uint128 | account’s beginning balance in USD with 18 decimals of precision |
_amountToTransfer | uint128 | total USD amount to be transferred with 18 decimals of precision |
getAccountMaxValueByAccessLevel
max has to be multiplied by 10 ** 18 to take decimals in token pricing into account Function to get the Account Max Value By Access Level rule in the rule set that belongs to the Access LevelName | Type | Description |
---|---|---|
_index | uint32 | position of rule in array |
_accessLevel | uint8 | AccessLevel Level to check |
Name | Type | Description |
---|---|---|
<none> | uint48 | balanceAmount balance allowed for access level |
getTotalAccountMaxValueByAccessLevel
Function to get total Account Max Value By Access Level rulesName | Type | Description |
---|---|---|
<none> | uint32 | Total length of array |
checkAccountMaxValueOutByAccessLevel
Check if transaction passes Account Max Value Out By Access Level rule.Name | Type | Description |
---|---|---|
_ruleId | uint32 | Rule Identifier for rule arguments |
_accessLevel | uint8 | the Access Level of the account |
_usdWithdrawalTotal | uint128 | account’s total amount withdrawn in USD with 18 decimals of precision |
_usdAmountTransferring | uint128 | total USD amount to be transferred with 18 decimals of precision |
getAccountMaxValueOutByAccessLevel
max has to be multiplied by 10 ** 18 to take decimals in token pricing into account Function to get the Account Max Value Out By Access Level rule in the rule set that belongs to the Access LevelName | Type | Description |
---|---|---|
_index | uint32 | position of rule in array |
_accessLevel | uint8 | AccessLevel Level to check |
Name | Type | Description |
---|---|---|
<none> | uint48 | balanceAmount balance allowed for access level |
getTotalAccountMaxValueOutByAccessLevel
Function to get total Account Max Value Out By Access Level rulesName | Type | Description |
---|---|---|
<none> | uint32 | Total number of access level withdrawal rules |
checkAccountDenyForNoAccessLevel
Check if transaction passes Account Deny For No Access Level rule.This has no stored rule as there are no additional variables needed.Name | Type | Description |
---|---|---|
_accessLevel | uint8 | the Access Level of the account |
getAccountMaxReceivedByAccessLevelSourceAddr
Function to get the Account Max Received By Access Level rule source address in the ruleName | Type | Description |
---|---|---|
_index | uint32 | position of rule in array |
Name | Type | Description |
---|---|---|
<none> | address | Source Address for the rule Id |
checkAccountMaxReceivedByAccessLevel
Check if transaction passes Account Max Value By AccessLevel rule.Name | Type | Description |
---|---|---|
_ruleId | uint32 | Rule Identifier for rule arguments |
_accessLevel | uint8 | the Access Level of the account |
_usdWithdrawalTotal | uint128 | account’s total withdrawn in USD with 18 decimals of precision |
_amountTransferring | uint128 | total USD amount to be transferred with 18 decimals of precision |
getAccountMaxReceivedByAccessLevel
max has to be multiplied by 10 ** 18 to take decimals in token pricing into account Function to get the Account Max Value By Access Level rule in the rule set that belongs to the Access LevelName | Type | Description |
---|---|---|
_index | uint32 | position of rule in array |
_accessLevel | uint8 | AccessLevel Level to check |
Name | Type | Description |
---|---|---|
<none> | uint48 | balanceAmount balance allowed for access level |
getTotalAccountMaxReceivedByAccessLevel
Function to get total Account Max Value By Access Level rulesName | Type | Description |
---|---|---|
<none> | uint32 | Total length of array |