fixup! fixup! Fix divide by 0 error on 0-interest loans; allow broker to self-lend

This commit is contained in:
Ed Hennis
2025-07-24 14:41:25 -04:00
parent 1adb410e8e
commit 57c78c56ba

View File

@@ -1844,7 +1844,7 @@ class Loan_test : public beast::unit_test::suite
++types[object[sfLedgerEntryType].asString()];
}
BEAST_EXPECT(types.size() == 4);
for (std::string const& type :
for (std::string const type :
{"MPToken", "Vault", "LoanBroker", "Loan"})
{
BEAST_EXPECT(types[type] == 1);