From a181b8bb45507d7becf5ede4a4e5d00157bb1c91 Mon Sep 17 00:00:00 2001 From: cipig Date: Fri, 22 Mar 2024 14:01:57 +0000 Subject: [PATCH] try get rid of paprika --- .../services/price/global.provider.cpp | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/core/atomicdex/services/price/global.provider.cpp b/src/core/atomicdex/services/price/global.provider.cpp index 30514a7dcb..d0f8a2d7a8 100644 --- a/src/core/atomicdex/services/price/global.provider.cpp +++ b/src/core/atomicdex/services/price/global.provider.cpp @@ -92,32 +92,8 @@ namespace } } // namespace - -namespace atomic_dex -{ - global_price_service::global_price_service(entt::registry& registry, ag::ecs::system_manager& system_manager, atomic_dex::cfg& cfg) : - system(registry), m_system_manager(system_manager), m_cfg(cfg) - { - m_update_clock = std::chrono::high_resolution_clock::now(); - } -} // namespace atomic_dex - namespace atomic_dex { - void - global_price_service::update() - { - using namespace std::chrono_literals; - - const auto now = std::chrono::high_resolution_clock::now(); - const auto s = std::chrono::duration_cast(now - m_update_clock); - if (s >= 5min) - { - SPDLOG_INFO("[global_price_service::update()] - 5min elapsed, updating providers"); - m_update_clock = std::chrono::high_resolution_clock::now(); - } - } - std::string global_price_service::get_rate_conversion(const std::string& fiat, const std::string& ticker_in, bool adjusted) const {