const { fetchURL } = require("../helper/utils");
const { toUSDTBalances } = require("../helper/balances");

const tvl = (chain) => async () => {
  return {}
  /* 
  const response = await fetchURL(
    `https://backend-api-prod.frfi.io/autofarm?chainId=${chain}&$limit=100`
  );
  const data = response?.data?.data;
  const result =
    data?.reduce((acc, item) => acc + (item?.strategyTVL ?? 0), 0) ?? 0;
  return toUSDTBalances(result); */
};

module.exports = {
  timetravel: false,
  bsc: { tvl: tvl('56') },
  polygon: { tvl: tvl('137') },
  ethereum: { tvl: tvl('1') },
  kava: { tvl: tvl('2222') },
};

module.exports.deadFrom = '2023-05-09'