diff --git a/.github/workflows/deploy-strategy-hardhat-mainnet.yaml b/.github/workflows/deploy-strategy-hardhat-mainnet.yaml index a766c5d..0b06824 100644 --- a/.github/workflows/deploy-strategy-hardhat-mainnet.yaml +++ b/.github/workflows/deploy-strategy-hardhat-mainnet.yaml @@ -10,6 +10,10 @@ on: description: 'Yearn strategy name' required: true default: '0x' + symbol: + description: 'Yearn token symbol' + required: true + default: '0x' strategyManagementAddress: description: 'Strategy management address' required: true @@ -78,8 +82,9 @@ jobs: ADMIN_ADDRESS: ${{ vars.ADMIN_ADDRESS }} DEVOPS_ADDRESS: ${{ vars.DEVOPS_ADDRESS }} STRATEGY_NAME: ${{ github.event.inputs.strategyName }} - PROFIT_MAX_UNLOCK_TIME: ${{ github.event.inputs.profitMaxUnlock }} + PROFIT_MAX_UNLOCK_TIME: ${{ vars.PROFIT_MAX_UNLOCK_TIME }} STRATEGY_MANAGEMENT_ADDRESS: ${{ github.event.inputs.strategyManagementAddress }} + SYMBOL: ${{ github.event.inputs.symbol }} KEEPER_ADDRESS: ${{ vars.KEEPER }} FEE_RECIPIENT: ${{ github.event.inputs.feeRecipient }} COLLATERAL_TOKEN_ADDRESSES: ${{ github.event.inputs.collateralTokens }} diff --git a/.github/workflows/deploy-strategy-hardhat-sepolia.yaml b/.github/workflows/deploy-strategy-hardhat-sepolia.yaml index f7306c6..2e123b2 100644 --- a/.github/workflows/deploy-strategy-hardhat-sepolia.yaml +++ b/.github/workflows/deploy-strategy-hardhat-sepolia.yaml @@ -10,6 +10,10 @@ on: description: 'Yearn strategy name' required: true default: '0x' + symbol: + description: 'Yearn token symbol' + required: true + default: '0x' strategyManagementAddress: description: 'Strategy management address' required: true @@ -30,10 +34,6 @@ on: description: 'Required reserve ratio' required: false default: '0.01' - profitMaxUnlock: - description: 'Profit max unlock time' - required: false - default: '0' collateralTokens: description: 'Collateral tokens comma separated' required: false @@ -78,7 +78,8 @@ jobs: ADMIN_ADDRESS: ${{ vars.ADMIN_ADDRESS }} DEVOPS_ADDRESS: ${{ vars.DEVOPS_ADDRESS }} STRATEGY_NAME: ${{ github.event.inputs.strategyName }} - PROFIT_MAX_UNLOCK_TIME: ${{ github.event.inputs.profitMaxUnlock }} + SYMBOL: ${{ github.event.inputs.symbol }} + PROFIT_MAX_UNLOCK_TIME: ${{ vars.PROFIT_MAX_UNLOCK_TIME }} STRATEGY_MANAGEMENT_ADDRESS: ${{ github.event.inputs.strategyManagementAddress }} KEEPER_ADDRESS: ${{ vars.KEEPER }} FEE_RECIPIENT: ${{ github.event.inputs.feeRecipient }} diff --git a/hardhat-scripts/deploy-strategy.ts b/hardhat-scripts/deploy-strategy.ts index 9d4f133..ac2b2fd 100644 --- a/hardhat-scripts/deploy-strategy.ts +++ b/hardhat-scripts/deploy-strategy.ts @@ -130,7 +130,7 @@ async function main() { const Strategy = (await hre.ethers.getContractFactory("Strategy")).connect( managedSigner ?? null ); - const strategy = await Strategy.deploy(process.env.STRATEGY_NAME!, params); + const strategy = await Strategy.deploy(process.env.STRATEGY_NAME!, process.env.SYMBOL!, params); await strategy.deployed(); console.log("Deployed strategy to:", strategy.address);