diff --git a/src/libxrpl/tx/transactors/lending/LoanManage.cpp b/src/libxrpl/tx/transactors/lending/LoanManage.cpp index c0e900b378..18b90bb113 100644 --- a/src/libxrpl/tx/transactors/lending/LoanManage.cpp +++ b/src/libxrpl/tx/transactors/lending/LoanManage.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -189,6 +190,11 @@ LoanManage::defaultLoan( // required to paper over the resulting cross-side mismatch -- a snap // that itself minted phantom assets on sfAssetsTotal. See the // sibling change in LoanPay for the same fix on the payment path. + // + // The Number-precision guard `T - A >= totalDefaultAmount` below is + // exactly sufficient: loanVaultExposure returns a difference of vault- + // associated STNumber fields (IOU-normalized via associateAsset), so + // its STAmount promotion round-trips losslessly with no writeOff slack. bool const useUnifiedAssetArithmetic = view.rules().enabled(fixCleanup3_4_0); if (useUnifiedAssetArithmetic)