Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
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
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20.19
6 changes: 6 additions & 0 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
import './commands';

Cypress.on('uncaught:exception', (err) => {
if (err.message.includes('Account is not connected')) {
return false;
}
});
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"license": "BSD-3-Clause",
"resolutions": {
"h3": "^1.15.5",
"minimatch": ">=5.1.7"
"minimatch": ">=5.1.7",
"protobufjs": "^7.5.5",
"qs": "^6.14.1"
},
"scripts": {
"dev": "next dev",
Expand Down Expand Up @@ -72,7 +74,7 @@
"@visx/tooltip": "^2.16.0",
"@wagmi/core": "^2.17.1",
"blo": "^1.1.1",
"connectkit": "1.9.0",
"connectkit": "1.9.2",
"d3-array": "^3.2.0",
"d3-time-format": "^4.1.0",
"dayjs": "^1.11.5",
Expand All @@ -84,7 +86,7 @@
"immer": "^9.0.15",
"json-stringify-deterministic": "^1.0.12",
"micro-memoize": "^4.1.2",
"next": "12.3.7",
"next": "13.5.11",
"react": "^18.0.0",
"react-cookie-consent": "^8.0.1",
"react-dom": "^18.0.0",
Expand Down Expand Up @@ -118,7 +120,8 @@
"@types/d3-array": "^3.0.3",
"@types/d3-time-format": "^4.0.0",
"@types/lodash": "^4.14.189",
"@types/react": "latest",
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"@types/react-infinite-scroller": "^1.2.3",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"babel-plugin-macros": "^3.1.0",
Expand Down
3 changes: 2 additions & 1 deletion src/components/primitives/Link.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import MuiLink, { LinkProps as MuiLinkProps } from '@mui/material/Link';
import { styled } from '@mui/material/styles';
import clsx from 'clsx';
import { clsx } from 'clsx';
import NextLink, { LinkProps as NextLinkProps } from 'next/link';
import { useRouter } from 'next/router';
import * as React from 'react';
Expand Down Expand Up @@ -38,6 +38,7 @@ export const NextLinkComposed = React.forwardRef<HTMLAnchorElement, NextLinkComp
shallow={shallow}
passHref
locale={locale}
legacyBehavior
>
<Anchor ref={ref} {...other} />
</NextLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const CancelAdapterOrderActions = ({
);
}

queryClient.invalidateQueries({ queryKey: 'transactionHistory' });
queryClient.invalidateQueries({ queryKey: ['transactionHistory'] });
setMainTxState({
...mainTxState,
loading: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const CancelCowOrderActions = ({ cowOrder, blocked }: CancelCowOrderActio
updateCowOrderStatus(cowOrder.chainId, account, cowOrder.id, OrderStatus.CANCELLED);
}

queryClient.invalidateQueries({ queryKey: 'transactionHistory' });
queryClient.invalidateQueries({ queryKey: ['transactionHistory'] });
setTimeout(() => {
setMainTxState({
...mainTxState,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { BigNumberValue, valueToBigNumber } from '@aave/math-utils';
import { ExclamationIcon, RefreshIcon } from '@heroicons/react/outline';
import { Box, Button, CircularProgress, InputBase, SvgIcon, Typography } from '@mui/material';
import { BigNumber } from 'bignumber.js';
import React, { useEffect, useRef, useState } from 'react';
import NumberFormat, { NumberFormatProps } from 'react-number-format';
import { FormattedNumber } from 'src/components/primitives/FormattedNumber';
Expand Down
1 change: 0 additions & 1 deletion src/components/transactions/Withdraw/WithdrawError.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { valueToBigNumber } from '@aave/math-utils';
import { Trans } from '@lingui/macro';
import { BigNumber } from 'bignumber.js';
import {
ComputedReserveData,
ExtendedFormattedUser,
Expand Down
6 changes: 2 additions & 4 deletions src/hooks/governance/useGovernanceTokensAndPowers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { QueryObserverResult, RefetchOptions, RefetchQueryFilters } from '@tanstack/react-query';
import { QueryObserverResult, RefetchOptions } from '@tanstack/react-query';
import { ethers } from 'ethers';
import { BigNumber } from 'ethers/lib/ethers';
import { Powers } from 'src/services/GovernanceService';
Expand All @@ -11,9 +11,7 @@ interface GovernanceTokensAndPowers extends Powers, GovernanceTokensBalance {
isAaveTokenWithDelegatedPower: boolean;
isStkAaveTokenWithDelegatedPower: boolean;
isAAaveTokenWithDelegatedPower: boolean;
refetchPowers: <TPageData>(
options?: (RefetchOptions & RefetchQueryFilters<TPageData>) | undefined
) => Promise<QueryObserverResult<Powers, unknown>>;
refetchPowers: (options?: RefetchOptions) => Promise<QueryObserverResult<Powers, unknown>>;
}

export const useGovernanceTokensAndPowers = (
Expand Down
7,007 changes: 3,919 additions & 3,088 deletions yarn.lock

Large diffs are not rendered by default.

Loading