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

tatanka: Make fee oracles more robust. #2726

Open
JoeGruffins opened this issue Apr 3, 2024 · 2 comments · May be fixed by #2769
Open

tatanka: Make fee oracles more robust. #2726

JoeGruffins opened this issue Apr 3, 2024 · 2 comments · May be fixed by #2769

Comments

@JoeGruffins
Copy link
Member

Currently dcr and btc rely only on EstimateSmartFee which can have varying results. We can improve our estimations by pulling from other sources and taking an average. Some to consider are https://bitcoiner.live https://mempool.space/ https://blockchain.info https://blockchair.com https://blockcypher.com https://btc.com https://tatum.io https://blockdaemon.com https://bitcoinfees.billfodl.com https://bitcoinfees.net https://btc.network

Here is a graph from @buck54321 showing real time values returned from these services:
image

I propose we choose a few of these and take the average of all we can fetch without error, unless they seem unreasonably high or low.

For dcr there is https://dcrdata.decred.org/ Are there others?

@ukane-philemon
Copy link
Contributor

ukane-philemon commented May 7, 2024

Working on this.

I'm looking out for fee sources that provide fee estimates for more than one asset:

  1. https://tatum.io/ (mainnet) - Supports: ETH, BTC, LTC, DOGE, we can fetch at most 3 assets/calls per second,
  2. https://blockdaemon.com/ (mainnet/testnet) - Supports: avalanche, bitcoin, bitcoincash, ethereum, fantom, litecoin, polkadot, polygon and solana. API KEY REQUIRED. Operators need to refresh API key every 6 months if we fetch fee estimate for 5 assets every 5 minutes.

PS: What assets are our top priority in this effort (DCR, BTC, LTC, BTC Cash, ETH)? We can add more sources for other assets subsequently, I think.

Also, using the average of 3 sources per asset is preferable, correct?

@JoeGruffins
Copy link
Member Author

PS: What assets are our top priority in this effort (DCR, BTC, LTC, BTC Cash, ETH)? We can add more sources for other assets subsequently, I think.

Yeah if we need to set priorities, those sound right to me.

Also, using the average of 3 sources per asset is preferable, correct?

I think three is a good target, but I assume we won't find that many for many coins.

@ukane-philemon ukane-philemon linked a pull request May 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants