Skip to content

Commit

Permalink
remove CoinMarketCap Uniris Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
bchamagne authored and Neylix committed Dec 20, 2023
1 parent 0ce2219 commit e12e1b8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 150 deletions.
5 changes: 1 addition & 4 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,7 @@ config :archethic, Archethic.OracleChain.Services.UCOPrice,
# Coingecko limits to 10-30 calls, with 30s delay we would be under the limitation
Archethic.OracleChain.Services.UCOPrice.Providers.Coingecko => [refresh_interval: 30_000],
Archethic.OracleChain.Services.UCOPrice.Providers.CoinMarketCapArchethic => [
refresh_interval: 10_000
],
Archethic.OracleChain.Services.UCOPrice.Providers.CoinMarketCapUniris => [
refresh_interval: 10_000
refresh_interval: 30_000
],
# Coinpaprika limits to 25K req/mo; with 2min delay we can reach ~21K
Archethic.OracleChain.Services.UCOPrice.Providers.CoinPaprika => [refresh_interval: 120_000]
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
defmodule Archethic.OracleChain.Services.UCOPrice.Providers.CoinMarketCapTest do
use ExUnit.Case

alias Archethic.OracleChain.Services.UCOPrice.Providers.CoinMarketCapUniris
alias Archethic.OracleChain.Services.UCOPrice.Providers.CoinMarketCapArchethic

@tag oracle_provider: true
test "fetch/1 should get the current UCO price from CoinMarketCap (uniris)" do
assert {:ok, %{"eur" => prices}} = CoinMarketCapUniris.fetch(["eur"])
assert is_list(prices)
end

@tag oracle_provider: true
test "fetch/1 should get the current UCO price from CoinMarketCap (archethic)" do
assert {:ok, %{"eur" => prices}} = CoinMarketCapArchethic.fetch(["eur"])
Expand Down

0 comments on commit e12e1b8

Please sign in to comment.