<p>I think what you're looking for is the formula used here to calculate the <em>&quot;circulating supply&quot;</em> from the <em>UTXOs plus &quot;withdrawable rewards&quot; (rewards minus withdrawals)</em>. <em>(You should also find the &quot;withdrawal&quot; table in db-sync.)</em></p>
<p><a href="https://github.com/input-output-hk/cardano-graphql/blob/831e74b8f19b67bb36ab667609ee2a294551ef44/packages/api-cardano-db-hasura/src/HasuraClient.ts#L122" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-graphql/blob/831e74b8f19b67bb36ab667609ee2a294551ef44/packages/api-cardano-db-hasura/src/HasuraClient.ts#L122</a></p>
<p>cardano-graphql exposes it through this query:</p>
<pre><code>query adaSupply {
  ada {
    supply {
      circulating
      max
      total
    }
  }
}
</code></pre>
<p><a href="https://github.com/input-output-hk/cardano-graphql/blob/f76e944b70c3419ce5c4b56c6a35cdd904afccf0/packages/api-cardano-db-hasura/src/example_queries/ada/adaSupply.graphql" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-graphql/blob/f76e944b70c3419ce5c4b56c6a35cdd904afccf0/packages/api-cardano-db-hasura/src/example_queries/ada/adaSupply.graphql</a></p>
<p>This will currently be 32167734340, and devided by k=500 gives you the current saturation level above ~64M.</p>

CC BY-SA 4.0
2022-04-05T09:53:44.067Z
2022-04-05T10:02:05.403Z
2022-04-05T10:02:05.403Z
sean
<p>The pool saturation level is calculated by dividing supply by the K parameter. What exactly constitutes supply in this equation?</p>
<p>We have the following pots of Ada (from the db-sync ada_pots tables):</p>
<ul>
<li>UTXO</li>
<li>Reserves</li>
<li>Treasury</li>
<li>Rewards</li>
<li>Deposits</li>
<li>Fees</li>
</ul>
<p>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 &quot;stakeable supply&quot; should count leaving only UTXO and rewards but I'm not sure.</p>

<cardano-db-sync>
What is the numerator (supply) when calculating the pool saturation level?
# What is the numerator (supply) when calculating the pool saturation level?

(Asked by: username_0 on 2022-04-04)

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.

**Tags:** cardano-db-sync

---

## 1 answers

### Answer by username_1 on 2022-04-05. Score: 3 | Accepted answer

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.


---

