mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
19 lines
588 B
JavaScript
19 lines
588 B
JavaScript
const utils = require('./helper/utils.js');
|
|
|
|
const urls = ['https://api-bridge-mainnet.azurewebsites.net/tokens/?page=0&size=1000', 'https://bridge-bsc-mainnet.azurewebsites.net/tokens/?page=0&size=1000']
|
|
|
|
const tvl = async (api) => {
|
|
for (const url of urls) {
|
|
const { data } = await utils.fetchURL(url)
|
|
data.tokens.forEach(({ src_coin, totalLockedUSD }) => {
|
|
if (src_coin !== "UNILP-WSCRT-ETH" && src_coin !== "WSCRT") {
|
|
api.addUSDValue(Math.round(totalLockedUSD))
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
misrepresentedTokens: true,
|
|
secret: { tvl }
|
|
} |