diff --git a/examples/single-price.js b/examples/single-price.js index bb81e17a..07461cb8 100644 --- a/examples/single-price.js +++ b/examples/single-price.js @@ -19,9 +19,9 @@ offchainOracle.getRateToEth( ) .then((rate) => { const numerator = 10 ** token.decimals; - const denominator = 1e18; // eth decimals + const denominator = 1e18; // ETH decimals const price = parseFloat(rate) * numerator / denominator / 1e18; - console.log(price.toString()); // USDT in ETH - console.log((1 / price).toString()); // ETH in USDT + console.log(price.toString()); // how much ETH needed for 1 USDT + console.log((1 / price).toString()); // how much USDT needed for 1 ETH }) .catch(console.log);