Skip to main content

OsTokenFlashLoans

Git Source

Inherits: ReentrancyGuard, IOsTokenFlashLoans

Author: StakeWise

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

State Variables

_maxFlashLoanAmount

uint256 private constant _maxFlashLoanAmount = 100_000 ether;

_osToken

address private immutable _osToken;

Functions

constructor

Constructor

constructor(address osToken) ReentrancyGuard();

Parameters

NameTypeDescription
osTokenaddressThe address of the OsToken contract

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