XCM Oracle
What is Bifrost XCM Oracle?
In order to facilitate easy querying of Bifrost vToken Exchange Price on other chains at the Pallet and Contract levels, a scheduled price feed task sent by Bifrost SLPx Pallet is needed. Hence, Bifrost Runtime will automatically send XCM messages to the SLPx Contract of the target chain to update the Exchange Price of vTokens in the Contract.
Below link will help you quickly understand the relevant concepts:
- How is vToken Exchange Price calculated and verified in the Bifrost parachain?
How to verify that XCM Oracle uses XCM to synchronize messages to the target chain?
The SLPx Pallet synchronizes the vToken Exchange Price on Bifrost and sends it to the target chain at regular intervals. Link to the code base
Query messages sent by Bifrost XCM Oracle: Link to Bifrost Subscan. The capture below includes the total amount of DOT (Token2:0) and vDOT (vToken2:0) in Bifrost liquid staking. (Check other token index in the Library.)
Query XCM Oracle transactions in XCM Message: Here is a case.
View Bifrost Parachain Address (mapped by Moonbeam EVM) transactions synchronizing price information to the Oracle contract on Moonbeam or Moonriver: Link to Moonscan
Query the latest price of vToken in the XCM Oracle contract on Moonbeam or Moonriver:
- Moonbeam
For example, querying the price of vDOT by DOT with 10 decimals.
Last updated