Explaining kinds of price feed program / account

Hi team, I’m trying to integrate price feed into our Anchor program.

I see these two addresses point to SOL/USD price feed, do you know how different between them & how they work:

  • SOL_ORACLE → H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG
  • SOL_ORACLE_FEED → 7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE

Btw, can we make SOL_ORACLE available on Sonic SVM chain?

Note: SOL_ORACLE & SOL_ORACLE_FEED are names defined in Marginfi program source code

gm,

I will use the names in your post.

SOL_ORACLE is a price feed account from the legacy version of Pyth, it is not updated anymore.

SOL_ORACLE_FEED is the price feed account for SOL/USD that can also be used on new SVM deployments, it can be updated in a permissionless manner by getting a price from Hermes and posting it.

Let us know if you have more questions!

2 Likes