AssurancePool.sol

View Functions

primaryBalance

function primaryBalance() public view returns (uint256)

Fetch the primary reserve balance.

Return Values

peripheralBalance

function peripheralBalance() public view returns (uint256)

Fetch the peripheral reserve balance.

Return Values

excessBalance

function excessBalance() public view returns (uint256)

Fetch the excess reserve balance.

Return Values

reserveBalance

function reserveBalance() public view returns (uint256)

Fetch the total reserve (primary + peripheral) balance.

Return Values

RTD

function RTD() public view returns (uint256)

Fetch the current Reserve to Debt ratio of the reserve.

Return Values

targetRTD

function targetRTD() public view returns (uint256)

Fetch the target Reserve to Debt ratio of the reserve.

Return Values

hasValidRTD

function hasValidRTD() public view returns (bool)

Fetch the RTD (Reserve to Debt ratio) state of the reserve.

Return Values

neededReserves

function neededReserves() public view returns (uint256)

Fetch the needed amount of reserve tokens to reach the target RTD.

Return Values

Mutative Functions

depositIntoPrimaryReserve

function depositIntoPrimaryReserve(uint256 amount) public

Deposit provided amount of reserve tokens into to the network's primary reserve.

Call Params

depositIntoPeripheralReserve

function depositIntoPeripheralReserve(uint256 amount) public

Deposit provided amount of reserve tokens into to the network's peripheral reserve.

Call Params

depositIntoExcessReserve

function depositIntoExcessReserve(uint256 amount) public

Deposit provided amount of reserve tokens into to the network's excess reserve.

Call Params

deposit

function deposit(uint256 amount) public

Deposit provided amount of reserve tokens into either the primary reserve, or excess reserve depending on the reserve's current RTD.

Call Params

withdraw

function withdraw(uint256 amount) public

Withdraws the provided amount of reserve tokens from the excess reserve.

Call Params

Last updated