lightninglabs / lightninglabs/taproot-assets

[feature]: allow configuring multiple price oracles

Open
#1,349 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement oracle
Dominant language
Go
Stars
525
Forks
150
Avg merge
2d 15h
Merged PRs (30d)
31

Description

We have the ability to set a single price oracle server in tapd.conf:

https://github.com/lightninglabs/taproot-assets/blob/d81faf9e235808de404cf44ca00a0b0d218cefeb/sample-tapd.conf#L358-L361

I'd like the ability to set multiple price oracle servers.

We should have the ability to set a primary and a backup global oracle that we trust for all assets

Or, we should be able to set a primary and backup oracle that is only valid for a specific asset id.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the single price-oracle configuration in sample-tapd.conf around lines 358-361, then trace how that setting is loaded and used. Clarify whether the design should support global primary/backup or asset-specific primary/backup oracles, and define completion around configuring and selecting the requested fallback behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.