Merge branch 'refs/heads/main' into encoding/dc/ENG-4081-split-swap-strategy
# Conflicts: # src/encoding/evm/router_encoder.rs # src/encoding/evm/strategy_encoder/encoder.rs # src/encoding/evm/strategy_encoder/selector.rs # src/encoding/strategy_encoder.rs Took 2 minutes
This commit is contained in:
@@ -4,11 +4,8 @@ use crate::encoding::{errors::EncodingError, models::Solution};
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub trait StrategyEncoder {
|
||||
fn encode_strategy(
|
||||
&self,
|
||||
to_encode: Solution,
|
||||
router_address: Bytes,
|
||||
) -> Result<Vec<u8>, EncodingError>;
|
||||
fn encode_strategy(&self, to_encode: Solution,router_address: Bytes,) -> Result<(Vec<u8>, Bytes), EncodingError>;
|
||||
fn selector(&self, exact_out: bool) -> &str;
|
||||
}
|
||||
|
||||
pub trait StrategySelector {
|
||||
|
||||
Reference in New Issue
Block a user