Skip to content

Commit

Permalink
chore: docstring in selfregsitersqrtmiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
alrxy committed Dec 17, 2024
1 parent ee799a0 commit e3120c6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ import {KeyManagerAddress} from "../../extensions/managers/keys/KeyManagerAddres
import {TimestampCapture} from "../../extensions/managers/capture-timestamps/TimestampCapture.sol";
import {EqualStakePower} from "../../extensions/managers/stake-powers/EqualStakePower.sol";

/**
* @title SelfRegisterSqrtTaskMiddleware
* @notice Middleware for managing sqrt computation tasks with self-registering operators
* @dev Uses SelfRegisterOperators for operator management because it allows permissionless registration.
* Task validation is done by a single validator chosen at task creation time because this avoids
* having to iterate over all operators, making it more gas efficient and avoiding potential DOS attacks.
*/
contract SelfRegisterSqrtTaskMiddleware is
SharedVaults,
SelfRegisterOperators,
Expand Down

0 comments on commit e3120c6

Please sign in to comment.