Skip to content

Commit

Permalink
Merge pull request #1 from persistenceOne/bitcoin
Browse files Browse the repository at this point in the history
add bitcoin tvl
  • Loading branch information
blackpanther1881 authored Jul 29, 2024
2 parents 8670651 + 01eb66e commit b361da3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions projects/pstake/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,13 @@ module.exports = {
methodology: `Total amount of liquid staked tokens on Persistence.`,
bsc: { tvl: bsctvl },
persistence: { tvl: cosmostvl() },
bitcoin: {
tvl: async () => {
const btcEndpoint = 'https://btc-orchestrator-mainnet.tail78aed.ts.net/api/cobo/total-amount'
const amount = await get(btcEndpoint)
return {
bitcoin: amount.amount/1e8
}
}
}
};

0 comments on commit b361da3

Please sign in to comment.