feat: Simplify StrategyEncoders and RouterEncoder
No more SingleSwapStrategyEncoder or SequentialStrategyEncoder No more batch routing (so no need for batch permits as well). If multiple solutions are found, return multiple Transactions --- don't change below this line --- ENG-4076 <#DTT#>
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
use anyhow::Error;
|
||||
|
||||
use crate::encoding::models::{ActionType, Solution};
|
||||
use crate::encoding::models::Solution;
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub trait StrategyEncoder {
|
||||
fn encode_strategy(&self, to_encode: Solution) -> Result<Vec<u8>, Error>;
|
||||
|
||||
fn action_type(&self, exact_out: bool) -> ActionType;
|
||||
fn selector(&self, exact_out: bool) -> &str;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user