@@ -14,7 +14,7 @@ const PYTH_URLS = [
1414const pythRequestBody = {
1515 symbols : [ "Crypto.ADA/USD" ] ,
1616 properties : [ "price" , "confidence" , "exponent" , "publisherCount" ] ,
17- formats : [ "leEcdsa " ] ,
17+ formats : [ "solana " ] ,
1818 channel : "fixed_rate@200ms" ,
1919 parsed : true ,
2020 jsonBinaryEncoding : "hex" ,
@@ -64,7 +64,7 @@ export const getADAPriceFromPyth = async (req: Request, res: Response) => {
6464 confidence,
6565 publishers : feed . publisherCount ,
6666 timestamp,
67- leEcdsaPayload : data . leEcdsa ?. data ?? null ,
67+ solanaPayload : data . solana ?. data ?? null ,
6868 } ) ;
6969
7070 } catch ( error : any ) {
@@ -115,7 +115,7 @@ export const getADAPriceRangeFromPyth = async (req: Request, res: Response) => {
115115 fetchWithFallback ( "/price" , {
116116 symbols : [ "Crypto.ADA/USD" ] ,
117117 properties : [ "price" , "confidence" , "exponent" ] ,
118- formats : [ "leEcdsa " ] ,
118+ formats : [ "solana " ] ,
119119 channel : "fixed_rate@200ms" ,
120120 parsed : true ,
121121 jsonBinaryEncoding : "hex" ,
@@ -174,7 +174,7 @@ export const getADAPriceHistoryFromPyth = async (req: Request, res: Response) =>
174174 const data = await fetchWithFallback ( "/price" , {
175175 symbols : [ "Crypto.ADA/USD" ] ,
176176 properties : [ "price" , "confidence" , "exponent" , "publisherCount" ] ,
177- formats : [ "leEcdsa " ] ,
177+ formats : [ "solana " ] ,
178178 channel : "fixed_rate@200ms" ,
179179 parsed : true ,
180180 jsonBinaryEncoding : "hex" ,
@@ -193,7 +193,7 @@ export const getADAPriceHistoryFromPyth = async (req: Request, res: Response) =>
193193 publishers : feed . publisherCount ,
194194 timestamp_requested : new Date ( Number ( timestamp ) * 1000 ) . toISOString ( ) ,
195195 timestamp_actual : timestamp_iso ,
196- leEcdsaPayload : data . leEcdsa ?. data ?? null ,
196+ solanaPayload : data . solana ?. data ?? null ,
197197 } ) ;
198198
199199 } catch ( error : any ) {
0 commit comments