Skip to content

Commit

Permalink
disable liquidation
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy04 committed May 28, 2024
1 parent 0d5d594 commit dd503dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions protocol/x/clob/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ func PrepareCheckState(
}

// 6. Get all potentially liquidatable subaccount IDs and attempt to liquidate them.
liquidatableSubaccountIds := keeper.DaemonLiquidationInfo.GetLiquidatableSubaccountIds()
_, err := keeper.LiquidateSubaccountsAgainstOrderbook(ctx, liquidatableSubaccountIds)
if err != nil {
panic(err)
}
// liquidatableSubaccountIds := keeper.DaemonLiquidationInfo.GetLiquidatableSubaccountIds()
// _, err := keeper.LiquidateSubaccountsAgainstOrderbook(ctx, liquidatableSubaccountIds)
// if err != nil {
// panic(err)
// }

// Add subaccounts with open positions in final settlement markets to the slice of subaccounts/perps
// to be deleveraged.
Expand Down

0 comments on commit dd503dc

Please sign in to comment.