Skip to content

Commit

Permalink
chore(protocol): remove TIER_ZKVM_ANY in MainnetTierRouter (#18357)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Nov 1, 2024
1 parent 269759b commit 500a8bb
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 500a8bb

Please sign in to comment.