Skip to content

Commit

Permalink
Add logs for future swap limit calculation (#2871)
Browse files Browse the repository at this point in the history
* Add logs for future limit calculation

* Add logging category

* Fmt cpp
  • Loading branch information
sieniven authored Apr 4, 2024
1 parent b8f5a28 commit f50656f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dfi/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit f50656f

Please sign in to comment.