diff --git a/public/nft/logos/poprank.png b/public/nft/logos/poprank.png
deleted file mode 100644
index 78214c3f45..0000000000
Binary files a/public/nft/logos/poprank.png and /dev/null differ
diff --git a/src/nft/components/collection/ActivityCells.tsx b/src/nft/components/collection/ActivityCells.tsx
index 9869921451..087448acb8 100644
--- a/src/nft/components/collection/ActivityCells.tsx
+++ b/src/nft/components/collection/ActivityCells.tsx
@@ -29,7 +29,6 @@ import { buildActivityAsset } from 'nft/utils/buildActivityAsset'
import { formatEth, formatEthPrice } from 'nft/utils/currency'
import { getTimeDifference, isValidDate } from 'nft/utils/date'
import { putCommas } from 'nft/utils/putCommas'
-import { fallbackProvider, getRarityProviderLogo } from 'nft/utils/rarity'
import { MouseEvent, useMemo, useState } from 'react'
import styled from 'styled-components/macro'
import { ExternalLink } from 'theme'
@@ -339,9 +338,7 @@ interface RankingProps {
}
const Ranking = ({ rarity, collectionName, rarityVerified }: RankingProps) => {
- const source = (rarity as TokenRarity).source || (rarity as Rarity).primaryProvider
const rank = (rarity as TokenRarity).rank || (rarity as Rarity).providers?.[0].rank
- const rarityProviderLogo = getRarityProviderLogo(source)
if (!rank) return null
@@ -351,12 +348,10 @@ const Ranking = ({ rarity, collectionName, rarityVerified }: RankingProps) => {
text={
-
+
- {rarityVerified
- ? `Verified by ${collectionName}`
- : `Ranking by ${source === 'Genie' ? fallbackProvider : source}`}
+ {rarityVerified ? `Verified by ${collectionName}` : `Ranking by Rarity Sniper`}
}
diff --git a/src/nft/components/details/AssetDetails.tsx b/src/nft/components/details/AssetDetails.tsx
index f544d171a9..ead0af0c55 100644
--- a/src/nft/components/details/AssetDetails.tsx
+++ b/src/nft/components/details/AssetDetails.tsx
@@ -17,7 +17,6 @@ import { formatEth, formatEthPrice } from 'nft/utils/currency'
import { isAudio } from 'nft/utils/isAudio'
import { isVideo } from 'nft/utils/isVideo'
import { putCommas } from 'nft/utils/putCommas'
-import { fallbackProvider, getRarityProviderLogo } from 'nft/utils/rarity'
import { useCallback, useMemo, useReducer, useState } from 'react'
import InfiniteScroll from 'react-infinite-scroll-component'
import { useInfiniteQuery, useQuery } from 'react-query'
@@ -424,7 +423,6 @@ export const AssetDetails = ({ asset, collection }: AssetDetailsProps) => {
const rarity = asset?.rarity?.providers?.[0]
const [showHolder, setShowHolder] = useState(false)
- const rarityProviderLogo = getRarityProviderLogo(rarity?.provider)
return (
@@ -456,11 +454,9 @@ export const AssetDetails = ({ asset, collection }: AssetDetailsProps) => {
text={
-
+
-
- {`Ranking by ${rarity.provider === 'Genie' ? fallbackProvider : rarity.provider}`}
-
+ Ranking by Rarity Sniper
}
placement="top"
diff --git a/src/nft/utils/index.ts b/src/nft/utils/index.ts
index a07f02dd43..724eab1f90 100644
--- a/src/nft/utils/index.ts
+++ b/src/nft/utils/index.ts
@@ -12,7 +12,6 @@ export * from './listNfts'
export * from './numbers'
export * from './pooledAssets'
export * from './putCommas'
-export * from './rarity'
export * from './roundAndPluralize'
export * from './timeSince'
export * from './transactionResponse'
diff --git a/src/nft/utils/rarity.ts b/src/nft/utils/rarity.ts
deleted file mode 100644
index f639192761..0000000000
--- a/src/nft/utils/rarity.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-// change this if we change the fallback provider
-export const fallbackProvider = 'PopRank'
-export const fallbackProviderLogo = '/nft/logos/poprank.png'
-
-/**
- * Add provider mappings based on provider name returned from the backend here
- */
-export const rarityProviderLogo: { [key: string]: string } = {
- 'Rarity Sniper': '/nft/svgs/gem.svg',
- Genie: fallbackProviderLogo,
-}
-
-export const getRarityProviderLogo = (source?: string): string | undefined => {
- if (!source) return undefined
- return rarityProviderLogo[source] || fallbackProviderLogo
-}