Implement feedback for M-01, L-08, L-09 (#5324)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
@ -8,7 +8,7 @@ import {VotesExtended} from "../utils/VotesExtended.sol";
|
||||
import {GovernorVotes} from "./GovernorVotes.sol";
|
||||
|
||||
/**
|
||||
* @dev Extension of {Governor} which enables delegatees to override the vote of their delegates. This module requires a
|
||||
* @dev Extension of {Governor} which enables delegators to override the vote of their delegates. This module requires a
|
||||
* token that inherits {VotesExtended}.
|
||||
*/
|
||||
abstract contract GovernorCountingOverridable is GovernorVotes {
|
||||
@ -162,7 +162,7 @@ abstract contract GovernorCountingOverridable is GovernorVotes {
|
||||
return overridenWeight;
|
||||
}
|
||||
|
||||
/// @dev Variant of {Governor-_castVote} that deals with vote overrides.
|
||||
/// @dev Variant of {Governor-_castVote} that deals with vote overrides. Returns the overridden weight.
|
||||
function _castOverride(
|
||||
uint256 proposalId,
|
||||
address account,
|
||||
@ -180,7 +180,7 @@ abstract contract GovernorCountingOverridable is GovernorVotes {
|
||||
return overridenWeight;
|
||||
}
|
||||
|
||||
/// @dev Public function for casting an override vote
|
||||
/// @dev Public function for casting an override vote. Returns the overridden weight.
|
||||
function castOverrideVote(
|
||||
uint256 proposalId,
|
||||
uint8 support,
|
||||
@ -190,7 +190,7 @@ abstract contract GovernorCountingOverridable is GovernorVotes {
|
||||
return _castOverride(proposalId, voter, support, reason);
|
||||
}
|
||||
|
||||
/// @dev Public function for casting an override vote using a voter's signature
|
||||
/// @dev Public function for casting an override vote using a voter's signature. Returns the overridden weight.
|
||||
function castOverrideVoteBySig(
|
||||
uint256 proposalId,
|
||||
uint8 support,
|
||||
|
||||
Reference in New Issue
Block a user