Get Price
const belugas = new Belugas(window.ethereum);
let price;
(async function () {
price = await belugas.getPrice(Belugas.WBTC);
console.log('WBTC in USD', price); // 6 decimals, see Open Price Feed docs
price = await belugas.getPrice(Belugas.ETH, Belugas.USDC); // supports bTokens too
console.log('ETH in USDC', price);
})().catch(console.error);Last updated