-
Notifications
You must be signed in to change notification settings - Fork 30
Avoid delegatee balance deduction by delegator #123
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
Avoid delegatee balance deduction by delegator #123
Conversation
✅ Deploy Preview for confidential-tokens ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| function _allowVotes(address account) internal { | ||
| FHE.allow(super.getVotes(account), account); | ||
| } | ||
|
|
||
| function _allowPastVotes(address account, uint256 timepoint) internal { | ||
| FHE.allow(super.getPastVotes(account, timepoint), account); | ||
| } |
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.
In practice/production, how is that suppose to happen ?
Lets say we want to connect a governor to that contract, and the governor needs to lookup someone's encrypted voting power when they cast a vote. How is that happening?
If I deploy a voting token contract today, and its not upgradeable, how will I connect a governor later ?
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.
(note that super. is superfluous)
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.
Following _validate(..) approach from #130, please see latest commits where access can be customized by developer.
No description provided.