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

NameTypeDescription
_addressaddressaddress of the account
_scoreuint8risk score (0-100)

removeScore

Remove the risk score for the account. Restricted to the owner

function removeScore(address _account) external;

Parameters

NameTypeDescription
_accountaddressaddress of the account

getRiskScore

Get the risk score for the account. Restricted to the owner

function getRiskScore(address _account) external view returns (uint8);

Parameters

NameTypeDescription
_accountaddressaddress 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

NameTypeDescription
_accountsaddress[]address array upon which to apply the Risk Score
_scoresuint8[]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

NameTypeDescription
_accountsaddress[]address array upon which to apply the Risk Score
_scoreuint8Risk Score(0-100)