Skip to content

Interoperability with Classic Stellar Assets #41

@hman38705

Description

@hman38705

Issue #21:

Developer Goal: Enable the seamless use of existing Stellar Classic assets (like USDC) within the Soroban contract.

Technical Requirements:

  1. SAC Integration: Use the soroban_sdk::token::Client to interact with Stellar Asset Contracts (SAC).
  2. Trustline Handling: The contract itself should be able to "opt-in" or handle assets without manual trustline management, but developers must ensure the token_address is a valid SAC.
  3. Clawback & Freeze: Implement logic to handle cases where the issuer of a Classic asset "Claws back" or "Freezes" the contract's balance. The market should transition to Cancelled if the prize pool is seized.

Verification Checklist:

  • Integration test using a "Classic" asset wrapper and verifying successful place_bet and claim_winnings.
  • git checkout -b features/issue-Interoperability with Classic Stellar Assets
  • Pr Request create your pr against develop branch

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions