Skip to content

Commit

Permalink
Update deploy_stable_swap_maturity
Browse files Browse the repository at this point in the history
  • Loading branch information
tpawn committed Oct 18, 2024
1 parent cf623f3 commit 2615b73
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 2615b73

Please sign in to comment.