From 7f2eb1c984a401cff34f700458ecfdf493fd1651 Mon Sep 17 00:00:00 2001 From: Kefan Cao Date: Fri, 3 Apr 2026 15:26:03 -0400 Subject: [PATCH 1/2] default --- providers/apis/pyth/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/apis/pyth/utils.go b/providers/apis/pyth/utils.go index 8af290fe4..7444155b1 100644 --- a/providers/apis/pyth/utils.go +++ b/providers/apis/pyth/utils.go @@ -22,7 +22,7 @@ const ( const ( Name = "pyth_api" - URL = "http://localhost:8444/prices" + URL = "https://oracle-relay.dydx.trade/prices" // SolanaFormatMagic is the Pyth Lazer Solana envelope magic (LE u32). SolanaFormatMagic uint32 = 0x821a01b9 @@ -144,7 +144,7 @@ func abs(x int) int { func VerifyAndExtractFeed(payloadBase64 string, feedID uint32) (*ParsedFeedPrice, error) { expectedKeyStr := os.Getenv(PythPubKeyEnv) if expectedKeyStr == "" { - return nil, fmt.Errorf("%s environment variable is not set", PythPubKeyEnv) + expectedKeyStr = "9gKEEcFzSd1PDYBKWAKZi4Sq4ZCUaVX5oTr8kEjdwsfR" } expectedKey, err := solana.PublicKeyFromBase58(expectedKeyStr) From 1b0d32d4e0980bb30a92ff1cd9e6ea393faf9b57 Mon Sep 17 00:00:00 2001 From: Kefan Cao Date: Fri, 3 Apr 2026 15:30:47 -0400 Subject: [PATCH 2/2] update --- providers/apis/stork/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/apis/stork/utils.go b/providers/apis/stork/utils.go index 8578b2ffa..e6e422c69 100644 --- a/providers/apis/stork/utils.go +++ b/providers/apis/stork/utils.go @@ -22,7 +22,7 @@ const ( Name = "stork_api" // URL is the base URL of the Stork REST API for fetching latest prices. - URL = "http://18.117.7.208:8444/prices" + URL = "https://oracle-relay.dydx.trade/prices" ) // DefaultAPIConfig is the default configuration for the Stork API. @@ -111,7 +111,7 @@ type PublisherSignedPrice struct { func VerifyStorkSignature(sp SignedPrice) error { expectedHex := os.Getenv(StorkPubKeyEnv) if expectedHex == "" { - return fmt.Errorf("%s environment variable is not set", StorkPubKeyEnv) + expectedHex = "0x0a803F9b1CCe32e2773e0d2e98b37E0775cA5d44" } msgHash := common.FromHex(sp.TimestampedSignature.MsgHash)