OsTokenFlashLoans
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
| Name | Type | Description |
|---|---|---|
caller | address | The address of the caller |
amount | uint256 | The flashLoan osToken shares amount |
Functions
flashLoan
Flash loan OsToken shares
function flashLoan(uint256 osTokenShares, bytes memory userData) external override nonReentrant;
Parameters
| Name | Type | Description |
|---|---|---|
osTokenShares | uint256 | The flashLoan osToken shares amount |
userData | bytes | Arbitrary data passed to the IOsTokenFlashLoanRecipient.receiveFlashLoan function |