From 5fc09f9c79dfe9c52c89b0ea1d3d5d22df8eb5de Mon Sep 17 00:00:00 2001 From: franm Date: Mon, 10 Jun 2024 16:29:43 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20general:=20fix=20subgraph,=20vel?= =?UTF-8?q?odrome=20link,=20utilization=20alert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/asset/Header.tsx | 7 +++---- components/common/ItemInfo.tsx | 2 +- config/networkData.json | 2 +- pages/strategies.tsx | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/components/asset/Header.tsx b/components/asset/Header.tsx index f17ac3b6d..8e1de2bb5 100644 --- a/components/asset/Header.tsx +++ b/components/asset/Header.tsx @@ -160,10 +160,9 @@ const AssetHeaderInfo: FC = ({ symbol }) => { const borrowableUtilization = useMemo(() => { if (!marketAccount) return; - if (displayNetworkId === mainnet.id) return 0.9; - + if (displayNetworkId === mainnet.id) return BigInt(9 * 1e17); if ('reserveFactor' in marketAccount) { - return Number(WAD - marketAccount.reserveFactor) / 1e18; + return WAD - marketAccount.reserveFactor; } return; }, [displayNetworkId, marketAccount]); @@ -219,7 +218,7 @@ const AssetHeaderInfo: FC = ({ symbol }) => { {t( "The Global Utilization is above {{borrowableUtilization}}, and the remaining liquidity is established as a Liquidity Reserve that can't be borrowed and is only available for withdrawals.", { - borrowableUtilization: toPercentage(borrowableUtilization, 0), + borrowableUtilization: toPercentage(Number(borrowableUtilization) / 1e18, 0), }, )} diff --git a/components/common/ItemInfo.tsx b/components/common/ItemInfo.tsx index 99b026c3e..3cfb2b154 100644 --- a/components/common/ItemInfo.tsx +++ b/components/common/ItemInfo.tsx @@ -20,7 +20,7 @@ const ItemInfo: FC = ({ label, value, underLabel, tooltipTitle, x const isMobile = useMediaQuery(theme.breakpoints.down('sm')); return ( - + diff --git a/config/networkData.json b/config/networkData.json index 12c3ad4d0..fbf64a9ba 100644 --- a/config/networkData.json +++ b/config/networkData.json @@ -16,7 +16,7 @@ "10": { "etherscan": "https://optimistic.etherscan.io", "subgraph": { - "exactly": "https://api.thegraph.com/subgraphs/name/exactly/optimism", + "exactly": "https://gateway-arbitrum.network.thegraph.com/api/3bd03f49a36caaa5ed4efc5a27c5425d/subgraphs/id/9jpa2F3ZuirB11m3GL36wcNoNGETd3Z2zf7Cre5iwyeC", "sablier": "https://api.thegraph.com/subgraphs/name/sablier-labs/sablier-v2-optimism" } } diff --git a/pages/strategies.tsx b/pages/strategies.tsx index 562bf3d38..fe69b0bbe 100644 --- a/pages/strategies.tsx +++ b/pages/strategies.tsx @@ -432,7 +432,7 @@ const Strategies: NextPage = () => { location: 'Strategies', name: 'velodrome', isNew: false, - href: 'https://velodrome.finance/deposit?token0=0x1e925de1c68ef83bd98ee3e130ef14a50309c01b&token1=eth', + href: 'https://velodrome.finance/deposit?token0=0x1e925De1c68ef83bD98eE3E130eF14a50309C01B&token1=0x4200000000000000000000000000000000000006&type=-1', }) } >