minor changes

Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
This commit is contained in:
Pratik Mankawde
2026-05-26 17:01:47 +01:00
parent 2f18167550
commit e2b05e1192

View File

@@ -52,15 +52,7 @@ IOUAmount::normalize()
}
Number const v{mantissa_, exponent_};
*this = fromNumber(v);
if (exponent_ > kMaxExponent)
{
Throw<std::overflow_error>("value overflow");
}
if (exponent_ < kMinExponent)
{
*this = beast::kZero;
}
*this = IOUAmount(v);
}
IOUAmount::IOUAmount(Number const& other) : IOUAmount(fromNumber(other))