-
Notifications
You must be signed in to change notification settings - Fork 105
feat: closed pnl #1966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: closed pnl #1966
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
src/views/tables/FillsTable.tsx
Outdated
| <Output | ||
| type={closedPnl === '--' ? OutputType.Text : OutputType.Fiat} | ||
| value={closedPnl} | ||
| /> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
src/views/tables/FillsTable.tsx
Outdated
| } | ||
|
|
||
| const calculateClosedPnl = (fill: FillTableRow) => { | ||
| const fee = parseFloat(fill.fee ?? '0'); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used MustNumber instead!
Changes
Issue
-https://linear.app/dydx/issue/ENG-1194/finish-closed-pnl-history-frontend
Related Issues (Optional)
Screenshots/Recordings (Optional)