Skip to content

Automated Liquidity Pool Contract #250

Description

@Mkalbani

Location: contracts/liquidity_pool
Language: Rust (Soroban)
Estimated Time: 8 hours
Difficulty: Hard

Description

Build a liquidity pool enabling token swaps with automated pricing using constant product formula (x*y=k).

Tasks

  • Design pool structure with two assets
  • Implement constant product AMM formula
  • Add liquidity provider (LP) token minting
  • Create swap functionality
  • Implement slippage protection
  • Add liquidity addition/removal
  • Create fee collection system
  • Write comprehensive tests
  • Implement price oracle
  • Add impermanent loss tracking

Acceptance Criteria

  • Swaps execute correctly
  • Pricing follows formula
  • LP tokens minted/burned correctly
  • Slippage limits enforced
  • Fees collected and tracked
  • All tests pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    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