Skip to content

Commit

Permalink
fix: don't create AMM pools in addAssetToVault
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed May 16, 2022
1 parent ae00101 commit f9bd524
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/run-protocol/src/proposals/addAssetToVault.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,10 @@ export const registerScaledPriceAuthority = async (
*/
export const addAssetToVault = async (
{
consume: {
vaultFactoryCreator,
reserveCreatorFacet,
agoricNamesAdmin,
zoe,
},
consume: { vaultFactoryCreator, reserveCreatorFacet, agoricNamesAdmin },
brand: {
consume: { RUN: runP },
},
instance: {
consume: { amm },
},
},
{ options: { interchainAssetOptions = {} } = {} },
) => {
Expand All @@ -180,9 +172,6 @@ export const addAssetToVault = async (
[keyword],
);

/** @type {ERef<XYKAMMPublicFacet>} */
const ammPub = E(zoe).getPublicFacet(amm);
await E(ammPub).addPool(interchainIssuer, keyword);
await E(reserveCreatorFacet).addIssuer(interchainIssuer, keyword);

const RUN = await runP;
Expand All @@ -204,7 +193,6 @@ export const getManifestForAddAssetToVault = (
manifest: {
[addInterchainAsset.name]: {
consume: {
zoe: true,
bankManager: true,
agoricNamesAdmin: true,
interchainMints: true,
Expand Down Expand Up @@ -233,9 +221,6 @@ export const getManifestForAddAssetToVault = (
brand: {
consume: { RUN: true },
},
instance: {
consume: { amm: true },
},
},
},
installations: {
Expand Down

0 comments on commit f9bd524

Please sign in to comment.