feat: Handle native actions

This commit is contained in:
Diana Carvalho
2025-01-13 17:11:21 +00:00
parent 36fe8f4b76
commit fa462ee9f3
3 changed files with 26 additions and 18 deletions

View File

@@ -8,6 +8,12 @@ pub struct Solution {
pub router_address: Option<Address>,
}
#[derive(Clone)]
pub enum NativeAction {
Wrap,
Unwrap,
}
pub struct Order {
/// True if the order is an exact output order.
pub exact_out: bool,
@@ -30,6 +36,7 @@ pub struct Order {
pub slippage: f64,
pub min_checked_amount: Option<BigUint>,
pub native_action: Option<NativeAction>,
}
#[derive(Clone)]