-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Price oracle contract #99
Comments
Going to have a couple of these. IMO an easy one to start with would be
|
What are some other Off the top of my head:
Maybe a generic ICQ (which version?) or Polytone one? |
We can start working on this soon. Let's discuss offline. |
Some comments / guidance from Osmosis on how to implement a price Oracle using the Osmosis DEX: So for on chain queries, we want to query via Stargate Query Path here is the query path, and msg is the binary-ized protobuf query message. We basically rely on cosmwasm’s querier to dispatch the query to osmosis, and receive results. |
This looks less boilerplatey, I'll give it a try. |
I've been poking at this and the scaffold I have so far is a "price feed provider" contract (deployed on Osmosis) and "price feed consumer". Provider has an admin that can add/remove subscriptions (IBC connections). Provider will require some sort of endblock capability to periodically send all subscribers updates - is that something we can do? If not, I can probably adjust. |
Current design I have:
|
Just seen this, sorry for not commenting / reviewing earlier. Some comments:
|
Instead of simple-price-feed, implement a proper price oracle contract that gets its info from a DEX such as Osmosis. This may require querying of price information over IBC.
Support multiple crypto currencies / crypto currencies pairs, both from a local (Consumer side) DEX, or from a remote (Consumer side / other) DEX, over IBC.
Use TWAP or similar to get a stable price estimation for a crypto currency pair.
The text was updated successfully, but these errors were encountered: