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: vote weighting initial contract #127

Merged
merged 41 commits into from
May 13, 2024
Merged

feat: vote weighting initial contract #127

merged 41 commits into from
May 13, 2024

Conversation

kupermind
Copy link
Collaborator

  • Vote Weighting initial contract.

@kupermind kupermind requested review from 77ph and mariapiamo March 12, 2024 19:24
/// @param nominee Address of the nominee.
/// @param chainId Chain Id.
/// @param weight New nominee weight.
function changeNomineeWeight(address nominee, uint256 chainId, uint256 weight) external {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do not need this


/// @dev Get Nominee relative weight (not more than 1.0) normalized to 1e18.
/// (e.g. 1.0 == 1e18). Inflation which will be received by it is
/// inflation_rate * relativeWeight / 1e18.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the original specs, if inflation_rate > votes_for_Nominee -> votes_for_Nominee * relativeWeight / 1e18. Dispenser takes care of this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will do it, using totalSum from this menthod

return _nomineeRelativeWeight(nominee, chainId, time);
}

/// @dev Allocate voting power for changing pool weights.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// @dev Allocate voting power for changing pool weights.
/// @dev Allocate voting power for changing Nominee weights.

77ph
77ph previously approved these changes Apr 16, 2024
@kupermind kupermind merged commit 6c39aa6 into main May 13, 2024
2 checks passed
@kupermind kupermind deleted the vote_weighting branch May 13, 2024 13:30
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.

3 participants