interlay / interbtc-clients

interBTC Clients | Vault, Oracle, Faucet
Apache License 2.0
49 stars 30 forks source link

feat: consume dia fair price feed #515

Closed gregdhill closed 1 year ago

gregdhill commented 1 year ago

Enables the oracle to be configured to fetch prices from the liquid-staking token feed here: https://www.diadata.org/app/liquid-staking/

There is only one breaking change to existing oracle configs, all DIA price feeds are quoted in USD so it may be required to switch the order e.g. from ["USD", "BTC=xxx"] to ["BTC=xxx", "USD"].