Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Live Stake" calculation #373

Open
CyberCyclone opened this issue Nov 17, 2020 · 5 comments
Open

"Live Stake" calculation #373

CyberCyclone opened this issue Nov 17, 2020 · 5 comments
Labels
blocked enhancement New feature or request

Comments

@CyberCyclone
Copy link

I've been looking into a way to calculated the "live stake" for a while now and I can't seem to find an obvious way to do it. Having the "Active Stake" is awesome, but lacks real time tracking of stake. This makes it difficult to track a pools real-time saturation level.

I've tried looking into db-sync and while there's a "stake_address" table, I can't see an easy way to lookup the amount against the stake address AND whether that stake address is still delegated to a particular pool (in real-time).

Can you please let me know if you know this is currently possible with the current schema (db-sync) or if this is something that will be implemented in the future?

Thanks!

@rhyslbw rhyslbw added the enhancement New feature or request label Nov 27, 2020
@rhyslbw
Copy link
Contributor

rhyslbw commented Nov 27, 2020

Agree this is a useful query to make, and one that the client should not need to calculate.

@xray-robot
Copy link

Bump

@rhyslbw
Copy link
Contributor

rhyslbw commented Apr 21, 2021

Quick update: I have an upcoming body of work that is a prerequisite to facilitate this feature. It's an overall improvement in both capabilities and quality when interfacing with cardano-node

@3cogito
Copy link

3cogito commented Apr 29, 2021

Would be very useful to have live stake available from a postgres table in cardano-db-sync...

@longngn
Copy link

longngn commented Aug 19, 2021

Here is a query that Smaug pool use with pool.pm: https://gist.github.com/SmaugPool/892f5bc18bf5c6e52245e1b7bd0bed84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants