Skip to content

Commit

Permalink
Added comment in GovernorVotesCompQuorumFraction.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
jferas committed Dec 7, 2023
1 parent 9500352 commit f21155d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/GovernorVotesCompQuorumFraction.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0)
// (governance/extensions/GovernorVotesQuorumFraction.sol)
// (Based on OpenZeppelin governance/extensions/GovernorVotesQuorumFraction.sol)

pragma solidity ^0.8.0;

Expand Down Expand Up @@ -75,6 +74,7 @@ abstract contract GovernorVotesCompQuorumFraction is GovernorVotesComp {
* `supply * numerator / denominator`.
*/
function quorum(uint256 timepoint) public view virtual override returns (uint256) {
// @dev: 'token.totalSupply()` ignores timepoint, different from 'GovernorVotesQuorumFraction'
return (token.totalSupply() * quorumNumerator(timepoint)) / quorumDenominator();
}

Expand Down

0 comments on commit f21155d

Please sign in to comment.