Vault valuation
In Lagoon, the valuation of the vault is injected into the smart contract by the Valuation Oracle. The accuracy of this value is crucial since it will determine:
the amount of shares a user will get.
the amount of assets a user will get at redemption.
the amount of fees taken.
How to compute a valuation ?
A new valuation proposal must exclusively take into account the positions held by the curating address. It mustn't include deposit and redemptions requests because they are not processed yet. They are pending outside of the vault, waiting to be settled.
Please see the following example:
Curating balance
10 USDC
Deposits Requests
5 USDC
Redemptions Requests
2 USDC
Valuation expected
10 USDC
We can see that the deposits requests are not taken into account here. The reason is because they are not processed yet.
In practice, the 10 USDC will be spread around different yield generating positions. It is the responsibility of the Valuation Oracle to properly value those different positions in USDC.
Consequently, the first valuation update will always be 0.
A 2-steps procedure
For greater security, a vault valuation requires a second step: the curator must approve the valuation proposed by the Valuation Oracle.
You can find how to update the valuation here.
Last updated