Skip to content

Commit bb27ffc

Browse files
committed
feat: remove trycatch & fmt/bindings
1 parent 1bc6af2 commit bb27ffc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/contracts/core/AllocationManager.sol

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,8 @@ contract AllocationManager is
302302
});
303303
}
304304

305-
// Call the AVS to complete deregistration. Even if the AVS reverts, the operator is
306-
// considered deregistered
307-
try getAVSRegistrar(params.avs).deregisterOperator(params.operator, params.avs, params.operatorSetIds) {}
308-
catch {}
305+
// Call the AVS to complete deregistration
306+
getAVSRegistrar(params.avs).deregisterOperator(params.operator, params.avs, params.operatorSetIds);
309307
}
310308

311309
/// @inheritdoc IAllocationManager

src/contracts/interfaces/IAVSRegistrar.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ interface IAVSRegistrar {
3232
* @param avs the AVS to check
3333
* @return true if the AVS is supported, false otherwise
3434
*/
35-
function supportsAVS(address avs) external view returns (bool);
35+
function supportsAVS(
36+
address avs
37+
) external view returns (bool);
3638
}

src/contracts/interfaces/IAllocationManager.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ interface IAllocationManager is IAllocationManagerErrors, IAllocationManagerEven
265265
* If the operator has any slashable stake allocated to the AVS, it remains slashable until the
266266
* DEALLOCATION_DELAY has passed.
267267
* @dev After deregistering within the ALM, this method calls the AVS Registrar's `IAVSRegistrar.
268-
* deregisterOperator` method to complete deregistration. Unlike when registering, this call MAY FAIL.
269-
* Failure is permitted to prevent AVSs from being able to maliciously prevent operators from deregistering.
268+
* deregisterOperator` method to complete deregistration. This call MUST succeed in order for
269+
* deregistration to be successful.
270270
*/
271271
function deregisterFromOperatorSets(
272272
DeregisterParams calldata params

0 commit comments

Comments
 (0)