@@ -52,7 +52,7 @@ export function setUpTokenMetadataQuery(store: RootStore) {
5252 queryKey : [ 'spot' , 'tokenMetadata' , currentSpotToken ] ,
5353 queryFn : wrapAndLogBonsaiError (
5454 ( ) => getSpotTokenMetadata ( endpoint , currentSpotToken ) ,
55- 'tokenMetadata'
55+ 'spot/ tokenMetadata'
5656 ) ,
5757 refetchInterval : timeUnits . minute * 5 ,
5858 staleTime : timeUnits . minute * 5 ,
@@ -64,8 +64,8 @@ export function setUpTokenMetadataQuery(store: RootStore) {
6464 store . dispatch ( setSpotTokenMetadata ( queryResultToLoadable ( result ) ) ) ;
6565 } catch ( e ) {
6666 logBonsaiError (
67- 'setUpTokenMetadataQuery' ,
68- 'Error handling result from react query' ,
67+ 'spot/ setUpTokenMetadataQuery' ,
68+ 'Error handling result from react query store effect ' ,
6969 e ,
7070 result
7171 ) ;
@@ -90,7 +90,7 @@ export function setUpSolPriceQuery(store: RootStore) {
9090 queryKey : [ 'spotTokenPrice' , SOL_MINT_ADDRESS ] ,
9191 queryFn : wrapAndLogBonsaiError (
9292 ( ) => getSpotTokenUsdPrice ( params . endpoint , SOL_MINT_ADDRESS ) ,
93- 'solPrice'
93+ 'spot/ solPrice'
9494 ) ,
9595 refetchInterval : timeUnits . second * 10 ,
9696 staleTime : timeUnits . second * 10 ,
@@ -101,7 +101,12 @@ export function setUpSolPriceQuery(store: RootStore) {
101101 try {
102102 store . dispatch ( setSpotSolPrice ( queryResultToLoadable ( result ) ) ) ;
103103 } catch ( e ) {
104- logBonsaiError ( 'setUpSolPriceQuery' , 'Error handling result from react query' , e , result ) ;
104+ logBonsaiError (
105+ 'spot/setUpSolPriceQuery' ,
106+ 'Error handling result from react query store effect' ,
107+ e ,
108+ result
109+ ) ;
105110 }
106111 } ) ;
107112
@@ -123,7 +128,7 @@ export function setUpSpotTokenPriceQuery(store: RootStore) {
123128 queryKey : [ 'spotTokenPrice' , params . currentSpotToken ] ,
124129 queryFn : wrapAndLogBonsaiError (
125130 ( ) => getSpotTokenUsdPrice ( params . endpoint , params . currentSpotToken ) ,
126- 'tokenPrice'
131+ 'spot/ tokenPrice'
127132 ) ,
128133 refetchInterval : timeUnits . second * 10 ,
129134 staleTime : timeUnits . second * 10 ,
@@ -135,8 +140,8 @@ export function setUpSpotTokenPriceQuery(store: RootStore) {
135140 store . dispatch ( setSpotTokenPrice ( queryResultToLoadable ( result ) ) ) ;
136141 } catch ( e ) {
137142 logBonsaiError (
138- 'setUpSpotTokenPriceQuery' ,
139- 'Error handling result from react query' ,
143+ 'spot/ setUpSpotTokenPriceQuery' ,
144+ 'Error handling result from react query store effect ' ,
140145 e ,
141146 result
142147 ) ;
@@ -173,7 +178,7 @@ export function setUpPortfolioTradesQuery(store: RootStore) {
173178 queryKey : [ 'spot' , 'portfolioTrades' , walletAddress ] ,
174179 queryFn : wrapAndLogBonsaiError (
175180 ( ) => getSpotPortfolioTrades ( endpoint , walletAddress ) ,
176- 'portfolioTrades'
181+ 'spot/ portfolioTrades'
177182 ) ,
178183 refetchInterval : timeUnits . minute * 2 ,
179184 staleTime : timeUnits . minute * 2 ,
@@ -185,8 +190,8 @@ export function setUpPortfolioTradesQuery(store: RootStore) {
185190 store . dispatch ( setSpotPortfolioTrades ( queryResultToLoadable ( result ) ) ) ;
186191 } catch ( e ) {
187192 logBonsaiError (
188- 'setUpPortfolioTradesQuery' ,
189- 'Error handling result from react query' ,
193+ 'spot/ setUpPortfolioTradesQuery' ,
194+ 'Error handling result from react query store effect ' ,
190195 e ,
191196 result
192197 ) ;
0 commit comments