xrpld
Loading...
Searching...
No Matches
xrpl::test::Loan_test::BrokerParameters Struct Reference
Collaboration diagram for xrpl::test::Loan_test::BrokerParameters:

Public Member Functions

Number maxCoveredLoanValue (Number const &currentDebt) const

Static Public Member Functions

static BrokerParameters const & defaults ()

Public Attributes

Number vaultDeposit = 1'000'000
Number debtMax = 25'000
TenthBips32 coverRateMin = percentageToTenthBips(10)
int coverDeposit = 1000
TenthBips16 managementFeeRate {100}
TenthBips32 coverRateLiquidation = percentageToTenthBips(25)
std::string data = {}
std::uint32_t flags = 0
std::optional< std::uint8_tvaultScale

Detailed Description

Definition at line 144 of file Loan_test.cpp.

Member Function Documentation

◆ maxCoveredLoanValue()

Number xrpl::test::Loan_test::BrokerParameters::maxCoveredLoanValue ( Number const & currentDebt) const
nodiscard

Definition at line 160 of file Loan_test.cpp.

◆ defaults()

BrokerParameters const & xrpl::test::Loan_test::BrokerParameters::defaults ( )
static

Definition at line 169 of file Loan_test.cpp.

Member Data Documentation

◆ vaultDeposit

Number xrpl::test::Loan_test::BrokerParameters::vaultDeposit = 1'000'000

Definition at line 146 of file Loan_test.cpp.

◆ debtMax

Number xrpl::test::Loan_test::BrokerParameters::debtMax = 25'000

Definition at line 147 of file Loan_test.cpp.

◆ coverRateMin

TenthBips32 xrpl::test::Loan_test::BrokerParameters::coverRateMin = percentageToTenthBips(10)

Definition at line 148 of file Loan_test.cpp.

◆ coverDeposit

int xrpl::test::Loan_test::BrokerParameters::coverDeposit = 1000

Definition at line 149 of file Loan_test.cpp.

◆ managementFeeRate

TenthBips16 xrpl::test::Loan_test::BrokerParameters::managementFeeRate {100}

Definition at line 150 of file Loan_test.cpp.

◆ coverRateLiquidation

TenthBips32 xrpl::test::Loan_test::BrokerParameters::coverRateLiquidation = percentageToTenthBips(25)

Definition at line 151 of file Loan_test.cpp.

◆ data

std::string xrpl::test::Loan_test::BrokerParameters::data = {}

Definition at line 152 of file Loan_test.cpp.

◆ flags

std::uint32_t xrpl::test::Loan_test::BrokerParameters::flags = 0

Definition at line 153 of file Loan_test.cpp.

◆ vaultScale

std::optional<std::uint8_t> xrpl::test::Loan_test::BrokerParameters::vaultScale
Initial value:
=
std::nullopt

Definition at line 156 of file Loan_test.cpp.