From 87bd81d041d568ffc951695bd3ae23dca5ec93c7 Mon Sep 17 00:00:00 2001 From: Chris Hibbert Date: Wed, 31 Jul 2024 16:40:44 -0700 Subject: [PATCH] chore: minor cleanups from review --- golang/cosmos/app/upgrade.go | 4 ++-- packages/zoe/src/contracts/scaledPriceAuthority.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/golang/cosmos/app/upgrade.go b/golang/cosmos/app/upgrade.go index d8828b8d0b86..ba078f19d9a3 100644 --- a/golang/cosmos/app/upgrade.go +++ b/golang/cosmos/app/upgrade.go @@ -148,8 +148,8 @@ func upgradePriceFeedCoreProposalSteps(upgradeName string) ([]vm.CoreProposalSte return []vm.CoreProposalStep{ // Add new vats for price feeds. The existing ones will be retired shortly. vm.CoreProposalStepForModules(proposals...), - // add new scaledPriceAuthorities. The existing ones will be retired shortly. - vm.CoreProposalStepForModules("@agoric/builders/scripts/vats/replaceScaledPriceAuthorities.js"), + // add new scaledPriceAuthorities. The existing ones will be retired shortly. + vm.CoreProposalStepForModules("@agoric/builders/scripts/vats/replaceScaledPriceAuthorities.js"), // Add new auction contract. The old one will be retired shortly. vm.CoreProposalStepForModules("@agoric/builders/scripts/vats/add-auction.js"), // upgrade vaultFactory. diff --git a/packages/zoe/src/contracts/scaledPriceAuthority.js b/packages/zoe/src/contracts/scaledPriceAuthority.js index 1b138a6dce91..1b1acd212e55 100644 --- a/packages/zoe/src/contracts/scaledPriceAuthority.js +++ b/packages/zoe/src/contracts/scaledPriceAuthority.js @@ -53,7 +53,8 @@ export const prepare = async (zcf, privateArgs, baggage) => { const priceAuthority = makePriceAuthorityTransform({ quoteMint, // If the priceAuthority is overridden in privateArgs, use that version - sourcePriceAuthority: privateArgs?.priceAuthority || sourcePriceAuthority, + sourcePriceAuthority: + privateArgs?.newPriceAuthority || sourcePriceAuthority, sourceBrandIn, sourceBrandOut, actualBrandIn,