Skip to content

Commit

Permalink
script: remove operator initialization from USDS migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
Oighty committed Nov 26, 2024
1 parent e242564 commit 9334e49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/proposals/ProposalScript.sol
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ abstract contract ProposalScript is ScriptSuite {
// run the proposal to build it
proposal.run(addresses, address(0));

(address[] memory targets, uint256[] memory values, bytes[] memory calldatas) = proposal.getProposalActions();
(address[] memory targets, uint256[] memory values, bytes[] memory calldatas) = proposal
.getProposalActions();
uint256 len = targets.length;
// print the targets
console2.log("Targets:");
Expand Down
9 changes: 3 additions & 6 deletions src/scripts/ops/batches/USDSMigration.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ contract USDSMigration is OlyBatch {
// 4. Initialize new policies and update certain configs - DAO MS
// + Set Operator on BondCallback to Operator v1.5
// + Set sUSDS as the wrapped token for USDS on BondCallback
// + Initialize Operator v1.5
// + Activate Clearinghouse v2.1
// + Initialize YieldRepurchaseFacility v1.1

// TODO set these
uint256 initialReserveBalance = 0;
uint256 initialConversionRate = 0;
Expand Down Expand Up @@ -197,13 +197,10 @@ contract USDSMigration is OlyBatch {
abi.encodeWithSelector(BondCallback.useWrappedVersion.selector, usds, susds)
);

// 4c. Initialize the new Operator policy
addToBatch(newOperator, abi.encodeWithSelector(Operator.initialize.selector));

// 4d. Activate the new Clearinghouse policy
// 4c. Activate the new Clearinghouse policy
addToBatch(newClearinghouse, abi.encodeWithSelector(Clearinghouse.activate.selector));

// 4e. Initialize the new YRF
// 4d. Initialize the new YRF
addToBatch(
newYieldRepo,
abi.encodeWithSelector(
Expand Down

0 comments on commit 9334e49

Please sign in to comment.