Skip to content

Commit f0a960f

Browse files
Gwojdag1nt0ki
andauthored
add gold_dao (DefiLlama#9823)
* add gold_dao * fix golddao * Update index.js --------- Co-authored-by: g1nt0ki <[email protected]>
1 parent defcb14 commit f0a960f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

projects/gold-dao/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)