Skip to content

Commit cd985de

Browse files
authored
Add BSC TVL (#17398)
1 parent e97c189 commit cd985de

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

projects/DigiFT/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,14 @@ module.exports = {
5959
await api.addTokens(tokens, tokenSupplies)
6060
return api.getBalances()
6161
}
62+
},
63+
bsc: {
64+
tvl: async (api) => {
65+
const tokenAPI = new sdk.ChainApi({ chain: 'polygon', timestamp: api.timestamp, });
66+
const tokens = await getTokenList(tokenAPI, api.chainId)
67+
const tokenSupplies = await api.multiCall({ abi: 'uint256:totalSupply', calls: tokens })
68+
await api.addTokens(tokens, tokenSupplies)
69+
return api.getBalances()
70+
}
6271
}
6372
};

0 commit comments

Comments
 (0)