Skip to content

Conversation

@james-toussaint
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Jul 30, 2025

Deploy Preview for confidential-tokens ready!

Name Link
🔨 Latest commit 4af489d
🔍 Latest deploy log https://app.netlify.com/projects/confidential-tokens/deploys/68907c2c6dc79a000807c214
😎 Deploy Preview https://deploy-preview-123--confidential-tokens.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@james-toussaint james-toussaint marked this pull request as ready for review July 30, 2025 10:01
@james-toussaint james-toussaint requested a review from a team as a code owner July 30, 2025 10:01
Comment on lines 56 to 62
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);
}
Copy link
Contributor

@Amxx Amxx Jul 30, 2025

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 ?

@james-toussaint @arr00

Copy link
Contributor

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)

Copy link
Contributor Author

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.

@arr00
Copy link
Contributor

arr00 commented Aug 5, 2025

#143

@arr00 arr00 closed this Aug 5, 2025
@james-toussaint james-toussaint deleted the bugfix/avoid-delegatee-balance-deduction-by-delegator branch November 10, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants