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

NXM total stake - account for stake burns #5

Open
tomfutago opened this issue Jan 6, 2025 · 1 comment
Open

NXM total stake - account for stake burns #5

tomfutago opened this issue Jan 6, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request staking

Comments

@tomfutago
Copy link
Collaborator

No description provided.

@tomfutago tomfutago self-assigned this Jan 6, 2025
@tomfutago tomfutago added staking enhancement New feature or request labels Jan 9, 2025
@tomfutago tomfutago moved this from ⚖ Backlog to TODO in Engineering Tracker 💻 Feb 4, 2025
@tomfutago tomfutago moved this from TODO to 🏗 In progress in Engineering Tracker 💻 Feb 14, 2025
@tomfutago
Copy link
Collaborator Author

asked to update events:

  • add active_stake to individual events (deposit, deposit extended, withdraw)
  • emit "global" events on burns and expirations - also store active_stake

with added active_stake it will be easier to recreate the full history within a given pool.

with current available data it's not easy to calculate the history, mainly because of deposit extensions that shift active stake to different tranche (covered by recursive CTE currently) - in scenarios when this shift happens after previous stake burn.

@tomfutago tomfutago moved this from 🏗 In progress to ⚖ Backlog in Engineering Tracker 💻 Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request staking
Projects
Status: ⚖ Backlog
Development

No branches or pull requests

1 participant