mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 22:43:12 +08:00
20 lines
417 B
JavaScript
20 lines
417 B
JavaScript
const utils = require('./helper/utils');
|
|
|
|
/* * * * * * * *
|
|
* ==> Correct adapter needs to be created.
|
|
*
|
|
*****************/
|
|
async function fetch() {
|
|
var staked = await utils.fetchURL('https://api.unrekt.net/api/v1/acryptos-asset')
|
|
let tvl = 0;
|
|
for (const [key, p] of Object.entries(staked.data.assets)) {
|
|
tvl += parseFloat(p.tvl_usd)
|
|
}
|
|
return tvl;
|
|
}
|
|
|
|
module.exports = {
|
|
doublecounted: true,
|
|
fetch
|
|
}
|