Skip to content
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

Support multi-collateral in getNormalizedMargin functions + refactor #118

Merged
merged 11 commits into from
Sep 29, 2023

Conversation

atvanguard
Copy link

@atvanguard atvanguard commented Sep 26, 2023

Corresponding contracts PR

@atvanguard atvanguard requested a review from lumos42 September 26, 2023 08:06
@atvanguard atvanguard mentioned this pull request Sep 26, 2023
precompile/contracts/bibliophile/clearing_house.go Outdated Show resolved Hide resolved
precompile/contracts/bibliophile/client.go Outdated Show resolved Hide resolved
@atvanguard atvanguard merged commit bd2a39a into main Sep 29, 2023
@atvanguard atvanguard deleted the normalized-margin branch September 29, 2023 12:16
atvanguard added a commit that referenced this pull request Sep 30, 2023
…118)

* getNormalisedMargin

* refactor GetAvailableMargin

* fix tests

* update slot

* rename vars

* cleanup comments

* baseSlot for collateral idx*3

* userState/hubbleState in margin_math

* hu.Position

* ticks.getQuote

* misc changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants