Skip to content

Smart Contract: Implement Slippage Protection #92

@Tybravo

Description

@Tybravo

🎯 Goal

Allow the driver/system to set a maximum slippage tolerance for the AMM swap.

📋 Requirements

  • Add slippage params to execute_settlement_swap
  • Revert on excessive slippage

📂 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 feat-slippage-protection

✅ Acceptance Criteria

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

💬 Example Commit Message

feat: allow the driver/system to set a maximum slippage tolerance for the amm swap.

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