Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/v3.2 [skip cypress] #2224

Merged
merged 33 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c479c72
feat: added v3.2 network config
JoaquinBattilana Sep 27, 2024
c0918b0
Merge branch 'main' into feat/v3.2
grothem Oct 3, 2024
3c87c93
Chore/stable rate removal (#2221)
grothem Oct 21, 2024
455c1c3
feat: 3.2 ui pool data provider integration
JoaquinBattilana Oct 22, 2024
28a9cf2
feat: merged with main
JoaquinBattilana Oct 22, 2024
3b2034a
feat: added new providers addresses
JoaquinBattilana Oct 23, 2024
3524d8b
feat: emode modal, wip
grothem Oct 23, 2024
dff5a1e
fix: emodes, wip
grothem Oct 24, 2024
9fd73b3
fix: formatting
grothem Oct 24, 2024
1e72bee
fix: console logs
grothem Oct 24, 2024
cea7149
chore: cleanup
grothem Oct 24, 2024
5d60dd9
fix: lock file
grothem Oct 24, 2024
032ad00
feat: initial reserve page
grothem Oct 24, 2024
475fd3c
fix: ui cleanup, wip
grothem Oct 24, 2024
667d1b1
fix: table scroll
grothem Oct 24, 2024
349f823
fix: warnings, links
grothem Oct 25, 2024
2d6b7eb
feat: some emode fixes
JoaquinBattilana Oct 25, 2024
d7659e1
feat: ezeth icon
grothem Oct 25, 2024
ddd298e
fix: 0 ltv check for emode config
grothem Oct 25, 2024
fe6d60a
fix: build
grothem Oct 25, 2024
4f738d1
Merge branch 'main' into feat/v3.2
grothem Oct 25, 2024
5df47e1
fix: package json
grothem Oct 25, 2024
8f099f6
fix: types
grothem Oct 26, 2024
35b3663
fix: i18n
grothem Oct 26, 2024
f3e42b5
feat: reserve page e-mode info
grothem Oct 26, 2024
5f952c1
feat: bump utils
JoaquinBattilana Oct 26, 2024
553ed0c
fix: tests
grothem Oct 26, 2024
cb95dc3
fix: build
grothem Oct 26, 2024
f3dfd42
chore: utils
grothem Oct 26, 2024
d1dfb14
fix: doc links
grothem Oct 26, 2024
41f52b5
fix: cleanup stable tooltip
grothem Oct 26, 2024
3215666
fix: i18n
grothem Oct 26, 2024
889a018
fix: layout, icons, final cleanup
grothem Oct 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.gitattributes
node_modules/
public/
.nvmrc

# Artifacts
.next/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import {
supply,
withdraw,
} from '../../../../support/steps/main.steps';
import {
changeBorrowTypeBlocked,
dashboardAssetValuesVerification,
} from '../../../../support/steps/verification.steps';
import { dashboardAssetValuesVerification } from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

const tokensToRequest: RequestedTokens = {
Expand Down Expand Up @@ -123,6 +120,5 @@ describe.skip('USDT INTEGRATION SPEC, AAVE V2 MARKET', () => {
repay(repayCase, skipTestState, false);
});
withdraw(testData.testCases.withdraw, skipTestState, false);
changeBorrowTypeBlocked(testData.testCases.checkBorrowTypeBlocked, skipTestState);
dashboardAssetValuesVerification(testData.verifications.finalDashboard, skipTestState);
});
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import constants from '../../../../fixtures/constans.json';
import { skipState } from '../../../../support/steps/common';
import { configEnvWithTenderlyPolygonFork } from '../../../../support/steps/configuration.steps';
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
changeBorrowTypeBlocked,
dashboardAssetValuesVerification,
} from '../../../../support/steps/verification.steps';
import { dashboardAssetValuesVerification } from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

const tokensToRequest: RequestedTokens = {
Expand Down Expand Up @@ -82,6 +79,5 @@ describe.skip('USDT INTEGRATION SPEC, POLYGON MARKET', () => {
repay(repayCase, skipTestState, false);
});
withdraw(testData.testCases.withdraw, skipTestState, false);
changeBorrowTypeBlocked(testData.testCases.checkDisabledCollateral, skipTestState);
dashboardAssetValuesVerification(testData.verifications.finalDashboard, skipTestState);
});
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import constants from '../../../../fixtures/constans.json';
import { skipState } from '../../../../support/steps/common';
import { configEnvWithTenderlyAvalancheFork } from '../../../../support/steps/configuration.steps';
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { dashboardAssetValuesVerification } from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

const tokensToRequest: RequestedTokens = {
Expand Down Expand Up @@ -71,6 +68,5 @@ describe('DAI INTEGRATION SPEC, AVALANCHE V2 MARKET', () => {
supply(testData.testCases.deposit, skipTestState, true);
repay(testData.testCases.repay, skipTestState, false);
withdraw(testData.testCases.withdraw, skipTestState, false);
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
dashboardAssetValuesVerification(testData.verifications.finalDashboard, skipTestState);
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyAvalancheFork } from '../../../../support/steps/co
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -82,6 +81,5 @@ describe('USDC INTEGRATION SPEC, AVALANCHE V2 MARKET', () => {
repay(repayCase, skipTestState, false);
});
withdraw(testData.testCases.withdraw, skipTestState, false);
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
dashboardAssetValuesVerification(testData.verifications.finalDashboard, skipTestState);
});
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { skipState } from '../../../../support/steps/common';
import { configEnvWithTenderlyAvalancheFork } from '../../../../support/steps/configuration.steps';
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
changeBorrowTypeBlocked,
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -87,7 +85,5 @@ describe.skip('USDT INTEGRATION SPEC, AVALANCHE V2 MARKET', () => {
repay(repayCase, skipTestState, false);
});
withdraw(testData.testCases.withdraw, skipTestState, false);
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
changeBorrowTypeBlocked(testData.testCases.checkBorrowTypeBlocked, skipTestState);
dashboardAssetValuesVerification(testData.verifications.finalDashboard, skipTestState);
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyAvalancheFork } from '../../../../support/steps/co
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -71,6 +70,5 @@ describe.skip('WBTC INTEGRATION SPEC, AVALANCHE V2 MARKET', () => {
supply(testData.testCases.deposit, skipTestState, true);
repay(testData.testCases.repay, skipTestState, false);
withdraw(testData.testCases.withdraw, skipTestState, false);
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
dashboardAssetValuesVerification(testData.verifications.finalDashboard, skipTestState);
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyAvalancheFork } from '../../../../support/steps/co
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -71,6 +70,5 @@ describe('WETH INTEGRATION SPEC, AVALANCHE V2 MARKET', () => {
supply(testData.testCases.deposit, skipTestState, true);
repay(testData.testCases.repay, skipTestState, false);
withdraw(testData.testCases.withdraw, skipTestState, false);
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
dashboardAssetValuesVerification(testData.verifications.finalDashboard, skipTestState);
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyAEthereumV3Fork } from '../../../../support/steps/
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -85,7 +84,6 @@ describe('LINK INTEGRATION SPEC, ETHEREUM V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyAEthereumV3Fork } from '../../../../support/steps/
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -85,7 +84,6 @@ describe('WBTC INTEGRATION SPEC, ETHEREUM V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyArbitrumFork } from '../../../../support/steps/con
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -85,7 +84,6 @@ describe('LINK INTEGRATION SPEC, ARBITRUM V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyArbitrumFork } from '../../../../support/steps/con
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -84,7 +83,6 @@ describe('WBTC INTEGRATION SPEC, ARBITRUM V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyAvalancheFork } from '../../../../support/steps/co
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -85,7 +84,6 @@ describe('LINK INTEGRATION SPEC, AVALANCHE V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyAvalancheFork } from '../../../../support/steps/co
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -85,7 +84,6 @@ describe('WBTC INTEGRATION SPEC, AVALANCHE V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyAvalancheFork } from '../../../../support/steps/co
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -85,7 +84,6 @@ describe('WETH INTEGRATION SPEC, AVALANCHE V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyPolygonFork } from '../../../../support/steps/conf
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -86,7 +85,6 @@ describe.skip('LINK INTEGRATION SPEC, POLYGON V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyPolygonFork } from '../../../../support/steps/conf
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -87,7 +86,6 @@ describe('WBTC INTEGRATION SPEC, POLYGON V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyPolygonFork } from '../../../../support/steps/conf
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -87,7 +86,6 @@ describe('WETH INTEGRATION SPEC, POLYGON V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import constants from '../../../../fixtures/constans.json';
import { skipState } from '../../../../support/steps/common';
import { configEnvWithTenderlyOptimismFork } from '../../../../support/steps/configuration.steps';
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { dashboardAssetValuesVerification } from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

const tokensToRequest: RequestedTokens = {
Expand Down Expand Up @@ -84,7 +81,6 @@ describe('LINK INTEGRATION SPEC, OPTIMISM V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyOptimismFork } from '../../../../support/steps/con
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';
import { RequestedTokens, tokenSet } from '../../../4-gho-ethereum/helpers/token.helper';

Expand Down Expand Up @@ -87,7 +86,6 @@ describe.skip('WBTC INTEGRATION SPEC, OPTIMISM V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyFantomFork } from '../../../../support/steps/confi
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';

const testData = {
Expand Down Expand Up @@ -87,7 +86,6 @@ describe('LINK INTEGRATION SPEC, FANTOM V3 MARKET', () => {
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
withdraw(testData.testCases.withdraw, skipTestState, false);
dashboardAssetValuesVerification(testData.verifications.finalDashboard, skipTestState);
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyFantomFork } from '../../../../support/steps/confi
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';

const testData = {
Expand Down Expand Up @@ -83,7 +82,6 @@ describe('WBTC INTEGRATION SPEC, FANTOM V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { configEnvWithTenderlyFantomFork } from '../../../../support/steps/confi
import { borrow, repay, supply, withdraw } from '../../../../support/steps/main.steps';
import {
dashboardAssetValuesVerification,
switchApyBlocked,
} from '../../../../support/steps/verification.steps';

const testData = {
Expand Down Expand Up @@ -83,7 +82,6 @@ describe('WETH INTEGRATION SPEC, FANTOM V3 MARKET', () => {
testData.testCases.borrow.forEach((borrowCase) => {
borrow(borrowCase, skipTestState, true);
});
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
supply(testData.testCases.deposit, skipTestState, true);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
Expand Down
6 changes: 2 additions & 4 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ Cypress.Commands.add(
}
);

Cypress.Commands.add('getDashBoardBorrowedRow', (assetName: string, apyType: string) => {
return cy
.get(`[data-cy='dashboardBorrowedListItem_${assetName.toUpperCase()}_${apyType}']`)
.first();
Cypress.Commands.add('getDashBoardBorrowedRow', (assetName: string) => {
return cy.get(`[data-cy='dashboardBorrowedListItem_${assetName.toUpperCase()}']`).first();
});

Cypress.Commands.add('getDashBoardSuppliedRow', (assetName: string, isCollateralType?: boolean) => {
Expand Down
5 changes: 2 additions & 3 deletions cypress/support/helpers/dashboard.helper.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import assets from '../../fixtures/assets.json';

export class DashboardHelpers {
public static getApyBorrowedRate(tokenName: string, isVariable = true) {
const typeToken = isVariable ? 'Variable' : 'Stable';
const _selector = `[data-cy="dashboardBorrowedListItem_${tokenName}_${typeToken}"]`;
public static getApyBorrowedRate(tokenName: string) {
const _selector = `[data-cy="dashboardBorrowedListItem_${tokenName}"]`;
cy.doSwitchToDashboardBorrowView();
return this.getApyRate(_selector);
}
Expand Down
Loading
Loading