Skip to content

Conversation

@ypatil12 ypatil12 force-pushed the release-dev/multichain-audit-fixes branch 2 times, most recently from 2b51e9b to f32dc54 Compare July 29, 2025 15:00
0xClandestine and others added 6 commits July 31, 2025 16:07
**Motivation:**

Middleware contains tons of unused imports, which reduces code clarity.

**Modifications:**

- Used `forge lint src --only-lint unused-import` to remove all unused
imports from `src`.

**Result:**

Improved clarity.
**Motivation:**

We now have two `ISocketRegistry` interfaces, and need to differentiate
for clarity.

**Modifications:**

- Renamed **new** `ISocketRegistry` -> `ISocketRegistryV2`

**Result:**

Improved clarity.
**Motivation:**

If the `weights` array has a different length or stake composition, cert
verification would silently fail. There is no way to enforce this for
BN254. To opt for similar behavior, we clarify this in our natspec.

**Modifications:**

Update natspec/docs on risks of different array lengths. 

**Result:**

Clearer code

---------

Co-authored-by: Nadir Akhtar <nadir-akhtar@users.noreply.github.com>
**Motivation:**

Update incorrect natspec 

**Modifications:**

- Clarify `KeyRegistrar` usage
- Clarify `calculateOperatorTable` usage

**Result:**

Clearer natspec
**Motivation:**

The following natspec is present but isn't true and suggest improper
use.

```solidity
/// @dev The immutable avs address `AVSRegistrar` is NOT the address of the AVS in EigenLayer core.
/// @dev The address of the AVS in EigenLayer core is the proxy contract, and it is set via the `initialize` function below.
```

**Modifications:**

- Removed confusing comments
- Made AVS var stateful and `AVSRegistrar` abstract

**Result:**

Improved clarity.
@ypatil12 ypatil12 force-pushed the release-dev/multichain-audit-fixes branch from ec35d75 to f3580bd Compare July 31, 2025 20:08
import {IAVSRegistrar} from "eigenlayer-contracts/src/contracts/interfaces/IAVSRegistrar.sol";
import {IAVSRegistrarInternal} from "./IAVSRegistrarInternal.sol";
import {ISocketRegistry} from "./ISocketRegistryV2.sol";
import {ISocketRegistryV2} from "./ISocketRegistryV2.sol";
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the latest interface?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the latest changes from main on eigenlayer-contracts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Latest changes from the corresponding contracts PR

Copy link
Contributor

Choose a reason for hiding this comment

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

Should that be merged first before this is merged?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should be fine since that will be latest commit (soon)

@ypatil12 ypatil12 force-pushed the release-dev/multichain-audit-fixes branch from 4db21e4 to a6806d4 Compare July 31, 2025 20:51
@ypatil12 ypatil12 merged commit 993c666 into dev Aug 1, 2025
11 of 12 checks passed
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