fix: After rebase fixes

Took 6 minutes
This commit is contained in:
Diana Carvalho
2025-06-23 14:34:58 +01:00
parent e09789f347
commit 1d263f8b4c
4 changed files with 29 additions and 29 deletions

View File

@@ -92,9 +92,9 @@ impl StrategyEncoder for SingleSwapStrategyEncoder {
let (mut unwrap, mut wrap) = (false, false);
if let Some(action) = &solution.native_action {
match action {
&NativeAction::Wrap => wrap = true,
&NativeAction::Unwrap => unwrap = true,
match *action {
NativeAction::Wrap => wrap = true,
NativeAction::Unwrap => unwrap = true,
}
}
let protocol = &grouped_swap.protocol_system;
@@ -255,7 +255,7 @@ impl StrategyEncoder for SequentialSwapStrategyEncoder {
let transfer = self
.transfer_optimization
.get_transfers(
&grouped_swap,
grouped_swap,
&solution.given_token,
wrap,
in_between_swap_optimization_allowed,
@@ -410,9 +410,9 @@ impl StrategyEncoder for SplitSwapStrategyEncoder {
let (mut unwrap, mut wrap) = (false, false);
if let Some(action) = &solution.native_action {
match action {
&NativeAction::Wrap => wrap = true,
&NativeAction::Unwrap => unwrap = true,
match *action {
NativeAction::Wrap => wrap = true,
NativeAction::Unwrap => unwrap = true,
}
}