What's Changed
- Added the
EthOsTokenVaultEscrow
andGnoOsTokenVaultEscrow
contracts. These contracts allow users to request an exit for staked ETH/GNO without immediately burning osETH/osGNO. This feature supports certain DeFi integrations by enabling users to 1) request an exit from the vault without burning osETH/osGNO, and 2) once the unstaked ETH/GNO is ready to be claimed, burn osETH/osGNO and receive the unstaked ETH/GNO in a single transaction. - Added
OsTokenFlashLoans
. This contract allows to mint and burn osETH in single transaction (up to 100k osETH). For example, leverage strategy usesOsTokenFlashLoans
to mint osETH, supply to Aave, borrow ETH, mint osETH from the vault and return the flashloan. - When user migrates from StakeWise Legacy, we always mint max amount of osTokens to the user in the Genesis Vault.
- Move back to the exit queue processing implemented in V1 vaults
- The
enterExitQueue
function will return maxUINT256
as position ticket in case the vault has no validators and assets vault can be redeemed. - The max possible osToken shares can be minted if max
UINT256
is passed to themintOsToken
. If no osToken shares can be minted, 0 will be returned.
Audit report
The audit was performed by Sigma Prime and is available here.
New Contributors
Full Changelog: v2.0.1...v3.0.0