File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -86,10 +86,10 @@ abstract contract FlexVotingBase {
8686 IVotingToken (GOVERNOR.token ()).delegate (address (this ));
8787 }
8888
89- function _applyDeltaToCheckpoint (
90- Checkpoints.Trace208 storage _checkpoint ,
91- int256 _delta
92- ) internal returns ( uint208 _prevTotal , uint208 _newTotal ) {
89+ function _applyDeltaToCheckpoint (Checkpoints.Trace208 storage _checkpoint , int256 _delta )
90+ internal
91+ returns ( uint208 _prevTotal , uint208 _newTotal )
92+ {
9393 // The casting in this function is safe since:
9494 // - if oldTotal + delta > int256.max it will panic and revert.
9595 // - if |delta| <= oldTotal there is no risk of wrapping
@@ -115,10 +115,7 @@ abstract contract FlexVotingBase {
115115 }
116116
117117 /// @dev Checkpoints internal voting weight of `user` after applying `_delta`.
118- function _checkpointVoteWeightOf (
119- address _user ,
120- int256 _delta
121- ) internal virtual {
118+ function _checkpointVoteWeightOf (address _user , int256 _delta ) internal virtual {
122119 _applyDeltaToCheckpoint (voteWeightCheckpoints[_user], _delta);
123120 }
124121
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ import {FlexVotingBase} from "src/FlexVotingBase.sol";
99contract MockFlexVotingDelegatableClient is MockFlexVotingClient , FlexVotingDelegatable {
1010 constructor (address _governor ) MockFlexVotingClient (_governor) {}
1111
12- function _checkpointVoteWeightOf (
13- address _user ,
14- int256 _delta
15- ) internal override (FlexVotingBase, FlexVotingDelegatable) {
12+ function _checkpointVoteWeightOf (address _user , int256 _delta )
13+ internal
14+ override (FlexVotingBase, FlexVotingDelegatable)
15+ {
1616 return FlexVotingDelegatable._checkpointVoteWeightOf (_user, _delta);
1717 }
1818}
You can’t perform that action at this time.
0 commit comments