mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-06 18:26:51 +00:00
Merge develop into confidential MPT
This commit is contained in:
@@ -72,7 +72,7 @@ QualityFunction::QualityFunction(
|
||||
std::uint32_t tfee,
|
||||
QualityFunction::AMMTag)
|
||||
{
|
||||
if (amounts.in <= beast::kZERO || amounts.out <= beast::kZERO)
|
||||
if (amounts.in <= beast::kZero || amounts.out <= beast::kZero)
|
||||
Throw<std::runtime_error>("QualityFunction amounts are 0.");
|
||||
Number const cfee = feeMult(tfee);
|
||||
m_ = -cfee / amounts.in;
|
||||
|
||||
Reference in New Issue
Block a user