Skip to content

Commit

Permalink
fix: more occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Mar 14, 2023
1 parent c6fdaff commit 185d264
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions packages/zoe/test/unitTests/contracts/test-callSpread.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 185d264

Please sign in to comment.