-
Notifications
You must be signed in to change notification settings - Fork 112
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
Add function to recover staked funds in misaligned motions #1082
Add function to recover staked funds in misaligned motions #1082
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rename the directory votingReputation
to be consistent with other parts of the codebase.
/// @return The staker reward and the reputation penalty (if any) | ||
function getStakerReward(uint256 _motionId, address _staker, uint256 _vote) external view returns (uint256, uint256); | ||
|
||
function createClaimDelayAction(bytes memory action, uint256 value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this external? I thought this was an internal function. I may have made it public for testing at one point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, and has been for a while. Not intending to do a pass of that type of thing here, but we can pick it up down the line.
contracts/extensions/VotingReputation/VotingReputationMisalignedRecovery.sol
Outdated
Show resolved
Hide resolved
contracts/extensions/VotingReputation/VotingReputationMisalignedRecovery.sol
Outdated
Show resolved
Hide resolved
contracts/extensions/VotingReputation/VotingReputationMisalignedRecovery.sol
Outdated
Show resolved
Hide resolved
contracts/extensions/VotingReputation/VotingReputationMisalignedRecovery.sol
Outdated
Show resolved
Hide resolved
f92edc5
to
889d682
Compare
889d682
to
c236334
Compare
fc94864
to
189ed1c
Compare
This was included in #1084, but if you want more changes will need rebasing and more work from me before being merged in to develop. |
Based on #1081, so no merging. Broadly speaking:
finalized
boolean.