πŸ“ŠLST ecosystem on Solana

This guide will assist you in creating a dashboard on the Top Ledger platform, which displays a variety of key metrics for the LST ecosystem on Solana.

Let’s calculate some important metrics for the LST ecosystem and add them in a dashboard.

Deposits & Withdraws

We will start by calculating deposits and withdrawals for various platforms in the LST ecosystem. The chart below shows the weekly volumes.

Weekly deposts & withdraws

Now, let's go through the SQL code for the above chart. The query runs on the liquid_staking table available in the Top Ledger platform.

The SQL code start first with staking multiple types of LS txns and volume associated with them on a daily level. Then it union them in a nested expression to gather all the txns and volume associated with staking and un-staking events in the ecosystem. Finally, the code groups by the data for various platforms and then cluster the it over weekly interval.

And the widget displays the deposits as positive while withdraws as negative, providing a fine sense of how much of net amount is getting staked every day.

TVL

Total Value Locked or TVL is the amount which is stacked or locked as LST in a pool at any moment. So TVL represents the most crucial metric for LST platforms. It tells us about the health and hence the confidence people has in some LST platform. So let's visualize the TVL of various platforms with the help of some charts

Project X TV

Since TVL is nothing but accumulation of net deposits over time, the query below, like the previous one, starts with computing deposits and withdraws and the subtract the withdraws from deposits to get daily net deposits. And then in the next step accumulate them over the time to get not only the TVL at present but also TVL for past days.

With that we can analyse trends of TVL over time and can also judge the health of any pool or platform

Here is the link to the detailed dashboard for your reference -

https://analytics.topledger.xyz/tl/public/dashboards/1f5RBu3NSjEQFqOp7wcifeIYd432Uv1pG4Kk17aj

Last updated