chore: clang-tidy and minor AI comments

This commit is contained in:
Vito
2026-05-18 12:20:26 +02:00
parent e2ba7a728b
commit c4115ee4be
2 changed files with 3 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ canApplyToBrokerCover(
"xrpl::canApplyToBrokerCover : valid LoanBroker sle");
XRPL_ASSERT(
vaultAsset.getIssuer() == amount.getIssuer() && amount > beast::kZERO,
"xrpl::canApplyToBrokerCover : valid LoanBroker sle");
"xrpl::canApplyToBrokerCover : valid amount for asset");
if (!view.rules().enabled(fixCleanup3_2_0))
return tesSUCCESS;

View File

@@ -1,6 +1,7 @@
#include <xrpl/tx/transactors/lending/LoanBrokerCoverDeposit.h>
#include <xrpl/basics/Log.h>
#include <xrpl/basics/Number.h>
#include <xrpl/beast/utility/Zero.h>
#include <xrpl/ledger/helpers/LendingHelpers.h>
#include <xrpl/ledger/helpers/TokenHelpers.h>
@@ -131,7 +132,7 @@ LoanBrokerCoverDeposit::doApply()
if (fix320Enabled && amount == beast::kZERO)
{
JLOG(ctx_.journal.warn()) << "LoanBrokerCoverDeposit: deposit amount: " << tx[sfAmount]
<< "is zero at loan broker scale";
<< " is zero at loan broker scale";
return tecPRECISION_LOSS;
}
// Transfer assets from depositor to pseudo-account.