Liq: trigger a full health check after the snapshot

This commit is contained in:
Christian Kamm 2022-07-14 13:35:45 +02:00
parent 4e87c07a9a
commit 50f9eb6913
1 changed files with 10 additions and 1 deletions

View File

@ -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);
}
},
}
}