From f50656f2259ff9d68f78a8741249867c0c0df198 Mon Sep 17 00:00:00 2001 From: Niven Date: Thu, 4 Apr 2024 10:55:12 +0800 Subject: [PATCH] Add logs for future swap limit calculation (#2871) * Add logs for future limit calculation * Add logging category * Fmt cpp --- src/dfi/validation.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dfi/validation.cpp b/src/dfi/validation.cpp index 3b5551f461..a9c665a9c5 100644 --- a/src/dfi/validation.cpp +++ b/src/dfi/validation.cpp @@ -1095,6 +1095,11 @@ static void LiquidityForFuturesLimit(const CBlockIndex *pindex, } const auto tokenAverage = tokenTotal / expectedEntries; + LogPrint(BCLog::FUTURESWAP, + "Liquidity for future swap limit: token src id: %i, token dest id: %i, new average liquidity: %i\n", + key.sourceID, + key.destID, + tokenAverage.GetLow64()); cache.SetLoanTokenAverageLiquidity(key, tokenAverage.GetLow64()); } }