mrgnlabs / marginfi-v2

Apache License 2.0
139 stars 59 forks source link

Regarding the liquidation function #175

Open sulingxiao opened 5 months ago

sulingxiao commented 5 months ago

Regarding the liquidation function, according to the current settings, if the liquidator repays 97.5U of assets, he will receive a reward of 100U, and at the same time, the debt of the liquidated person will be repaid 95U. However, the prerequisite for the success of this liquidation is that the health of the liquidated person has improved. That is to say, if the liquidated person mortgages 100U and borrows 80U of an asset, and then the price of the asset rises to 97U, at this time, liquidation is impossible. If it is executed, we can only wait for the price fluctuation to decrease or the debt assets to exceed the mortgage assets. How do you deal with this situation?

Looking forward to your reply