mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-16 00:25:49 +00:00
Add units to all fee calculations:
* Uses existing XRPAmount with units for drops, and a new TaggedFee for fee units (LoadFeeTrack), and fee levels (TxQ). * Resolves #2451
This commit is contained in:
@@ -36,7 +36,7 @@ mulDiv(std::uint64_t value, std::uint64_t mul, std::uint64_t div)
|
||||
|
||||
result /= div;
|
||||
|
||||
auto const limit = std::numeric_limits<std::uint64_t>::max();
|
||||
auto constexpr limit = std::numeric_limits<std::uint64_t>::max();
|
||||
|
||||
if (result > limit)
|
||||
return { false, limit };
|
||||
|
||||
Reference in New Issue
Block a user