Skip to content

Commit

Permalink
fix: move AlwaysFalseMevCommitMiddleware to its own file for proper c…
Browse files Browse the repository at this point in the history
…ontract verification
  • Loading branch information
shaspitz committed Dec 17, 2024
1 parent 48aa2a9 commit 34f3c13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 9 additions & 0 deletions contracts/contracts/utils/AlwaysFalseMiddleware.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// SPDX-License-Identifier: BSL 1.1
pragma solidity 0.8.26;

/// Temporary stand-in until the mev-commit middleware and symbiotic core, are ready for mainnet.
contract AlwaysFalseMevCommitMiddleware {
function isValidatorOptedIn(bytes calldata) external pure returns (bool) {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {console} from "forge-std/console.sol";
import {Upgrades} from "openzeppelin-foundry-upgrades/Upgrades.sol";
import {ValidatorOptInRouter} from "../../contracts/validator-registry/ValidatorOptInRouter.sol";
import {MainnetConstants} from "../MainnetConstants.sol";
import {AlwaysFalseMevCommitMiddleware} from "../../contracts/utils/AlwaysFalseMiddleware.sol";

contract BaseDeploy is Script {
function deployValidatorOptInRouter(
Expand All @@ -33,13 +34,6 @@ contract BaseDeploy is Script {
}
}

/// Temporary stand-in until the mev-commit middleware and symbiotic core, are ready for mainnet.
contract AlwaysFalseMevCommitMiddleware {
function isValidatorOptedIn(bytes calldata) external pure returns (bool) {
return false;
}
}

contract DeployMainnet is BaseDeploy {
address constant public VANILLA_REGISTRY = 0x47afdcB2B089C16CEe354811EA1Bbe0DB7c335E9;
address constant public MEV_COMMIT_AVS = 0xBc77233855e3274E1903771675Eb71E602D9DC2e;
Expand Down

0 comments on commit 34f3c13

Please sign in to comment.