1- /* eslint-disable import/no-cycle */
21/* eslint-disable no-restricted-syntax */
32import { ZeroAddress } from 'ethers'
43/* eslint-disable guard-for-in */
@@ -15,7 +14,12 @@ import { Deployless, fromDescriptor } from '../deployless/deployless'
1514import batcher from './batcher'
1615import { geckoRequestBatcher , geckoResponseIdentifier } from './gecko'
1716import { getNFTs , getTokens } from './getOnchainBalances'
18- import { formatExternalHintsAPIResponse , mergeERC721s , tokenFilter } from './helpers'
17+ import {
18+ formatExternalHintsAPIResponse ,
19+ getHardcodedCitreaPrices ,
20+ mergeERC721s ,
21+ tokenFilter
22+ } from './helpers'
1923import {
2024 CollectionResult ,
2125 ExternalHintsAPIResponse ,
@@ -346,6 +350,12 @@ export class Portfolio {
346350
347351 // Re-map/filter into our format
348352 const getPriceFromCache = ( address : string , _priceRecency : number = priceRecency ) => {
353+ // hardcode citrea prices
354+ if ( this . network . chainId === 4114n ) {
355+ const citreaTokenPrice = getHardcodedCitreaPrices ( address )
356+ if ( citreaTokenPrice ) return [ citreaTokenPrice ]
357+ }
358+
349359 const cached = priceCache . get ( address )
350360 if ( ! cached ) return null
351361 const [ timestamp , entry ] = cached
0 commit comments