Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@tsudmi tsudmi released this 05 Dec 13:20
b25befb

What's Changed

  1. Added the EthOsTokenVaultEscrow and GnoOsTokenVaultEscrow 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.
  2. Added OsTokenFlashLoans. This contract allows to mint and burn osETH in single transaction (up to 100k osETH). For example, leverage strategy uses OsTokenFlashLoans to mint osETH, supply to Aave, borrow ETH, mint osETH from the vault and return the flashloan.
  3. When user migrates from StakeWise Legacy, we always mint max amount of osTokens to the user in the Genesis Vault.
  4. Move back to the exit queue processing implemented in V1 vaults
  5. The enterExitQueue function will return max UINT256 as position ticket in case the vault has no validators and assets vault can be redeemed.
  6. The max possible osToken shares can be minted if max UINT256 is passed to the mintOsToken. 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

  • @CJ42 made their first contribution in #98

Full Changelog: v2.0.1...v3.0.0