Skip to content

Commit

Permalink
Daily improvements - 26 August - Maker
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-langa committed Aug 26, 2024
1 parent 6f77e64 commit 2f6eb98
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 1,401 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { openMakerPosition, swapPosition } from 'tests/sharedTestSteps/positionM
let context: BrowserContext;
let app: App;
let forkId: string;
let walletAddress: string;

test.describe.configure({ mode: 'serial' });

Expand Down Expand Up @@ -43,30 +42,22 @@ test.describe('Maker Borrow - Swap to Aave V3', async () => {
let page = await context.newPage();
app = new App(page);

({ forkId, walletAddress } = await setup({
({ forkId } = await setup({
app,
network: 'mainnet',
extraFeaturesFlags: 'MakerTenderly:true',
}));

await tenderly.setTokenBalance({
forkId,
walletAddress,
network: 'mainnet',
token: 'WBTC',
balance: '20',
});
});

await app.page.goto('vaults/open/WBTC-C');
await app.page.goto('vaults/open/ETH-C');

// Depositing collateral too quickly after loading page returns wrong simulation results
await app.position.overview.waitForComponentToBeStable({ positionType: 'Maker' });

await openMakerPosition({
app,
forkId,
deposit: { token: 'WBTC', amount: '0.2' },
deposit: { token: 'ETH', amount: '10' },
generate: { token: 'DAI', amount: '5000' },
});

Expand Down Expand Up @@ -96,7 +87,7 @@ test.describe('Maker Borrow - Swap to Aave V3', async () => {
// { colToken: 'LDO', debtToken: 'USDT' }, // BUG - 15943 - NOT working
] as const
).forEach((targetPool) =>
test(`It should swap a Maker Borrow position (WBTC/DAI) to Aave V3 Multiply (${targetPool.colToken}/${targetPool.debtToken})`, async () => {
test(`It should swap a Maker Borrow position (ETH/DAI) to Aave V3 Multiply (${targetPool.colToken}/${targetPool.debtToken})`, async () => {
test.info().annotations.push({
type: 'Test case',
description: 'xxx',
Expand Down
Loading

0 comments on commit 2f6eb98

Please sign in to comment.