Remove incorrect STAmount assert:

When computing rates for offers, an STAmount's value can be out of can be out of
range (before canonicalizing). There was an assert that could incorrectly fire
in some cases. This patch removes that assert.
This commit is contained in:
seelabs
2020-03-23 09:12:38 -07:00
committed by manojsdoshi
parent c0964832f5
commit 78ea75b116
2 changed files with 18 additions and 1 deletions

View File

@@ -227,7 +227,6 @@ STAmount::STAmount (Issue const& issue,
, mOffset (exponent)
, mIsNegative (negative)
{
assert(mValue <= std::numeric_limits<std::int64_t>::max());
canonicalize ();
}