From 50f9eb691364fc6ae8dc2a1f75953247e032b9c5 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Thu, 14 Jul 2022 13:35:45 +0200 Subject: [PATCH] Liq: trigger a full health check after the snapshot --- liquidator/src/main.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/liquidator/src/main.rs b/liquidator/src/main.rs index cb7189189..7992b9de7 100644 --- a/liquidator/src/main.rs +++ b/liquidator/src/main.rs @@ -263,7 +263,16 @@ async fn main() -> anyhow::Result<()> { chain_data.update_from_snapshot(message); one_snapshot_done = true; - // TODO: trigger a full health check + // trigger a full health check + if let Err(err) = liquidate::process_accounts( + &mango_client, + &chain_data, + mango_accounts.iter(), + &mint_infos, + &perp_markets, + ) { + warn!("could not process accounts: {:?}", err); + } }, } }