BNPLHelper
Inherits: IFlashLoanRecipient, Ownable
State Variables
vault
address private vault;
Functions
constructor
constructor(address _vault, address owner);
makeFlashLoan
function makeFlashLoan(address[] calldata tokens, uint256[] calldata amounts, bytes calldata userData) external;
receiveFlashLoan
function receiveFlashLoan(
address[] calldata tokens,
uint256[] calldata amounts,
uint256[] calldata feeAmounts,
bytes calldata userData
) external override;
setFlashVault
function setFlashVault(address _vault) external onlyOwner;
Errors
InvalidUserDataProvided
error InvalidUserDataProvided();
SenderNotVault
error SenderNotVault();
Structs
Execution
struct Execution {
address starport;
address seaport;
address borrower;
CaveatEnforcer.SignedCaveats borrowerCaveat;
CaveatEnforcer.SignedCaveats lenderCaveat;
Starport.Loan loan;
AdvancedOrder[] orders;
CriteriaResolver[] resolvers;
Fulfillment[] fulfillments;
}