Skip to content

Commit 666f906

Browse files
l0kol0xpeluche
andauthored
Unihedge new contract and new token (#16945)
Co-authored-by: 0xpeluche <[email protected]>
1 parent 17a0984 commit 666f906

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

projects/unihedge/index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
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

1311
module.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+
};

0 commit comments

Comments
 (0)