As an example of how liquidation logic might work, we will explore the MIR-UST leveraged yield farming strategy. In this case, a user’s asset is in the form of staked MIR-UST LP tokens. If the value of these LP tokens falls below the liquidation threshold, defined as a percentage of the user’s debt, anyone can close the position. The assets are removed from the liquidity pool, and the UST portion is immediately used to pay back the debt. An appropriate amount of MIR is sold for UST to cover any outstanding debt. Among the remaining assets, a portion is awarded to the liquidator, and the rest is refunded to the user.