File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -237,14 +237,14 @@ contract AllocationManager is
237
237
238
238
/// @inheritdoc IAllocationManager
239
239
function setAllocationDelay (address operator , uint32 delay ) external {
240
- /// If the caller is the delegationManager, the operator is newly registered
241
- /// This results in *newly-registered* operators in the core protocol to have their allocation delay effective after 1 block
240
+ // Whether the operator is newly registered in the core protocol, defaults to false
242
241
bool newlyRegistered;
243
242
if (msg .sender != address (delegation)) {
244
243
require (_checkCanCall (operator), InvalidCaller ());
245
244
require (delegation.isOperator (operator), InvalidOperator ());
246
- newlyRegistered = false ;
247
245
} else {
246
+ /// If the caller is the delegationManager, the operator is newly registered
247
+ /// This results in *newly-registered* operators in the core protocol to have their allocation delay effective after 1 block
248
248
newlyRegistered = true ;
249
249
}
250
250
_setAllocationDelay (operator, delay, newlyRegistered);
You can’t perform that action at this time.
0 commit comments