Open 0xekez opened 1 year ago
Love this idea; memorializing some thoughts I shared with you out-of-band, plus a few new ones.
Finally, a nit. For ergonomics, I find TLV too similar to TVL. People could mistake one for the other on scan. I suggest CLV: current/contemporary liquidatable value. This metric is a snapshot in time of what a DAO could have liquidated. It also keeps the acronyms more distinct.
as a DAO, i care little about my treasuries TVL outside of it being a vanity metric. what i care about is how much spending power my treasury grants me in terms of stable coins.
when displaying $USDC values in the DAO treasury page, we should do the AMM math and show TLV. we should do this across Osmosis and Junoswap liquidity pools.
there is complexity here if the token has multiple base pairs. for example, say there is a function
TLV(token, pool)
which calculates the TLV of a token in terms of USCD. If a token hasTOKEN/USDC
andTOKEN/OSMO
pairs there is a recursive step where the TLV isTLV(TOKEN, TOKEN/USDC) + TLV(TLV(TOKEN, TOKEN/OSMO), OSMO/USDC)
(naturally, if osmo has multiple base pairs, we also need to consider that so the recurrence here has a tree structure).