-
Notifications
You must be signed in to change notification settings - Fork 18
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] maker-minor funding allocation during socialization #64
Conversation
5013697
to
dd5800e
Compare
@@ -206,11 +206,11 @@ library VersionLib { | |||
|
|||
// Redirect net portion of minor's side to maker | |||
if (fromPosition.long.gt(fromPosition.short)) { | |||
fundingValues.fundingMaker = fundingValues.fundingShort.mul(Fixed6Lib.from(fromPosition.skew().abs())); | |||
fundingValues.fundingMaker = fundingValues.fundingShort.mul(Fixed6Lib.from(fromPosition.socializedSkew())); |
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.
This doesn't need an abs
anymore?
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.
It's already abs
inside the function. This is probably not the ideal name for the method, but I did include a dev comment on what it's doing.
7e50591
to
54c7a75
Compare
538e423
to
1c4d142
Compare
[Payoff] Integration Test Code Coverage ReportCoverage after merging britz-all-position-tests into main will be
Coverage Report
|
[Extensions] Unit Test Coverage ReportCoverage after merging britz-all-position-tests into main will be
Coverage Report
|
[Payoff] Unit Test Code Coverage ReportCoverage after merging britz-all-position-tests into main will be
Coverage Report
|
[Oracle] Unit Test Coverage ReportCoverage after merging britz-all-position-tests into main will be
Coverage Report
|
[Oracle] Integration Test Coverage ReportCoverage after merging britz-all-position-tests into main will be
Coverage Report
|
[Core] Integration Test Coverage ReportCoverage after merging britz-all-position-tests into main will be
Coverage Report
|
[Vault] Integration Test Coverage ReportCoverage after merging britz-all-position-tests into main will be
Coverage Report
|
[Core] Unit Test Coverage ReportCoverage after merging britz-all-position-tests into main will be
Coverage Report
|
[Extensions] Integration Test Coverage ReportCoverage after merging britz-all-position-tests into main will be
Coverage Report
|
Fixes broken allocation of funding between markers and the minor side of the market when the market is in socialization.