Vaults 1.5 Contracts Overview
These are the main contracts for Vaults 1.5, with a list of functionality they support

Interactive Chart
Vault
Tracks shares for deposits
Tracks it's active
strategy
Deposits and invests in strategy via
earn
Allows deposits via
deposit
Allows to withdraw via
withdraw
Centralizes logic for roles
Params added to track autocompounded rewards (lifeTimeEarned, lastHarvestedAt, lastHarvestAmount, assetsAtLastHarvest)
Management, Withdrawal and Performance Fees, issued either as token or shares
Strategy would report the autocompounded harvest amount to the vault
Calculation performanceFeeGovernance, performanceFeeStrategist, withdrawalFee, managementFee moved to the vault.
Vault mints shares for performanceFees and managementFee to the respective recipient (treasury, strategist)
Additional address
treasury
to receivegovernance
rewardsPermission:
Strategist can now set performance, withdrawal and management fees
Governance will determine maxPerformanceFee, maxWithdrawalFee, maxManagementFee that can be set to prevent rug of funds.
Strategy would take the actors from the vault it is connected to
All goverance related fees goes to treasury
Strategy
No controller as middleman. The Strategy directly interacts with the vault
withdrawToVault would withdraw all the funds from the strategy and move it into vault
strategy would take the actors from the vault it is connected to
Uses Vault for it's security
fees calculation for autocompounding rewards moved to vault
Strategy.withdrawAll to move all funds to the Vault
Fees calculation moved to Vault (which also tracks historical performance)
Last updated
Was this helpful?