Copy const { uniTvlExport } = require ( '../helper/unknownTokens' )
const chain = 'yourChain'
const factory = '0x...' // v2 factory address
module . exports = uniTvlExport (chain , factory)
Copy const { uniV3Export } = require ( '../helper/uniswapV3' )
module . exports = uniV3Export ({
chainX : { factory : '0x...' , fromBlock : 'block when factory contract was deployed' } ,
chainY : { factory : '0x...' , fromBlock : 'block when factory contract was deployed' } ,
})
Copy const { gmxExports } = require ( '../helper/gmx' )
module . exports = {
bsc : {
tvl : gmxExports ({ vault : '0x...' , })
}
}
Copy const { aaveExports } = require ( "../helper/aave" )
Copy const { compoundExports2 } = require ( "../helper/compound" );
module . exports = {
polygon : compoundExports2 ({
comptroller : '0x...' ,
cether : '0x...' , // optional, needed if gas token is used
}) ,
};
Copy const { getLiquityTvl } = require ( "../helper/liquity.js" )
module . exports = {
chainX : {
tvl : getLiquityTvl ( '0x...' ) ,
}
}
Copy
const { onChainTvl } = require ( '../helper/balancer' )
module . exports = {
metis : {
tvl : onChainTvl ( '0x...' , < startBlock >),
}
}