From d60feadc8313d5562386ee813e8a80f4af84e5fa Mon Sep 17 00:00:00 2001 From: Moody Salem Date: Sun, 15 Sep 2024 23:52:21 -0400 Subject: [PATCH] make the members public --- src/quoting/oracle_pool.rs | 8 ++++---- src/quoting/twamm_pool.rs | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/quoting/oracle_pool.rs b/src/quoting/oracle_pool.rs index 33bcafb..4e30558 100644 --- a/src/quoting/oracle_pool.rs +++ b/src/quoting/oracle_pool.rs @@ -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 { diff --git a/src/quoting/twamm_pool.rs b/src/quoting/twamm_pool.rs index 4ef65c2..91038bf 100644 --- a/src/quoting/twamm_pool.rs +++ b/src/quoting/twamm_pool.rs @@ -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 { @@ -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 {