Skip to content

Commit

Permalink
onlyOwner for setIncentivesController
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyao2002 committed May 2, 2023
1 parent 36c7573 commit 77de6ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -483,7 +483,7 @@ contract LendingPoolAddressesProvider is
return getAddress(INCENTIVES_CONTROLLER);
}

function setIncentivesController(address incentives) external override {
function setIncentivesController(address incentives) external override onlyOwner{
_addresses[INCENTIVES_CONTROLLER] = incentives;
emit IncentivesControllerUpdated(incentives);
}
Expand Down
Expand Up @@ -103,7 +103,7 @@ import {
attackerAddress1.address
);
} catch (e) {
console.log("Borrow failed: ",e)
console.log("Borrow failed (may be expected behavior): ")
}


Expand Down

0 comments on commit 77de6ea

Please sign in to comment.