File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @pythnetwork/price-pusher" ,
3
- "version" : " 7.0.1 " ,
3
+ "version" : " 7.0.2 " ,
4
4
"description" : " Pyth Price Pusher" ,
5
5
"homepage" : " https://pyth.network" ,
6
6
"main" : " lib/index.js" ,
Original file line number Diff line number Diff line change @@ -93,10 +93,17 @@ export class SolanaPricePusher implements IPricePusher {
93
93
return ;
94
94
}
95
95
96
+ const shuffledPriceIds = priceIds
97
+ . map ( ( x ) => {
98
+ return { element : x , key : Math . random ( ) } ;
99
+ } )
100
+ . sort ( ( a , b ) => a . key - b . key )
101
+ . map ( ( x ) => x . element ) ;
102
+
96
103
let priceFeedUpdateData ;
97
104
try {
98
105
priceFeedUpdateData = await this . priceServiceConnection . getLatestVaas (
99
- priceIds
106
+ shuffledPriceIds
100
107
) ;
101
108
} catch ( err : any ) {
102
109
this . logger . error ( err , "getPriceFeedsUpdateData failed:" ) ;
You can’t perform that action at this time.
0 commit comments