Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/consts/dapps/dapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const dappIdsToBeRemoved = new Set([
'curve.fi', // curve.fi was moved to curve.finance
'app.ether.fi', // app.ether.fi was moved to ether.fi
'core.app', // not supported,
'new.bungee.exchange', // got left hanging since Bungee moved to bungee.exchange
'multitx.bungee.exchange', // got left hanging since Bungee moved to bungee.exchange
// unsupported or outdated protocols returned by DefiLlama
'bridge.base.org',
'binance.com',
Expand Down Expand Up @@ -419,7 +421,7 @@ export const defiLlamaProtocolIdsToExclude: string[] = [

export const categoriesNotToFilterOut = ['DEX Aggregator']
export const categoriesToExclude = ['CEX', 'Developer Tools']
export const dappsNotToFilterOutByDomain = ['snapshot.box']
export const dappsNotToFilterOutByDomain = ['snapshot.box', 'bungee.exchange']

export const CATEGORY_MAP: Record<string, string> = {
'AI Agents': 'AI Agents',
Expand Down
11 changes: 10 additions & 1 deletion src/controllers/dapps/dapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,21 @@ export class DappsController extends EventEmitter implements IDappsController {
}
if (isPredefined || d.isFeatured || d.isConnected || d.isCustom) continue

const domainId = getDomainFromUrl(d.url)
const isInDappsNotToFilterOutByDomain =
domainId && dappsNotToFilterOutByDomain.includes(domainId)

const shouldSkipByCategory = !categoriesNotToFilterOut.includes(d.category as string)
const hasNoNetworks = d.chainIds.length === 0
const hasLowTVL = !d.tvl || d.tvl <= 15_000_000

// Remove dapps that are not in excluded categories and either have no networks or low TVL
if (shouldSkipByCategory && (hasNoNetworks || hasLowTVL)) {
// But skip this filtering if the dapp's domain is in dappsNotToFilterOutByDomain
if (
shouldSkipByCategory &&
(hasNoNetworks || hasLowTVL) &&
!isInDappsNotToFilterOutByDomain
) {
filteredMap.delete(key)
}
}
Expand Down