fix: no unaccounted figure until the whitelists are known; no mining row on market pages
ci / gate (push) Successful in 4m30s
deploy / validate (push) Skipped
deploy / build (push) Canceled after 8s
deploy / deploy-api (push) Skipped
deploy / deploy-web (push) Skipped

The listing pass runs at startup, a minute before the first pool read, so
its named set lacked every whitelisted account and it reported the sum as
complete: production read 0.3695 QTC unaccounted against a true 0.269 —
exactly liq.selfevident.near's 0.1005 — until the next pass. Absent now
until the whitelists have been read.

The market pages drop the hashrate/difficulty/block time/miners/height row,
as the wormhole page already did: they are about the token on another
chain, and mining figures above them read as though they bore on a price.
Keyed on `sectionOf`, so the index and every market page agree.

Refs #39, #41

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015pkwBsR54NRmZyU4QVhvfj
This commit is contained in:
2026-10-06 17:32:56 +03:00
co-authored by Claude Opus 5.5
parent 35c7a2cf97
commit b55d323456
2 changed files with 15 additions and 8 deletions
+9 -5
View File
@@ -536,7 +536,12 @@ async fn reconcile(
for c in &config.dcl_contracts {
named.push((c.clone(), "pool"));
}
let whitelists: Vec<String> = chain
// The whitelists come from the pool pass, which first runs a minute after
// startup — after this one. Until it has, the named set is incomplete, and
// a sum over it is too high by whatever the whitelisted accounts hold while
// looking exact: the first deploy read 0.3695 QTC against a true 0.269, the
// difference being liq.selfevident.near's 0.1005.
let whitelists: Option<Vec<String>> = chain
.ref_pools
.read()
.unwrap_or_else(|p| p.into_inner())
@@ -546,16 +551,15 @@ async fn reconcile(
.iter()
.flat_map(|pool| pool.whitelist.clone())
.collect()
})
.unwrap_or_default();
for w in whitelists {
});
let mut complete = whitelists.is_some() || config.dcl_contracts.is_empty();
for w in whitelists.unwrap_or_default() {
named.push((w, "whitelist"));
}
let mut seen = std::collections::BTreeSet::new();
named.retain(|(a, _)| seen.insert(a.clone()));
let mut holders = Vec::new();
let mut complete = true;
for (account, role) in named {
let balance = if account == config.contract {
in_intents.cloned()
+6 -3
View File
@@ -40,7 +40,7 @@ import { AboutPanel } from './components/AboutPanel'
import { VestingPanel } from './components/VestingPanel'
import { WormholeStage } from './components/WormholeStage'
import { measuredSpan, seconds, windowSpan } from './lib/format'
import { href, isStandings, parse, WINDOWS } from './lib/routes'
import { href, isStandings, parse, sectionOf, WINDOWS } from './lib/routes'
import { useObserver, usePinnedMiners, useWatch } from './lib/store'
export default function App() {
@@ -225,7 +225,10 @@ export default function App() {
{/* The wormhole page trades the headline row for the live stage. Hashrate,
difficulty, block time, miners and height are on every other page and
say nothing about the pool; the stage is the one thing that can only
be shown here, and it wants the width. */}
be shown here, and it wants the width. The market pages drop the row
for the same reason and put nothing in its place: they are about the
token on another chain, and mining figures above them read as though
they bore on a price. */}
{route.index === 'wormhole' ? (
<WormholeStage
chain={chain}
@@ -233,7 +236,7 @@ export default function App() {
decimals={info?.token_decimals ?? 12}
symbol={info?.token_symbol ?? ''}
/>
) : (
) : sectionOf(route) === 'market' ? null : (
<StatBar summary={state.summary} windowName={route.window} />
)}