Skip to content

Commit

Permalink
Merge pull request #79 from aave/feat/add-owner-at-contructor-at-em
Browse files Browse the repository at this point in the history
Add owner constructor parameter to EmissionManager
  • Loading branch information
miguelmtzinf authored Apr 4, 2022
2 parents 10fcf38 + 7b0b0fd commit 241720b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion contracts/rewards/EmissionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ contract EmissionManager is Ownable, IEmissionManager {
/**
* Constructor.
* @param controller The address of the RewardsController contract
* @param owner The address of the owner
*/
constructor(address controller) {
constructor(address controller, address owner) {
_rewardsController = IRewardsController(controller);
transferOwnership(owner);
}

/// @inheritdoc IEmissionManager
Expand Down
3 changes: 2 additions & 1 deletion test/helpers/make-suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ export async function initializeMakeSuite() {
const rewardsController = ((await getIncentivesV2()) as any) as RewardsController;
testEnv.rewardsController = rewardsController;
testEnv.emissionManager = await new EmissionManager__factory(deployer.signer).deploy(
rewardsController.address
rewardsController.address,
deployer.address
);
testEnv.rewardsVault = rewardsVault;
testEnv.stakedAave = await getStakeAave();
Expand Down

0 comments on commit 241720b

Please sign in to comment.