Skip to content

feat(miners): show credibility auto-zeroed on excess timeouts#111

Merged
LandynDev merged 3 commits into
testfrom
feat/credibility-zero-on-excess-timeouts
May 31, 2026
Merged

feat(miners): show credibility auto-zeroed on excess timeouts#111
LandynDev merged 3 commits into
testfrom
feat/credibility-zero-on-excess-timeouts

Conversation

@anderdc

@anderdc anderdc commented May 30, 2026

Copy link
Copy Markdown
Collaborator

What

Fixes the Credibility card on the miner page so a miner whose credibility was hard-zeroed by excess timeouts reads 0.00× (not 1.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 has closedSwaps >= target yet a real ramp of 0 — so the card would have wrongly shown 1.00× while the miner earns nothing. This keys the headline off the actual ramp and explains the zero.

Changes

  • src/api/models/MinersDashboard.ts: new credibilityTimedOut on ScoreFactors (from the API).
  • src/components/miners/ScoreFactorsStrip.tsx: when the ramp is hard-zeroed with closed swaps present, show 0.00× and auto-zeroed · N timeouts (limit 2), plus a tooltip describing the rolling rule (recovers as old timeouts age out). A clean high-volume miner still shows 1.00×.

tsc --noEmit clean for the changed files (pre-existing unrelated echarts module errors remain); eslint clean.

Related (must land together)

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.
github-actions Bot and others added 2 commits May 30, 2026 21:38
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 LandynDev merged commit 95dc769 into test May 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants