Osmo Staking
Q8. Over the past 30/60/90 days and since June 2021, how much OSMO has been staked per day? What is the staking percentage (OSMO staked vs. circulating supply) and how has it changed over time?
WHAT IS OSMOSIS?
Osmosis is a Cosmos SDK-built automated market-making (AMM) protocol that lets developers design, build, and deploy their own AMMs. Customizable curves, fees, and other factors provide AMM designers considerable customizability, and liquidity providers can manage and direct their pools. Osmosis is for Cross-chain Assets. With IBC built-in from the start, it connects to Cosmos chains and their native assets. Osmosis will interact with non-IBC chains, including Ethereum-based blockchains, Bitcoin, and smart-contract platforms.
How does Osmosis staking work?
Osmosis uses the Delegated Proof of Stake (DPOS) consensus mechanism, in which users specify nodes by delegating their coins to a validation node. In return, users receive betting prizes generated by the node. Share APR varies depending on network usage, inflation, and total stock supply. Delegation are non-custodial. The process of undelegating the tokens from the node is called unbonding and takes 14 days to complete. Users can also use the redelegate function to instantly transfer their shares from one validator to another.
Method
In the current dashboard I am trying to look at the past 30/60/90 days and since June 2021, to find:
-How much OSMO has been staked per day? and
-What is the staking percentage (OSMO staked vs. circulating supply) and how has it changed over time?
And for this, I use the msg_type
table to determine which transactions are staking transactions.
So I defined msg_type in ('delegate', 'add_tokens_to_lock', 'lock_tokens')
as transactions to delegate their OSMOs to the staking platform, and others as regular transactions, and by this calculated the sum of the amount in attribute_value
column by the filter of sum(to_number (replace (attribute_value, 'uosmo', "'))/1e6)
to answer the above questions.
Conclusion
-
The days of May 7th, 11th, and 20th, 2022, were the days with the highest staked volume, with 3.4, 3.4, and 6.9m staked OSMO, respectively, over time.
-
The days of May 10th, 11th, and 12th, 2022, were the days with the highest circulation supply, with 260.5, 602.7, and 441.9m of OSMO circulated respectively over time.
-
Total circulated supply since Jun 6th, 2021 to date is about 7.76B, and total staked volume at this time is 77.94m OSMO.
-
The percentage of staked volume vs. circulating supply is about 1% vs. 99%, respectively.