File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- const ADDRESSES = require ( '../helper/coreAssets.json' )
1+ const { sumTokens2 } = require ( '../helper/unwrapLPs' ) ;
22
3- const config = {
4- owner : '0xdD90A0504aA3215Dd0E7fb45471A0B133CC3f567' , // UniHedge contract
5- token : ADDRESSES . polygon . USDC_CIRCLE // USDC
6- }
3+ const contractAddress = '0x3C486b7178Eb71d50D060Dd02602aBfAcB88EA21' ; // UniHedge contract
4+ const accountingToken = '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359' ; // USDC token on Polygon
5+ const chain = 'polygon' ;
76
8- const tvl = async ( api ) => {
9- const { owner, token } = config
10- return api . sumTokens ( { token, owner } )
7+ async function tvl ( _ , _1 , _2 , { api } ) {
8+ return sumTokens2 ( { api, tokens : [ accountingToken ] , owners : [ contractAddress ] } ) ;
119}
1210
1311module . exports = {
1412 methodology : "TVL is calculated by summing the DAI (accounting token) locked in the UniHedge contract." ,
15- polygon : { tvl }
16- }
13+ polygon : {
14+ tvl,
15+ } ,
16+ } ;
You can’t perform that action at this time.
0 commit comments