Skip to content

Releases: stakewise/v3-core

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