@fileverse-dev/fortune-react 1.0.2-mod-104 → 1.0.2-mod-105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -37634,7 +37634,6 @@
37634
37634
  const trend = param2 ? `&price_change_percentage=${param2}` : '';
37635
37635
 
37636
37636
  url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&include_tokens=top&page=1&per_page=100`;
37637
- if (key && !categoryVal) return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
37638
37637
  if (categoryVal) url += `&category=${categoryVal}`;
37639
37638
  if (trend) url += trend;
37640
37639
  break;
@@ -37893,11 +37892,12 @@
37893
37892
  let [category] = argsToArray(arguments);
37894
37893
  const apiKey = window.localStorage.getItem(SERVICE_API_KEY.Defillama);
37895
37894
  if (!apiKey) return `${SERVICE_API_KEY.Defillama}_MISSING`;
37896
- const categoryList = ['protocols', 'yields', 'dex'];
37895
+ const categoryList = ['protocols', 'yields', 'dex', 'fees'];
37897
37896
  const categoryMap = {
37898
37897
  [categoryList[0]]: 'https://api.llama.fi/protocols',
37899
37898
  [categoryList[1]]: 'https://yields.llama.fi/pools',
37900
- [categoryList[2]]: 'https://api.llama.fi/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true'
37899
+ [categoryList[2]]: 'https://api.llama.fi/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true',
37900
+ [categoryList[3]]: 'https://api.llama.fi/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyFees'
37901
37901
  };
37902
37902
  let url = categoryMap[category];
37903
37903
 
@@ -37920,6 +37920,10 @@
37920
37920
  json = json.protocols.slice(0, 500);
37921
37921
  break;
37922
37922
  }
37923
+ case categoryList[3]: {
37924
+ json = json.protocols.slice(0, 500);
37925
+ break;
37926
+ }
37923
37927
  }
37924
37928
 
37925
37929
  return removeNestedStructure(Array.isArray(json) ? json : [json]);
@@ -37989,6 +37993,10 @@
37989
37993
  return "Coming Soon"
37990
37994
  }
37991
37995
 
37996
+ function MYANIMELIST() {
37997
+ return "Coming Soon"
37998
+ }
37999
+
37992
38000
  const utils = { errors: errors$1, symbols, date };
37993
38001
 
37994
38002
  var formulajs = /*#__PURE__*/Object.freeze({
@@ -38251,6 +38259,7 @@
38251
38259
  MROUND: MROUND,
38252
38260
  MULTINOMIAL: MULTINOMIAL,
38253
38261
  MUNIT: MUNIT,
38262
+ MYANIMELIST: MYANIMELIST,
38254
38263
  N: N,
38255
38264
  NA: NA,
38256
38265
  NEGBINOM: NEGBINOM,