Skip to content

Commit 3040143

Browse files
committed
Merge branch 'master' into 20250530-update-cow-burner
2 parents 127d2b8 + 9cfb4a3 commit 3040143

File tree

8 files changed

+1155
-9
lines changed

8 files changed

+1155
-9
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ Returns an object with all contracts from a deployment and their addresses.
147147
| V3 Protocol Fee Helper | [`20250430-v3-protocol-fee-helper`](./v3/tasks/20250430-v3-protocol-fee-helper) |
148148
| V3 Protocol Fee Percentages Provider | [`20250502-v3-fee-percentages-provider`](./v3/tasks/20250502-v3-fee-percentages-provider) |
149149
| V3 Protocol Fee Sweeper (V2) | [`20250503-v3-protocol-fee-sweeper-v2`](./v3/tasks/20250503-v3-protocol-fee-sweeper-v2) |
150+
| V3 Aggregator Batch Router | [`20250507-v3-aggregator-batch-router`](./v3/tasks/20250507-v3-aggregator-batch-router) |
150151
| V3 ERC4626 Cow Swap Fee Burner | [`20250507-v3-erc4626-cow-swap-fee-burner`](./v3/tasks/20250507-v3-erc4626-cow-swap-fee-burner) |
151152

152153
## Scripts

v2/scripts/20230130-ta-transition-migrator/index.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ export default async (task: Task, { force, from }: TaskRunOptions = {}): Promise
1010

1111
const inputRoles = [...input.Roles, ...input.DelayedRoles];
1212

13-
// Filter excluded roles in inputs file from on-chain roles.
14-
const onChainRoles = (await getTransitionRoles('mainnet', TRANSITION_START_BLOCK, TRANSITION_END_BLOCK)).filter(
15-
(role) => !excludedRoles.find((excludedRole) => isRoleEqual(excludedRole, role))
16-
);
13+
if (task.mode !== TaskMode.CHECK) {
14+
// Filter excluded roles in inputs file from on-chain roles.
15+
const onChainRoles = (await getTransitionRoles('mainnet', TRANSITION_START_BLOCK, TRANSITION_END_BLOCK)).filter(
16+
(role) => !excludedRoles.find((excludedRole) => isRoleEqual(excludedRole, role))
17+
);
1718

18-
const onchainInputMatch = onChainRoles.every((cRole) => inputRoles.find((iRole) => isRoleEqual(cRole, iRole)));
19-
const inputOnchainMatch = inputRoles.every((iRole) => onChainRoles.find((cRole) => isRoleEqual(iRole, cRole)));
20-
const rolesMatch = onChainRoles.length === inputRoles.length && onchainInputMatch && inputOnchainMatch;
19+
const onchainInputMatch = onChainRoles.every((cRole) => inputRoles.find((iRole) => isRoleEqual(cRole, iRole)));
20+
const inputOnchainMatch = inputRoles.every((iRole) => onChainRoles.find((cRole) => isRoleEqual(iRole, cRole)));
21+
const rolesMatch = onChainRoles.length === inputRoles.length && onchainInputMatch && inputOnchainMatch;
2122

22-
if (!rolesMatch) {
23-
throw new Error('Input permissions do not match on-chain roles granted to old authorizer');
23+
if (!rolesMatch) {
24+
throw new Error('Input permissions do not match on-chain roles granted to old authorizer');
25+
}
2426
}
2527

2628
const args = [input.OldAuthorizer, input.NewAuthorizer, inputRoles];

0 commit comments

Comments
 (0)