Skip to content

Conversation

@pp346
Copy link
Contributor

@pp346 pp346 commented Nov 5, 2025

Changes

  • Adds closed pnl row to fill table

Issue

-https://linear.app/dydx/issue/ENG-1194/finish-closed-pnl-history-frontend

Related Issues (Optional)

Screenshots/Recordings (Optional)

Screenshot 2025-11-05 at 11 53 02 AM Screenshot 2025-11-05 at 12 13 41 PM

@pp346 pp346 requested a review from a team as a code owner November 5, 2025 17:03
@vercel
Copy link

vercel bot commented Nov 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
v4-staging Error Error Nov 6, 2025 2:36pm
v4-testnet Error Error Nov 6, 2025 2:36pm

Comment on lines 267 to 270
<Output
type={closedPnl === '--' ? OutputType.Text : OutputType.Fiat}
value={closedPnl}
/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to show positive/negative color for this cell?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

talked with shrenuj about it and we'll keep it neutral since that's what hyperliquid does

}

const calculateClosedPnl = (fill: FillTableRow) => {
const fee = parseFloat(fill.fee ?? '0');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of parseFloat, you can use maybeBigNumber

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used MustNumber instead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants