Skip to content

Commit 4e9fad8

Browse files
committed
Merge branch 'main' into feat/v3.6
2 parents 43f0872 + c9db3b3 commit 4e9fad8

File tree

5 files changed

+73
-38
lines changed

5 files changed

+73
-38
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
},
3333
"dependencies": {
3434
"@aave/contract-helpers": "1.36.4-0f9a3a0a66000c25b22fad296520939bb1929e1b.3+54d1b44",
35-
"@aave/graphql": "^0.8.0",
35+
"@aave/graphql": "^0.10.0",
3636
"@aave/math-utils": "1.36.4-0f9a3a0a66000c25b22fad296520939bb1929e1b.3+54d1b44",
37-
"@aave/react": "^0.7.1",
37+
"@aave/react": "^0.8.1",
3838
"@amplitude/analytics-browser": "^2.13.0",
3939
"@bgd-labs/aave-address-book": "^4.38.0",
4040
"@cowprotocol/cow-sdk": "7.2.4",
@@ -159,4 +159,4 @@
159159
"budgetPercentIncreaseRed": 20,
160160
"showDetails": true
161161
}
162-
}
162+
}

public/icons/footer/icons.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { SvgIcon, type SvgIconProps } from '@mui/material';
2+
3+
export const TikTok = (props: SvgIconProps) => (
4+
<SvgIcon viewBox="0 0 23 23" {...props}>
5+
<g transform="translate(4 3)">
6+
<path
7+
fill="currentColor"
8+
d="M11.304 0H8.271v12.26c0 1.462-1.167 2.662-2.619 2.662s-2.618-1.2-2.618-2.661c0-1.435 1.14-2.609 2.54-2.661V6.522C2.49 6.574 0 9.104 0 12.26 0 15.444 2.54 18 5.678 18s5.678-2.583 5.678-5.74V5.975a7.03 7.03 0 0 0 4.019 1.356V4.252c-2.282-.078-4.07-1.956-4.07-4.252"
9+
/>
10+
</g>
11+
</SvgIcon>
12+
);
13+
14+
export const DuneIcon = (props: SvgIconProps) => (
15+
<SvgIcon viewBox="0 0 24 24" {...props}>
16+
<g transform="translate(3 3)">
17+
<path
18+
d="M8.99998 18.0012C13.9705 18.0012 18 13.9718 18 9.00122C18 8.91852 17.9989 8.83607 17.9966 8.75391L1.57538 14.0895C3.19748 16.4519 5.91779 18.0012 8.99998 18.0012Z"
19+
fillOpacity="0.5"
20+
fill="currentColor"
21+
/>
22+
<path
23+
d="M17.9998 9.06516C17.9999 9.04346 18 9.02174 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 10.8888 0.581847 12.6417 1.57608 14.0893L17.9966 8.75391C17.9989 8.83607 18 8.91852 18 9.00122C18 9.02255 17.9999 9.04387 17.9998 9.06516Z"
24+
fill="currentColor"
25+
/>
26+
</g>
27+
</SvgIcon>
28+
);

src/layouts/AppFooter.tsx

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Trans } from '@lingui/macro';
2-
import { GitHub, Instagram, X } from '@mui/icons-material';
2+
import { GitHub, Instagram, LinkedIn, X } from '@mui/icons-material';
33
import { Box, styled, SvgIcon, Typography } from '@mui/material';
4+
import { DuneIcon, TikTok } from 'public/icons/footer/icons';
45
import { Link } from 'src/components/primitives/Link';
56
import { useRootStore } from 'src/store/root';
67
import { useShallow } from 'zustand/shallow';
@@ -22,30 +23,45 @@ const StyledLink = styled(Link)<StyledLinkProps>(({ theme }) => ({
2223
}));
2324

2425
const FOOTER_ICONS = [
25-
{
26-
href: 'https://hey.xyz/u/aave',
27-
icon: <LensLogoIcon />,
28-
title: 'Aave on Lens',
29-
},
3026
{
3127
href: 'https://twitter.com/aave',
3228
icon: <X />,
3329
title: 'Twitter',
3430
},
31+
{
32+
href: 'https://www.instagram.com/aave/',
33+
icon: <Instagram />,
34+
title: 'Instagram',
35+
},
36+
{
37+
href: 'https://www.tiktok.com/@aavelabs',
38+
icon: <TikTok />,
39+
title: 'TikTok',
40+
},
41+
{
42+
href: 'https://www.linkedin.com/company/aavelabs/',
43+
icon: <LinkedIn />,
44+
title: 'Linkedin',
45+
},
3546
{
3647
href: 'https://discord.com/invite/aave',
3748
icon: <DiscordIcon />,
3849
title: 'Discord',
3950
},
51+
{
52+
href: 'https://dune.com/aavelabs',
53+
icon: <DuneIcon />,
54+
title: 'Dune',
55+
},
4056
{
4157
href: 'https://github.com/aave',
4258
icon: <GitHub />,
4359
title: 'Github',
4460
},
4561
{
46-
href: 'https://www.instagram.com/aave/',
47-
icon: <Instagram />,
48-
title: 'Instagram',
62+
href: 'https://hey.xyz/u/aave',
63+
icon: <LensLogoIcon />,
64+
title: 'Aave on Lens',
4965
},
5066
];
5167

src/modules/reserve-overview/graphs/InterestRateModelGraphContainer.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { Box } from '@mui/material';
22
import { ParentSize } from '@visx/responsive';
3-
import {
4-
type ReserveWithId,
5-
useAppDataContext,
6-
} from 'src/hooks/app-data-provider/useAppDataProvider';
3+
import { type ReserveWithId } from 'src/hooks/app-data-provider/useAppDataProvider';
74

85
import { GraphLegend } from './GraphLegend';
96
import { InterestRateModelGraph } from './InterestRateModelGraph';
@@ -20,12 +17,6 @@ export type Fields = { name: Field; color: string; text: string }[];
2017
export const InterestRateModelGraphContainer = ({
2118
reserve,
2219
}: InteresetRateModelGraphContainerProps): JSX.Element => {
23-
const { reserves: reservesLegacy } = useAppDataContext();
24-
25-
const reserveData = reservesLegacy.find(
26-
(r) => r.underlyingAsset.toLowerCase() === reserve.underlyingToken.address.toLowerCase()
27-
);
28-
2920
const CHART_HEIGHT = 155;
3021
const fields: Fields = [
3122
{ name: 'variableBorrowRate', text: 'Borrow APR, variable', color: '#B6509E' },
@@ -50,7 +41,7 @@ export const InterestRateModelGraphContainer = ({
5041
height={CHART_HEIGHT}
5142
fields={fields}
5243
reserve={{
53-
baseVariableBorrowRate: String(reserveData?.baseVariableBorrowRate),
44+
baseVariableBorrowRate: String(reserve.borrowInfo?.baseVariableBorrowRate.raw),
5445
optimalUsageRatio: String(reserve.borrowInfo?.optimalUsageRate.raw),
5546
utilizationRate: String(reserve.borrowInfo?.utilizationRate.value),
5647
variableRateSlope1: String(reserve.borrowInfo?.variableRateSlope1.raw),

yarn.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
"@gql.tada/internal" "^1.0.0"
1616
graphql "^15.5.0 || ^16.0.0 || ^17.0.0"
1717

18-
"@aave/client@0.8.0":
19-
version "0.8.0"
20-
resolved "https://registry.yarnpkg.com/@aave/client/-/client-0.8.0.tgz#ef3e37d330fc454c1abe7a9e26ec01bd66ce3fd6"
21-
integrity sha512-QW2IKOuae0jp7XV9YCUwtB00QNdO2LbybGXRV0SkehcCIgFAx6SeY3daXrtm/s1d6ysqvEJJEvXkoaXhAt76QQ==
18+
"@aave/client@0.9.1":
19+
version "0.9.1"
20+
resolved "https://registry.yarnpkg.com/@aave/client/-/client-0.9.1.tgz#5a11908715e67bb2a3992d30f9df16c049d9c162"
21+
integrity sha512-pWwICirnQdG37sbNBTYqrFCDRN+rRnCGjNPGZtKZj/QxIbQ2p0GEZcGFpUfDw2lDSBsa4VK75T6IFiNn50zmNQ==
2222
dependencies:
2323
"@aave/core" "0.1.0"
24-
"@aave/graphql" "0.8.0"
24+
"@aave/graphql" "0.10.0"
2525
"@aave/types" "0.2.0"
2626
"@urql/core" "^5.2.0"
2727
graphql "^16.11.0"
@@ -42,10 +42,10 @@
4242
"@urql/core" "^5.2.0"
4343
graphql "^16.11.0"
4444

45-
"@aave/graphql@0.8.0", "@aave/graphql@^0.8.0":
46-
version "0.8.0"
47-
resolved "https://registry.yarnpkg.com/@aave/graphql/-/graphql-0.8.0.tgz#b999862b5c22bf3119f5c4ba5de46aef34df197d"
48-
integrity sha512-S5NoQk50ypHjdTP6hJvNQW336J2fgqRrFdDlgmr6u3j7DShVTIKw3taP9spbyfGQnkIYmgzs2ZCQN/8Xq81f3Q==
45+
"@aave/graphql@0.10.0", "@aave/graphql@^0.10.0":
46+
version "0.10.0"
47+
resolved "https://registry.yarnpkg.com/@aave/graphql/-/graphql-0.10.0.tgz#953ad5c74d2c104fe4f4bd6f55d220b99d05b1f1"
48+
integrity sha512-CRYjJbd04dUIuQjHcKHmd43y/agQ55NKiW+wKwz8M2vhyUb2qNP9I/fPKmEo+K+Stdr+ybcF8QMXBupRbMvEUA==
4949
dependencies:
5050
"@aave/types" "0.2.0"
5151
gql.tada "^1.8.13"
@@ -57,13 +57,13 @@
5757
resolved "https://registry.yarnpkg.com/@aave/math-utils/-/math-utils-1.36.4-0f9a3a0a66000c25b22fad296520939bb1929e1b.3.tgz#45c38aad2068ed9dc33125b6e84fb10c557c9234"
5858
integrity sha512-7od7jo2oYBMBCL25MReAEDqNgcUN2X12wYR8w9M09upCxBMOghMuTL/zWdFjotngIUf6iRluMI335Yd/OQti8w==
5959

60-
"@aave/react@^0.7.1":
61-
version "0.7.1"
62-
resolved "https://registry.yarnpkg.com/@aave/react/-/react-0.7.1.tgz#222f8551d927cbbb0ba1bb0f6f2d0605c978bf9b"
63-
integrity sha512-ycnzgCz3RVrhfruuhi1P93e470KE3RyzVdTh71KgM7bM4Z8b/Gr8ocMqhkK/WCnue9p1QZGNVt00/l3d9DtY0A==
60+
"@aave/react@^0.8.1":
61+
version "0.8.1"
62+
resolved "https://registry.yarnpkg.com/@aave/react/-/react-0.8.1.tgz#11a92ad9f193700ac10d5b9fe1e3a6244e7b50dd"
63+
integrity sha512-XZdWocic1xKNCb4x+cSsbAMHEJwsJf0D1hQmhQ5s9kisQOWGde23OsMaXPcS0Zh4XB4u5KMQWCrM7/CFMZqAQA==
6464
dependencies:
65-
"@aave/client" "0.8.0"
66-
"@aave/graphql" "0.8.0"
65+
"@aave/client" "0.9.1"
66+
"@aave/graphql" "0.10.0"
6767
"@aave/types" "0.2.0"
6868
urql "^4.2.2"
6969

0 commit comments

Comments
 (0)