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 d33d1da commit 238835eCopy full SHA for 238835e
projects/utopia/index.js
@@ -0,0 +1,20 @@
1
+const sdk = require('@defillama/sdk');
2
+
3
+const UTOPIA_MINER_CONTRACT = '0x61ea85A817344789d836fbC18B9099bB280b383D';
4
5
+async function tvl(api) {
6
+ const contractBalance = await sdk.api.eth.getBalance({
7
+ target: UTOPIA_MINER_CONTRACT,
8
+ chain: 'bsc',
9
+ });
10
11
+ api.addGasToken(contractBalance.output);
12
+}
13
14
+module.exports = {
15
+ methodology:
16
+ 'TVL is calculated as the total BNB balance locked in the Utopia Miner contract.',
17
+ bsc: {
18
+ tvl,
19
+ },
20
+};
0 commit comments