Skip to content

Commit 60027d2

Browse files
committed
Add TVL data.
1 parent e124653 commit 60027d2

File tree

1 file changed

+27
-23
lines changed

1 file changed

+27
-23
lines changed

projects/tokeniza/index.js

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
11
const ADDRESSES = require('../helper/coreAssets.json')
22
const { nullAddress, treasuryExports } = require("../helper/treasury");
3+
const { get } = require('../helper/http')
34
const treasury = "0xbaECbdde43C6c6a167c37d5b789023592B27fF93";
45

5-
module.exports = treasuryExports({
6+
async function moonbeamTvl(api) {
7+
const data = await get('https://plataforma.tokeniza.com.br/api/v1/assets/getTVL?network=MOONBEAN')
8+
const tvl = parseFloat(data.tvl)
9+
api.add(ADDRESSES.moonbeam.USDC, tvl * 1e6)
10+
}
11+
12+
module.exports = {
13+
methodology: 'The Tokeniza TVL represents the total USD value of all tokenized NFTs and assets purchased through the Tokeniza platform, combined with the balance held in Tokeniza’s internal wallets. This methodology reflects the on-chain value of regulated Real World Assets (RWA) issued and managed by Tokeniza.',
614
moonbeam: {
7-
tokens: [
8-
nullAddress,
9-
ADDRESSES.moonbeam.USDT,
10-
ADDRESSES.moonbeam.USDC,
11-
ADDRESSES.moonbeam.WGLMR
12-
],
13-
owners: [treasury]
14-
},
15-
ethereum: {
16-
tokens: [
17-
nullAddress,
18-
ADDRESSES.ethereum.USDT
19-
],
20-
owners: [treasury]
21-
},
22-
polygon: {
23-
tokens: [
24-
nullAddress,
25-
ADDRESSES.polygon.USDT
26-
],
27-
owners: [treasury]
15+
tvl: moonbeamTvl
2816
},
29-
})
17+
...treasuryExports({
18+
ethereum: {
19+
tokens: [
20+
nullAddress,
21+
ADDRESSES.ethereum.USDT
22+
],
23+
owners: [treasury]
24+
},
25+
polygon: {
26+
tokens: [
27+
nullAddress,
28+
ADDRESSES.polygon.USDT
29+
],
30+
owners: [treasury]
31+
},
32+
})
33+
}

0 commit comments

Comments
 (0)