fix: ambiguous OrderArgs name conflict in test module

This commit is contained in:
floor-licker
2025-12-04 07:14:48 -05:00
parent 0b79328f01
commit fe772c055a
5 changed files with 251 additions and 54 deletions
+3 -3
View File
@@ -98,7 +98,7 @@ impl OrderBook {
}
}
/// Set the tick size for this book
/// Set the tick size for this book
/// This tells us the minimum price increment allowed
/// We store it in ticks for fast validation without conversion overhead
pub fn set_tick_size(&mut self, tick_size: Decimal) -> Result<()> {
@@ -151,7 +151,7 @@ impl OrderBook {
}
})
}
/// Get the current best bid in fast internal format
/// Use this for internal calculations to avoid conversion overhead
pub fn best_bid_fast(&self) -> Option<FastBookLevel> {
@@ -337,7 +337,7 @@ impl OrderBook {
trace!("Ignoring stale delta: {} <= {}", delta.sequence, self.sequence);
return Ok(());
}
// Validate token ID hash matches (fast string comparison avoidance)
if delta.token_id_hash != self.token_id_hash {
return Err(PolyfillError::validation("Token ID mismatch"));
+1 -1
View File
@@ -1075,7 +1075,7 @@ pub struct Rewards {
pub type ClientResult<T> = anyhow::Result<T>;
/// Result type used throughout the client
pub type Result<T> = std::result::Result<T, crate::errors::PolyfillError>;
pub type Result<T> = std::result::Result<T, crate::errors::PolyfillError>;
// Type aliases for 100% compatibility with baseline implementation
pub type ApiCreds = ApiCredentials;