Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 27 additions & 23 deletions projects/tokeniza/index.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
const ADDRESSES = require('../helper/coreAssets.json')
const { nullAddress, treasuryExports } = require("../helper/treasury");
const { get } = require('../helper/http')
const treasury = "0xbaECbdde43C6c6a167c37d5b789023592B27fF93";

module.exports = treasuryExports({
async function moonbeamTvl(api) {
const data = await get('https://plataforma.tokeniza.com.br/api/v1/assets/getTVL?network=MOONBEAN')
const tvl = parseFloat(data.tvl)
api.add(ADDRESSES.moonbeam.USDC, tvl * 1e6)
}

module.exports = {
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.',
moonbeam: {
tokens: [
nullAddress,
ADDRESSES.moonbeam.USDT,
ADDRESSES.moonbeam.USDC,
ADDRESSES.moonbeam.WGLMR
],
owners: [treasury]
},
ethereum: {
tokens: [
nullAddress,
ADDRESSES.ethereum.USDT
],
owners: [treasury]
},
polygon: {
tokens: [
nullAddress,
ADDRESSES.polygon.USDT
],
owners: [treasury]
tvl: moonbeamTvl
},
})
...treasuryExports({
ethereum: {
tokens: [
nullAddress,
ADDRESSES.ethereum.USDT
],
owners: [treasury]
},
polygon: {
tokens: [
nullAddress,
ADDRESSES.polygon.USDT
],
owners: [treasury]
},
})
}
Loading