mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
19 lines
495 B
JavaScript
19 lines
495 B
JavaScript
const retry = require('./helper/retry');
|
|
const axios = require('axios');
|
|
|
|
async function fetch() {
|
|
const response = (
|
|
await retry(
|
|
async (bail) => await axios.get('https://api.atrix.finance/api/tvl')
|
|
)
|
|
).data;
|
|
|
|
return response.tvl;
|
|
}
|
|
|
|
module.exports = {
|
|
timetravel: false,
|
|
methodology: "The Atrix API endpoint fetches on-chain data from the Serum orderbook and token accounts for each liquidity pool, then uses prices from Coingecko to aggregate total TVL.",
|
|
fetch,
|
|
};
|