Skip to content

Conversation

@tbwebb22
Copy link
Contributor

@tbwebb22 tbwebb22 commented Sep 15, 2025

This PR adds a configurable clock mode (block number or block timestamp) to VotesERC20StakedV1. This contract inherits from OpenZeppelin's VotesUpgradeable which supports either clock mode:
https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/governance/utils/VotesUpgradeable.sol

v0 of the Decent contracts were built to use block number for clock mode, and v1 contract were built to use block timestamp.

This contract should be able to be deployed to be used with either version of the contracts, which is why it's being made configurable here.

@tbwebb22 tbwebb22 changed the base branch from audit-fixes to audit September 17, 2025 21:27
@tbwebb22 tbwebb22 merged commit 848e5e2 into audit Sep 17, 2025
4 checks passed
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