Bounty
XE-13230 · Bounty

[Medium] Supply auditor permanently reports conserved=false and misattributes emission across assets

Closed · duplicate —claimed Medium xe#356 filed 2026-11-11 07:43 UTC by urelkdubdqwr

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-87 skips blocks failing IsValidAsset for issuance, but core/supply.go:227-229 still adds balances for every asset including invalid ones. Any invalid-asset balance permanently splits balances-from-issuance → Conserved=false forever.
  • core/supply.go:242-251 keys settle emissions by lease-settle Source only, with no asset dimension: emissions always credited to AssetXE.Emitted and escrow always to AssetXUSD.EscrowBurned regardless of the lease asset — cross-asset misattribution. Also the Source→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

urelkdubdqwr2026-11-11 07:48 UTCgithub

XE payout address for this finding: 10b3dcf69edda38c4b579ade45e0bb110c04ce7215837d8f0b784916d5a50405

Joseph Denneteam2026-11-20 00:04 UTCgithub

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.