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

feat: add pricefeed base for redstone adapter #114

Merged

Conversation

evandrosaturnino
Copy link

@evandrosaturnino evandrosaturnino commented May 16, 2024

Description

To deploy the Threshold USD contracts on the BOB mainnet, we requested Redstone and Tellor to deploy the price feeds for BTC:USD and ETH:USD pairs on BOB. Redstone deployed an adapter contract that relays the BTC and ETH prices, among other assets, from the mainnet to BOB. You can find the adapter contract here.

The Redstone adapter provides the pair prices in a format different from what our price feed expects. After further inquiries, the Redstone team provided existing audited contracts that should be used for situations where Chainlink compatibility is required. These contracts are PriceFeedBase and PriceFeedWithRounds.

Using the PriceFeedBase and PriceFeedWithRounds contracts as references, this PR introduces a PriceFeedBase contract that will serve as the price aggregator for our Price Feed contract. It will act as a format converter for the Redstone adapter, ensuring it is Chainlink-compatible, as required by our protocol.

Notice

  • Have you checked to ensure there aren't other open Pull Request for the same update/change?

Pull Request Type

  • Feat update (Breaking/Non-breaking Change)

Testing Please outline all testing steps

Testing locally:

  1. Clone the repo locally: git clone https://github.com/Threshold-USD/dev.git
  2. Install the dependecies with yarn: yarn
  3. Run the app: yarn start-dev-frontend

Copy link

netlify bot commented May 16, 2024

Deploy Preview for app-thresholdusd ready!

Name Link
🔨 Latest commit 1abeeb0
🔍 Latest deploy log https://app.netlify.com/sites/app-thresholdusd/deploys/6645af44f664f10008ae9b66
😎 Deploy Preview https://deploy-preview-114--app-thresholdusd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

cloudflare-workers-and-pages bot commented May 16, 2024

Deploying dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1abeeb0
Status: ✅  Deploy successful!
Preview URL: https://99437ca7.dev-e13.pages.dev
Branch Preview URL: https://feat-add-pricefeed-base-for.dev-e13.pages.dev

View logs

@evandrosaturnino evandrosaturnino self-assigned this May 16, 2024
@evandrosaturnino evandrosaturnino added the enhancement New feature or request label May 16, 2024
@evandrosaturnino evandrosaturnino requested a review from vzotova May 17, 2024 04:13
@evandrosaturnino evandrosaturnino changed the title Feat/add pricefeed base for redstone pricefeed adapter feat: add pricefeed base for redstone adapter May 17, 2024
@evandrosaturnino evandrosaturnino merged commit c5e841e into thUSD May 17, 2024
9 checks passed
@evandrosaturnino evandrosaturnino deleted the feat/add-pricefeed-base-for-redstone-pricefeed-adapter branch May 17, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants