Skip to content

Commit

Permalink
Merge pull request #41 from BalancerMaxis/issue/17/use_values
Browse files Browse the repository at this point in the history
use .values in getActiveGaugeList
  • Loading branch information
gosuto-inzasheru authored Sep 26, 2024
2 parents faff832 + 42a8910 commit 2ace1e3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions contracts/ChildChainGaugeInjectorV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,7 @@ KeeperCompatibleInterface
* @notice Return a list of active gauges
*/
function getActiveGaugeList() public view returns (address[] memory) {
uint256 len = ActiveGauges.length();
address[] memory activeGauges = new address[](len);
for (uint256 i = 0; i < len; i++) {
activeGauges[i] = ActiveGauges.at(i);
}
return activeGauges;
return ActiveGauges.values();
}

/**
Expand Down

0 comments on commit 2ace1e3

Please sign in to comment.