diff --git a/packages/inter-protocol/src/psm/psm.js b/packages/inter-protocol/src/psm/psm.js index 246d138979f..4a8e2f3c4cd 100644 --- a/packages/inter-protocol/src/psm/psm.js +++ b/packages/inter-protocol/src/psm/psm.js @@ -14,7 +14,6 @@ import { import { StorageNodeShape } from '@agoric/internal'; import { M, prepareExo, provide } from '@agoric/vat-data'; import { - atomicRearrange, atomicTransfer, ceilMultiplyBy, floorDivideBy, @@ -273,8 +272,7 @@ export const start = async (zcf, privateArgs, baggage) => { const maxAnchor = floorMultiplyBy(afterFee, anchorPerMinted); AmountMath.isGTE(maxAnchor, wanted) || Fail`wanted ${wanted} is more than ${given} minus fees ${fee}`; - atomicRearrange( - zcf, + zcf.atomicRearrange( harden([ [seat, stage, { In: afterFee }, { Minted: afterFee }], [seat, feePool, { In: fee }, { Minted: fee }], @@ -305,8 +303,7 @@ export const start = async (zcf, privateArgs, baggage) => { Fail`wanted ${wanted} is more than ${given} minus fees ${fee}`; mintMinted(asStable); try { - atomicRearrange( - zcf, + zcf.atomicRearrange( harden([ [seat, anchorPool, { In: given }, { Anchor: given }], [stage, seat, { Minted: afterFee }, { Out: afterFee }],