Skip to content

Commit

Permalink
feat: produce priceAuthority8400 signal when price feeds are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Sep 10, 2024
1 parent a212bd9 commit 0af884f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/inter-protocol/src/proposals/deploy-price-feeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,7 @@ export const deployPriceFeeds = async (powers, config) => {
priceAggregatorRef.bundleID,
);

const {
consume: { priceAuthorityAdmin },
} = powers;
const { priceAuthorityAdmin, priceAuthority } = powers.consume;
for (const inBrandName of inBrandNames) {
const AGORIC_INSTANCE_NAME = oracleBrandFeedName(inBrandName, outBrandName);
const brandIn = await ensureOracleBrand(powers, {
Expand Down Expand Up @@ -262,6 +260,10 @@ export const deployPriceFeeds = async (powers, config) => {
await upgradeScaledPriceAuthorities(powers, {
options: { scaledPARef },
});

// cf. #8400 QuotePayments storage leak
powers.produce.priceAuthority8400.resolve(priceAuthority);
powers.produce.priceAuthority.resolve(priceAuthority);
};

const t = 'priceFeed';
Expand Down Expand Up @@ -300,6 +302,10 @@ export const getManifestForPriceFeeds = async (
produce: t,
},
oracleBrand: { produce: t },
produce: {
priceAuthority: t,
priceAuthority8400: t,
},
},
},
options: { ...priceFeedOptions },
Expand Down

0 comments on commit 0af884f

Please sign in to comment.