List Proposal
1. Summary
PWNSimpleLoanListProposal.sol defines the List Proposal type for Simple Loan and implements functions to make an on-chain proposal and accept proposals.
The List Proposal can define a list of acceptable collateral ids or a whole collection. Interest can be either accruing or fixed.
2. Important links
3. Contract details
PWNSimpleLoanListProposal.sol is written in Solidity version 0.8.16
Features
Provides
acceptProposal
function andmakeProposal
for on-chain proposalsDefines the
Proposal
struct
Inherited contracts, implemented Interfaces and ERCs
Functions
View Functions
Events
The PWN Simple Loan List Proposal contract defines one event and one error.
Errors
Proposal
struct
Proposal
structType | Name | Comment |
---|---|---|
| Corresponding collateral category | |
|
| Address of a loan collateral |
|
| Merkle tree root of a set of whitelisted collateral ids |
|
| Amount of a collateral. Zero if ERC-721 |
|
| |
|
| |
|
| Address of credit asset |
|
| Amount of credit asset |
|
| Maximum credit limit of credit asset |
|
| Fixed interest amount in credit tokens. It is the minimum amount of interest which has to be paid by a borrower |
|
| Accruing interest APR with 2 decimals |
|
| Loan duration in seconds |
|
| Proposal expiration unix timestamp in seconds |
|
| Allowed acceptor address. Zero address if propsal can be accepted by any account |
|
| Proposer address |
|
| Hash of a proposer specific data, which must be provided during a loan creation |
|
| Flag to determine if a proposal is an offer or loan request |
|
| ID of a loan to be refinanced. Zero if creating a new loan. |
|
| Nonce space of the proposal |
|
| Nonce of the proposal |
|
| Loan type contract |
Last updated