CaveatEnforcer
Functions
validate
Enforces that the loan terms are identical except for the issuer
function validate(AdditionalTransfer[] calldata solution, Starport.Loan calldata loan, bytes calldata caveatData)
public
view
virtual
returns (bytes4);
Parameters
Name | Type | Description |
---|---|---|
solution | AdditionalTransfer[] | The additional transfers to be made |
loan | Starport.Loan | The loan terms |
caveatData | bytes | The borrowers encoded details |
Structs
Caveat
struct Caveat {
address enforcer;
bytes data;
}
SignedCaveats
struct SignedCaveats {
bool singleUse;
uint256 deadline;
bytes32 salt;
Caveat[] caveats;
bytes signature;
}