Skip to content

Commit

Permalink
Add tracing logs for fee policy creation (#2290)
Browse files Browse the repository at this point in the history
# Description
Adding some trace logs for fee policies creation.

There are some orders for which I can't figure out reliably why they are
considered in-market without these logs.
  • Loading branch information
sunce86 authored Jan 16, 2024
1 parent db9b0de commit 69a9683
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/autopilot/src/domain/fee/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ impl ProtocolFee {
return vec![];
};

tracing::debug!(?order.metadata.uid, ?self.policy, ?order.data.sell_amount, ?order.data.buy_amount, ?quote, "checking if order is outside market price");
if boundary::is_order_outside_market_price(
&order.data.sell_amount,
&order.data.buy_amount,
Expand Down

0 comments on commit 69a9683

Please sign in to comment.