102 Env env(*
this, features);
107 env.
fund(
XRP(10000), alice, gw1, gw2);
111 auto const USD_gw1 = gw1[
"USD"];
112 auto const USD_gw2 = gw2[
"USD"];
114 env.
trust(USD_gw1(100), alice);
115 env.
trust(USD_gw2(100), alice);
117 env(
pay(gw1, alice, USD_gw1(50)));
118 env(
pay(gw2, alice, USD_gw2(50)));
120 STAmount const toCredit(USD_gw1(30));
121 STAmount const toDebit(USD_gw1(20));
126 auto const iss = USD_gw1.issue();
136 startingAmount + toCredit);
144 startingAmount + toCredit - toDebit);
151 auto const iss = USD_gw1.issue();
159 startingAmount + toCredit);
165 startingAmount + toCredit - toDebit);
173 auto const iss = USD_gw1.issue();
193 startingAmount - toDebit);
201 auto const iss = USD_gw1.issue();
217 auto const iss = USD_gw1.issue();
225 startingAmount - toDebit);
233 auto const iss = USD_gw1.issue();
249 auto const iss = USD_gw1.issue();
271 j) == startingAmount);
273 auto r =
accountSend(pv2, gw1, alice, toCredit, j);
283 j) == startingAmount);
293 startingAmount - toDebit);