{"id":"XE-13230","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"356","source_url":"https://github.com/xeprotocol/xe/issues/356","reporter_id":1180,"title":"[Medium] Supply auditor permanently reports conserved=false and misattributes emission across assets","area":"ops-testnet","claimed_tier":"medium","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"closed","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T20:42:01.456398+00:00","updated_at":"2026-11-20T00:07:04.551309+00:00","source_created_at":"2026-11-11T07:43:16+00:00","told_at":"2026-11-20T00:04:56+00:00","status_changed_at":"2026-11-20T00:04:35.388315+00:00","url":"https://bounty.xe.network/XE-13230","body":"# [Medium] Supply auditor permanently reports conserved=false and misattributes emission across assets\n\n**Severity (suggested):** Medium (up to 2,500 XE) — Track 2\n\n## Evidence (live)\n`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`.\n\n## Root cause\n- `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.\n- `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).\n\n## Impact\nThe protocol's only inflation/destruction detector is permanently red (alert fatigue); the XE \"Emitted\" figure includes non-XE lease emissions.\n\n## Proof of concept\n`curl -s https://test.network/api/supply | jq '{conserved, notes: (.notes|length)}'` → `conserved=false`, 600+ notes, reproducible on every node.\n\n## Fix direction\nUse 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.\n","patch_refs":[],"thread":[{"id":3116,"source":"github","source_ref":"6790277349","author":"urelkdubdqwr","team":false,"body":"XE payout address for this finding: `10b3dcf69edda38c4b579ade45e0bb110c04ce7215837d8f0b784916d5a50405`","created_at":"2026-11-11T07:48:49+00:00"},{"id":12746,"source":"github","source_ref":"7025799844","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-13230 and says what differs; it is read like any other.","created_at":"2026-11-20T00:04:56+00:00"}]}