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 a7658b7 commit 6a48ecbCopy full SHA for 6a48ecb
projects/tac-ton-adapter/index.js
@@ -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