Skip to content

Commit

Permalink
chore: drop excess promise resolution, rotate priceAuthority names
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Aug 2, 2024
1 parent 97fa744 commit fc11081
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ export const replaceScaledPriceAuthorities = async (powers, { options }) => {
trace('installed scaledPriceAuthority bundle', bundleID);
}

const [contractKits] = await Promise.all([
contractKitsP,
instancePrivateArgsP,
]);
const contractKits = await contractKitsP;
/** @type {StartedInstanceKit<any>[]} */
const scaledPAKitEntries = Array.from(contractKits.values()).filter(
kit => kit.label && kit.label.match(/scaledPriceAuthority/),
Expand Down
2 changes: 1 addition & 1 deletion packages/zoe/src/contractSupport/priceAuthorityInitial.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const makeInitialTransform = (
: quoteP;
};

return Far('ScaledPriceAuthority', {
return Far('InitializedScaledPriceAuthority', {
...priceAuthority,
makeQuoteNotifier,
quoteGiven,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const makePriceAuthorityTransform = async ({
};

/** @type {PriceAuthority} */
const priceAuthority = Far('PriceAuthority', {
const priceAuthority = Far('ScaledPriceAuthority', {
getQuoteIssuer(brandIn, brandOut) {
assertBrands(brandIn, brandOut);
return quoteIssuer;
Expand Down

0 comments on commit fc11081

Please sign in to comment.