MoCRiskProxManager

View Source: contracts/MoCRiskProxManager.sol

↗ Extends: MoCBucketContainer

MoCRiskProxManager - version: 0.1.10

Contract Members

Constants & Variables

uint256 internal constant MIN_ALLOWED_BALANCE;

uint256[50] private upgradeGap;

Functions

initialize

Arguments

Name
Type
Description

connectorAddress

address

_governor

address

_c0Cobj

uint256

_x2Cobj

uint256

riskProxBalanceOf

returns user balance

Returns

total balance for the userAddress

Arguments

Name
Type
Description

bucket

bytes32

RiskProx corresponding bucket to get balance from

userAddress

address

user address to get balance from

hasValidBalance

verifies that this user has assigned balance for the given bucket

Returns

true if the user has assigned balance

Arguments

Name
Type
Description

bucket

bytes32

corresponding Leveraged bucket to get balance from

userAddress

address

user address to verify balance for

index

uint256

index, starting from 1, where the address of the user is being kept

assignRiskProx

Assigns the amount of RiskProx

Arguments

Name
Type
Description

bucket

bytes32

bucket from which the RiskProx will be removed

account

address payable

user address to redeem for

riskProxAmount

uint256

riskProx amount to redeem [using mocPresicion]

totalCost

uint256

ReserveToken value of riskProxAmount [using reservePrecision]

removeRiskProx

Removes the amount of RiskProx and substract ReserveTokens from bucket

Arguments

Name
Type
Description

bucket

bytes32

bucket from which the RiskProx will be removed

userAddress

address payable

user address to redeem for

riskProxAmount

uint256

riskProx amount to redeem [using mocPresicion]

totalCost

uint256

reserveToken value of riskProxAmount [using reservePrecision]

setRiskProxBalanceOf

Sets the amount of RiskProx

Arguments

Name
Type
Description

bucket

bytes32

bucket from which the RiskProx will be setted

userAddress

address payable

user address to redeem for

value

uint256

riskProx amount to redeem [using mocPresicion]

initializeValues

intializes values of the contract

Arguments

Name
Type
Description

_governor

address

Last updated