Skip to content

Commit

Permalink
Change required signer counts for scripts (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshpwrk authored Oct 4, 2024
2 parents 926904a + 7433483 commit d69b557
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
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

0 comments on commit d69b557

Please sign in to comment.