mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 00:36:48 +00:00
Apply suggestions from Copilot code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -65,7 +65,7 @@ isPowerOfTen(T value)
|
||||
* by an STAmount - IOUs, XRP, and MPTs. It has a min value of 10^18, and a max
|
||||
* value of 10^19-1. "LargeLegacy" is like "Large", but preserves
|
||||
* a rounding error when a computation results in a mantissa of
|
||||
* Number::kMAX_REP that needs to be rounded up, but rounds down
|
||||
* Number::kMaxRep that needs to be rounded up, but rounds down
|
||||
* instead. It will maintain consistent behavior until the fixCleanup3_2_0
|
||||
* amendment is enabled.
|
||||
*
|
||||
|
||||
@@ -49,7 +49,7 @@ setCurrentTransactionRules(std::optional<Rules> r)
|
||||
// mantissas even in the absence of the other two amendments.
|
||||
//
|
||||
// If any new conditions with new amendments are added, those amendments must also be added to
|
||||
// createGuards.
|
||||
// useRulesGuards.
|
||||
bool const enableCuspRoundingFix = !r || r->enabled(fixCleanup3_2_0);
|
||||
bool const enableVaultNumbers = enableCuspRoundingFix ||
|
||||
(r->enabled(featureSingleAssetVault) || r->enabled(featureLendingProtocol));
|
||||
|
||||
Reference in New Issue
Block a user