Dutch Proposal
1. Summary
PWNSimpleLoanDutchAuctionProposal.sol defines the Dutch Auction Proposal type for Simple Loan and implements functions to make an on-chain proposal and accept proposals.
The Dutch Auction Proposal creates a dutch auction with user pre-defined collateral, loan duration and interest. Credit amount drops (or goes up, if proposal is an offer) from user defined minimum and maximum for the auction duration from auction start. Interest can be either accruing or fixed.
2. Important links
3. Contract details
PWNSimpleLoanDutchAuctionProposal.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 Dutch Auction Proposal contract defines one event and five errors.
Errors
Errors
Proposal
struct
Proposal
structType | Name | Comment |
---|---|---|
| Corresponding collateral category | |
|
| Address of a loan collateral |
|
| ID of a collateral. Zero if ERC-20 |
|
| Minimal amount of tokens used as a collateral |
|
| |
|
| |
|
| Address of credit asset |
|
| Minimum amount of tokens which are proposed as a loan to a borrower. If |
|
| Maximum amount of tokens which is proposed as a loan to a borrower. If |
|
| 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 |
|
| Auction start timestamp in seconds |
|
| Auction duration 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