Liq: explain re-fetching reason

This commit is contained in:
Christian Kamm 2022-07-18 18:16:58 +02:00
parent 348d8cfcd8
commit ca8b900913
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ pub fn process_account(
);
// Fetch a fresh account and re-compute
// This is -- unfortunately -- needed because the websocket streams seem to not
// be great at providing timely updates to the account data.
let account = account_fetcher.fetch_fresh::<MangoAccount>(pubkey)?;
let maint_health = new_health_cache_(&mango_client.context, account_fetcher, &account)
.expect("always ok")