Skip to content

Commit

Permalink
feat: convert all input numbers to Nat
Browse files Browse the repository at this point in the history
  • Loading branch information
EmperorOrokuSaki committed Aug 6, 2024
1 parent 51b0534 commit 07b0141
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ir_manager/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pub type DerivationPath = Vec<Vec<u8>>;

#[derive(CandidType)]
pub struct StrategyInput {
pub upfront_fee_period: u64,
pub target_min: u64,
pub upfront_fee_period: Nat,
pub target_min: Nat
}

#[derive(CandidType)]
Expand All @@ -44,12 +44,18 @@ impl From<StrategyData> for StrategyQueryData {
}
}

#[derive(CandidType)]
pub struct MarketInput {
pub manager: String,
pub multi_trove_getter: String,
pub collateral_index: Nat,
}

#[derive(CandidType)]
pub struct InitArgs {
pub rpc_principal: Principal,
pub rpc_url: String,
pub managers: Vec<String>,
pub multi_trove_getters: Vec<String>,
pub markets: Vec<MarketInput>,
pub collateral_registry: String,
pub strategies: Vec<StrategyInput>,
}
Expand Down

0 comments on commit 07b0141

Please sign in to comment.