Skip to content

Commit

Permalink
update mainnet strategy deploys to include performance fee recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
aazhou1 committed Dec 18, 2024
1 parent 55851dd commit 0173fdd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy-mainnet-strategy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ on:
description: 'Strategy management address'
required: true
default: '0x'
discountRateMarkup:
description: 'Discount rate markup'
feeRecipient:
description: 'FeeRecipient address'
required: false
default: '0.01'
default: '0x'
timeToMaturityThreshold:
description: 'Time to maturity threshold'
required: false
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
STRATEGY_NAME: ${{ github.event.inputs.strategyName }}
TERM_CONTROLLER_ADDRESS: ${{ vars.TERM_CONTROLLER_ADDRESS }}
DISCOUNT_RATE_ADAPTER_ADDRESS: ${{ vars.DISCOUNT_RATE_ADAPTER_ADDRESS }}
DISCOUNT_RATE_MARKUP: ${{ github.event.inputs.discountRateMarkup }}
DISCOUNT_RATE_MARKUP: ${{ vars.DISCOUNT_RATE_MARKUP }}
TIME_TO_MATURITY_THRESHOLD: ${{ github.event.inputs.timeToMaturityThreshold }}
REPOTOKEN_CONCENTRATION_LIMIT: ${{ github.event.inputs.repoTokenConcentrationLimit }}
ADMIN_ADDRESS: ${{ vars.ADMIN_ADDRESS }}
Expand All @@ -82,4 +82,5 @@ jobs:
COLLATERAL_TOKEN_ADDRESSES: ${{ github.event.inputs.collateralTokens }}
MIN_COLLATERAL_RATIOS: ${{ github.event.inputs.minCollateralRatios }}
PROFIT_MAX_UNLOCK_TIME: ${{ github.event.inputs.profitMaxUnlock }}
FEE_RECIPIENT: ${{ github.event.inputs.feeRecipient }}

2 changes: 2 additions & 0 deletions script/Strategy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ contract DeployStrategy is Script {
address governorRoleAddress = vm.envAddress("GOVERNOR_ROLE_ADDRESS");
uint256 profitMaxUnlockTime = vm.envUint("PROFIT_MAX_UNLOCK_TIME");
address keeper = vm.envAddress("KEEPER_ADDRESS");
address feeRecipient = vm.envAddress("FEE_RECIPIENT");

bool isTest = vm.envBool("IS_TEST");

Expand All @@ -172,6 +173,7 @@ contract DeployStrategy is Script {

ITokenizedStrategy(address(strategy)).setPendingManagement(strategyManagement);
ITokenizedStrategy(address(strategy)).setKeeper(keeper);
ITokenizedStrategy(address(strategy)).setPerformanceFeeRecipient(feeRecipient);
console.log("set pending management");
console.log(strategyManagement);

Expand Down

0 comments on commit 0173fdd

Please sign in to comment.