feat: The execution structs should receiver tycho_core Chain
and convert it later to an execution model Chain --- don't change below this line --- ENG-4088 Took 8 minutes
This commit is contained in:
@@ -21,10 +21,11 @@ pub struct EVMStrategyEncoderRegistry {
|
||||
|
||||
impl StrategyEncoderRegistry for EVMStrategyEncoderRegistry {
|
||||
fn new(
|
||||
chain: Chain,
|
||||
chain: tycho_core::dto::Chain,
|
||||
executors_file_path: Option<&str>,
|
||||
signer_pk: Option<String>,
|
||||
) -> Result<Self, EncodingError> {
|
||||
let chain = Chain::from(chain);
|
||||
let swap_encoder_registry = SwapEncoderRegistry::new(executors_file_path, chain.clone())?;
|
||||
|
||||
let mut strategies: HashMap<String, Box<dyn StrategyEncoder>> = HashMap::new();
|
||||
|
||||
Reference in New Issue
Block a user