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

feat(perp): Add a leverage for each vpool as a parameter #781

Closed
matthiasmatt opened this issue Aug 2, 2022 · 0 comments · Fixed by #793
Closed

feat(perp): Add a leverage for each vpool as a parameter #781

matthiasmatt opened this issue Aug 2, 2022 · 0 comments · Fixed by #793

Comments

@matthiasmatt
Copy link
Contributor

Currently we have a maintenance margin ratio parameter that exists for every vpool and #776 is ensuring that we open positions with enough margin.

We probably want to also add a max leverage per vpool to limit the amount of leverage taken when we open position.

For example a pool can have a maximum leverage of 10, with a maintenance margin ratio of 6.5%. If someone open a position with 10 leverage, they have a margin ratio of 10%, and have 4% of wiggle room before getting liquidated.

This would avoid users opening positions very close to the liquidation zone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant