feat(miners): show credibility auto-zeroed on excess timeouts#111
Merged
Conversation
The credibility card forced a 1.00x headline whenever closedSwaps met the ramp target, so a miner zeroed by the new timeout floor (>3 timeouts in the 30-day window) would wrongly read 1.00x while earning nothing. Key the headline off the actual ramp, and when it's hard-zeroed show 0.00x with an 'auto-zeroed · N timeouts (limit 3)' label plus a tooltip explaining the rolling rule. Surface credibilityTimedOut on the ScoreFactors model.
Tighten the credibility hard-floor from CREDIBILITY_MAX_TIMEOUTS=3 to 2: 0-2 timeouts tolerated, the 3rd timeout in the credibility window zeros credibility (and the whole reward).
LandynDev
approved these changes
May 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes the Credibility card on the miner page so a miner whose credibility was hard-zeroed by excess timeouts reads
0.00×(not1.00×), with a label and tooltip explaining why.Why
The card headline was
closedSwaps >= rampTarget ? 1.00× : ramp. With the new validator rule (>2 timeouts in the 30-day window zeros credibility), a high-volume miner hasclosedSwaps >= targetyet a real ramp of0— so the card would have wrongly shown1.00×while the miner earns nothing. This keys the headline off the actual ramp and explains the zero.Changes
src/api/models/MinersDashboard.ts: newcredibilityTimedOutonScoreFactors(from the API).src/components/miners/ScoreFactorsStrip.tsx: when the ramp is hard-zeroed with closed swaps present, show0.00×andauto-zeroed · N timeouts (limit 2), plus a tooltip describing the rolling rule (recovers as old timeouts age out). A clean high-volume miner still shows1.00×.tsc --noEmitclean for the changed files (pre-existing unrelated echarts module errors remain); eslint clean.Related (must land together)