We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e5dee8 commit f4a13e7Copy full SHA for f4a13e7
projects/taparoo/index.js
@@ -0,0 +1,13 @@
1
+const { get } = require('../helper/http')
2
+
3
+module.exports = {
4
+ misrepresentedTokens: true,
5
+ icp: { tvl },
6
+}
7
8
+async function tvl(api) {
9
+ let response = await get('https://ic0.app/api/v2/canister/5ez4n-ayaaa-aaaah-qdqua-cai/query/getTvl')
10
+ const satoshiAmount = parseInt(response.replace(/"/g, ''))
11
+ const btcAmount = satoshiAmount / 100000000
12
+ api.add('bitcoin', btcAmount)
13
0 commit comments