import { PublicKey } from "@solana/web3.js"; /** * SOL/USD Pyth Feed ID */ export const SOL_USD_FEED_ID = "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d"; /** * Pyth Solana Receiver Program ID */ export const PYTH_RECEIVER_PROGRAM_ID = new PublicKey( "rec5EKMGg6MxZYaMdyBfgwp4d5rB9T1VQH5pJv5LtFJ" ); /** * SOL/USD Pyth Price Feed Account (Shard 0) * * This is a sponsored push feed - continuously updated on mainnet and devnet. * No VAA posting required. Use this account for initialize_market and mark_extreme. * * @see https://docs.pyth.network/price-feeds/core/push-feeds/solana */ export const SOL_USD_PRICE_FEED_ACCOUNT = new PublicKey( "7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE" ); /** * Max price age for Pyth verification (180 seconds) * Set to 180s to accommodate Sponsored Push Feed heartbeat intervals */ export const PYTH_MAX_PRICE_AGE_SECONDS = 180; /** * Hermes API URL (Pyth price feed service) */ export const HERMES_URL = "https://hermes.pyth.network";