StableCredit.sol

ERC20: The StableCredit contract inherits from the ERC20 standard. This means positive balances can be displayed in all EVM compatible wallets. However, in order to show outstanding credit balances, limits, and other credit terms, members have to use stable credit supported wallet interfaces.

View Functions

creditLimitOf

function creditLimitOf(address member) public view returns (uint256)

Fetch the credit limit of given member's credit line.

Call Params

Return Values

creditBalanceOf

function creditBalanceOf(address member) public view returns (uint256)

Fetch the credit balance of given member's credit line. This resembles the amount of debt the given member owes the network.

Call Params

Return Values

Mutative Functions

burnNetworkDebt

function burnNetworkDebt(uint256 amount) public

Enable connected member to burn network debt (if any) in exchange for reserve reimbursement.

Call Params

repayCreditBalance

function repayCreditBalance(address member, uint128 amount) external

Enable repayment of given member's outstanding credit balance (if any) using reference currency.

Call Params

Last updated