mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Reformat code with clang-format-18
This commit is contained in:
@@ -42,8 +42,8 @@ static IOUAmount
|
||||
initialTokens(STAmount const& asset1, STAmount const& asset2)
|
||||
{
|
||||
auto const product = number(asset1) * number(asset2);
|
||||
return (IOUAmount)(
|
||||
product.mantissa() >= 0 ? root2(product) : root2(-product));
|
||||
return (IOUAmount)(product.mantissa() >= 0 ? root2(product)
|
||||
: root2(-product));
|
||||
}
|
||||
|
||||
AMM::AMM(
|
||||
|
||||
@@ -104,7 +104,8 @@ operator<<(std::ostream& os, PrettyAmount const& amount)
|
||||
|
||||
XRP_t const XRP{};
|
||||
|
||||
PrettyAmount IOU::operator()(epsilon_t) const
|
||||
PrettyAmount
|
||||
IOU::operator()(epsilon_t) const
|
||||
{
|
||||
return {STAmount(issue(), 1, -81), account.name()};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user