Closed computerpoet closed 19 hours ago
The logic and interface code is finished and we did remove a lot of things regarding the preview function, since the AMM right now is already complex, it's impractical to emulate the behaviour of it inside the vault
The LV rates is still being worked on by Peter and his estimate that it'll finish tonight
Still need more time on this as the math testing is taking more time from expected in #188
still in discussion wither Peter and is waiting for a couple of confirmation regarding on how to define, determine and calculate the market value for each type of token(CT, DS, LP).
New spec document from peter(WIP) : https://www.notion.so/corkfi/Liquidity-Vault-LV-Deposit-Mechanism-LV-shares-calculation-138328fa34fd80da95b8e391c60d7d8a?pvs=4
need a little adjustments on the LP NAV calculation where RA is always constant at 1. Now it's determined by using CT/RA
Overview
Right now the vault is in a state where it has an embedded router in it. I.e when user withdraw, all their assets(CT, DS) will be converted to RA by the vault. we want to simplify this by returning all their assets "as is" to minimize complexity. If the current functionality is desired, it should be made within a separate router
Task