Skip to content

Commit

Permalink
Adjust paraswap max price impact
Browse files Browse the repository at this point in the history
  • Loading branch information
fleupold committed May 16, 2024
1 parent e1e9293 commit 36fff47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/infra/dex/paraswap/dto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ pub struct PriceQuery {

/// The partner name
pub partner: String,

/// The maximum price impact accepted (in percentage, 0-100)
pub max_impact: u8,
}

impl PriceQuery {
Expand All @@ -74,6 +77,7 @@ impl PriceQuery {
exclude_dexs: config.exclude_dexs.clone(),
network: "1".to_owned(),
partner: config.partner.clone(),
max_impact: 100,
})
}
}
Expand Down

0 comments on commit 36fff47

Please sign in to comment.