Skip to content

Add PoolPnLCard for LP position PnL tracking - #673

Open
ellaevans2323-pixel wants to merge 1 commit into
StellarFlow-Network:mainfrom
ellaevans2323-pixel:feat/608-pool-pnl-card
Open

Add PoolPnLCard for LP position PnL tracking#673
ellaevans2323-pixel wants to merge 1 commit into
StellarFlow-Network:mainfrom
ellaevans2323-pixel:feat/608-pool-pnl-card

Conversation

@ellaevans2323-pixel

Copy link
Copy Markdown

Summary

  • Adds PoolPnLCard, a component summarizing realized/unrealized profit & loss for a liquidity provider's active pool positions.
  • Computes initial deposit value vs. current redeemable value per position.
  • Decomposes total PnL into yield earned via collected trading fees vs. raw pool-share asset valuation shifts (e.g. impermanent loss).
  • Renders color-coded PnL badges (percentage + USD) per position, plus an aggregate portfolio summary.

Closes #608

Test plan

  • npx eslint src/components/pools/PoolPnLCard.tsx passes with no warnings/errors
  • npx tsc --noEmit shows no new type errors introduced by this file
  • Manual visual check by rendering <PoolPnLCard /> (uses built-in demo data when no positions prop is supplied)

Displays realized/unrealized profit and loss for active liquidity
pool positions, comparing initial deposit value against current
redeemable value. Decomposes total PnL into yield earned via
collected trading fees versus raw pool-share asset valuation shifts,
and surfaces color-coded PnL badges (percentage and USD) per
position plus an aggregate portfolio summary.

Closes StellarFlow-Network#608
@drips-wave

drips-wave Bot commented Aug 1, 2026

Copy link
Copy Markdown

@ellaevans2323-pixel 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

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.

📉 Profit-Loss | Realized & Unrealized PnL Calculator for LP Positions

1 participant