diff --git a/daemon/src/maker.rs b/daemon/src/maker.rs index defbd77..5086fab 100644 --- a/daemon/src/maker.rs +++ b/daemon/src/maker.rs @@ -1,26 +1,20 @@ use anyhow::{Context, Result}; use bdk::bitcoin::secp256k1::schnorrsig; +use bdk::bitcoin::Amount; use bdk::{bitcoin, FeeRate}; use clap::{Parser, Subcommand}; use daemon::auth::{self, MAKER_USERNAME}; -use daemon::db::{self}; - use daemon::model::WalletInfo; - use daemon::seed::Seed; use daemon::{ - bitmex_price_feed, housekeeping, logger, maker_cfd, maker_inc_connections, monitor, oracle, + bitmex_price_feed, db, housekeeping, logger, maker_cfd, maker_inc_connections, monitor, oracle, wallet, wallet_sync, MakerActorSystem, }; - use sqlx::sqlite::SqliteConnectOptions; use sqlx::SqlitePool; - use std::net::SocketAddr; use std::path::PathBuf; use std::str::FromStr; - -use bdk::bitcoin::Amount; use std::task::Poll; use tokio::sync::watch; use tracing_subscriber::filter::LevelFilter; diff --git a/daemon/src/taker.rs b/daemon/src/taker.rs index d34c6f7..0451bd4 100644 --- a/daemon/src/taker.rs +++ b/daemon/src/taker.rs @@ -3,11 +3,10 @@ use bdk::bitcoin::secp256k1::schnorrsig; use bdk::bitcoin::{Address, Amount}; use bdk::{bitcoin, FeeRate}; use clap::{Parser, Subcommand}; -use daemon::db::{self}; use daemon::model::WalletInfo; use daemon::seed::Seed; use daemon::{ - bitmex_price_feed, connection, housekeeping, logger, monitor, oracle, taker_cfd, wallet, + bitmex_price_feed, connection, db, housekeeping, logger, monitor, oracle, taker_cfd, wallet, wallet_sync, TakerActorSystem, }; use sqlx::sqlite::SqliteConnectOptions;