Reformat code with clang-format-18

This commit is contained in:
John Freeman
2024-10-15 18:27:56 -05:00
parent e7cd03325b
commit 552377c76f
82 changed files with 818 additions and 912 deletions

View File

@@ -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(

View File

@@ -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()};
}