Bounty
XE-0086 · Bounty

cli: `xe send` defaults to asset XUSD, so the documented "send XE" flow fails with "insufficient XUSD" (Minor)

Triaging claimed Minor xe#130 filed 2026-10-28 12:16 UTC by BoomGone

Report

Summary

xe send defaults to asset XUSD when --asset is not given. The testnet's primary asset is XE: the faucet grants XE, and the official guide's first action is "Send and receive XE". A user who follows the guide and runs xe send <addr> <amount> therefore hits insufficient XUSD: have 0, need <amount> even though they hold XE. The default is not stated in the command help.

Steps to reproduce

  1. Build the CLI from source (make build).
  2. Create a wallet, request XE from the faucet, receive it (balance shows XE).
  3. Run xe send <dest> 0.5 with no --asset.
  4. Observe error: insufficient XUSD: have 0, need 0.5.
  5. xe send <dest> 0.5 --asset XE works.

Evidence

  • cmd/xe/main.go:674 in cmdSend: asset := "XUSD" is the default before --asset is parsed.
  • cmd/xe/main.go:170 help: send <addr> <amount> [--asset XE|XUSD] does not state which is the default.
  • Faucet grants XE, confirmed live: HTTP 201 {"amount":1000000,"asset":"XE",...}.

Suggested fix

Default xe send to XE (matching the faucet, the guide and the native asset), or state the default asset explicitly in the help text. Defaulting to the asset a new user actually holds removes a confusing first-send failure.

Suggested tier

Minor (UX / consistency). Code read against public master 9787859, confirmed live on testnet-0005.

XE address for any reward: 6591eab453dbd93b27e2cd674712f94b42d9e7e4d52980b966fa6da4ccd832dc

Thread

Joseph Denneteam2026-11-08 20:19 UTCgithub

Thanks for the report. We have confirmed the behaviour you describe and it is being handled; we will update this ticket when there is more to share.