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. function creditLimitOf(address member) 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 |
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
Name | Type | Description |
---|---|---|
member | address | address of member with credit line. |
Return Values
Type | Description |
---|---|
uint256 | The credit balance of the given member |
function burnNetworkDebt(uint256 amount) public
Enable connected member to burn network debt (if any) in exchange for reserve reimbursement.
Call Params
Name | Type | Description |
---|---|---|
amount | uint256 | amount of member's credits to burn towards network debt. |
function repayCreditBalance(address member, uint128 amount) external
Enable repayment of given member's outstanding credit balance (if any) using reference currency.
Call Params
Name | Type | Description |
---|---|---|
member | address | member with credit balance to repay |
amount | uint256 | amount of member's outstanding credit balance to reduce. |
Last modified 1mo ago