{
  "version": 3,
  "sources": ["../../src/apiCalls/economics/getEconomics.ts"],
  "sourcesContent": ["import axios from 'axios';\nimport { getCleanApiAddress } from 'apiCalls/configuration/getCleanApiAddress';\nimport { ECONOMICS_ENDPOINT } from 'apiCalls/endpoints';\n\nexport interface EconomicsInfoType {\n  totalSupply: number;\n  circulatingSupply: number;\n  staked: number;\n  price: number;\n  marketCap: number;\n  apr: number;\n  topUpApr: number;\n}\n\nexport async function getEconomics({\n  url = ECONOMICS_ENDPOINT,\n  baseURL\n}: {\n  url?: string;\n  baseURL: string;\n}) {\n  const apiAddress = getCleanApiAddress(baseURL);\n  const configUrl = `${apiAddress}/${url}`;\n  try {\n    const { data } = await axios.get<EconomicsInfoType>(configUrl);\n    return data;\n  } catch (err) {\n    console.error('err fetching economics info', err);\n    return null;\n  }\n}\n"],
  "mappings": "kFAAA,OAAOA,MAAW,QAclB,eAAsBC,EAAa,CACjC,IAAAC,EAAMC,EACN,QAAAC,CACF,EAGG,CAED,IAAMC,EAAY,GADCC,EAAmBF,CAAO,CACd,IAAIF,CAAG,GACtC,GAAI,CACF,GAAM,CAAE,KAAAK,CAAK,EAAI,MAAMC,EAAM,IAAuBH,CAAS,EAC7D,OAAOE,CACT,OAASE,EAAK,CACZ,eAAQ,MAAM,8BAA+BA,CAAG,EACzC,IACT,CACF",
  "names": ["axios", "getEconomics", "url", "ECONOMICS_ENDPOINT", "baseURL", "configUrl", "getCleanApiAddress", "data", "axios", "err"]
}
