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

SNS governance canister, show each neuron reward portion of the reward events. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

levifeldman
Copy link
Owner

@levifeldman levifeldman commented Jul 7, 2024

This change lets SNSs share the revenue of the SNS that is generated through the dapp with the SNS neuron-holders proportional to the voting participation of the neuron holders. This is implemented by saving the neuron_reward_e8s of the latest 5 reward-events in each Neuron. This way, a SNS can call list_neurons and view the portion of a reward-event given to each neuron.

The neuron_reward_e8s are saved on each neuron with the corresponding reward-event timestamp (reward_event_end_timestamp_seconds) so that when calling list_neurons over many chunks, the caller can correlate reward-events of the different neurons even if a reward-event is being added to the neurons in between the different list_neuron calls (the chunks of the list_neurons calls).

@levifeldman levifeldman force-pushed the levifeldman-show-neuron-reward-portion branch from 35ceaaa to c716883 Compare July 8, 2024 22:31
@levifeldman levifeldman closed this Jul 8, 2024
@levifeldman levifeldman reopened this Jul 8, 2024
@levifeldman levifeldman force-pushed the levifeldman-show-neuron-reward-portion branch 2 times, most recently from 5220679 to 3d88e2c Compare October 1, 2024 08:21
@levifeldman levifeldman force-pushed the levifeldman-show-neuron-reward-portion branch from 3d88e2c to f480f6c Compare October 1, 2024 08:32
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