Skip to content

Commit

Permalink
fix bouncer test (#4210)
Browse files Browse the repository at this point in the history
  • Loading branch information
dandanlen authored Nov 7, 2023
1 parent d7659ac commit 1e42574
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bouncer/shared/lp_api_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,8 @@ async function testRangeOrder() {
let matchUpdate = false;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
updateRangeOrder.forEach((order: any) => {
if (
order.size_change.increase !== null &&
order.size_change.increase.liquidity > 0 &&
order.liquidity_total > 0
) {
const liquidity = order.size_change.increase?.liquidity ?? 0;
if (liquidity > 0 && order.liquidity_total > 0) {
matchUpdate = true;
}
});
Expand Down

0 comments on commit 1e42574

Please sign in to comment.