-
Notifications
You must be signed in to change notification settings - Fork 52
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
fix(perpetual): estimated pnl formula fix #842
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #842 +/- ##
==========================================
- Coverage 42.95% 42.94% -0.01%
==========================================
Files 682 682
Lines 23483 23486 +3
==========================================
+ Hits 10086 10087 +1
- Misses 12185 12186 +1
- Partials 1212 1213 +1 |
We also have PnL calc here, should this be updated too ? |
I added a new test case to test PnL value for existing long position with same parameters as the one used for the open estimation query, and the PnL value is off, you can see the pnl value here 6f7c289#diff-900fe1ffcaee5eacf8f1ed5ddf3d46cfe3ae39e2af85450636aa29d2f7026c16R807 that means something’s wrong with the cc @amityadav0 @Wgil |
@amityadav0 please review changes in 50b6d22 as it fixes the |
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.
LGTM
Description
What has Changed?
Fix estimated pnl formula
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking changeDeployment Notes
Are there any specific considerations to take into account when deploying these changes? This may include new dependencies, scripts that need to be executed, or any aspects that can only be evaluated in a deployed environment.
Screenshots and Videos
Please provide any relevant before and after screenshots by uploading them here. Additionally, demo videos can be highly beneficial in demonstrating the process.