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:
IRiskInputErrors, IInputErrors
Author:
@ShaneDuncan602, @oscarsernarosero, @TJ-Everett
Data interface to store risk scores for user accounts
This interface contains storage and retrieval function definitions
Functions
addScore
Add the risk score to the account. Restricted to the owner
function addScore(address _address, uint8 _score) external;
Parameters
| Name | Type | Description |
|---|
_address | address | address of the account |
_score | uint8 | risk score (0-100) |
removeScore
Remove the risk score for the account. Restricted to the owner
function removeScore(address _account) external;
Parameters
| Name | Type | Description |
|---|
_account | address | address of the account |
getRiskScore
Get the risk score for the account. Restricted to the owner
function getRiskScore(address _account) external view returns (uint8);
Parameters
| Name | Type | Description |
|---|
_account | address | address of the account |
addMultipleRiskScores
Add the Risk Score at index to Account at index in array. Restricted to Risk Admins.
function addMultipleRiskScores(address[] memory _accounts, uint8[] memory _scores) external;
Parameters
| Name | Type | Description |
|---|
_accounts | address[] | address array upon which to apply the Risk Score |
_scores | uint8[] | Risk Score array (0-100) |
addRiskScoreToMultipleAccounts
Add the Risk Score to each address in array. Restricted to Risk Admins.
function addRiskScoreToMultipleAccounts(address[] memory _accounts, uint8 _score) external;
Parameters
| Name | Type | Description |
|---|
_accounts | address[] | address array upon which to apply the Risk Score |
_score | uint8 | Risk Score(0-100) |