From 994b00ab6a7496a34c188b22010534d6d7e85c00 Mon Sep 17 00:00:00 2001 From: Gregory Tsipenyuk Date: Thu, 21 Sep 2023 11:13:03 -0400 Subject: [PATCH] Update AMMInfo with non-zero fee --- src/test/rpc/AMMInfo_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/rpc/AMMInfo_test.cpp b/src/test/rpc/AMMInfo_test.cpp index 1d9642539a1..71c49a747dc 100644 --- a/src/test/rpc/AMMInfo_test.cpp +++ b/src/test/rpc/AMMInfo_test.cpp @@ -117,7 +117,7 @@ class AMMInfo_test : public jtx::AMMTestBase BEAST_EXPECT(ammAlice.expectAmmRpcInfo( XRP(10000), USD(10000), IOUAmount{10000000, 0})); std::unordered_map votes; - votes.insert({alice.human(), 0}); + votes.insert({alice.human(), 10}); for (int i = 0; i < 7; ++i) { Account a(std::to_string(i)); @@ -126,7 +126,7 @@ class AMMInfo_test : public jtx::AMMTestBase ammAlice.deposit(a, 10000000); ammAlice.vote(a, 50 * (i + 1)); } - BEAST_EXPECT(ammAlice.expectTradingFee(175)); + BEAST_EXPECT(ammAlice.expectTradingFee(176)); Account ed("ed"); Account bill("bill"); env.fund(XRP(1000), bob, ed, bill); @@ -134,7 +134,7 @@ class AMMInfo_test : public jtx::AMMTestBase BEAST_EXPECT(ammAlice.expectAmmRpcInfo( XRP(80000), USD(80000), - IOUAmount{79994400}, + IOUAmount{79994368}, std::nullopt, std::nullopt, ammAlice.ammAccount())); @@ -187,7 +187,7 @@ class AMMInfo_test : public jtx::AMMTestBase auctionSlot[jss::account].asString() == alice.human() && auctionSlot[jss::discounted_fee].asUInt() == 17 && auctionSlot[jss::price][jss::value].asString() == - "5600" && + "5632" && auctionSlot[jss::price][jss::currency].asString() == to_string(ammAlice.lptIssue().currency) && auctionSlot[jss::price][jss::issuer].asString() ==