mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
14 lines
399 B
JavaScript
14 lines
399 B
JavaScript
const retry = require('./helper/retry')
|
|
const axios = require("axios");
|
|
|
|
async function tvl() {
|
|
const totals = (await retry(async bail =>
|
|
await axios.get('https://api.data.kava.io/bank/total'))).data.result.supply;
|
|
const bnb = (totals.filter(a => a.denom == 'bnb'))[0];
|
|
const supply = bnb.amount / 10 ** 8;
|
|
return { 'binancecoin': supply };
|
|
};
|
|
|
|
module.exports = {
|
|
tvl
|
|
}; |