Merge pull request #284 from blockworks-foundation/pan/liquidator-improvements

Liquidator bug fixes
This commit is contained in:
riordanp 2022-11-04 17:12:29 +00:00 committed by GitHub
commit e6c6820f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ pub fn new(
n_banks: active_token_len,
n_perps: active_perp_len,
begin_perp: active_token_len * 2,
begin_serum3: active_token_len * 2 + active_perp_len,
begin_serum3: active_token_len * 2 + active_perp_len * 2,
};
mango_v4::state::new_health_cache(&account.borrow(), &retriever).context("make health cache")
}

View File

@ -197,7 +197,7 @@ async fn main() -> anyhow::Result<()> {
let mut metric_websocket_queue_len = metrics.register_u64("websocket_queue_length".into());
let mut metric_snapshot_queue_len = metrics.register_u64("snapshot_queue_length".into());
let mut metric_mango_accounts = metrics.register_u64("mango_accouns".into());
let mut metric_mango_accounts = metrics.register_u64("mango_accounts".into());
//
// mango client setup