From 01eb66ebf5a423dd9358025c3e451b0509c04bb4 Mon Sep 17 00:00:00 2001 From: rajuvemula Date: Mon, 29 Jul 2024 10:35:50 +0530 Subject: [PATCH] add bitcoin tvl --- projects/pstake/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/projects/pstake/index.js b/projects/pstake/index.js index 34a4e5b6cedb..21497b956ad9 100644 --- a/projects/pstake/index.js +++ b/projects/pstake/index.js @@ -54,4 +54,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 + } + } + } };