LenderEnforcer

Git Source

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

NameTypeDescription
additionalTransfersAdditionalTransfer[]The additional transfers to be made
loanStarport.LoanThe loan terms
caveatDatabytesThe 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;
}