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

help to remove duplicated fbtc addresses #12913

Open
lyfmantle opened this issue Dec 30, 2024 · 0 comments
Open

help to remove duplicated fbtc addresses #12913

lyfmantle opened this issue Dec 30, 2024 · 0 comments

Comments

@lyfmantle
Copy link
Contributor

lyfmantle commented Dec 30, 2024

hey, I saw the fbtc adapter has been updated to:
https://github.com/lyfmantle/DefiLlama-Adapters/blob/main/projects/fbtc/index.js

const { sumTokens } = require('../helper/chain/bitcoin')
const bitcoinAddressBook = require('../helper/bitcoin-book/index.js')

async function tvl() {
  return sumTokens({ owners: await bitcoinAddressBook.fbtc() })
}

module.exports = {
  timetravel: false,
  bitcoin: { tvl }
}

and the bitcoinAddressBook.fbtc() method points to:
https://github.com/lyfmantle/DefiLlama-Adapters/blob/main/projects/helper/bitcoin-book/fetchers.js#L32-L50
it's getting the addresses from an api.

now after running npm run check-bitcoin-duplicates in the DefiLlama-Adapters repo, we found some duplicated fbtc addresses and don't know the proper way to remove them.
check-bitcoin-duplicates

can you help us to remove the duplicated fbtc addresses, or tell us a proper way to do that?

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

No branches or pull requests

1 participant