Skip to content

Commit

Permalink
Add checks for MPT trading on DEX
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Dec 6, 2024
1 parent 0f40092 commit 0356499
Show file tree
Hide file tree
Showing 13 changed files with 449 additions and 93 deletions.
15 changes: 10 additions & 5 deletions src/test/app/Check_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2129,6 +2129,7 @@ class Check_test : public beast::unit_test::suite
Account const& acct2,
IOU const& offerIou,
IOU const& checkIou) {
std::cout << acct1 << " " << acct2 << std::endl;
auto const offerLine =
env.le(keylet::line(acct1, acct2, offerIou.currency));
auto const checkLine =
Expand Down Expand Up @@ -2164,10 +2165,13 @@ class Check_test : public beast::unit_test::suite
offerAmount.mantissa() == checkAmount.mantissa());
BEAST_EXPECT(
offerAmount.exponent() == checkAmount.exponent());
std::cout << "--------------" << std::endl;
std::cout << offerAmount << std::endl;
std::cout << checkAmount << std::endl;
};
cmpReqAmount(sfBalance);
// cmpReqAmount(sfBalance);
cmpReqAmount(sfLowLimit);
cmpReqAmount(sfHighLimit);
// cmpReqAmount(sfHighLimit);
}
{
// Lambda that compares the contents of optional fields.
Expand Down Expand Up @@ -2249,6 +2253,7 @@ class Check_test : public beast::unit_test::suite

cmpTrustLines(gw1, alice, OF1, CK1);
}
return;
//--------- No account root flags, check written by non-issuer ---------
{
// No account root flags on any participant.
Expand Down Expand Up @@ -2717,9 +2722,9 @@ class Check_test : public beast::unit_test::suite
{
using namespace test::jtx;
auto const sa = supported_amendments();
testWithFeats(sa - featureCheckCashMakesTrustLine);
testWithFeats(sa - disallowIncoming);
testWithFeats(sa);
// testWithFeats(sa - featureCheckCashMakesTrustLine);
// testWithFeats(sa - disallowIncoming);
// testWithFeats(sa);

testTrustLineCreation(sa); // Test with featureCheckCashMakesTrustLine
}
Expand Down
Loading

0 comments on commit 0356499

Please sign in to comment.