Skip to content

Commit

Permalink
Merge pull request #15 from BalancerMaxis/issue/5/add_deployedInjectors
Browse files Browse the repository at this point in the history
Add list of deployed injectors to factory
  • Loading branch information
gosuto-inzasheru authored Sep 26, 2024
2 parents 5213313 + 982f95f commit e3cbf31
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contracts/injectorFactoryV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ contract ChildChainGaugeInjectorV2Factory {

address public implementation;

address[] private deployedInjectors;


constructor(address logic) {
implementation = logic;
}
Expand Down Expand Up @@ -43,6 +46,14 @@ contract ChildChainGaugeInjectorV2Factory {
maxInjectionAmount
);
emit InjectorCreated(injector, keeperAddresses, injectTokenAddress, owner);
deployedInjectors.push(injector);
return injector;
}

/** @dev Returns the array of addresses of deployed injectors, note that not all injectors on the list may be active or functional
* @return The array of addresses of deployed injectors
*/
function getDeployedInjectors() external view returns (address[] memory) {
return deployedInjectors;
}
}

0 comments on commit e3cbf31

Please sign in to comment.