From a1f9c84d43d8b94390407f6b864b4e66ce0fe39f Mon Sep 17 00:00:00 2001 From: sunce86 Date: Mon, 12 Aug 2024 22:09:19 +0200 Subject: [PATCH] fix comments --- crates/autopilot/src/domain/settlement/solution/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/autopilot/src/domain/settlement/solution/mod.rs b/crates/autopilot/src/domain/settlement/solution/mod.rs index 1740886530..f66a35f108 100644 --- a/crates/autopilot/src/domain/settlement/solution/mod.rs +++ b/crates/autopilot/src/domain/settlement/solution/mod.rs @@ -208,13 +208,14 @@ pub mod error { } } -/// Fee per trade in a solution. Contains breakdown of protocol fees and total -/// fee. +/// Fee per trade in a solution. These fees are taken for the execution of the +/// trade. #[derive(Debug, Clone)] pub struct ExecutedFee { /// Gas fee spent to bring the order onchain pub network: eth::SellTokenAmount, - /// Breakdown of protocol fees. + /// Breakdown of protocol fees. Executed protocol fees are in the same order + /// as policies are defined for an order. pub protocol: Vec<(eth::SellTokenAmount, fee::Policy)>, }