The current price oracle implementation in OM relies on a basic API query to a third-party provider (CoinGecko). To improve reliability, data historical accuracy, we need to transition to a more robust way.
- Query price data at a specific timestamp rather than just fetching "current/simple" data
- Precision of price should be on the OM control, this decoupling ensures that core business logic remains consistent
- Consolidate the design of price oracle, the goal is to create a "Pluggable" design that allows for easier maintenance
The current price oracle implementation in OM relies on a basic API query to a third-party provider (CoinGecko). To improve reliability, data historical accuracy, we need to transition to a more robust way.