Skip to content

Commit

Permalink
no penalty fee needed
Browse files Browse the repository at this point in the history
  • Loading branch information
binyebarwe committed Jul 14, 2023
1 parent 5bbca13 commit 57996d6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/client/src/jup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,6 @@ fn iterate_book(
total_quote_taken_native -= taker_fees;
}
};
} else if order.needs_penalty_fee() {
total_base_taken_native = 0;
total_quote_taken_native = 0;
taker_fees = market.fee_penalty;
}

Ok(Amounts {
Expand Down

0 comments on commit 57996d6

Please sign in to comment.