feat: resolve pr comments

This commit is contained in:
royvardhan
2025-01-30 18:07:07 +05:30
parent a50c31203b
commit 1b8bf56c75
5 changed files with 18 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
use crate::encoding::{
evm::strategy_encoder::encoder::{ExecutorEncoder, SplitSwapStrategyEncoder},
evm::strategy_encoder::encoder::{ExecutorStrategyEncoder, SplitSwapStrategyEncoder},
models::Solution,
strategy_encoder::{StrategyEncoder, StrategySelector},
};
@@ -9,7 +9,7 @@ pub struct EVMStrategySelector;
impl StrategySelector for EVMStrategySelector {
fn select_strategy(&self, solution: &Solution) -> Box<dyn StrategyEncoder> {
if solution.straight_to_pool {
Box::new(ExecutorEncoder {})
Box::new(ExecutorStrategyEncoder {})
} else {
Box::new(SplitSwapStrategyEncoder {})
}