We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a67ad20 commit ddbcc86Copy full SHA for ddbcc86
packages/contracts/contracts/rewards/SubgraphAvailabilityManager.sol
@@ -104,15 +104,17 @@ contract SubgraphAvailabilityManager is Governed {
104
105
// Oracles should not be address zero
106
for (uint256 i = 0; i < _oracles.length; i++) {
107
- require(_oracles[i] != address(0), "SAM: oracle cannot be address zero");
+ address oracle = _oracles[i];
108
+ require(oracle != address(0), "SAM: oracle cannot be address zero");
109
+ oracles[i] = oracle;
110
+ emit OracleSet(i, oracle);
111
}
112
113
Governed._initialize(_governor);
114
rewardsManager = IRewardsManager(_rewardsManager);
115
116
executionThreshold = _executionThreshold;
117
voteTimeLimit = _voteTimeLimit;
- oracles = _oracles;
118
119
120
// -- Functions --
0 commit comments