mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-30 13:52:23 +08:00
14 lines
447 B
JavaScript
14 lines
447 B
JavaScript
const ADDRESSES = require('../helper/coreAssets.json')
|
|
const factory = '0xbFC5229ab471c54B58481fA232CFd4a18371C51C'
|
|
|
|
async function tvl(api) {
|
|
const pairs = await api.fetchList({ lengthAbi: 'allPairsLength', itemAbi: 'allPairs', target: factory })
|
|
return api.sumTokens({ owners: pairs, tokens: [ADDRESSES.bsc.WBNB], })
|
|
}
|
|
|
|
module.exports = {
|
|
methodology: "TVL is counted as the amount of BNB locked in the AMM pools",
|
|
bsc: {
|
|
tvl,
|
|
},
|
|
} |