From 4e88b8bf1b0276561bc46877552a21a51f1bb0ef Mon Sep 17 00:00:00 2001 From: Binye Barwe Date: Sun, 31 Dec 2023 17:21:42 +0100 Subject: [PATCH] fix lint --- programs/openbook-v2/src/instructions/place_take_order.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/programs/openbook-v2/src/instructions/place_take_order.rs b/programs/openbook-v2/src/instructions/place_take_order.rs index 9121db3e1..4878c52f8 100644 --- a/programs/openbook-v2/src/instructions/place_take_order.rs +++ b/programs/openbook-v2/src/instructions/place_take_order.rs @@ -1,5 +1,4 @@ use anchor_lang::prelude::*; -use num::complex::ComplexFloat; use crate::accounts_ix::*; use crate::accounts_zerocopy::AccountInfoRef; @@ -66,13 +65,15 @@ pub fn place_take_order<'info>( let (deposit_amount, withdraw_amount) = match side { Side::Bid => { - let total_quote_including_fees = total_quote_taken_native + taker_fees - referrer_amount; + let total_quote_including_fees = + total_quote_taken_native + taker_fees - referrer_amount; market.base_deposit_total -= total_base_taken_native; market.quote_deposit_total += total_quote_including_fees; (total_quote_including_fees, total_base_taken_native) } Side::Ask => { - let total_quote_discounting_fees = total_quote_taken_native - taker_fees + referrer_amount; + let total_quote_discounting_fees = + total_quote_taken_native - taker_fees + referrer_amount; market.base_deposit_total += total_base_taken_native; market.quote_deposit_total -= total_quote_discounting_fees; (total_base_taken_native, total_quote_discounting_fees)