Skip to content

Commit

Permalink
default dynamic slippage to avoid collision in jupiter-core-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrowana committed Sep 9, 2024
1 parent 40af958 commit e5b0e86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn default_amplification_ratio() -> Decimal {
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]

pub struct Default {
pub struct DefaultDynamicSlippage {
#[serde(default = "default_amplification_ratio")]
pub amplification_ratio: Decimal,
pub range: Range,
Expand All @@ -48,12 +48,12 @@ pub struct Default {
#[serde(rename_all = "camelCase")]
struct DynamicSlippageConfigOriginal {
categories: Vec<CategoryOriginal>,
default: Default,
default: DefaultDynamicSlippage,
}

pub struct DynamicSlippageConfig {
pub categories: Vec<Category>,
pub default: Default,
pub default: DefaultDynamicSlippage,
}

fn deserialize_dynamic_slippage_config(
Expand Down

0 comments on commit e5b0e86

Please sign in to comment.