Skip to content

fix(format): accept explicit assetCode in formatAmount, default USDC not XLM - #223

Open
BWM0223 wants to merge 1 commit into
vespera-labs:mainfrom
BWM0223:fix/format-currency-code
Open

fix(format): accept explicit assetCode in formatAmount, default USDC not XLM#223
BWM0223 wants to merge 1 commit into
vespera-labs:mainfrom
BWM0223:fix/format-currency-code

Conversation

@BWM0223

@BWM0223 BWM0223 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #18 - Money amounts labeled XLM while product describes USDC stablecoin rent

Root Cause

always appends XLM regardless of the actual asset. Dashboard, properties, payments, and property-detail pages all use this, showing XLM for what the README/landing describes as USDC rent payments.

Fix

  • New function — defaults to USDC to match product copy
  • is kept as a wrapper for incremental migration of call sites
  • unchanged

Acceptance Criteria

  • Currency shown can match the actual asset
  • Default is USDC per product description
  • Existing callers can migrate at their own pace

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.

[Frontend] Money amounts are labeled XLM while the product describes USDC stablecoin rent

1 participant