Skip to content

Releases: stakewise/v3-core

v3.0.0

05 Dec 13:20
b25befb
Compare
Choose a tag to compare

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

v2.0.1

30 Jul 08:51
f74e4c6
Compare
Choose a tag to compare

What's Changed

  • Fix gno genesis vault pool escrow assets by @tsudmi in #96

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

v2.0.0

16 Jul 10:25
50293fb
Compare
Choose a tag to compare

What's Changed

Gnosis vaults

  • New Gnosis vaults were deployed to the Gnosis network. They use the new VaultGnoStaking module. The main differences from the Ethereum vaults are as follows:
    • Deposits are made in GNO tokens, and ERC-20 approval must be done before the call.
    • Partial and full withdrawals are stored in the contract used to register the validators. They are pulled by the vault during user withdrawals, validator registrations, and state updates.
    • 1 GNO, instead of 32 ETH, must be staked for the validator to activate.
    • Rewards from transaction fees are received in xDAI and must be swapped using the swapXdaiToGno function. This function performs the transaction through the Balancer pool (which can be updated by the DAO) and uses oracles to verify the correct swap price in the XdaiExchange contract.

Restake vaults

Blocklist vaults

  • New blocklist vaults were deployed to Ethereum and Gnosis. These vaults use the VaultBlocklist module, which keeps track of accounts that cannot stake to the vault. For example, you can block all sanctioned addresses from depositing to your vault.
  • The account with the blocklistManager role can manage the blocklist. This role is assigned to the vault admin by default. The vault admin can update the role using the setBlocklistManager function, which emits the BlocklistManagerUpdated event.
  • You can use blockedAccounts to check whether an account is blocked. The blocklistManager can update the list using the updateBlocklist function. Blocklist updates emit the BlocklistUpdated event.

Exit queue

  • The enterExitQueue function now locks the conversion rate between assets and shares at the time of the call, rather than during the updateState call. Shares are burned immediately. The locked assets will not receive rewards after the call but will incur penalties if the vault APY is negative. These penalties will be distributed proportionally to all assets in the vault. Exit positions created before the upgrade will be processed according to the Vault’s V1 logic.
  • All newly created exit positions now emit the V2ExitQueueEntered event.
  • The ExitingAssetsPenalized event is emitted during the updateState call if the vault incurs a penalty. The penalty will be proportionally distributed among all currently exiting assets.
  • The claimExitedAssets will not return anything after the upgrade.
  • The claimExitedAssets must be used for the exit positions created before and after the vault upgrade to V2.
  • The redeem function was removed. All the exits must be submitted using enterExitQueue.
  • The totalExitingAssets function was added to the vault. It returns the total amount of assets in the exit queue after the upgrade to V2.
  • For exit positions created after the upgrade, the getExitQueueIndex function is not needed. You can pass 0 to both the calculateExitedAssets and claimExitedAssets functions.

Validators management

Read more

v1.1.0

18 Jun 20:49
2db6ba9
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.1.0

v1.0.0

28 Nov 11:49
b93337b
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/stakewise/v3-core/commits/v1.0.0