diff --git a/src/encoding/evm/router_encoder.rs b/src/encoding/evm/router_encoder.rs index a564e3e..14075c1 100644 --- a/src/encoding/evm/router_encoder.rs +++ b/src/encoding/evm/router_encoder.rs @@ -34,7 +34,7 @@ impl RouterEncoder for EVMRo let mut transactions: Vec = Vec::new(); for solution in solutions.iter() { let exact_out = solution.exact_out; - let straight_to_pool = solution.straight_to_pool; + let straight_to_pool = solution.direct_execution; let strategy = self .strategy_selector diff --git a/src/encoding/evm/strategy_encoder/encoder.rs b/src/encoding/evm/strategy_encoder/encoder.rs index a04cddb..09525a2 100644 --- a/src/encoding/evm/strategy_encoder/encoder.rs +++ b/src/encoding/evm/strategy_encoder/encoder.rs @@ -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, diff --git a/src/encoding/evm/strategy_encoder/selector.rs b/src/encoding/evm/strategy_encoder/selector.rs index 74cbabd..3ac619d 100644 --- a/src/encoding/evm/strategy_encoder/selector.rs +++ b/src/encoding/evm/strategy_encoder/selector.rs @@ -8,7 +8,7 @@ pub struct EVMStrategySelector; impl StrategySelector for EVMStrategySelector { fn select_strategy(&self, solution: &Solution) -> Box { - if solution.straight_to_pool { + if solution.direct_execution { Box::new(ExecutorStrategyEncoder {}) } else { Box::new(SplitSwapStrategyEncoder {}) diff --git a/src/encoding/models.rs b/src/encoding/models.rs index a31ecaa..a0daeb0 100644 --- a/src/encoding/models.rs +++ b/src/encoding/models.rs @@ -23,10 +23,10 @@ pub struct Solution { pub receiver: Bytes, /// List of swaps to fulfill the solution. pub swaps: Vec, - /// If set to true, the solution will be encoded to be sent directly to the SwapExecutor and + /// If set to true, the solution will be encoded to be sent directly to the Executor and /// skip the router. The user is responsible for managing necessary approvals and token /// transfers. - pub straight_to_pool: bool, + pub direct_execution: bool, // if not set, then the Propeller Router will be used pub router_address: Option, // if set, it will be applied to check_amount