Skip to content

Commit

Permalink
test: drop extraneous activity from test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Oct 17, 2024
1 parent b0f08d1 commit 507c979
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions packages/zoe/test/swingsetTests/zoe/vat-alice.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,34 +549,6 @@ const build = async (log, zoe, issuers, payments, installations, timer) => {
installations.autoswap,
issuerKeywordRecord,
);
const liquidityIssuer = await E(publicFacet).getLiquidityIssuer();
const liquidityBrand = await E(liquidityIssuer).getBrand();
const liquidity = value => AmountMath.make(liquidityBrand, value);

// Alice adds liquidity
// 10 moola = 5 simoleans at the time of the liquidity adding
// aka 2 moola = 1 simolean
const addLiquidityProposal = harden({
give: { Central: moola(10n), Secondary: simoleans(5n) },
want: { Liquidity: liquidity(10n) },
});
const paymentKeywordRecord = harden({
Central: moolaPayment,
Secondary: simoleanPayment,
});
const addLiquidityInvitation = E(publicFacet).makeAddLiquidityInvitation();
const addLiqSeatP = await E(zoe).offer(
addLiquidityInvitation,
addLiquidityProposal,
paymentKeywordRecord,
);

console.log(await E(addLiqSeatP).getOfferResult());

const liquidityPayout = await E(addLiqSeatP).getPayout('Liquidity');

const liquidityTokenPurseP = E(liquidityIssuer).makeEmptyPurse();
await E(liquidityTokenPurseP).deposit(liquidityPayout);

console.log(' ALICE terminating autoswap');
await E(adminFacet).terminateContract(Error('end of the line'));
Expand All @@ -589,16 +561,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => {
log(e.message);
}

// Bob is incommunicado
// await E(bobP).doAutoswap(instance);

await showPurseBalance(moolaPurseP, 'aliceMoolaPurse', log);
await showPurseBalance(simoleanPurseP, 'aliceSimoleanPurse', log);
await showPurseBalance(
liquidityTokenPurseP,
'aliceLiquidityTokenPurse',
console.log,
);
};

return Far('build', {
Expand Down

0 comments on commit 507c979

Please sign in to comment.