Simple Loan Terms Factory
1. Summary
PWNSimpleLoanTermsFactory.sol is an abstract contract implemented by offer and loan request types. This contract is used by the Simple Loan type to construct loan terms when creating a loan.
2. Important links
3. Contract details
PWNSimpleLoanTermsFactory.sol is written in Solidity version 0.8.16
The contract defines a public constant that specifies the minimal duration of a loan for the Simple Loan type.
And also specifies a virtual function createLOANTerms
. Each offer and loan request type implements this function. createLOANTerms
returns Simple Loan terms based on the provided data.
The parameters of the function are:
address
caller
- The caller of thecreateLoan
function on the Loan contractbytes calldata
factoryData
- Encoded data for the Loan Terms factorybytes calldata
signature
- Singed loan factory data
Last updated