Skip to content

Commit

Permalink
make the members public
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed Sep 16, 2024
1 parent 3f265ce commit d60fead
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/quoting/oracle_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ use num_traits::ToPrimitive;

#[derive(Clone, Copy)]
pub struct OraclePoolState {
base_pool_state: BasePoolState,
last_snapshot_time: u64,
pub base_pool_state: BasePoolState,
pub last_snapshot_time: u64,
}

#[derive(Default, Clone, Copy)]
pub struct OraclePoolResources {
base_pool_resources: BasePoolResources,
snapshot_updated: bool,
pub base_pool_resources: BasePoolResources,
pub snapshot_updated: bool,
}

impl Add for OraclePoolResources {
Expand Down
20 changes: 10 additions & 10 deletions src/quoting/twamm_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ use num_traits::ToPrimitive;

#[derive(Clone, Copy)]
pub struct TwammPoolState {
base_pool_state: BasePoolState,
token0_sale_rate: u128,
token1_sale_rate: u128,
last_execution_time: u64,
pub base_pool_state: BasePoolState,
pub token0_sale_rate: u128,
pub token1_sale_rate: u128,
pub last_execution_time: u64,
}

#[derive(Clone, Copy, Default)]
pub struct TwammPoolResources {
base_pool_resources: BasePoolResources,
virtual_order_seconds_executed: u32,
virtual_order_delta_times_crossed: u32,
pub base_pool_resources: BasePoolResources,
pub virtual_order_seconds_executed: u32,
pub virtual_order_delta_times_crossed: u32,
}

impl Add for TwammPoolResources {
Expand All @@ -43,9 +43,9 @@ impl Add for TwammPoolResources {

#[derive(Clone)]
pub struct TwammSaleRateDelta {
time: u64,
sale_rate_delta0: u128,
sale_rate_delta1: u128,
pub time: u64,
pub sale_rate_delta0: u128,
pub sale_rate_delta1: u128,
}

pub struct TwammPool {
Expand Down

0 comments on commit d60fead

Please sign in to comment.