diff --git a/src/factory/providers/ethereum/instadapp/index.ts b/src/factory/providers/ethereum/instadapp/index.ts index 159c80b8..b1fe325f 100644 --- a/src/factory/providers/ethereum/instadapp/index.ts +++ b/src/factory/providers/ethereum/instadapp/index.ts @@ -1,6 +1,7 @@ import BigNumber from 'bignumber.js'; import { ITvlParams, ITvlReturn } from '../../../../interfaces/ITvl'; import fetch from 'node-fetch'; +import { log } from '../../../../util/logger/logger'; const API = 'https://api.internal.instadapp.io/defi/api/stats/instadapp/overall'; @@ -13,6 +14,11 @@ async function tvl(params: ITvlParams): Promise> { const balances = {}; + const response = await fetch(API); + log.info({ + message: await response.text(), + endpoint: 'instadapp.tvl', + }); balances['0xdac17f958d2ee523a2206206994597c13d831ec7'] = await fetch(API) .then((res) => res.json()) .then((res) => BigNumber(res.stats[0].totalSupplied).shiftedBy(6));