diff --git a/core/station/impl/src/services/cycle_manager.rs b/core/station/impl/src/services/cycle_manager.rs index c39411b94..427fd9b53 100644 --- a/core/station/impl/src/services/cycle_manager.rs +++ b/core/station/impl/src/services/cycle_manager.rs @@ -7,7 +7,7 @@ use canfund::api::ledger::{CyclesLedgerCanister, IcLedgerCanister}; use canfund::manager::options::{FundManagerOptions, ObtainCyclesOptions}; use canfund::manager::record::CanisterRecord; use canfund::manager::RegisterOpts; -use canfund::operations::obtain::{MintCycles, WithdrawFromLedger}; +use canfund::operations::obtain::{MintCycles, WithdrawFromCyclesLedger}; use canfund::FundManager; use ic_cdk::api::management_canister::main::CanisterId; use ic_cdk::print; @@ -136,7 +136,7 @@ fn get_obtain_cycle_config(strategy: &CycleObtainStrategy) -> Option { if let Some(account) = ACCOUNT_REPOSITORY.get(&AccountKey { id: *account_id }) { Some(ObtainCyclesOptions { - obtain_cycles: Arc::new(WithdrawFromLedger { + obtain_cycles: Arc::new(WithdrawFromCyclesLedger { ledger: Arc::new(CyclesLedgerCanister::new( MAINNET_CYCLES_LEDGER_CANISTER_ID, )),