From 579e70d566a7976574b8fed555827e7be33a7246 Mon Sep 17 00:00:00 2001 From: aazhou1 Date: Wed, 27 Nov 2024 19:54:07 -0500 Subject: [PATCH] event emitter pair vault contract --- .github/workflows/deploy-mainnet-vault-governance.yaml | 4 ++-- script/Strategy.s.sol | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-mainnet-vault-governance.yaml b/.github/workflows/deploy-mainnet-vault-governance.yaml index 8281dd27..c9cd64d3 100644 --- a/.github/workflows/deploy-mainnet-vault-governance.yaml +++ b/.github/workflows/deploy-mainnet-vault-governance.yaml @@ -1,4 +1,4 @@ -name: "[sepolia-deploy] deploy governance for vault" +name: "[mainnet-deploy] deploy governance for vault" on: workflow_dispatch: inputs: @@ -23,7 +23,7 @@ jobs: deploy: runs-on: ubuntu-latest environment: - name: sepolia + name: mainnet url: https://term-finance.github.io/yearn-v3-term-vault/ steps: - uses: actions/checkout@master diff --git a/script/Strategy.s.sol b/script/Strategy.s.sol index 16906f8f..c8306628 100644 --- a/script/Strategy.s.sol +++ b/script/Strategy.s.sol @@ -175,10 +175,9 @@ contract DeployStrategy is Script { console.log("set pending management"); console.log(strategyManagement); - if (isTest) { - eventEmitter.pairVaultContract(address(strategy)); - console.log("paired strategy contract with event emitter"); - } + eventEmitter.pairVaultContract(address(strategy)); + console.log("paired strategy contract with event emitter"); + for (uint256 i = 0; i < collateralTokens.length; i++) { strategy.setCollateralTokenParams(collateralTokens[i], minCollateralRatios[i]);