Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: restricted strategy list #841

Open
wants to merge 7 commits into
base: slashing-magnitudes
Choose a base branch
from

Conversation

0xClandestine
Copy link
Contributor

No description provided.

Copy link
Collaborator

@ypatil12 ypatil12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly want some more test coverage

src/contracts/core/AVSDirectory.sol Outdated Show resolved Hide resolved
src/contracts/core/AllocationManager.sol Show resolved Hide resolved
src/contracts/core/AllocationManager.sol Show resolved Hide resolved
src/contracts/core/AllocationManager.sol Show resolved Hide resolved
src/contracts/interfaces/IAVSDirectory.sol Outdated Show resolved Hide resolved
src/test/unit/AllocationManagerUnit.t.sol Show resolved Hide resolved
src/contracts/core/AVSDirectory.sol Outdated Show resolved Hide resolved
bytes32 operatorSetKey = _encodeOperatorSet(operatorSet);

// Assert that the provided strategies are all whitelisted for the given operator set.
require(avsDirectory.isOperatorSetStrategyBatch(operatorSet, params.strategies), InvalidStrategy());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not have this method accept an operator set as an argument and fetch strategies from the AVSD? That seems far preferable to passing in an array of strategies here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIxed in #855, but the fix introduces a via-ir compile error. Thinking we wait until #845 is merged which should reduce code complexity.

@Layr-Labs Layr-Labs deleted a comment from github-actions bot Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants