feat: Add clone to EVMTychoEncoder

--- don't change below this line ---
ENG-4088 Took 4 minutes

Took 8 seconds

Took 48 seconds
This commit is contained in:
Diana Carvalho
2025-02-06 11:49:11 +00:00
parent 4680a4be24
commit b333d60d69
6 changed files with 32 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ pub trait StrategyEncoder {
#[allow(clippy::borrowed_box)]
fn get_swap_encoder(&self, protocol_system: &str) -> Option<&Box<dyn SwapEncoder>>;
fn clone_box(&self) -> Box<dyn StrategyEncoder>;
}
/// Contains the supported strategies to encode a solution, and chooses the best strategy to encode