diff --git a/packages/inter-protocol/test/vaultFactory/vault-contract-wrapper.js b/packages/inter-protocol/test/vaultFactory/vault-contract-wrapper.js index 20c838a0f4d3..a5d9613a8403 100644 --- a/packages/inter-protocol/test/vaultFactory/vault-contract-wrapper.js +++ b/packages/inter-protocol/test/vaultFactory/vault-contract-wrapper.js @@ -71,7 +71,7 @@ export async function start(zcf, privateArgs, baggage) { timer, quoteMint: makeIssuerKit('quote', AssetKind.SET).mint, }; - const priceAuthority = makeFakePriceAuthority(options); + const priceAuthority = await makeFakePriceAuthority(options); const maxDebtFor = async collateralAmount => { const quoteAmount = await E(priceAuthority).quoteGiven( collateralAmount, diff --git a/packages/zoe/test/unitTests/contracts/loan/test-addCollateral.js b/packages/zoe/test/unitTests/contracts/loan/test-addCollateral.js index 2cac835226e9..c2e8b60d9df0 100644 --- a/packages/zoe/test/unitTests/contracts/loan/test-addCollateral.js +++ b/packages/zoe/test/unitTests/contracts/loan/test-addCollateral.js @@ -37,7 +37,7 @@ test('makeAddCollateralInvitation', async t => { const timer = buildManualTimer(t.log); - const priceAuthority = makeFakePriceAuthority({ + const priceAuthority = await makeFakePriceAuthority({ priceList: [], timer, actualBrandIn: collateralKit.brand, diff --git a/packages/zoe/test/unitTests/contracts/test-callSpread.js b/packages/zoe/test/unitTests/contracts/test-callSpread.js index 67badeac3239..58f9719085e9 100644 --- a/packages/zoe/test/unitTests/contracts/test-callSpread.js +++ b/packages/zoe/test/unitTests/contracts/test-callSpread.js @@ -64,7 +64,7 @@ test('fundedCallSpread below Strike1', async t => { const carolBucksPurse = bucksIssuer.makeEmptyPurse(); const manualTimer = buildManualTimer(t.log, 0n, { eventLoopIteration }); - const priceAuthority = makeTestPriceAuthority( + const priceAuthority = await makeTestPriceAuthority( brands, [54, 20, 35, 15, 28], manualTimer, @@ -175,7 +175,7 @@ test('fundedCallSpread above Strike2', async t => { const carolBucksPurse = bucksIssuer.makeEmptyPurse(); const manualTimer = buildManualTimer(t.log, 0n, { eventLoopIteration }); - const priceAuthority = makeTestPriceAuthority(brands, [20, 55], manualTimer); + const priceAuthority = await makeTestPriceAuthority(brands, [20, 55], manualTimer); // underlying is 2 Simoleans, strike range is 30-50 (doubled) const terms = harden({ expiration: 2n, @@ -279,7 +279,7 @@ test('fundedCallSpread, mid-strike', async t => { const carolBucksPurse = bucksIssuer.makeEmptyPurse(); const manualTimer = buildManualTimer(t.log, 0n, { eventLoopIteration }); - const priceAuthority = makeTestPriceAuthority(brands, [20, 45], manualTimer); + const priceAuthority = await makeTestPriceAuthority(brands, [20, 45], manualTimer); // underlying is 2 Simoleans, strike range is 30-50 (doubled) const terms = harden({ expiration: 2n, @@ -382,7 +382,7 @@ test('fundedCallSpread, late exercise', async t => { const carolBucksPurse = bucksIssuer.makeEmptyPurse(); const manualTimer = buildManualTimer(t.log, 0n, { eventLoopIteration }); - const priceAuthority = makeTestPriceAuthority(brands, [20, 45], manualTimer); + const priceAuthority = await makeTestPriceAuthority(brands, [20, 45], manualTimer); // underlying is 2 Simoleans, strike range is 30-50 (doubled) const terms = harden({ expiration: 2n, @@ -487,7 +487,7 @@ test('fundedCallSpread, sell options', async t => { const carolBucksPayment = bucksMint.mintPayment(bucks(100n)); const manualTimer = buildManualTimer(t.log, 0n, { eventLoopIteration }); - const priceAuthority = makeTestPriceAuthority(brands, [20, 45], manualTimer); + const priceAuthority = await makeTestPriceAuthority(brands, [20, 45], manualTimer); // underlying is 2 Simoleans, strike range is 30-50 (doubled) const terms = harden({ expiration: 2n,