Files
DefiLlama-Adapters/projects/acryptos.js
Real Shaman 08ae6c408f add doublecounted: true,
add doublecounted: true,
2022-02-18 09:38:05 +00:00

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
}