mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 22:43:12 +08:00
20 lines
386 B
JavaScript
20 lines
386 B
JavaScript
const retry = require('./helper/retry');
|
|
const axios = require('axios');
|
|
|
|
async function fetch() {
|
|
const response = (
|
|
await retry(
|
|
async (bail) => await axios.get('https://analytics.parallel.fi/api/tvl')
|
|
)
|
|
).data;
|
|
|
|
const tvl = response.total;
|
|
|
|
return tvl
|
|
}
|
|
|
|
module.exports = {
|
|
timetravel: false,
|
|
fetch,
|
|
};
|