pub trait DexStrategy: Send + Sync {
// Required method
fn execute_swap<'life0, 'async_trait>(
&'life0 self,
params: SwapParams,
) -> Pin<Box<dyn Future<Output = Result<SwapResult, RelayerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Trait defining DEX swap functionality
Required Methods§
Sourcefn execute_swap<'life0, 'async_trait>(
&'life0 self,
params: SwapParams,
) -> Pin<Box<dyn Future<Output = Result<SwapResult, RelayerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_swap<'life0, 'async_trait>(
&'life0 self,
params: SwapParams,
) -> Pin<Box<dyn Future<Output = Result<SwapResult, RelayerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute a token swap operation