mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-29 05:15:28 +08:00
14 lines
272 B
JavaScript
14 lines
272 B
JavaScript
const retry = require('./helper/retry')
|
|
const axios = require("axios");
|
|
|
|
async function fetch() {
|
|
var response = await retry(async bail => await axios.get('https://api.solfarm.io/tvl'))
|
|
|
|
return response.data.TOTAL;
|
|
}
|
|
|
|
module.exports = {
|
|
timetravel: false,
|
|
fetch
|
|
}
|