File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -130,12 +130,8 @@ contract L2ArbitrumGovernor is
130130
131131 /// @notice Get total delegated votes minus excluded votes
132132 function getPastTotalDelegatedVotes (uint256 blockNumber ) public view returns (uint256 ) {
133- uint256 excluded = token.getPastVotes (EXCLUDE_ADDRESS, blockNumber);
134- uint256 totalDvp = L2ArbitrumToken (address (token)).getTotalDelegationAt (blockNumber);
135-
136- // it is possible (but unlikely) that excluded > totalDvp
137- // this is because getTotalDelegationAt is initially an _estimate_ of the total delegation
138- return totalDvp > excluded ? totalDvp - excluded : 0 ;
133+ return L2ArbitrumToken (address (token)).getTotalDelegationAt (blockNumber)
134+ - token.getPastVotes (EXCLUDE_ADDRESS, blockNumber);
139135 }
140136
141137 /// @notice Calculates the quorum size, excludes token delegated to the exclude address
You can’t perform that action at this time.
0 commit comments