@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bananapus/core-v6",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
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 timepoint The past block number to look up.
183
- /// @return activeVotes The total voting units delegated to nonzero delegates at `timepoint`.
184
- function getPastTotalActiveVotes(uint256 timepoint) public view override returns (uint256 activeVotes) {
185
- activeVotes = _activeSupplyCheckpoints.upperLookupRecent(_validateTimepoint(timepoint));
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 timepoint.
7
- /// @param timepoint The past block number to look up.
8
- /// @return activeVotes The total voting units delegated to nonzero delegates at `timepoint`.
9
- function getPastTotalActiveVotes(uint256 timepoint) external view returns (uint256 activeVotes);
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.