Molten Oracle

The Molten Oracle is a crucial component deployed by the Molten Network team. It provides reliable and up-to-date price feeds for various products, enabling secure and efficient operations within the ecosystem. This page details how to interact with the Molten Oracle and utilize its functions.

Key Concepts

  • Product Identification: All products are defined by strings converted to bytes32. For example, the price feed product for BTC-USD is represented as 0x4254432d55534400000000000000000000000000000000000000000000000000, which is the string “BTC-USD” converted to bytes32.

Contract Address

The Molten Oracle contract is deployed at the following address:

0xb664C19af8eebc491cc5792aB146D34047343Bea

Functions

getPair

This function returns the product name, the price, and the timestamp of the last price update.

  • Parameters:

    • bytes32 product: The bytes32 representation of the product string.
  • Returns:

    • string productName: The name of the product.
    • uint256 price: The price of the product.
    • uint256 timestamp: The timestamp of the last price update.
  • Example Usage:

const product = "0x4254432d55534400000000000000000000000000000000000000000000000000"; // BTC-USD in bytes32
const result = await moltenOracle.getPair(product);

const productName = result[0];
const price = result[1];
const timestamp = result[2];

console.log(`Product: ${productName}, Price: ${price}, Last Updated: ${timestamp}`);

prices

This function returns only the price of the specified product.

  • Parameters:

    • bytes32 product: The bytes32 representation of the product string.
  • Returns:

    • uint256 price: The price of the product.
  • Example Usage:

const product = "0x4254432d55534400000000000000000000000000000000000000000000000000"; // BTC-USD in bytes32
const price = await moltenOracle.prices(product);

console.log(`Price: ${price}`);

Available Feeds

Below is a list of all available feeds in the Molten Oracle:

FeedBytes32 Conversion
BTC-USD0x4254432d55534400000000000000000000000000000000000000000000000000
ETH-USD0x4554482d55534400000000000000000000000000000000000000000000000000
ARB-USD0x4152422d55534400000000000000000000000000000000000000000000000000
SOL-USD0x534f4c2d55534400000000000000000000000000000000000000000000000000
ADA-USD0x4144412d55534400000000000000000000000000000000000000000000000000
OP-USD0x4f502d5553440000000000000000000000000000000000000000000000000000
1INCH-USD0x31494e43482d5553440000000000000000000000000000000000000000000000
AAVE-USD0x414156452d555344000000000000000000000000000000000000000000000000
ALGO-USD0x414c474f2d555344000000000000000000000000000000000000000000000000
BEAM-USD0x4245414d2d555344000000000000000000000000000000000000000000000000
BONK-USD0x424f4e4b2d555344000000000000000000000000000000000000000000000000
CANTO-USD0x43414e544f2d5553440000000000000000000000000000000000000000000000
CRV-USD0x4352562d55534400000000000000000000000000000000000000000000000000
DOGE-USD0x444f47452d555344000000000000000000000000000000000000000000000000
DYDX-USD0x445944582d555344000000000000000000000000000000000000000000000000
DYM-USD0x44594d2d55534400000000000000000000000000000000000000000000000000
ENA-USD0x454e412d55534400000000000000000000000000000000000000000000000000
ENS-USD0x454e532d55534400000000000000000000000000000000000000000000000000
EOS-USD0x454f532d55534400000000000000000000000000000000000000000000000000
EVMOS-USD0x45564d4f532d5553440000000000000000000000000000000000000000000000
FTM-USD0x46544d2d55534400000000000000000000000000000000000000000000000000
FLOKI-USD0x464c4f4b492d5553440000000000000000000000000000000000000000000000
FXS-USD0x4658532d55534400000000000000000000000000000000000000000000000000
GMX-USD0x474d582d55534400000000000000000000000000000000000000000000000000
GNS-USD0x474e532d55534400000000000000000000000000000000000000000000000000
GRAIL-USD0x475241494c2d5553440000000000000000000000000000000000000000000000
GRT-USD0x4752542d55534400000000000000000000000000000000000000000000000000
INJ-USD0x494e4a2d55534400000000000000000000000000000000000000000000000000
ICP-USD0x4943502d55534400000000000000000000000000000000000000000000000000
JOE-USD0x4a4f452d55534400000000000000000000000000000000000000000000000000
JUP-USD0x4a55502d55534400000000000000000000000000000000000000000000000000
KAVA-USD0x4b4156412d555344000000000000000000000000000000000000000000000000
KCS-USD0x4b43532d55534400000000000000000000000000000000000000000000000000
LDO-USD0x4c444f2d55534400000000000000000000000000000000000000000000000000
LINK-USD0x4c494e4b2d555344000000000000000000000000000000000000000000000000
LTC-USD0x4c54432d55534400000000000000000000000000000000000000000000000000
MATIC-USD0x4d415449432d5553440000000000000000000000000000000000000000000000
MANTA-USD0x4d414e54412d5553440000000000000000000000000000000000000000000000
METIS-USD0x4d455449532d5553440000000000000000000000000000000000000000000000
MNT-USD0x4d4e542d55534400000000000000000000000000000000000000000000000000
NEAR-USD0x4e4541522d55534400000000000000000000000000000000000000000000000000
PENDLE-USD0x50454e444c452d5553440000000000000000000000000000000000000000000000
PEPE-USD0x504550452d55534400000000000000000000000000000000000000000000000000
PYTH-USD0x505954482d55534400000000000000000000000000000000000000000000000000
RAY-USD0x5241592d55534400000000000000000000000000000000000000000000000000
RDNT-USD0x52444e542d55534400000000000000000000000000000000000000000000000000
RLB-USD0x524c422d55534400000000000000000000000000000000000000000000000000
RNDR-USD0x524e44522d55534400000000000000000000000000000000000000000000000000
SEI-USD0x5345492d55534400000000000000000000000000000000000000000000000000
SNX-USD0x534e582d55534400000000000000000000000000000000000000000000000000
STX-USD0x5354582d55534400000000000000000000000000000000000000000000000000
SUI-USD0x5355492d55534400000000000000000000000000000000000000000000000000
SUSHI-USD0x53555348492d5553440000000000000000000000000000000000000000000000
TAO-USD0x54414f2d55534400000000000000000000000000000000000000000000000000
TIA-USD0x5449412d55534400000000000000000000000000000000000000000000000000
TON-USD0x544f4e2d55534400000000000000000000000000000000000000000000000000
TRX-USD0x5452582d55534400000000000000000000000000000000000000000000000000
UNI-USD0x554e492d55534400000000000000000000000000000000000000000000000000
W-USD0x572d555344000000000000000000000000000000000000000000000000000000
WLD-USD0x574c442d55534400000000000000000000000000000000000000000000000000
WIF-USD0x5749462d55534400000000000000000000000000000000000000000000000000
WOO-USD0x574f4f2d55534400000000000000000000000000000000000000000000000000
XAI-USD0x5841492d55534400000000000000000000000000000000000000000000000000
XLM-USD0x584c4d2d55534400000000000000000000000000000000000000000000000000
XMR-USD0x584d522d55534400000000000000000000000000000000000000000000000000
XRP-USD0x5852502d55534400000000000000000000000000000000000000000000000000
XTZ-USD0x58545a2d55534400000000000000000000000000000000000000000000000000
YFI-USD0x5946492d55534400000000000000000000000000000000000000000000000000
ZEC-USD0x5a45432d55534400000000000000000000000000000000000000000000000000
ZETA-USD0x5a4554412d555344000000000000000000000000000000000000000000000000

Runescape Feeds

We thought it would be fun to include some Runescape items in the Molten Oracle. Below is a list of Runescape items and their corresponding bytes32 representations.

FeedBytes32 Conversion
TWISTEDBOW-GP0x54574953544544424f572d475000000000000000000000000000000000000000
ABYSSALWHIP-GP0x4142595353414c574849502d4750000000000000000000000000000000000000
OSBOND-GP0x4f53424f4e442d47500000000000000000000000000000000000000000000000
BLOODRUNE-GP0x424c4f4f4452554e452d47500000000000000000000000000000000000000000
NIGHTMARESTAFF-GP0x4e494748544d41524553544146462d4750000000000000000000000000000000