File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,17 @@ const CONFIG = {
1111} ;
1212
1313async function tvl ( api ) {
14+ if ( api . chain === "zeta" ) {
15+ const treasury = "0x18351419aE86F3DD3128943ec01b873b4f35801D" ;
16+ const tokens = [
17+ "0x1de70f3e971B62A0707dA18100392af14f7fB677" ,
18+ "0xA614Aebf7924A3Eb4D066aDCA5595E4980407f1d" ,
19+ "0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb" ,
20+ ] ;
21+ const tokensAndOwners = tokens . map ( ( t ) => [ t , treasury ] ) ;
22+ return api . sumTokens ( { tokensAndOwners } ) ;
23+ }
24+
1425 const pool = CONFIG [ api . chain ] ;
1526 const reserves = await api . call ( { target : pool , abi : abi . getReservesList } ) ;
1627 const datas = await api . multiCall ( {
@@ -48,4 +59,5 @@ module.exports = {
4859 arbitrum : { tvl, borrowed } ,
4960 base : { tvl, borrowed } ,
5061 bsc : { tvl, borrowed } ,
51- } ;
62+ zeta : { tvl } ,
63+ } ;
You can’t perform that action at this time.
0 commit comments