mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-28 21:05:32 +08:00
14 lines
342 B
JavaScript
14 lines
342 B
JavaScript
const config = require("../macaron/config");
|
|
const { sumTokensExport, } = require("../helper/unwrapLPs");
|
|
|
|
module.exports = {}
|
|
|
|
function setChainTVL(chain) {
|
|
const { treasury, erc20s, } = config[chain]
|
|
|
|
module.exports[chain] = {
|
|
tvl: sumTokensExport({ owner: treasury, tokens: erc20s })
|
|
}
|
|
}
|
|
|
|
Object.keys(config).forEach(setChainTVL) |