BorrowerEnforcer

Git Source

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

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

BorrowerOnlyEnforcer

error BorrowerOnlyEnforcer();

InvalidLoanTerms

error InvalidLoanTerms();

InvalidAdditionalTransfer

error InvalidAdditionalTransfer();

Structs

Details

struct Details {
    Starport.Loan loan;
}