You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: