mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Compare Numbers against beast::zero
This commit is contained in:
@@ -452,14 +452,14 @@ LoanPay::doApply()
|
||||
view, brokerPayee, asset, fhIGNORE_FREEZE, ahIGNORE_AUTH, j_);
|
||||
#endif
|
||||
|
||||
if (totalPaidToVault != Number{})
|
||||
if (totalPaidToVault != beast::zero)
|
||||
{
|
||||
if (auto const ter = requireAuth(
|
||||
view, asset, vaultPseudoAccount, AuthType::StrongAuth))
|
||||
return ter;
|
||||
}
|
||||
|
||||
if (totalPaidToBroker != Number{})
|
||||
if (totalPaidToBroker != beast::zero)
|
||||
{
|
||||
if (brokerPayee == account_)
|
||||
{
|
||||
|
||||
@@ -401,7 +401,7 @@ LoanSet::doApply()
|
||||
// avoids dividing by 0.
|
||||
auto const roundedPayment = roundPeriodicPayment(
|
||||
vaultAsset, properties.periodicPayment, properties.loanScale);
|
||||
if (roundedPayment == Number{})
|
||||
if (roundedPayment == beast::zero)
|
||||
{
|
||||
JLOG(j_.warn()) << "Loan Periodic payment ("
|
||||
<< properties.periodicPayment << ") rounds to 0. ";
|
||||
@@ -494,7 +494,7 @@ LoanSet::doApply()
|
||||
|
||||
// 2. Transfer originationFee, if any, from vault pseudo-account to
|
||||
// LoanBroker owner.
|
||||
if (originationFee != Number{})
|
||||
if (originationFee != beast::zero)
|
||||
{
|
||||
// Create the holding if it doesn't already exist (necessary for MPTs).
|
||||
// The owner may have deleted their MPT / line at some point.
|
||||
|
||||
Reference in New Issue
Block a user