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
Fetch the credit limit of given member's credit line.
Call Params
member
address
address of member with credit line.
Return Values
uint256
The credit limit of the given member
creditBalanceOf
Fetch the credit balance of given member's credit line. This resembles the amount of debt the given member owes the network.
Call Params
member
address
address of member with credit line.
Return Values
uint256
The credit balance of the given member
Mutative Functions
burnNetworkDebt
Enable connected member to burn network debt (if any) in exchange for reserve reimbursement.
Call Params
amount
uint256
amount of member's credits to burn towards network debt.
repayCreditBalance
Enable repayment of given member's outstanding credit balance (if any) using reference currency.
Call Params
member
address
member with credit balance to repay
amount
uint256
amount of member's outstanding credit balance to reduce.
Last updated