LenderEnforcer
Inherits: CaveatEnforcer
Functions
validate
Enforces that the loan terms are identical except for the issuer The borrower is allowed to be any address No additional transfers from the issuer are permitted
function validate(
AdditionalTransfer[] calldata additionalTransfers,
Starport.Loan calldata loan,
bytes calldata caveatData
) public view virtual override returns (bytes4 selector);
Parameters
Name | Type | Description |
---|---|---|
additionalTransfers | AdditionalTransfer[] | The additional transfers to be made |
loan | Starport.Loan | The loan terms |
caveatData | bytes | The borrowers encoded details |
_validate
function _validate(
AdditionalTransfer[] calldata additionalTransfers,
Starport.Loan calldata loan,
Details memory details
) internal pure;
Errors
InvalidLoanTerms
error InvalidLoanTerms();
InvalidAdditionalTransfer
error InvalidAdditionalTransfer();
Structs
Details
struct Details {
Starport.Loan loan;
}