bridge_ui: exclude unreasonably high value coins from tvl
Change-Id: I0dd4ef3b7da725ca2ac8abd67583bfc41f5d152e
This commit is contained in:
parent
69dc6476c8
commit
cb9c65b421
|
@ -65,9 +65,9 @@ const calcEvmTVL = (covalentReport: any, chainId: ChainId): TVL[] => {
|
||||||
|
|
||||||
covalentReport.data.items.forEach((item: any) => {
|
covalentReport.data.items.forEach((item: any) => {
|
||||||
if (item.balance > 0 && item.contract_address) {
|
if (item.balance > 0 && item.contract_address) {
|
||||||
const hasUnreliablePrice = BAD_PRICES_BY_CHAIN[chainId]?.includes(
|
const hasUnreliablePrice =
|
||||||
item.contract_address
|
BAD_PRICES_BY_CHAIN[chainId]?.includes(item.contract_address) ||
|
||||||
);
|
item.quote_rate > 1000000;
|
||||||
output.push({
|
output.push({
|
||||||
logo: item.logo_url || undefined,
|
logo: item.logo_url || undefined,
|
||||||
symbol: item.contract_ticker_symbol || undefined,
|
symbol: item.contract_ticker_symbol || undefined,
|
||||||
|
|
Loading…
Reference in New Issue