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

feat: IC-1680: Node Provider Rewards Canister #1350

Open
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

pietrodimarco-dfinity
Copy link
Contributor

@pietrodimarco-dfinity pietrodimarco-dfinity commented Mar 6, 2025

Node Provider Rewards Canister

First implementation of the Node Provider Rewards (NPR) canister.
In its initial version, the canister just fetches and stores registry data and subnets node metrics.
It updates registry deltas and retrieves metrics from the management canister of various subnets daily storing everything in stable memory.

TODO:

  • Move the Registry Client (rs/dre-canisters/node-provider-rewards/canister/registry_store.rs) to the IC repository.
  • Implement logic to compute DailyNodeMetrics from StableSubnetsMetrics and test the conversion.
  • Finish development NPR library (V1) to compute rewards with penalties and add canister endpoints for computing rewards.
  • Add PocketIC tests.

@pietrodimarco-dfinity pietrodimarco-dfinity requested a review from a team as a code owner March 6, 2025 18:17
@pietrodimarco-dfinity pietrodimarco-dfinity marked this pull request as draft March 6, 2025 18:17
@pietrodimarco-dfinity pietrodimarco-dfinity changed the title NPR canister feat: IC-1680: Node Provider Rewards Canister Mar 11, 2025
@pietrodimarco-dfinity pietrodimarco-dfinity marked this pull request as ready for review March 11, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant