mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
Add DotDot Adapter
Will need to be move to a proper adapter but difficult as a lot of missing prices
This commit is contained in:
17
projects/dotdot/index.js
Normal file
17
projects/dotdot/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const utils = require('../helper/utils');
|
||||
const {toUSDTBalances} = require('../helper/balances');
|
||||
const sdk = require('@defillama/sdk')
|
||||
|
||||
async function tvl() {
|
||||
var totalTvl = await utils.fetchURL('https://api.dotdot.finance/api/tvl')
|
||||
return toUSDTBalances(totalTvl.data.data.dddLpTvl);
|
||||
}
|
||||
|
||||
|
||||
module.exports = {
|
||||
timetravel: false,
|
||||
misrepresentedTokens: true,
|
||||
bsc:{
|
||||
tvl
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user