Skip to content

feat(dex): add full liquidity pool management UI#516

Merged
Nanle-code merged 1 commit into
Nanle-code:masterfrom
brite-side0:feat/issue-344-liquidity-pool-management
Jun 30, 2026
Merged

feat(dex): add full liquidity pool management UI#516
Nanle-code merged 1 commit into
Nanle-code:masterfrom
brite-side0:feat/issue-344-liquidity-pool-management

Conversation

@brite-side0

Copy link
Copy Markdown
Contributor

Summary

Closes #344

  • Pool Discovery: Search pools by asset pair; pool list with reserves, share count, and fee tier
  • Performance Metrics: APY estimates, risk scoring (Low/Medium/High), per-pool trade history, multi-pool comparison table
  • Deposit/Withdrawal UI: Tabbed Manage panel with deposit (max amounts + price bounds) and withdrawal (shares + min amounts) forms — parameters copy to clipboard for use in Transaction Builder
  • Fee Management: Fee tier shown on pool cards, detail panel, and manage form (in bps and %)
  • IL Calculator: Integrated impermanent loss calculator with IL-vs-price-ratio chart, pool-context-aware asset labels

Changes

  • src/components/dashboard/LiquidityPools.tsx — full rewrite with 4-tab layout (Discover / Performance / Manage / IL Calculator), fetchPoolTrades integration, and defiAnalytics helpers for APY/risk

Test plan

  • Search XLM/USDC pair → pools appear in Discover tab
  • Select a pool → reserves, fee, price shown in detail panel
  • Switch to Performance tab → APY, risk, trade history, comparison table render
  • Switch to Manage tab (without wallet) → wallet prompt shown
  • Switch to IL Calculator tab → enter prices → IL %, chart render
  • sessionStorage dex:poolPair jump-to-pool still works from other screens

🤖 Generated with Claude Code

- Add tabbed interface: Discover, Performance, Manage, IL Calculator
- Performance tab: APY estimates, risk scores, per-pool trade history, and multi-pool comparison table using defiAnalytics helpers
- Manage tab: deposit/withdrawal forms with price bounds, share inputs, and copy-to-clipboard parameter output for use in Transaction Builder
- IL Calculator: integrated impermanent loss calculator with chart (previously separate ImpermanentLossCalc.tsx) — now pool-context-aware
- Fee management: fee tier displayed on pool cards, detail panel, and manage tab
- Load pool trades via fetchPoolTrades when a pool is selected

Closes Nanle-code#344

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

@brite-side0 is attempting to deploy a commit to the nanle-code's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@brite-side0 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Nanle-code Nanle-code merged commit da6282b into Nanle-code:master Jun 30, 2026
1 check failed
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.

Add Stellar DEX liquidity pool management

2 participants