Skip to content

Commit

Permalink
feat(protocol): adjust the zk ratio(risc0 & sp1) (#18613)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoGhurt111 authored Dec 19, 2024
1 parent cbe43c3 commit 431435e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ contract MainnetTierRouter is ITierRouter, TierProviderBase {
/// @inheritdoc ITierProvider
function getMinTier(address _proposer, uint256 _rand) public view override returns (uint16) {
if (_proposer == DAO_FALLBACK_PROPOSER) {
if (_rand % 200 == 0) return LibTiers.TIER_ZKVM_RISC0;
else if (_rand % 40 == 1) return LibTiers.TIER_ZKVM_SP1;
if (_rand % 1000 == 0) return LibTiers.TIER_ZKVM_RISC0;
else if (_rand % 1000 < 99) return LibTiers.TIER_ZKVM_SP1;
else return LibTiers.TIER_SGX;
}
return LibTiers.TIER_SGX;
Expand Down

0 comments on commit 431435e

Please sign in to comment.