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

Change required signer counts for scripts #355

Merged
merged 1 commit into from
Oct 4, 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: 1 addition & 1 deletion scripts/deploy-base-only-market.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ contract DeployMarket is Utils {
for (uint i = 0; i < config.feedSigners.length; ++i) {
market.spotFeed.addSigner(config.feedSigners[i], true);
}
market.spotFeed.setRequiredSigners(config.feedSigners.length);
market.spotFeed.setRequiredSigners(config.requiredSigners);
}

market.base = new WrappedERC20Asset(deployment.subAccounts, IERC20Metadata(marketERC20));
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy-core.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ contract DeployCore is Utils {
for (uint i = 0; i < config.feedSigners.length; ++i) {
stableFeed.addSigner(config.feedSigners[i], true);
}
stableFeed.setRequiredSigners(config.feedSigners.length);
stableFeed.setRequiredSigners(config.requiredSigners);
deployment.stableFeed = stableFeed;

deployment.dataSubmitter = new OracleDataSubmitter();
Expand Down
12 changes: 6 additions & 6 deletions scripts/deploy-market.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ contract DeployMarket is Utils {
market.volFeed.addSigner(config.feedSigners[i], true);
market.forwardFeed.addSigner(config.feedSigners[i], true);
}
market.spotFeed.setRequiredSigners(config.feedSigners.length);
market.perpFeed.setRequiredSigners(config.feedSigners.length);
market.iapFeed.setRequiredSigners(config.feedSigners.length);
market.ibpFeed.setRequiredSigners(config.feedSigners.length);
market.volFeed.setRequiredSigners(config.feedSigners.length);
market.forwardFeed.setRequiredSigners(config.feedSigners.length);
market.spotFeed.setRequiredSigners(config.requiredSigners);
market.perpFeed.setRequiredSigners(config.requiredSigners);
market.iapFeed.setRequiredSigners(config.requiredSigners);
market.ibpFeed.setRequiredSigners(config.requiredSigners);
market.volFeed.setRequiredSigners(config.requiredSigners);
market.forwardFeed.setRequiredSigners(config.requiredSigners);

market.option = new OptionAsset(deployment.subAccounts, address(market.forwardFeed));

Expand Down
8 changes: 4 additions & 4 deletions scripts/deploy-perp-only-market.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ contract DeployPerpOnlyMarket is Utils {
market.ibpFeed.addSigner(config.feedSigners[i], true);
}

market.spotFeed.setRequiredSigners(uint8(config.feedSigners.length));
market.perpFeed.setRequiredSigners(uint8(config.feedSigners.length));
market.iapFeed.setRequiredSigners(uint8(config.feedSigners.length));
market.ibpFeed.setRequiredSigners(uint8(config.feedSigners.length));
market.spotFeed.setRequiredSigners(config.requiredSigners);
market.perpFeed.setRequiredSigners(config.requiredSigners);
market.iapFeed.setRequiredSigners(config.requiredSigners);
market.ibpFeed.setRequiredSigners(config.requiredSigners);

// Deploy and configure perp
(int staticInterestRate, int fundingRateCap, uint fundingConvergencePeriod) = Config.getPerpParams();
Expand Down
6 changes: 3 additions & 3 deletions scripts/deploy-srm-option-only-market.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ contract DeploySRMOptionOnlyMarket is Utils {
market.volFeed.addSigner(config.feedSigners[i], true);
market.forwardFeed.addSigner(config.feedSigners[i], true);
}
market.spotFeed.setRequiredSigners(config.feedSigners.length);
market.volFeed.setRequiredSigners(config.feedSigners.length);
market.forwardFeed.setRequiredSigners(config.feedSigners.length);
market.spotFeed.setRequiredSigners(config.requiredSigners);
market.volFeed.setRequiredSigners(config.requiredSigners);
market.forwardFeed.setRequiredSigners(config.requiredSigners);

market.option = new OptionAsset(deployment.subAccounts, address(market.forwardFeed));

Expand Down
Loading