1

The pool saturation level is calculated by dividing supply by the K parameter. What exactly constitutes supply in this equation?

We have the following pots of Ada (from the db-sync ada_pots tables):

  • UTXO
  • Reserves
  • Treasury
  • Rewards
  • Deposits
  • Fees

Obviously, reserves are not counted towards available supply but I'm not sure about the rest of these. Intuitively I would guess that only the "stakeable supply" should count leaving only UTXO and rewards but I'm not sure.

1 Answer 1

3

I think what you're looking for is the formula used here to calculate the "circulating supply" from the UTXOs plus "withdrawable rewards" (rewards minus withdrawals). (You should also find the "withdrawal" table in db-sync.)

https://github.com/input-output-hk/cardano-graphql/blob/831e74b8f19b67bb36ab667609ee2a294551ef44/packages/api-cardano-db-hasura/src/HasuraClient.ts#L122

cardano-graphql exposes it through this query:

query adaSupply {
  ada {
    supply {
      circulating
      max
      total
    }
  }
}

https://github.com/input-output-hk/cardano-graphql/blob/f76e944b70c3419ce5c4b56c6a35cdd904afccf0/packages/api-cardano-db-hasura/src/example_queries/ada/adaSupply.graphql

This will currently be 32167734340, and devided by k=500 gives you the current saturation level above ~64M.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.