File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ const abi = Object . freeze ( {
2+ getBalance : {
3+ name : 'getBalance' ,
4+ type : 'function' ,
5+ stateMutability : 'view' ,
6+ inputs : [ ] ,
7+ outputs : [ { type : 'uint256' , name : '' } ] ,
8+ } ,
9+ } ) ;
10+
11+ module . exports = { abi } ;
Original file line number Diff line number Diff line change 1+ const { abi } = require ( './abi' ) ;
2+
3+ const UTOPIA_MINER_CONTRACT = '0x61ea85A817344789d836fbC18B9099bB280b383D' ;
4+
5+ async function tvl ( api ) {
6+ const contractBalance = await api . call ( {
7+ abi : abi . getBalance ,
8+ target : UTOPIA_MINER_CONTRACT ,
9+ } ) ;
10+
11+ api . addGasToken ( contractBalance ) ;
12+ }
13+
14+ module . exports = {
15+ methodology : 'TVL is calculated as the total BNB balance locked in the Utopia Miner contract.' ,
16+ bsc : {
17+ tvl,
18+ } ,
19+ } ;
You can’t perform that action at this time.
0 commit comments