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 defcb14 commit f0a960fCopy full SHA for f0a960f
projects/gold-dao/index.js
@@ -0,0 +1,16 @@
1
+const { toUSDTBalances } = require("../helper/balances");
2
+const { get } = require('../helper/http')
3
+
4
+async function tvl() {
5
+ const url = 'https://teiwz-pqaaa-aaaap-ag7hq-cai.raw.icp0.io/gold_nft_metrics';
6
+ const data = await get(url);
7
+ return toUSDTBalances(data.tvl);
8
+}
9
10
+module.exports = {
11
+ timetravel: false,
12
+ methodology: "TVL counts gold bar owned by gold dao and convert gram to usd price using Forex Public Data",
13
+ icp: {
14
+ tvl,
15
+ },
16
0 commit comments