@@ -52,7 +52,7 @@ export const StakeExplorePage: FunctionComponent = observer(() => {
5252
5353 const [ searchParams ] = useSearchParams ( ) ;
5454
55- const { hugeQueriesStore , chainStore } = useStore ( ) ;
55+ const { chainStore } = useStore ( ) ;
5656
5757 const [ isOpenDepositModal , setIsOpenDepositModal ] = React . useState ( false ) ;
5858 const [ isOpenBuy , setIsOpenBuy ] = React . useState ( false ) ;
@@ -74,7 +74,7 @@ export const StakeExplorePage: FunctionComponent = observer(() => {
7474
7575 const stakeCurrencyItems = useMemo < StakeCurrencyItem [ ] > ( ( ) => {
7676 const items : StakeCurrencyItem [ ] = [ ] ;
77- for ( const chainInfo of chainStore . chainInfosInUI ) {
77+ for ( const chainInfo of chainStore . chainInfos ) {
7878 if ( chainInfo . isTestnet || ! chainInfo . stakeCurrency ) {
7979 continue ;
8080 }
@@ -89,7 +89,7 @@ export const StakeExplorePage: FunctionComponent = observer(() => {
8989 } ) ;
9090 }
9191
92- for ( const modularChainInfo of chainStore . modularChainInfosInUI ) {
92+ for ( const modularChainInfo of chainStore . modularChainInfos ) {
9393 if ( "starknet" in modularChainInfo ) {
9494 if ( modularChainInfo . isTestnet ) {
9595 continue ;
@@ -128,14 +128,9 @@ export const StakeExplorePage: FunctionComponent = observer(() => {
128128 }
129129 }
130130
131- return items
132- . filter ( ( item ) => {
133- const identifier = ChainIdHelper . parse (
134- item . chainInfo . chainId
135- ) . identifier ;
136- return ! topChainIdentifierSet . has ( identifier ) ;
137- } )
138- . sort ( ( a , b ) => a . currency . coinDenom . localeCompare ( b . currency . coinDenom ) ) ;
131+ return items . sort ( ( a , b ) =>
132+ a . currency . coinDenom . localeCompare ( b . currency . coinDenom )
133+ ) ;
139134 } , [ chainStore , topChainIdentifierSet ] ) ;
140135
141136 const topItems = useMemo < StakeCurrencyItem [ ] > ( ( ) => {
@@ -152,27 +147,15 @@ export const StakeExplorePage: FunctionComponent = observer(() => {
152147 return ;
153148 }
154149
155- const chainIdentifier = ChainIdHelper . parse ( chainInfo . chainId ) . identifier ;
156- const matchedViewToken = hugeQueriesStore . stakables . find ( ( token ) => {
157- const tokenIdentifier = ChainIdHelper . parse (
158- token . chainInfo . chainId
159- ) . identifier ;
160- return (
161- tokenIdentifier === chainIdentifier &&
162- token . token . currency . coinMinimalDenom ===
163- stakeCurrency . coinMinimalDenom
164- ) ;
165- } ) ;
166-
167150 items . push ( {
168- key : `top- ${ chainId } ` ,
169- chainInfo : matchedViewToken ?. chainInfo ?? chainInfo ,
170- currency : matchedViewToken ?. token . currency ?? stakeCurrency ,
151+ key : `${ chainInfo . chainIdentifier } / ${ stakeCurrency . coinMinimalDenom } ` ,
152+ chainInfo : chainInfo ,
153+ currency : stakeCurrency ,
171154 } ) ;
172155 } ) ;
173156
174157 return items ;
175- } , [ chainStore , hugeQueriesStore . stakables ] ) ;
158+ } , [ chainStore ] ) ;
176159
177160 const assetCards = [
178161 ...topItems . map ( ( item ) => (
0 commit comments