The PWN Simple Loan Simple Offer contract inherits events from the Simple Loan Offer contract and does not define any additional custom events or errors.
Token id of an asset used as a collateral, in case of ERC20 should be 0.
uint256
collateralAmount
Amount of tokens used as a collateral, in case of ERC721 should be 0.
address
loanAssetAddress
Address of an loaned asset.
uint256
loanAmount
Amount of tokens which is requested as a loan.
uint256
loanYield
Amount of tokens which act as a lenders loan interest. Borrower has to pay back a borrowed amount + yield.
uint32
duration
Loan duration in seconds.
uint40
expiration
Request expiration unix timestamp in seconds.
address
borrower
Address of a borrower. This address has to sign a request for it to be valid. If the address is zero address, anybody with valid collateral can accept the offer.
address
lender
Address of a lender. Only this address can accept a request. If the address is zero address, anybody with a loan asset can accept the request.
bool
isPersistent
If true, offer will not be revoked on acceptance. Persistent offer can be revoked manually.
uint256
nonce
Additional value to enable identical requests in time. Without it, it would be impossible to make a request, which was once revoked. Nonce can be used to create a group of requests, where accepting one request will make other requests in the group invalid.