Skip to main content

OsTokenFlashLoans

Git Source ↗

Inherits: ReentrancyGuard ↗, IOsTokenFlashLoans

Mint and burn up to 100 000 osToken shares in single transaction.

Events

OsTokenFlashLoan

Event emitted on flash loan

event OsTokenFlashLoan(address indexed caller, uint256 amount);

Parameters

NameTypeDescription
calleraddressThe address of the caller
amountuint256The flashLoan osToken shares amount

Functions

flashLoan

Flash loan OsToken shares

function flashLoan(uint256 osTokenShares, bytes memory userData) external override nonReentrant;

Parameters

NameTypeDescription
osTokenSharesuint256The flashLoan osToken shares amount
userDatabytesArbitrary data passed to the IOsTokenFlashLoanRecipient.receiveFlashLoan function