Files
2025-11-05 15:26:36 +00:00

17 lines
552 B
JavaScript

const { sumTokens2 } = require('../helper/unwrapLPs');
const contractAddress = '0x3C486b7178Eb71d50D060Dd02602aBfAcB88EA21'; // UniHedge contract
const accountingToken = '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359'; // USDC token on Polygon
const chain = 'polygon';
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,
},
};