mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
@@ -1,6 +1,7 @@
|
||||
#include <test/jtx.h>
|
||||
|
||||
#include <xrpl/beast/unit_test/suite.h>
|
||||
#include <xrpl/tx/transactors/lending/LendingHelpers.h>
|
||||
#include <xrpl/tx/transactors/lending/LoanBrokerCoverDeposit.h>
|
||||
|
||||
namespace xrpl {
|
||||
@@ -773,7 +774,15 @@ class LoanBroker_test : public beast::unit_test::suite
|
||||
// Extra checks
|
||||
BEAST_EXPECT(broker->at(sfManagementFeeRate) == 123);
|
||||
BEAST_EXPECT(broker->at(sfCoverRateMinimum) == 100);
|
||||
BEAST_EXPECT(broker->at(sfCoverRateLiquidation) == 200);
|
||||
if (useProportionalDefaultCover(env.current()->rules(), broker))
|
||||
{
|
||||
BEAST_EXPECT(broker->at(sfCoverRateLiquidation) == 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
BEAST_EXPECT(broker->at(sfCoverRateLiquidation) == 200);
|
||||
}
|
||||
|
||||
BEAST_EXPECT(broker->at(sfDebtMaximum) == Number(9));
|
||||
BEAST_EXPECT(checkVL(broker->at(sfData), testData));
|
||||
},
|
||||
@@ -1784,23 +1793,23 @@ public:
|
||||
void
|
||||
run() override
|
||||
{
|
||||
testFeatureLendingProtocolV1_1enabled();
|
||||
testLoanBrokerSetDebtMaximum();
|
||||
testLoanBrokerCoverDepositNullVault();
|
||||
|
||||
testDisabled();
|
||||
// testFeatureLendingProtocolV1_1enabled();
|
||||
// testLoanBrokerSetDebtMaximum();
|
||||
// testLoanBrokerCoverDepositNullVault();
|
||||
//
|
||||
// testDisabled();
|
||||
testLifecycle();
|
||||
testInvalidLoanBrokerCoverClawback();
|
||||
testInvalidLoanBrokerCoverDeposit();
|
||||
testInvalidLoanBrokerCoverWithdraw();
|
||||
testInvalidLoanBrokerDelete();
|
||||
testInvalidLoanBrokerSet();
|
||||
testRequireAuth();
|
||||
|
||||
testRIPD4323();
|
||||
testAMB06_VaultFreezeCheckMissing();
|
||||
|
||||
testRIPD4274();
|
||||
// testInvalidLoanBrokerCoverClawback();
|
||||
// testInvalidLoanBrokerCoverDeposit();
|
||||
// testInvalidLoanBrokerCoverWithdraw();
|
||||
// testInvalidLoanBrokerDelete();
|
||||
// testInvalidLoanBrokerSet();
|
||||
// testRequireAuth();
|
||||
//
|
||||
// testRIPD4323();
|
||||
// testAMB06_VaultFreezeCheckMissing();
|
||||
//
|
||||
// testRIPD4274();
|
||||
|
||||
// TODO: Write clawback failure tests with an issuer / MPT that doesn't
|
||||
// have the right flags set.
|
||||
|
||||
Reference in New Issue
Block a user