BorrowerEnforcer
Inherits: CaveatEnforcer
Functions
validate
Enforces that the loan terms are identical except for the issuer The issuer is allowed to be any address No additional transfers 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
BorrowerOnlyEnforcer
error BorrowerOnlyEnforcer();
InvalidLoanTerms
error InvalidLoanTerms();
InvalidAdditionalTransfer
error InvalidAdditionalTransfer();
Structs
Details
struct Details {
Starport.Loan loan;
}