Skip to content

Commit

Permalink
feat: scenarios pass locally, but not in git. debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-woof-software committed Jul 20, 2024
1 parent ac5103e commit 670f40f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions scenario/MainnetBulkerScenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ async function getWstETHIndex(context: any): Promise<number> {
}

async function hasWstETH(context: any): Promise<boolean> {
return(await getWstETHIndex(context) > -1);
return (await getWstETHIndex(context) > -1);
}

scenario(
'MainnetBulker > wraps stETH before supplying',
{
filter: async (ctx) => await hasWstETH(ctx) && await isBulkerSupported(ctx) && matchesDeployment(ctx, [{network: 'mainnet'}]),
filter: async (ctx) => await hasWstETH(ctx) && await isBulkerSupported(ctx) && matchesDeployment(ctx, [{ network: 'mainnet' }]),
supplyCaps: async (ctx) => (
{
[`$asset${await getWstETHIndex(ctx)}`] : 1,
[`$asset${await getWstETHIndex(ctx)}`]: 1,
}
),
tokenBalances: async (ctx) => (
Expand All @@ -50,6 +50,8 @@ scenario(
const stETH = await context.world.deploymentManager.hre.ethers.getContractAt('ERC20', MAINNET_STETH_ADDRESS) as ERC20;
const wstETH = await context.world.deploymentManager.contract('wstETH') as IWstETH;

console.log({ wstETH })

Check failure on line 53 in scenario/MainnetBulkerScenario.ts

View workflow job for this annotation

GitHub Actions / Run ESLint

Missing semicolon

const toSupplyStEth = exp(.1, 18);

await context.sourceTokens(toSupplyStEth, new CometAsset(stETH), albert);
Expand Down Expand Up @@ -80,10 +82,10 @@ scenario(
scenario(
'MainnetBulker > unwraps wstETH before withdrawing',
{
filter: async (ctx) => await hasWstETH(ctx) && await isBulkerSupported(ctx) && matchesDeployment(ctx, [{network: 'mainnet'}]),
filter: async (ctx) => await hasWstETH(ctx) && await isBulkerSupported(ctx) && matchesDeployment(ctx, [{ network: 'mainnet' }]),
supplyCaps: async (ctx) => (
{
[`$asset${await getWstETHIndex(ctx)}`] : 2,
[`$asset${await getWstETHIndex(ctx)}`]: 2,
}
),
tokenBalances: async (ctx) => (
Expand Down Expand Up @@ -134,10 +136,10 @@ scenario(
scenario(
'MainnetBulker > withdraw max stETH leaves no dust',
{
filter: async (ctx) => await hasWstETH(ctx) && await isBulkerSupported(ctx) && matchesDeployment(ctx, [{network: 'mainnet'}]),
filter: async (ctx) => await hasWstETH(ctx) && await isBulkerSupported(ctx) && matchesDeployment(ctx, [{ network: 'mainnet' }]),
supplyCaps: async (ctx) => (
{
[`$asset${await getWstETHIndex(ctx)}`] : 2,
[`$asset${await getWstETHIndex(ctx)}`]: 2,
}
),
tokenBalances: async (ctx) => (
Expand Down Expand Up @@ -182,7 +184,7 @@ scenario(
scenario(
'MainnetBulker > it reverts when passed an action that does not exist',
{
filter: async (ctx) => await hasWstETH(ctx) && await isBulkerSupported(ctx) && matchesDeployment(ctx, [{network: 'mainnet'}]),
filter: async (ctx) => await hasWstETH(ctx) && await isBulkerSupported(ctx) && matchesDeployment(ctx, [{ network: 'mainnet' }]),
},
async ({ comet, actors }) => {
const { betty } = actors;
Expand Down

0 comments on commit 670f40f

Please sign in to comment.