Skip to content

Commit

Permalink
chore: AMM minIntialLiquidity is under options
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed May 26, 2022
1 parent 3f47837 commit 2efb0e9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/run-protocol/src/proposals/econ-behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ harden(startInterchainPool);

/**
* @param { EconomyBootstrapPowers } powers
* @param {object} opts
* @param {object} [opts.options]
* @param {bigint} [opts.options.minInitialPoolLiquidity]
* @param {{ options?: { minInitialPoolLiquidity?: bigint }}} opts
*/
export const setupAmm = async (
{
Expand Down
4 changes: 3 additions & 1 deletion packages/run-protocol/test/amm/vpool-xyk-amm/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export const setupAmmServices = async (
options: { econCommitteeOptions: electorateTerms },
}),
setupAmm(space, {
minInitialPoolLiquidity: 1000n,
options: {
minInitialPoolLiquidity: 1000n,
},
}),
]);

Expand Down
2 changes: 1 addition & 1 deletion packages/run-protocol/test/vaultFactory/test-liquidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const setupAmmAndElectorate = async (t, aethLiquidity, runLiquidity) => {
options: { econCommitteeOptions: electorateTerms },
});
setupAmm(space, {
minInitialPoolLiquidity: 1000n,
options: { minInitialPoolLiquidity: 1000n },
});

const governorCreatorFacet = consume.ammGovernorCreatorFacet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const setupAmmAndElectorate = async (t, aethLiquidity, runLiquidity) => {
space.installation.produce.amm.resolve(t.context.installation.amm);
await startEconomicCommittee(space, electorateTerms);
await setupAmm(space, {
minInitialPoolLiquidity: 300n,
options: { minInitialPoolLiquidity: 300n },
});

const governorCreatorFacet = consume.ammGovernorCreatorFacet;
Expand Down

0 comments on commit 2efb0e9

Please sign in to comment.