Skip to content

Commit

Permalink
🩹 general: fix subgraph, velodrome link, utilization alert
Browse files Browse the repository at this point in the history
  • Loading branch information
franm91 committed Jun 12, 2024
1 parent 50800cc commit 5fc09f9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions components/asset/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,9 @@ const AssetHeaderInfo: FC<Props> = ({ 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]);
Expand Down Expand Up @@ -219,7 +218,7 @@ const AssetHeaderInfo: FC<Props> = ({ 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),
},
)}
</Typography>
Expand Down
2 changes: 1 addition & 1 deletion components/common/ItemInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ItemInfo: FC<ItemInfoProps> = ({ label, value, underLabel, tooltipTitle, x
const isMobile = useMediaQuery(theme.breakpoints.down('sm'));

return (
<Grid xs={isMobile ? 6 : xs ? xs : 0} pl={4} pt={3}>
<Grid item xs={isMobile ? 6 : xs ? xs : 0} pl={4} pt={3}>
<Tooltip title={tooltipTitle} arrow placement="top" sx={{ cursor: tooltipTitle ? 'pointer' : '' }}>
<Box display="flex" gap={0.5}>
<Typography variant="subtitle1" fontSize="10px" color="grey.500" textTransform="uppercase">
Expand Down
2 changes: 1 addition & 1 deletion config/networkData.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
2 changes: 1 addition & 1 deletion pages/strategies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})
}
>
Expand Down

0 comments on commit 5fc09f9

Please sign in to comment.