Unihedge new contract and new token (#16945)

Co-authored-by: 0xpeluche <110820448+0xpeluche@users.noreply.github.com>
This commit is contained in:
Luka Levac
2025-11-05 16:26:36 +01:00
committed by GitHub
parent 17a0984e15
commit 666f906e6f

View File

@@ -1,16 +1,16 @@
const ADDRESSES = require('../helper/coreAssets.json')
const { sumTokens2 } = require('../helper/unwrapLPs');
const config = {
owner: '0xdD90A0504aA3215Dd0E7fb45471A0B133CC3f567', // UniHedge contract
token: ADDRESSES.polygon.USDC_CIRCLE // USDC
}
const contractAddress = '0x3C486b7178Eb71d50D060Dd02602aBfAcB88EA21'; // UniHedge contract
const accountingToken = '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359'; // USDC token on Polygon
const chain = 'polygon';
const tvl = async (api) => {
const { owner, token } = config
return api.sumTokens({ token, owner })
async function tvl(_, _1, _2, { api }) {
return sumTokens2({ api, tokens: [accountingToken], owners: [contractAddress] });
}
module.exports = {
methodology: "TVL is calculated by summing the DAI (accounting token) locked in the UniHedge contract.",
polygon: { tvl }
}
polygon: {
tvl,
},
};