Skip to content

Commit

Permalink
rename to simply default
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrowana committed Sep 9, 2024
1 parent a3e3eac commit 40af958
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 DefaultAutoSlippage {
pub struct Default {
#[serde(default = "default_amplification_ratio")]
pub amplification_ratio: Decimal,
pub range: Range,
Expand All @@ -48,12 +48,12 @@ pub struct DefaultAutoSlippage {
#[serde(rename_all = "camelCase")]
struct DynamicSlippageConfigOriginal {
categories: Vec<CategoryOriginal>,
default: DefaultAutoSlippage,
default: Default,
}

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

fn deserialize_dynamic_slippage_config(
Expand Down

0 comments on commit 40af958

Please sign in to comment.