From 543378d98a5c5a1812b19044608d1523694110ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 6 Jan 2025 13:26:41 +0100 Subject: [PATCH] fix: use correct address for strategist at deployment. --- contracts/deploy/mainnet/114_simple_harvester.js | 6 ++++-- .../test/harvest/simple-harvester.mainnet.fork-test.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/contracts/deploy/mainnet/114_simple_harvester.js b/contracts/deploy/mainnet/114_simple_harvester.js index d1ea4b418e..f4d40821de 100644 --- a/contracts/deploy/mainnet/114_simple_harvester.js +++ b/contracts/deploy/mainnet/114_simple_harvester.js @@ -11,13 +11,15 @@ module.exports = deploymentWithGovernanceProposal( // proposalId: "", }, async ({ deployWithConfirmation }) => { - const { deployerAddr } = await getNamedAccounts(); + const { strategistAddr } = await getNamedAccounts(); // 1. Deploy contract const dOETHHarvesterSimple = await deployWithConfirmation( "OETHHarvesterSimple", - [addresses.mainnet.Timelock, deployerAddr] // Need to adjust governor and strategist + [addresses.mainnet.Timelock, strategistAddr] ); + + console.log("strategistAddr: ", strategistAddr); const cOETHHarvesterSimple = await ethers.getContractAt( "OETHHarvesterSimple", dOETHHarvesterSimple.address diff --git a/contracts/test/harvest/simple-harvester.mainnet.fork-test.js b/contracts/test/harvest/simple-harvester.mainnet.fork-test.js index 9deef6eb4c..f4be38cb42 100644 --- a/contracts/test/harvest/simple-harvester.mainnet.fork-test.js +++ b/contracts/test/harvest/simple-harvester.mainnet.fork-test.js @@ -19,13 +19,15 @@ describe("ForkTest: CurvePoolBooster", function () { it("Should have correct parameters", async () => { const { simpleOETHHarvester } = fixture; - const { deployerAddr } = await getNamedAccounts(); + const { strategistAddr } = await getNamedAccounts(); expect(await simpleOETHHarvester.governor()).to.be.equal( addresses.mainnet.Timelock ); + + console.log("strategistAddr: ", strategistAddr); expect(await simpleOETHHarvester.strategistAddr()).to.be.equal( - deployerAddr + strategistAddr ); });