XCM Oracle
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
-
- How is and ?
-
-
The SLPx Pallet synchronizes the vToken Exchange Price on Bifrost and sends it to the target chain at regular intervals.
Query the latest price of vToken in the XCM Oracle contract on Moonbeam or Moonriver:
For example, querying the price of vDOT by DOT with 10 decimals.
Query messages sent by Bifrost XCM Oracle: . 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 .)
Query XCM Oracle transactions in : .
View Bifrost Parachain Address (mapped by Moonbeam EVM) transactions synchronizing price information to the Oracle contract on Moonbeam or Moonriver:
-
-