Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge governor setting changes #99

Merged
merged 10 commits into from
Nov 14, 2024
7 changes: 7 additions & 0 deletions script/Strategy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ contract DeployStrategy is Script {
uint256 repoTokenConcentrationLimit = vm.envUint("REPOTOKEN_CONCENTRATION_LIMIT");
uint256 newRequiredReserveRatio = vm.envUint("NEW_REQUIRED_RESERVE_RATIO");

checkUnderlyingVaultAsset(asset, yearnVaultAddress);

Strategy.StrategyParams memory params = Strategy.StrategyParams(
asset,
yearnVaultAddress,
Expand All @@ -193,6 +195,11 @@ contract DeployStrategy is Script {

}

function checkUnderlyingVaultAsset(address asset, address underlyingVault) internal {
address underlyingAsset = IERC4626(underlyingVault).asset();
require(underlyingAsset == asset, "Underlying asset does not match asset");
}

function _deployEventEmitter() internal returns(TermVaultEventEmitter eventEmitter) {
address admin = vm.envAddress("ADMIN_ADDRESS");
address devops = vm.envAddress("DEVOPS_ADDRESS");
Expand Down
Loading
Loading