Skip to content

Commit

Permalink
dex: don't expose dex engine internals
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Apr 11, 2024
1 parent 9024634 commit aa0d66b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ mod tests {
let position = buy_1;
state_tx.index_position_by_price(&position, &position.id());
state_tx
.update_available_liquidity(&None, &position)
.update_asset_by_base_liquidity_index(&None, &position, &position.id())
.await
.expect("able to update liquidity");
state_tx.put(state_key::position_by_id(&id), position);
Expand Down
8 changes: 4 additions & 4 deletions crates/core/component/dex/src/component/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ mod arb;
pub(crate) mod circuit_breaker;
mod dex;
mod flow;
pub(crate) mod position_counter;
pub(crate) mod position_manager;
mod position_manager;
mod swap_manager;

pub use self::metrics::register_metrics;
pub use arb::Arbitrage;
pub(crate) use arb::Arbitrage;
pub use circuit_breaker::ExecutionCircuitBreaker;
pub(crate) use circuit_breaker::ValueCircuitBreaker;
pub use dex::{Dex, StateReadExt, StateWriteExt};
pub use position_manager::{PositionManager, PositionRead};
pub(crate) use position_manager::PositionManager;
pub use position_manager::PositionRead;
pub use swap_manager::SwapManager;
#[cfg(test)]
pub(crate) mod tests;

0 comments on commit aa0d66b

Please sign in to comment.