mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
16 lines
486 B
JavaScript
16 lines
486 B
JavaScript
const utils = require('./helper/utils');
|
|
const {toUSDTBalances} = require('./helper/balances')
|
|
|
|
async function tvl() {
|
|
var totalTvl = await utils.fetchURL('https://api.ergodex.io/v1/amm/platform/stats');
|
|
return toUSDTBalances(totalTvl.data.tvl.value/100);
|
|
}
|
|
|
|
module.exports = {
|
|
misrepresentedTokens: true,
|
|
timetravel: false,
|
|
ergo:{
|
|
tvl
|
|
},
|
|
methodology: `ErgoDEX TVL is achieved by making a call to its API: https://api.ergodex.io/v1/amm/platform/stats.`
|
|
} |