Skip to content

Commit

Permalink
feat: allow update of priceAuthorityRegistry in scaledPriceAuthority
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Sep 11, 2024
1 parent d4f86b1 commit 0e3b036
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/zoe/src/contracts/scaledPriceAuthority.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export const prepare = async (zcf, privateArgs, baggage) => {

const priceAuthority = makePriceAuthorityTransform({
quoteMint,
sourcePriceAuthority,
// If the priceAuthority is overridden in privateArgs, use that version
sourcePriceAuthority:
privateArgs?.newPriceAuthority || sourcePriceAuthority,
sourceBrandIn,
sourceBrandOut,
actualBrandIn,
Expand Down

0 comments on commit 0e3b036

Please sign in to comment.