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 94c01c8 commit 3d1d183Copy full SHA for 3d1d183
projects/wagmi/index.js
@@ -0,0 +1,18 @@
1
+const ADDRESSES = require("../helper/coreAssets.json");
2
+const { fetchURL } = require('../helper/utils');
3
+
4
+async function fetchTvl(api) {
5
+ const response = await fetchURL("https://tonfunstats-eqnd7.ondigitalocean.app/api/v1/getBondingCurveBalanceSum")
6
+ api.add(ADDRESSES.ton.TON, response.data.balance)
7
+}
8
9
10
+module.exports = {
11
+ methodology: `
12
+ TVL is calculated on the backend by summing up all the balances of the bonding curves that have not gone to the DEX yet.
13
+ `.trim(),
14
+ timetravel: false,
15
+ ton: {
16
+ tvl: fetchTvl
17
+ }
18
0 commit comments