@bananapus/core-v6 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/JBERC20.sol
CHANGED
|
@@ -179,10 +179,10 @@ contract JBERC20 is ERC20Votes, ERC20Permit, JBPermissioned, IERC1271, IJBActive
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
/// @notice The total delegated voting units at a past block.
|
|
182
|
-
/// @param
|
|
183
|
-
/// @return activeVotes The total voting units delegated to nonzero delegates at `
|
|
184
|
-
function getPastTotalActiveVotes(uint256
|
|
185
|
-
activeVotes = _activeSupplyCheckpoints.upperLookupRecent(_validateTimepoint(
|
|
182
|
+
/// @param blockNumber The past block number to look up.
|
|
183
|
+
/// @return activeVotes The total voting units delegated to nonzero delegates at `blockNumber`.
|
|
184
|
+
function getPastTotalActiveVotes(uint256 blockNumber) public view override returns (uint256 activeVotes) {
|
|
185
|
+
activeVotes = _activeSupplyCheckpoints.upperLookupRecent(_validateTimepoint(blockNumber));
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
/// @notice The current total delegated voting units.
|
|
@@ -3,10 +3,10 @@ pragma solidity ^0.8.0;
|
|
|
3
3
|
|
|
4
4
|
/// @notice Provides checkpointed totals for voting units delegated to nonzero delegates.
|
|
5
5
|
interface IJBActiveVotes {
|
|
6
|
-
/// @notice The total delegated voting units at a past
|
|
7
|
-
/// @param
|
|
8
|
-
/// @return activeVotes The total voting units delegated to nonzero delegates at `
|
|
9
|
-
function getPastTotalActiveVotes(uint256
|
|
6
|
+
/// @notice The total delegated voting units at a past block.
|
|
7
|
+
/// @param blockNumber The past block number to look up.
|
|
8
|
+
/// @return activeVotes The total voting units delegated to nonzero delegates at `blockNumber`.
|
|
9
|
+
function getPastTotalActiveVotes(uint256 blockNumber) external view returns (uint256 activeVotes);
|
|
10
10
|
|
|
11
11
|
/// @notice The current total delegated voting units.
|
|
12
12
|
/// @return activeVotes The current total voting units delegated to nonzero delegates.
|