Skip to content

Add USDC (testnet SAC) as a stream token #1

Open

Description

@SYMBAxx

Streams currently only use native XLM (XLM_SAC in frontend/src/lib/config.ts). The contract already accepts any SAC token.

Tasks

  • Add a token selector to NewStreamModal (XLM, testnet USDC).
  • Register USDC in TOKENS with correct decimals.
  • Show the right code in stream cards and Earnings (Earnings currently filters to XLM only).
  • Handle the trustline case: show a clear message if the recipient has no USDC trustline.

Acceptance: a USDC stream can be created, accrues, and withdraws on testnet; unit test for token metadata.

Activity

  1. NePreby commented on Nov 6, 2026

    @NePreby

    I have implemented USDC (testnet SAC) stream token support in Pull Request #27: #27

    Summary of Implementation:

    • USDC SAC Registration: Configured Circle testnet USDC SAC (CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA) and SUPPORTED_TOKENS list in src/lib/config.ts.
    • Token Selector: Added interactive token switcher (XLM / USDC) in NewStreamModal.
    • Trustline Validation: Integrated hasTrustline check against Horizon API to alert senders if recipient lacks a USDC trustline before transaction submission.
    • Multi-Token Streams & Earnings: Updated TopUpSheet to handle token-specific decimals, and added multi-token filter (All / XLM / USDC) in EarningsPage.
    • Test Suite: Added unit tests in src/lib/__tests__/tokens.test.ts. 85/85 vitest tests pass and TypeScript check is 100% clean.

    Bounty Payout Wallet (TRC20 TRX/USDT):
    TMqmJjRgVS21NL2eFtfyHciTxvE4BqGmEv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions