ReSource
Search…
⌃K

ReservePool.sol

View Functions

reserveOf

function reserveOf(address network) public view returns (uint256)
Fetch the credit limit of given member's credit line.
Call Params
Name
Type
Description
member
address
address of member with credit line.
Return Values
Type
Description
uint256
The credit limit of the given member

operatorPool

function operatorPool(address network) public view returns (uint256)
Fetch the operatorPool balance of the given network's reserve.
Call Params
Name
Type
Description
network
address
address of network with operatorPool balance.
Return Values
Type
Description
uint256
The operator pool balance of the provided network

targetRTD

function targetRTD(address network) public view returns (uint256)
Fetch the target Reserve to Debt ratio of the given network's reserve.
Call Params
Name
Type
Description
network
address
address of network with targetRTD.
Return Values
Type
Description
uint256
The targetRTD value of the provided network's reserve

Mutative Functions

depositReserve

function depositReserve(address network, uint256 amount) public
Deposit referenced amount of given network's reference currency to the network's reserve
Call Params
Name
Type
Description
network
address
address of network to deposit reserve funds into
amount
uint256
amount of reference currency to deposit

withdrawOperator

function withdrawOperator(address network, uint256 amount) public
Call Params
Name
Type
Description
network
address
address of network with operatorPool balance.
amount
uint256
amount of network's reference currency to withdraw