Skip to content

Commit 3d1d183

Browse files
admin-wagmip.serebryany
andauthored
Added wagmi adapter (DefiLlama#12435)
Co-authored-by: p.serebryany <[email protected]>
1 parent 94c01c8 commit 3d1d183

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

projects/wagmi/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)