chore: rename straight_to_pool to direct_execution

This commit is contained in:
royvardhan
2025-01-30 21:06:30 +05:30
parent 8cb95f0950
commit 9c35da0760
4 changed files with 5 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ mod tests {
// The receiver was generated with `makeAddr("bob") using forge`
receiver: Bytes::from_str("0x1d96f2f6bef1202e4ce1ff6dad0c2cb002861d3e").unwrap(),
swaps: vec![swap],
straight_to_pool: true,
direct_execution: true,
router_address: Some(Bytes::zero(20)),
slippage: None,
native_action: None,

View File

@@ -8,7 +8,7 @@ pub struct EVMStrategySelector;
impl StrategySelector for EVMStrategySelector {
fn select_strategy(&self, solution: &Solution) -> Box<dyn StrategyEncoder> {
if solution.straight_to_pool {
if solution.direct_execution {
Box::new(ExecutorStrategyEncoder {})
} else {
Box::new(SplitSwapStrategyEncoder {})