Skip to content
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

Complete the end to end of ATOM/USD price feed #3595

Closed
Tracked by #3924
rowgraus opened this issue Aug 4, 2021 · 4 comments
Closed
Tracked by #3924

Complete the end to end of ATOM/USD price feed #3595

rowgraus opened this issue Aug 4, 2021 · 4 comments
Assignees
Labels
cosmic-swingset package: cosmic-swingset enhancement New feature or request oracle Related to on-chain oracles.
Milestone

Comments

@rowgraus
Copy link

rowgraus commented Aug 4, 2021

Taken and edited from: #3595 (comment)

We do not presume economy (vaults / AMM) but startPriceAuthority in bootstrap populates home.priceAuthority with a price authority registry.

User bob wants to know the price of ATOM in our system.

NodeCoordinator submits a proposal to BLDer DAO, who approves:

  • instantiating aggregator contract with ATOM-USD oracle brands (E(home.agoricNames).lookup('oracleBrand', 'ATOM') and E(home.agoricNames).lookup('oracleBrand', 'USD'))
  • adding aggregator priceAuthority to the price authority registry for ATOM-USD pair
  • sending oracle invitations to NodeOp1's and 2's deposit facet

NodeOp1 registers an oracle node with the aggregator:

  • NodeOp1 deploys oracle handler plugin
  • NodeOp1 runs flux-notifier script to create fluxNotifier and use oracle invitation to register it with the aggregator

So bob can get a price:

  • Bob submits a price query to home.priceAuthority
  • NodeOp1's oracle plugin polls the price, reports it to the aggregator
  • Likewise NodeOp2..N.
  • Aggregator computes price and publishes via home.priceAuthority
@rowgraus rowgraus added this to the Mainnet: Phase 1 - Treasury Launch milestone Aug 4, 2021
@dckc dckc added cosmic-swingset package: cosmic-swingset enhancement New feature or request labels Oct 8, 2021
@dckc
Copy link
Member

dckc commented Oct 27, 2021

@michaelfig tells me this is pending availability of oracles.

p.s. The Pegasus contract has been imported into agoric-sdk. dapp-pegasus is just a placeholder for when we have a Pegasus UI.

p.p.s. search keyword: IBC

@Tartuffo Tartuffo added MN-1 and removed MN-1 labels Feb 2, 2022
@Tartuffo Tartuffo removed this from the Mainnet: Phase 1 - RUN Protocol milestone Feb 8, 2022
@Tartuffo Tartuffo added the oracle Related to on-chain oracles. label Feb 15, 2022
@Tartuffo
Copy link
Contributor

Need to get this into good enough state to be handed over to Oracle providers.

@Tartuffo Tartuffo changed the title Complete the end to end of ATOM/USD feed Complete the end to end of ATOM/USD price feed Mar 16, 2022
@dckc
Copy link
Member

dckc commented Mar 18, 2022

interviewed @michaelfig to get a story:

do not presume economy (vaults / AMM)
but startPriceAuthority in bootstrap populates home.priceAuthority

User bob wants to know the price of Atom in our system.

NodeCoordinator who installs aggregator contract, oracle contract. (proposes to BLDer DAO, who approves...)
Proposal includes adding price authority for Atom/USD from aggregator to the price authority registry.

NodeCoordinator uses creator facet to get invitations; hands out to NodeOp1 and 2 via deposit facet.

NodeOp1 deploys script that uses invitation to register themselves with the aggregator.

atom/USD aggregator is registered with home.priceAuthority
So bob can get a price:
NodeOp1 puts finger in wind, chooses 23 USD/Atom as a price, uses registered widget to submit price.
Likewise NodeOp2..N.
Aggregator computes price.

@michaelfig
Copy link
Member

End-to-end is done as described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmic-swingset package: cosmic-swingset enhancement New feature or request oracle Related to on-chain oracles.
Projects
None yet
Development

No branches or pull requests

4 participants