From 298291e332f637127bae4e5fb4c42de18e85fa07 Mon Sep 17 00:00:00 2001 From: def Date: Sun, 15 Mar 2026 00:11:11 +0000 Subject: [PATCH] Fix ETHO CoinGecko API ID --- oracle/fetch_prices.js | 9 ++++----- oracle/price_cache.json | 32 ++++++++++++++++---------------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/oracle/fetch_prices.js b/oracle/fetch_prices.js index 07edc6f..a38f512 100644 --- a/oracle/fetch_prices.js +++ b/oracle/fetch_prices.js @@ -21,7 +21,7 @@ async function fetchCoinGeckoSimplePrice() { const ids = [ 'usd-coin', 'ethereum', - 'etho-protocol', + 'ether-1', 'etica' ].join(','); @@ -55,10 +55,10 @@ async function main() { }); } - if (data['etho-protocol']) { + if (data['ether-1']) { updateCachedPrice('ETHO_ETHO', { - price_usd: data['etho-protocol'].usd ?? null, - price_cad: data['etho-protocol'].cad ?? null, + price_usd: data['ether-1'].usd ?? null, + price_cad: data['ether-1'].cad ?? null, source: 'coingecko', source_status: 'primary', updated_at: now @@ -81,7 +81,6 @@ async function main() { updated_pairs: ['USDC_ARB', 'ETH_ETH', 'ETHO_ETHO', 'ETI_ETICA'] }, null, 2)); } - main().catch(err => { console.error(`fetch_prices.js failed: ${err.message}`); process.exit(1); diff --git a/oracle/price_cache.json b/oracle/price_cache.json index f1ff8f8..80246c5 100644 --- a/oracle/price_cache.json +++ b/oracle/price_cache.json @@ -1,40 +1,40 @@ { "version": "0.1", - "updated_at": "2026-03-15T00:06:52.407Z", + "updated_at": "2026-03-15T00:11:11.634Z", "status": "fresh", "assets": { "USDC_ARB": { "symbol": "USDC", "chain": "arbitrum", - "price_usd": 1, + "price_usd": 0.999987, "price_cad": 1.38, "source": "coingecko", "source_status": "primary", - "updated_at": "2026-03-15T00:06:52.404Z", + "updated_at": "2026-03-15T00:11:11.630Z", "age_seconds": 0, "stale": false }, "ETH_ETH": { "symbol": "ETH", "chain": "ethereum", - "price_usd": 2095.26, - "price_cad": 2893.66, + "price_usd": 2092.73, + "price_cad": 2890.16, "source": "coingecko", "source_status": "primary", - "updated_at": "2026-03-15T00:06:52.404Z", + "updated_at": "2026-03-15T00:11:11.630Z", "age_seconds": 0, "stale": false }, "ETHO_ETHO": { "symbol": "ETHO", "chain": "etho", - "price_usd": null, - "price_cad": null, - "source": null, - "source_status": null, - "updated_at": null, - "age_seconds": null, - "stale": true + "price_usd": 0.00525255, + "price_cad": 0.00714931, + "source": "coingecko", + "source_status": "primary", + "updated_at": "2026-03-15T00:11:11.630Z", + "age_seconds": 0, + "stale": false }, "EGAZ_ETICA": { "symbol": "EGAZ", @@ -50,11 +50,11 @@ "ETI_ETICA": { "symbol": "ETI", "chain": "etica", - "price_usd": 0.050224, - "price_cad": 0.069362, + "price_usd": 0.050226, + "price_cad": 0.069365, "source": "coingecko", "source_status": "primary", - "updated_at": "2026-03-15T00:06:52.404Z", + "updated_at": "2026-03-15T00:11:11.630Z", "age_seconds": 0, "stale": false }