{"id":"XE-10924","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":1132,"title":"XUSD supply auditor flags every XUSD block type as 'unsupported asset' and every settled lease escrow as unaccounted","area":"leasing-ledger","claimed_tier":"medium","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-12T19:01:57.945192+00:00","updated_at":"2026-11-20T00:04:35.428897+00:00","source_created_at":null,"told_at":"2026-11-20T00:04:35.453671+00:00","status_changed_at":"2026-11-20T00:04:35.436729+00:00","url":"https://bounty.xe.network/XE-10924","body":"## Summary\nOn the public testnet (https://ldn.core.test.network/, node xe/3019b76), the block/asset census used by the supply auditor does not recognise ANY XUSD block. Every XUSD-bearing block type is emitted as an `unsupported asset` note, and every `lease_settle` is emitted as `escrow unaccounted`. `/supply` therefore permanently reports the XUSD asset as `conserved: false` with a discrepancy equal to the entire observed XUSD supply (212,890,638), and no settled-lease escrow is ever reconciled.\n\nThis is broader than a genesis-mint-only framing: it is not just the genesis-era XUSD mint that is skipped - every XUSD block type fails the asset-validity gate in the census.\n\n## Existing reports this may overlap\nFiling honestly - the XUSD supply non-conservation itself is already reported: XE-4779 (termsFromChain skips genesis-era XUSD mint blocks, 212,890,638 unaccounted), XE-5217 (auditor reports conserved=false, misattributes emission), XE-5508 (public node rejects XUSD as unsupported asset), XE-4023 (SupplyAuditor omits BlockLeaseRenew costs). Additional observations here: (a) the census rejects every XUSD block type, not only genesis mints, and (b) all 100 live `lease_settle` emissions carry \"no lease block in the census; escrow unaccounted\", i.e. settled-lease escrow is never reconciled. If triage considers this fully covered, please close as duplicate.\n\n## Affected component\n- core/supply.go - block census / termsFromChain asset handling and the `unsupported asset` emission path.\n- Live API: GET https://ldn.core.test.network/supply\n\n## Reproduction (read-only, public testnet)\n1. curl -s https://ldn.core.test.network/supply - for the XUSD asset observe: created: 0, observed: 212890638, escrow_burned: 0, conserved: false, discrepancy: 212890638.\n2. Inspect the census notes in the same /supply response. Every XUSD block carries `account <addr> holds block(s) with an unsupported asset: [... asset:\"XUSD\" ...]`, and the same `unsupported asset` note appears for block types mint, send, receive, lease, lease_accept, lease_renew, lease_cancel, multisig_open - all with asset:\"XUSD\".\n3. Every `lease_settle` carries: `account <addr> received 74000 from lease_settle {..., escrow:\"74000\"} but has no lease block in the census; escrow unaccounted`. Across 110 leases on testnet, all XUSD settles show this; none reconcile.\n\nObserved 2026-11-12.\n\n## Root cause (from source)\n- core/types.go - the asset-validity check (IsValidAsset) is consulted when building the census, and the live node's census path treats \"XUSD\" as unsupported, so all XUSD blocks are skipped and their value never enters created/census, while the raw observed balance still counts them -> full-supply discrepancy + conserved:false.\n- core/ledger.go validateAndAddLeaseSettle (~line 2186) returns escrow to the consumer without recording a matching lease block the census can pair with, so the settle note reports `escrow unaccounted`.\n- core/supply.go BlockLeaseSettle (~line 99) and the burn path (~line 282) only reconcile on the LeaseExpired branch, not LeaseSettled, so settled escrow is never accounted.\n\n## Impact\n- The stablecoin's /supply self-audit is permanently broken: conserved:false with a discrepancy equal to the whole supply, so operators cannot use supply conservation as an XUSD integrity check.\n- Settled-lease escrow is never reconciled (`escrow unaccounted` for every settle), hiding genuine escrow mismatches.\n- No new unbacked XUSD minting observed on the current testnet, so economic impact is limited; rated Medium per the \"accounting mismatch / validation gap\" band.\n\n## Environment\n- Public testnet testnet-0005, node xe/3019b76, API https://ldn.core.test.network/\n- Source ref: github.com/xeprotocol/xe @ 3019b76 (read-only analysis)","patch_refs":[],"thread":[{"id":12747,"source":"desk","source_ref":"reply:10769","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-10924 and says what differs; it is read like any other.","created_at":"2026-11-20T00:04:35.428897+00:00"}]}