Liquidation

As from FHE view, all the position is confidential/hidden from public.

  • While all other txns can only change the a position when they are initiated by position owner, liquidation is initiated by a liquidator. Hence, before and after the liquidation process, the liquidator must be able to access to some of position’s info.

  • IsLiquidatable is a function/field that return a decrypted boolean that can be updated after a new oracle’s record. This function/field help liquidator to know which position can be liquidated.

  • An EstimatedDebtAmount is also public

    • It will be random if IsLiquidatable==false

    • It will be a random number between t if IsLiquidatable==true

Last updated