archethic-foundation / archethic-foundation/archethic-node
Integrate some coins in the oracle
- Dominant language
- Elixir
- Stars
- 82
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
### Is your feature request related to a problem?
The Bridge and DEX apps need coins' price to display in $ and help the users to estimate their transactions.
Currently, the DApps use directly CMC to get prices but CORS policy blocks request
```
Access to XMLHttpRequest at 'https://coinmarketcap.com/currencies/ethereum/markets/' from origin 'https://bridge.testnet.archethic.net' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
```
### Describe the solution you'd like
Could you add in Blockchain Oracles, like UCO, the price of BNB, ETH, MATIC please
### Additional context
_No response_
### Epic
_No response_
Contributor guide
Research direction
Start by locating the Blockchain Oracles and the existing UCO oracle integration in the archethic-node repository. Review how prices are exposed to the Bridge and DEX apps and how the current CoinMarketCap requests are used. Done means BNB, ETH, and MATIC prices are available through the blockchain oracles without the DApps calling CoinMarketCap directly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100