这是indexloc提供的服务,不要输入任何密码
Skip to content

Gateway lp - Remove liquidity always remove 100% of the liquidity from position in Solana #7840

@rapcmia

Description

@rapcmia

Describe the bug

When testing solana endpoints specifically in Meteora/CLMM, the POST /connectors/meteora/clmm/remove-liquidity works as expected when we set the liqudiityPCT to preferred value e.g 30 for 30% of the liquidity. However crosschecking on hummingbot + gateway, the command gateway lp meteora/clmm remove-liquidity would always use 100% and remove all liquidity then it fails to close the position (since it require tiny bit of liquidity to be successfully closed) ❌

Image - https://solscan.io/tx/32TyLkQhcj9mGBQBGQCKP6PLpNjXFqnaP4qCzJyFckgEW6jUSX2c5n7FytMQrHknR1tZUWiGzzsrSvKBUgh1bxtf

Steps to reproduce

  1. Setup hummingbot + gateway
  2. Add solana wallet
    • Tested with helius free ver for rpcProvider
  3. Use gateway lp meteora/clmm add-liquidity
  4. Use gateway lp meteora/clmm remove-liquidity
    • When prompted percentage to remove.. use anything other that 100%
  5. Once successful, check the txn and meteora exchange

Release version

2.10.0 and dev-2.11.0

Type of installation

Source

Attach required files

logs_gateway_app.log.2025-11-04.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggatewayRelated to Gateway module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions