[Medium] Supply auditor permanently reports conserved=false and misattributes emission across assets
Report
[Medium] Supply auditor permanently reports conserved=false and misattributes emission across assets
Severity (suggested): Medium (up to 2,500 XE) — Track 2
Evidence (live)
GET https://test.network/api/supply → conserved: false, stable: true, with 600+ notes: account ... holds block(s) with an unsupported asset: [asset="XUSD"] and settle for lease ... has no lease block in the census; escrow unaccounted.
Root cause
core/supply.go:84-87skips blocks failingIsValidAssetfor issuance, butcore/supply.go:227-229still adds balances for every asset including invalid ones. Any invalid-asset balance permanently splits balances-from-issuance →Conserved=falseforever.core/supply.go:242-251keys settle emissions by lease-settleSourceonly, with no asset dimension: emissions always credited toAssetXE.Emittedand escrow always toAssetXUSD.EscrowBurnedregardless of the lease asset — cross-asset misattribution. Also theSource→lease-hash join misses leases whose consumer frontier moved (renew).
Impact
The protocol's only inflation/destruction detector is permanently red (alert fatigue); the XE "Emitted" figure includes non-XE lease emissions.
Proof of concept
curl -s https://test.network/api/supply | jq '{conserved, notes: (.notes|length)}' → conserved=false, 600+ notes, reproducible on every node.
Fix direction
Use one asset gate for both issuance and balances; add the asset dimension to the settle emission/escrow keys; join settle→lease by lease hash not just consumer frontier.
Thread
XE payout address for this finding: 10b3dcf69edda38c4b579ade45e0bb110c04ce7215837d8f0b784916d5a50405
Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, file a new report that links https://bounty.xe.network/XE-13230 and says what differs; it is read like any other.