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

add governor to strategy state #94

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Strategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ contract Strategy is BaseStrategy, Pausable, AccessControl {
struct StrategyState {
address assetVault;
address eventEmitter;
address governorAddress;
address prevTermController;
address currTermController;
address discountRateAdapter;
Expand Down Expand Up @@ -1181,6 +1182,7 @@ contract Strategy is BaseStrategy, Pausable, AccessControl {
strategyState = StrategyState({
assetVault: address(YEARN_VAULT),
eventEmitter: address(TERM_VAULT_EVENT_EMITTER),
governorAddress: _params._governorAddress,
prevTermController: address(0),
currTermController: address(currTermController),
discountRateAdapter: address(discountRateAdapter),
Expand Down
1 change: 1 addition & 0 deletions src/test/TestUSDCIntegration.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ contract TestUSDCIntegration is Setup {
(
address assetVault,
address eventEmitter,
address governorAddr,
address prevTermController,
address currTermController,
address discountRateAdapter,
Expand Down
1 change: 1 addition & 0 deletions src/test/TestUSDCSellRepoToken.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ contract TestUSDCSellRepoToken is Setup {
(
address assetVault,
address eventEmitter,
address governorAddr,
address prevTermController,
address currTermController,
address discountRateAdapter,
Expand Down