mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-25 16:10:57 +00:00
f u clang-tidy
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <xrpl/core/ServiceRegistry.h>
|
||||
#include <xrpl/ledger/helpers/AccountRootHelpers.h>
|
||||
#include <xrpl/ledger/helpers/DirectoryHelpers.h>
|
||||
#include <xrpl/ledger/helpers/OracleHelpers.h>
|
||||
#include <xrpl/protocol/Feature.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/InnerObjectFormats.h>
|
||||
|
||||
@@ -690,16 +690,22 @@ protected:
|
||||
case AssetType::MPT: {
|
||||
// Enough to cover initial fees
|
||||
if (!env.le(keylet::account(issuer)))
|
||||
{
|
||||
env.fund(
|
||||
baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10, issuer);
|
||||
}
|
||||
if (!env.le(keylet::account(lender)))
|
||||
{
|
||||
env.fund(
|
||||
baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10,
|
||||
noripple(lender));
|
||||
}
|
||||
if (!env.le(keylet::account(borrower)))
|
||||
{
|
||||
env.fund(
|
||||
baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10,
|
||||
noripple(borrower));
|
||||
}
|
||||
|
||||
MPTTester mptt{env, issuer, kMptInitNoFund};
|
||||
mptt.create({.flags = tfMPTCanClawback | tfMPTCanTransfer | tfMPTCanLock});
|
||||
@@ -786,12 +792,16 @@ protected:
|
||||
// Enough to cover initial fees
|
||||
env.fund(baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10, issuer);
|
||||
if (lender != issuer)
|
||||
{
|
||||
env.fund(
|
||||
baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10, noripple(lender));
|
||||
}
|
||||
if (borrower != issuer && borrower != lender)
|
||||
{
|
||||
env.fund(
|
||||
baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10,
|
||||
noripple(borrower));
|
||||
}
|
||||
|
||||
describeLoan(env, brokerParams, loanParams, assetType, issuer, lender, borrower);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user