bridge_ui: exclude unreasonably high value coins from tvl

Change-Id: I0dd4ef3b7da725ca2ac8abd67583bfc41f5d152e
This commit is contained in:
Chase Moran 2021-11-29 09:34:58 -05:00
parent 69dc6476c8
commit cb9c65b421
1 changed files with 3 additions and 3 deletions

View File

@ -65,9 +65,9 @@ const calcEvmTVL = (covalentReport: any, chainId: ChainId): TVL[] => {
covalentReport.data.items.forEach((item: any) => {
if (item.balance > 0 && item.contract_address) {
const hasUnreliablePrice = BAD_PRICES_BY_CHAIN[chainId]?.includes(
item.contract_address
);
const hasUnreliablePrice =
BAD_PRICES_BY_CHAIN[chainId]?.includes(item.contract_address) ||
item.quote_rate > 1000000;
output.push({
logo: item.logo_url || undefined,
symbol: item.contract_ticker_symbol || undefined,