Skip to content

Commit 6a48ecb

Browse files
authored
feat: add TAC (ton adapter) under TON TVL (#16044)
1 parent a7658b7 commit 6a48ecb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

projects/tac-ton-adapter/index.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const { getTonBalance } = require("../helper/chain/ton");
2+
3+
async function tvl() {
4+
const contractAddress = "EQAgpWmO8nBUrmfOOldIEmRkLEwV-IIfVAlJsphYswnuL80R";
5+
6+
const balanceNanoTon = await getTonBalance(contractAddress);
7+
const balanceTon = parseInt(balanceNanoTon) / 1e9;
8+
9+
return {
10+
"coingecko:the-open-network": balanceTon,
11+
};
12+
}
13+
14+
module.exports = {
15+
methodology:
16+
"Counts the TON tokens held in the TAC (TON Adapter) cross-chain layer contract.",
17+
timetravel: false,
18+
ton: {
19+
tvl,
20+
},
21+
};

0 commit comments

Comments
 (0)