-
Notifications
You must be signed in to change notification settings - Fork 170
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
feat: simplify special asset pairs calculations #2315
Conversation
…collateral when under limit
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2315 +/- ##
==========================================
- Coverage 75.38% 70.28% -5.11%
==========================================
Files 100 170 +70
Lines 8025 12659 +4634
==========================================
+ Hits 6050 8897 +2847
- Misses 1589 3158 +1569
- Partials 386 604 +218
|
Seeing some wierd go mod errors on builds and tests - started appearing 3 commits ago at |
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.
Could you point to the place where was the bug
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
Note: The original bug was in the logic for pairing normal assets durign max withdrawal, in which the position object was mutated by subtracting borrowed and collateral values from special asset pairs. The amount subtracted was too high, resulting in a This logic no longer exists in the refactor |
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.
approved
No description provided.