Merge pull request #284 from blockworks-foundation/pan/liquidator-improvements
Liquidator bug fixes
This commit is contained in:
commit
e6c6820f1f
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue