Skip to content

Commit

Permalink
fix: scenario fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaShWoof committed Jan 29, 2025
1 parent cd8abbd commit 13a9d5e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const networkConfigs: NetworkConfig[] = [
{
network: 'scroll',
chainId: 534352,
url: 'https://rpc.scroll.io',
url: `https://rpc.ankr.com/scroll/${ANKR_KEY}`,
},
{
network: 'linea',
Expand Down
3 changes: 2 additions & 1 deletion plugins/deployment_manager/Migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export async function loadMigration(path: string): Promise<Migration<any>> {
export async function loadMigrations(paths: string[]): Promise<Migration<any>[]> {
const migrations = [];
for (const path of paths) {
migrations.push(await loadMigration(path));
if(!await (await loadMigration(path)).actions.enacted(undefined, undefined))
migrations.push(await loadMigration(path));
}
return migrations;
}
Expand Down
2 changes: 1 addition & 1 deletion scenario/constraints/MigrationConstraint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class MigrationConstraint<T extends CometContext> implements StaticConstr
async solve(world: World) {
const label = `[${world.base.name}] {MigrationConstraint}`;
const solutions: Solution<T>[] = [];
const migrationPaths = [...subsets(await getMigrations(world))];
const migrationPaths = [await getMigrations(world)];

for (const migrationList of migrationPaths) {
if (migrationList.length == 0 && migrationPaths.length > 1) {
Expand Down
1 change: 1 addition & 0 deletions scenario/utils/scenarioHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export function getConfigForScenario(ctx: CometContext) {
config.liquidationBase = 100000;
config.liquidationBase1 = 50000;
config.liquidationAsset = 10000;
config.withdrawAsset = 10000;
}

if (ctx.world.base.network === 'polygon' && ctx.world.base.deployment === 'usdc') {
Expand Down

0 comments on commit 13a9d5e

Please sign in to comment.