Skip to content

[Contract] Stablecoin (USDC on Stellar) support + multi-currency display #41

Description

@Gbangbolaoluwagbemiga

User story

Freelancers and clients want to transact in a stablecoin (USDC on Stellar) to avoid XLM price
volatility, with values shown in a familiar currency.

What needs to be done

  • Add Circle USDC (Stellar SAC) to the token whitelist; verify the full lifecycle works for a
    non-native token: create_escrow → fund → approve_milestone payout → refund paths
  • Confirm do_transfer (refund_system.rs) and the SAC token::Client path handle USDC decimals
  • Frontend: token selector in CreatePage; display amounts with correct symbol/decimals
  • Optional: show an approximate fiat value via a price source

Acceptance criteria

  • A full escrow can be created, funded, released, and refunded in USDC on testnet
  • UI shows the correct token symbol and decimal precision everywhere
  • Non-whitelisted tokens are rejected

Relevant files

contracts/secureflow/src/refund_system.rs, escrow_core.rs (is_whitelisted_token), src/pages/CreatePage.tsx

Complements #6 (per-milestone token override).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew product capability

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions