Bounty
XE-10924 · Bounty

XUSD supply auditor flags every XUSD block type as 'unsupported asset' and every settled lease escrow as unaccounted

Closed · duplicate —claimed Medium web filed 2026-11-12 19:01 UTC by rabakta

Report

Summary

On 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.

This 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.

Existing reports this may overlap

Filing 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.

Affected component

  • core/supply.go - block census / termsFromChain asset handling and the unsupported asset emission path.
  • Live API: GET https://ldn.core.test.network/supply

Reproduction (read-only, public testnet)

  1. curl -s https://ldn.core.test.network/supply - for the XUSD asset observe: created: 0, observed: 212890638, escrow_burned: 0, conserved: false, discrepancy: 212890638.
  2. 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".
  3. 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.

Observed 2026-11-12.

Root cause (from source)

  • 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.
  • 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.
  • 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.

Impact

  • 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.
  • Settled-lease escrow is never reconciled (escrow unaccounted for every settle), hiding genuine escrow mismatches.
  • No new unbacked XUSD minting observed on the current testnet, so economic impact is limited; rated Medium per the "accounting mismatch / validation gap" band.

Environment

  • Public testnet testnet-0005, node xe/3019b76, API https://ldn.core.test.network/
  • Source ref: github.com/xeprotocol/xe @ 3019b76 (read-only analysis)

Thread

Joseph Denneteam2026-11-20 00:04 UTCdesk

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-10924 and says what differs; it is read like any other.