From 500a8bbc46a3d1962ae5cc6d7f10e990f03d07c7 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 1 Nov 2024 11:56:36 +0800 Subject: [PATCH] chore(protocol): remove `TIER_ZKVM_ANY` in `MainnetTierRouter` (#18357) --- .../layer1/mainnet/rollup/MainnetTierRouter.sol | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/protocol/contracts/layer1/mainnet/rollup/MainnetTierRouter.sol b/packages/protocol/contracts/layer1/mainnet/rollup/MainnetTierRouter.sol index 954b3be352f..1f77863ab6b 100644 --- a/packages/protocol/contracts/layer1/mainnet/rollup/MainnetTierRouter.sol +++ b/packages/protocol/contracts/layer1/mainnet/rollup/MainnetTierRouter.sol @@ -22,18 +22,14 @@ contract MainnetTierRouter is ITierRouter, TierProviderBase { /// @inheritdoc ITierProvider function getTierIds() external pure returns (uint16[] memory tiers_) { - tiers_ = new uint16[](4); + tiers_ = new uint16[](3); tiers_[0] = LibTiers.TIER_SGX; - tiers_[1] = LibTiers.TIER_ZKVM_ANY; - tiers_[2] = LibTiers.TIER_GUARDIAN_MINORITY; - tiers_[3] = LibTiers.TIER_GUARDIAN; + tiers_[1] = LibTiers.TIER_GUARDIAN_MINORITY; + tiers_[2] = LibTiers.TIER_GUARDIAN; } /// @inheritdoc ITierProvider function getMinTier(address _proposer, uint256 _rand) public view override returns (uint16) { - if (_proposer == DAO_FALLBACK_PROPOSER) { - return _rand % 500 == 0 ? LibTiers.TIER_ZKVM_ANY : LibTiers.TIER_SGX; - } return LibTiers.TIER_SGX; } }