Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions providers/apis/pyth/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions providers/apis/stork/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down
Loading