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:
Llama0x
2022-04-24 13:46:54 +01:00
committed by GitHub
parent ed413ae039
commit aad53eead1

17
projects/dotdot/index.js Normal file
View 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
}
}