Skip to content

Asset/formatting#232

Merged
El-swaggerito merged 2 commits into
Axionvera:mainfrom
Damola-Sodiq:asset/formatting
Jul 23, 2026
Merged

Asset/formatting#232
El-swaggerito merged 2 commits into
Axionvera:mainfrom
Damola-Sodiq:asset/formatting

Conversation

@Damola-Sodiq

Copy link
Copy Markdown
Contributor

Summary

Document asset formatting rules and display guidelines for SDK consumers across mobile and web applications to ensure consistent, secure, and clear presentation of Stellar assets.

Key Changes

  • Added Asset Formatting Guide (docs/asset-formatting.md):
    • Native vs. Issued Assets: Rules for displaying XLM vs. issued tokens (credit_alphanum4 / credit_alphanum12).
    • Issuer Display & Security: Truncation pattern (GABC...XYZ1), full address copyability, and guidance against hiding issuer keys to prevent spoofing.
    • Balance & Decimal Formatting: 2-decimal default display, truncation over rounding for spendable balances, and clear breakdown of available, reserved, and total balances.
    • Unknown Assets & Warnings: Visual warning states for unauthorized trustlines (isAuthorized === false) and safe fallback for unknown assets.
    • SDK Helper Integration: Code examples using formatAssetBalanceDisplay and findAssetInMultiBalance.
  • Updated README (README.md): Linked the new documentation in the main Documentation section.

Acceptance Criteria

  • Asset formatting rules are documented.
  • Native and issued asset display is covered.
  • Issuer display guidance is included.
  • Balance formatting is explained.
  • README links to the document.

closes #185

@El-swaggerito
El-swaggerito merged commit 6b9b23d into Axionvera:main Jul 23, 2026
1 check passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Jul 23, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document SDK asset formatting rules

2 participants