Skip to content

Commit 0c8d469

Browse files
committed
fix compilation error
1 parent 7b2c90e commit 0c8d469

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/autopilot/src/domain/fee/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ impl ProtocolFees {
184184
factor,
185185
max_volume_factor,
186186
quote: Quote {
187-
sell_amount: quote.sell_amount.into(),
188-
buy_amount: quote.buy_amount.into(),
189-
fee: quote.fee.into(),
187+
sell_amount: quote.sell_amount.0.into_alloy(),
188+
buy_amount: quote.buy_amount.0.into_alloy(),
189+
fee: quote.fee.0.into_alloy(),
190190
solver: quote.solver,
191191
},
192192
}

crates/autopilot/src/infra/persistence/dto/fee_policy.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ pub fn try_into_domain(
8484
quote: {
8585
let quote = quote.ok_or(Error::MissingQuote)?;
8686
domain::fee::Quote {
87-
sell_amount: quote.sell_amount.into(),
88-
buy_amount: quote.buy_amount.into(),
89-
fee: quote.fee.into(),
87+
sell_amount: quote.sell_amount.0.into_alloy(),
88+
buy_amount: quote.buy_amount.0.into_alloy(),
89+
fee: quote.fee.0.into_alloy(),
9090
solver: quote.solver,
9191
}
9292
},

0 commit comments

Comments
 (0)