Skip to content

Commit 0151cf8

Browse files
Read constant addressed from .evm
1 parent ff0ef7f commit 0151cf8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tasks/symmVesting.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ import { HardhatRuntimeEnvironment } from "hardhat/types"
44
task("deploy:Vesting", "Deploys the Vesting contract")
55
.addParam("admin", "The admin of the Vesting contract")
66
.addParam("lockedClaimPenaltyReceiver", "Address that receives the penalty")
7-
.setAction(async ({ admin, lockedClaimPenaltyReceiver }, { ethers, upgrades }: HardhatRuntimeEnvironment) => {
7+
.addParam("pool", "Address of the pool")
8+
.addParam("router", "Address of the router")
9+
.addParam("permit2", "Address of the permit2")
10+
.addParam("vault", "Address of the vault")
11+
.addParam("symm", "Address of symm token")
12+
.addParam("usdc", "Address of usdc token")
13+
.addParam("symmLp", "Address of symmLp token")
14+
.setAction(async ({ admin, lockedClaimPenaltyReceiver, pool, router, permit2, vault, symm, usdc, symmLp }, { ethers, upgrades }: HardhatRuntimeEnvironment) => {
815
console.log("deploy:Vesting")
916

1017
const VestingPlanOps = await ethers.getContractFactory("VestingPlanOps")
@@ -16,7 +23,7 @@ task("deploy:Vesting", "Deploys the Vesting contract")
1623
VestingPlanOps: await vestingPlanOps.getAddress(),
1724
},
1825
})
19-
const vestingContract = await upgrades.deployProxy(VestingFactory, [admin, lockedClaimPenaltyReceiver], {
26+
const vestingContract = await upgrades.deployProxy(VestingFactory, [admin, lockedClaimPenaltyReceiver, pool, router, permit2, vault, symm, usdc, symmLp ], {
2027
unsafeAllow: ["external-library-linking"],
2128
initializer: "initialize",
2229
})

0 commit comments

Comments
 (0)