β™»
Vault Lifecycle
Vaults run in Epochs of 7 days and automatically deploy and auto-compound funds.
The lifecycle of each Vault is divided into 3 main phases.

1. SETUP

In this phase funds are collected and are prepared for deployment. A user can deposit/withdraw freely the vault currency to their account at the smart contract, though these funds are not deployed yet. This means that the Protected side is still exposed to IL until the epoch starts.

2. DEPLOYMENT

At the beginning of this phase, the initial values are recorded. In particular we record the price of the LP token and of the underlying (e.g. both SOL/USDC and the SOL-USDC LP token). These will be used to compute IL and net farming fees at the end of the epoch.
During this phase, users can deposit funds for the next epoch (see PHASE 1) and mark funds for withdrawal for the end of the epoch (see PHASE 3).

3. DISTRIBUTION

This phase concludes the cycle. The realized IL is transferred from Leveraged to Protected, while a % of farming fees is transferred from Protected to Leveraged
Funds marked for withdrawal are available for users. The rest is automatically compounded and a new epoch starts.
Copy link
On this page
1. SETUP
2. DEPLOYMENT
3. DISTRIBUTION