diff --git a/.eslintrc.js b/.eslintrc.js
index 06ae2a5..da74a00 100755
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -114,6 +114,7 @@ module.exports = {
'comma-spacing': 'off',
'@typescript-eslint/comma-spacing': ['error'],
'dot-notation': 'off',
- '@typescript-eslint/dot-notation': ['error']
+ '@typescript-eslint/dot-notation': ['error'],
+ '@typescript-eslint/no-explicit-any': 'off'
}
};
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 39ff0f8..3473668 100755
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -25,4 +25,6 @@ jobs:
run: yarn --prefer-offline
- name: Build project
- run: yarn build
\ No newline at end of file
+ run: yarn build
+ env:
+ WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }}
diff --git a/components/ImageTester.tsx b/components/ImageTester.tsx
index e2ba9f2..84acc23 100755
--- a/components/ImageTester.tsx
+++ b/components/ImageTester.tsx
@@ -2,8 +2,8 @@
import React, {ReactElement} from 'react';
import {useYearn} from 'contexts/useYearn';
import {TTokenData, TTokensData} from 'types/entities';
-import {useWeb3} from '@yearn-finance/web-lib/contexts';
-import {toAddress} from '@yearn-finance/web-lib/utils';
+import {useWeb3} from '@yearn-finance/web-lib/contexts/useWeb3';
+import {toAddress} from '@yearn-finance/web-lib/utils/address';
function VaultImageTester({vaults}: {vaults: any[]}): ReactElement {
const {onUpdateIconStatus, onUpdateTokenIconStatus} = useYearn();
diff --git a/components/PartnerEntity.tsx b/components/PartnerEntity.tsx
index 1b5c00e..7b98bfd 100755
--- a/components/PartnerEntity.tsx
+++ b/components/PartnerEntity.tsx
@@ -1,12 +1,12 @@
import React, {ReactElement} from 'react';
-import {Card} from '@yearn-finance/web-lib/components';
import type {TPartner, TSettings} from 'types/types';
import StatusLine from './StatusLine';
-import {useWeb3} from '@yearn-finance/web-lib';
+import {Card} from 'components/common/Card';
+import {useWeb3} from '@yearn-finance/web-lib/contexts/useWeb3';
type TPartnerEntityProps = {partner: string; status: TPartner[] ;settings: TSettings};
-const getSuffix = (src: string, chainID: string, hasAnomalies: boolean, partner: string): ReactElement | string => {
+const getSuffix = (src: string, chainID: number, hasAnomalies: boolean, partner: string): ReactElement | string => {
if (hasAnomalies && src === 'yDaemon') {
return (
{'yDaemon (file '}
diff --git a/components/StatusLine.tsx b/components/StatusLine.tsx
index 40f2051..8bb5d82 100755
--- a/components/StatusLine.tsx
+++ b/components/StatusLine.tsx
@@ -50,7 +50,7 @@ function StatusLine({
{suffix}
{onClick ?
copyToClipboard('contracts')}
- className={'cursor-copy rounded-md bg-neutral-200 py-1 px-2 text-sm'}>
+ className={'cursor-copy rounded-md bg-neutral-200 px-2 py-1 text-sm'}>
{'contracts'}
{' object in the '}
copyToClipboard('b2c.json')}
- className={'cursor-copy rounded-md bg-neutral-200 py-1 px-2 text-sm'}>
+ className={'cursor-copy rounded-md bg-neutral-200 px-2 py-1 text-sm'}>
{'b2c.json'}
{'file.'}
copyToClipboard('_vault_v0.4.3.json')}
- className={'cursor-copy rounded-md bg-neutral-200 py-1 px-2 text-sm'}>
+ className={'cursor-copy rounded-md bg-neutral-200 px-2 py-1 text-sm'}>
{'_vault_v0.4.3.json'}
{' to '}
copyToClipboard(`${vault.address}.json`)}
- className={'cursor-copy rounded-md bg-neutral-200 py-1 px-2 text-sm'}>
+ className={'cursor-copy rounded-md bg-neutral-200 px-2 py-1 text-sm'}>
{`${vault.address}.json`}
,
@@ -126,8 +130,8 @@ function VaultEntity({
,
copyToClipboard(currentStrategy.name)}
- className={'cursor-copy rounded-md bg-neutral-200 py-1 px-2 text-sm'}>
+ className={'cursor-copy rounded-md bg-neutral-200 px-2 py-1 text-sm'}>
{currentStrategy.name}
{' should belong to.'}
@@ -165,7 +169,7 @@ function VaultEntity({
{'3a. If the file exists, append the address of the strategy to the file, under "addresses": '}
copyToClipboard(currentStrategy.address)}
- className={'cursor-copy rounded-md bg-neutral-200 py-1 px-2 text-sm'}>
+ className={'cursor-copy rounded-md bg-neutral-200 px-2 py-1 text-sm'}>
{currentStrategy.address}
,
@@ -173,7 +177,7 @@ function VaultEntity({
{'3b. If the file does not exists, create a new one and append the address of the strategy to the file, under "addresses": '}
copyToClipboard(currentStrategy.address)}
- className={'cursor-copy rounded-md bg-neutral-200 py-1 px-2 text-sm'}>
+ className={'cursor-copy rounded-md bg-neutral-200 px-2 py-1 text-sm'}>
{currentStrategy.address}
@@ -200,7 +204,7 @@ function VaultEntity({
{'2. Add missing vault file with the filename '}
copyToClipboard(`${vault.address}.json`)}
- className={'cursor-copy rounded-md bg-neutral-200 py-1 px-2 text-sm'}>
+ className={'cursor-copy rounded-md bg-neutral-200 px-2 py-1 text-sm'}>
{`${vault.address}.json`}
@@ -217,7 +221,7 @@ function VaultEntity({
const hasStrategiesAnomaly = noStrategies;
const hasRiskAnomaly = vaultData?.strategies.some((strategy): boolean => (strategy?.risk?.riskGroup || 'Others') === 'Others');
- const riskScores = (vaultData?.strategies ?? []).map((strategy): { strategy: { address: string; name: string; }; sum: number; isValid: boolean } => {
+ const riskScores = (vaultData?.strategies ?? []).map((strategy): { strategy: { address: TAddress; name: string; }; sum: number; isValid: boolean } => {
const sum = (
(strategy?.risk?.riskDetails?.TVLImpact || 0)
+ (strategy?.risk?.riskDetails?.auditScore || 0)
@@ -367,14 +371,14 @@ function VaultEntity({
suffix: (
{'for vault '}
-
+
{vault.symbol || 'not_set'}
- {toENS(address, truncate > 0, truncate)}
+{option.label}
+