Skip to content

Commit

Permalink
refactor: Remove safeChainID
Browse files Browse the repository at this point in the history
  • Loading branch information
karelianpie committed Sep 25, 2023
1 parent cd7d604 commit 5e95e7e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/vaults/components/list/VaultsListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {useMemo} from 'react';
import Link from 'next/link';
import {useStakingRewards} from '@vaults/contexts/useStakingRewards';
import {Renderable} from '@yearn-finance/web-lib/components/Renderable';
import {useChainID} from '@yearn-finance/web-lib/hooks/useChainID';
import {IconArbitrumChain} from '@yearn-finance/web-lib/icons/chains/IconArbitrumChain';
import {IconBaseChain} from '@yearn-finance/web-lib/icons/chains/IconBaseChain';
import {IconEtherumChain} from '@yearn-finance/web-lib/icons/chains/IconEtherumChain';
Expand Down Expand Up @@ -136,7 +135,6 @@ export function VaultAPR({currentVault}: {currentVault: TYDaemonVault}): ReactEl
}

export function VaultsListRow({currentVault}: {currentVault: TYDaemonVault}): ReactElement {
const {safeChainID} = useChainID();
const balanceOfWant = useBalance(currentVault.token.address);
const balanceOfCoin = useBalance(ETH_TOKEN_ADDRESS);
//TODO: Create a wagmi Chain upgrade to add the chain wrapper token address
Expand All @@ -162,7 +160,7 @@ export function VaultsListRow({currentVault}: {currentVault: TYDaemonVault}): Re
}, [currentVault.address, deposited, positionsMap, stakingRewardsByVault]);

return (
<Link key={`${currentVault.address}`} href={`/vaults/${safeChainID}/${toAddress(currentVault.address)}`}>
<Link key={`${currentVault.address}`} href={`/vaults/${currentVault.chainID}/${toAddress(currentVault.address)}`}>
<div className={'yearn--table-wrapper cursor-pointer transition-colors hover:bg-neutral-300'}>
<div className={'flex max-w-[32px] flex-row items-center'}>
{ChainIconMap.get(currentVault.chainID) ?? <IconEtherumChain />}
Expand Down

0 comments on commit 5e95e7e

Please sign in to comment.