diff --git a/Cargo.lock b/Cargo.lock index 4b646ea..634ebbe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2544,7 +2544,7 @@ dependencies = [ [[package]] name = "phoenix-v1" -version = "0.1.0" +version = "0.1.1" dependencies = [ "borsh 0.9.3", "bytemuck", diff --git a/Cargo.toml b/Cargo.toml index c829cff..866aa6d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "phoenix-v1" -version = "0.1.0" +version = "0.1.1" edition = "2021" resolver = "2" repository = "https://github.com/Ellipsis-Labs/phoenix-v1" diff --git a/src/state/markets/fifo.rs b/src/state/markets/fifo.rs index 7075d80..4978901 100644 --- a/src/state/markets/fifo.rs +++ b/src/state/markets/fifo.rs @@ -252,6 +252,14 @@ impl< std::mem::size_of::() } + fn get_taker_fee_bps(&self) -> u64 { + self.taker_fee_bps + } + + fn get_tick_size(&self) -> QuoteLotsPerBaseUnitPerTick { + self.tick_size_in_quote_lots_per_base_unit + } + fn get_base_lots_per_base_unit(&self) -> BaseLotsPerBaseUnit { self.base_lots_per_base_unit } diff --git a/src/state/markets/market_traits.rs b/src/state/markets/market_traits.rs index c78507c..ad8842f 100644 --- a/src/state/markets/market_traits.rs +++ b/src/state/markets/market_traits.rs @@ -110,6 +110,8 @@ pub trait Market< TypedLadder { bids, asks } } + fn get_taker_fee_bps(&self) -> u64; + fn get_tick_size(&self) -> QuoteLotsPerBaseUnitPerTick; fn get_base_lots_per_base_unit(&self) -> BaseLotsPerBaseUnit; fn get_sequence_number(&self) -> u64; fn get_registered_traders(&self) -> &dyn OrderedNodeAllocatorMap;