Skip to content

Smart Contract: Security - Handle Failed SwapsΒ #94

@Tybravo

Description

@Tybravo

🎯 Goal

Implement fallback logic if the AMM lacks liquidity.

πŸ“‹ Requirements

  • Catch swap failures
  • Fallback to paying out the original asset directly

πŸ“‚ Target Directory

Contributors should work within this directory:
contracts/settlement_contract

πŸ”— Architecture & Dependencies

πŸ”§ Technical Scope

  • Rust
  • Soroban SDK

🌿 Fork & Branch

  • Fork the repository
  • Branch: git checkout -b sec-failed-swaps

βœ… Acceptance Criteria

  • All tests must pass successfully
  • Test cases pass on testnet

πŸ’¬ Example Commit Message

feat: implement fallback logic if the amm lacks liquidity.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programhighHigh complexitysecuritySecurity modifiers and protectionssmart-contractSmart contract implementation

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions