-
Notifications
You must be signed in to change notification settings - Fork 54
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
docs: add leverage lp module specs #545
Conversation
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.
I was wondering if we can add the equations/mechanism for leverage open, close. for example: similar to how in amm x*y = k should be maintained. Is it possible here ?
@amityadav0 Good call out. The LeverageLP module operates in conjunction with two other modules: StableStake and AMM.
The crucial equation that helps maintain balance is: We ensure that Pool Health does not fall below the Safety Factor threshold, which is set at 10%. As more leveraged liquidity is added to the pool, the Pool Health decreases, putting the underlying liquidity pool at risk of having the leveraged position liquidated. Another important concept is the liquidation mechanism. If the position health falls below the safety factor (10%), the leverage LP position is liquidated. Let me update the documentation in order to include those concepts. |
926e68a
to
e5739fa
Compare
e5739fa
to
bc851ac
Compare
@amityadav0 you can find the new section |
thanks! |
Leveragelp and Masterchef docs are coming in #544 and I recommend to close this PR or update the base to |
duplicated #544 |
Description
What has Changed?
Leverage LP module specifications
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.