Skip to content

Commit

Permalink
revert: feat: generate assets for all portals networks (#7412) (#7425)
Browse files Browse the repository at this point in the history
This reverts commit 9398609.
  • Loading branch information
0xApotheosis committed Jul 25, 2024
1 parent 9398609 commit 9df989b
Show file tree
Hide file tree
Showing 5 changed files with 28,615 additions and 363,397 deletions.
5 changes: 3 additions & 2 deletions scripts/generateAssetData/bnbsmartchain/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import uniqBy from 'lodash/uniqBy'

import { bnbsmartchain } from '../baseAssets'
import * as coingecko from '../coingecko'
import { getPortalTokens } from '../utils/portals'
// import { getPortalTokens } from '../utils/portals'

export const getAssets = async (): Promise<Asset[]> => {
const results = await Promise.allSettled([
coingecko.getAssets(bscChainId),
getPortalTokens(bnbsmartchain),
// TODO(gomes): revert me back, there are 10k+ assets for BSC = problems
[], // getPortalTokens(bnbsmartchain),
])

const [assets, portalsAssets] = results.map(result => {
Expand Down
5 changes: 3 additions & 2 deletions scripts/generateAssetData/ethereum/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import uniqBy from 'lodash/uniqBy'
import { ethereum } from '../baseAssets'
import * as coingecko from '../coingecko'
import { generateTrustWalletUrl } from '../generateTrustWalletUrl/generateTrustWalletUrl'
import { getPortalTokens } from '../utils/portals'
// import { getPortalTokens } from '../utils/portals'
import { getIdleTokens } from './idleVaults'
import { getUniswapV2Pools } from './uniswapV2Pools'
// Yearn SDK is currently rugged upstream
Expand Down Expand Up @@ -40,7 +40,8 @@ export const getAssets = async (): Promise<Asset[]> => {
// getUnderlyingVaultTokens(),
getUniswapV2Pools(),
getIdleTokens(),
getPortalTokens(ethereum),
// TODO(gomes): revert me back, there are 10k+ assets for Ethereum = problems
[], // getPortalTokens(ethereum),
])

const [ethTokens, uniV2PoolTokens, idleTokens, portalsAssets] = results.map(result => {
Expand Down
Loading

0 comments on commit 9df989b

Please sign in to comment.