Skip to content

fix(gateway): add CLMM add/remove liquidity methods, send explicit slippage_pct=0#23

Open
fengtality wants to merge 1 commit into
mainfrom
fix/gateway-swap-clmm
Open

fix(gateway): add CLMM add/remove liquidity methods, send explicit slippage_pct=0#23
fengtality wants to merge 1 commit into
mainfrom
fix/gateway-swap-clmm

Conversation

@fengtality

Copy link
Copy Markdown
Contributor

Summary

  • gateway_clmm: add add_liquidity() and remove_liquidity() — the client had no methods for POST /gateway/clmm/add and POST /gateway/clmm/remove at all.
  • Zero-slippage fix: slippage_pct=0 was dropped as falsy (if slippage_pct / or "1.0") and silently replaced with the 1.0 default in gateway_swap.quote_swap, gateway_swap.execute_swap, and gateway_clmm.open_position; now uses is not None.
  • Bump version to 1.5.4.

Note: feat/market-data-24h-volumes (#pending) also bumps to 1.5.4 — whichever merges second should re-bump to 1.5.5 before publishing.

Test plan

Verified live against hummingbot-api + Gateway on 15888: remove_liquidity() on a bogus position address reaches /gateway/clmm/remove and returns Gateway's real "Position not found" 404; swap quotes with slippage_pct=0 round-trip as "0".

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ko4KsGwUaHjqiRTYon31Li

…ippage_pct=0

- gateway_clmm: add add_liquidity() and remove_liquidity() (POST
  /gateway/clmm/add and /gateway/clmm/remove) which were missing entirely
- gateway_clmm/gateway_swap: slippage_pct=0 was dropped as falsy and
  replaced with the 1.0 default; use `is not None` checks
- bump version to 1.5.4

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ko4KsGwUaHjqiRTYon31Li
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant