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: add a function to check if a position is liquidable. #7

Open
zarboq opened this issue Sep 24, 2023 · 0 comments
Open

feat: add a function to check if a position is liquidable. #7

zarboq opened this issue Sep 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@zarboq
Copy link
Collaborator

zarboq commented Sep 24, 2023

Feature Request

Describe the Feature Request

We need a way to check whether we should liquidate a position or not.

Describe Preferred Solution

We could do a function that take in input a Position struct and current token prices of the market. Then we check in the function if the position is in a state in which it can be liquidated.

Additional Context

Insightful code to check for position liquidation can probably be found in GMX solidity code or here

@zarboq zarboq added the enhancement New feature or request label Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant