Skip to content

Commit

Permalink
Merge pull request #355 from tranchess/dev-terry-deploy
Browse files Browse the repository at this point in the history
Update deploy_stable_swap_maturity
  • Loading branch information
bill-clippy authored Oct 18, 2024
2 parents cf623f3 + 2615b73 commit 64ed861
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks/deploy_stable_swap_maturity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface StableSwapAddresses extends Addresses {
task("deploy_stable_swap_maturity", "Deploy stable swap contracts for MaturityFund")
.addParam("kind", "Queen or Bishop stable swap")
.addParam("underlyingSymbol", "Underlying token symbol of the swap")
.addParam("lpSymbol", "LP token symbol")
.addParam("quote", "Quote token address")
.addParam("bonus", "Bonus token address")
.addParam("ampl", "The ampl of the swap")
Expand All @@ -43,6 +44,8 @@ task("deploy_stable_swap_maturity", "Deploy stable swap contracts for MaturityFu

const underlyingSymbol: string = args.underlyingSymbol;
assert.match(underlyingSymbol, /^[a-zA-Z0-9.]+$/, "Invalid symbol");
const lpSymbol: string = args.lpSymbol;
assert.match(lpSymbol, /^[a-zA-Z0-9.]+$/, "Invalid LP symbol");

const quote = await ethers.getContractAt("ERC20", args.quote);
const quoteSymbol = await quote.symbol();
Expand Down Expand Up @@ -139,7 +142,7 @@ task("deploy_stable_swap_maturity", "Deploy stable swap contracts for MaturityFu
const LiquidityGauge = await ethers.getContractFactory("LiquidityGaugeV3");
const liquidityGauge = await LiquidityGauge.deploy(
`Tranchess ${baseSymbol}-${quoteSymbol}`,
`${baseSymbol}LP`,
lpSymbol,
stableSwap.address,
chessSchedule.address,
governanceAddresses.chessController,
Expand Down

0 comments on commit 64ed861

Please sign in to comment.