Skip to content

Commit

Permalink
liquidator: do not panic if token or perp rebalancing fails (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnyser authored Apr 1, 2024
1 parent e3a7ed9 commit 0b7e62e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/liquidator/src/rebalance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ impl Rebalancer {
)
}

rebalance_perps_res.expect("rebalancing perps failed");
rebalance_tokens_res.expect("rebalancing tokens failed");
rebalance_perps_res?;
rebalance_tokens_res?;
Ok(())
}

Expand Down

0 comments on commit 0b7e62e

Please sign in to comment.