mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 08:34:23 +08:00
Unihedge new contract and new token (#16945)
Co-authored-by: 0xpeluche <110820448+0xpeluche@users.noreply.github.com>
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
const ADDRESSES = require('../helper/coreAssets.json')
|
const { sumTokens2 } = require('../helper/unwrapLPs');
|
||||||
|
|
||||||
const config = {
|
const contractAddress = '0x3C486b7178Eb71d50D060Dd02602aBfAcB88EA21'; // UniHedge contract
|
||||||
owner: '0xdD90A0504aA3215Dd0E7fb45471A0B133CC3f567', // UniHedge contract
|
const accountingToken = '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359'; // USDC token on Polygon
|
||||||
token: ADDRESSES.polygon.USDC_CIRCLE // USDC
|
const chain = 'polygon';
|
||||||
}
|
|
||||||
|
|
||||||
const tvl = async (api) => {
|
async function tvl(_, _1, _2, { api }) {
|
||||||
const { owner, token } = config
|
return sumTokens2({ api, tokens: [accountingToken], owners: [contractAddress] });
|
||||||
return api.sumTokens({ token, owner })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
methodology: "TVL is calculated by summing the DAI (accounting token) locked in the UniHedge contract.",
|
methodology: "TVL is calculated by summing the DAI (accounting token) locked in the UniHedge contract.",
|
||||||
polygon: { tvl }
|
polygon: {
|
||||||
}
|
tvl,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user