@fileverse-dev/formulajs 4.4.41-example-4 → 4.4.42-yield

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.
@@ -1,4 +1,4 @@
1
- /* @fileverse-dev/formulajs v4.4.41-example-4 */
1
+ /* @fileverse-dev/formulajs v4.4.42-yield */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
4
  function _objectWithoutProperties(e, t) {
@@ -19269,25 +19269,27 @@ function _typeof(o) {
19269
19269
  return _WALLET.apply(this, arguments);
19270
19270
  }
19271
19271
  var yieldParamsSchema = objectType({
19272
- category: enumType([ "all", "stablecoins" ])
19272
+ category: enumType([ "all", "stablecoins" ]),
19273
+ columnName: stringType().optional()
19273
19274
  });
19274
19275
  function YIELD() {
19275
19276
  return _YIELD.apply(this, arguments);
19276
19277
  }
19277
19278
  function _YIELD() {
19278
19279
  _YIELD = _asyncToGenerator(_regenerator().m(function _callee65() {
19279
- var _argsToArray37, _argsToArray38, category, response, result, _args70 = arguments, _t37;
19280
+ var _argsToArray37, _argsToArray38, category, _argsToArray38$, columnName, response, result, _args70 = arguments, _t37;
19280
19281
  return _regenerator().w(function(_context70) {
19281
19282
  while (1) switch (_context70.p = _context70.n) {
19282
19283
  case 0:
19283
19284
  _context70.p = 0;
19284
- _argsToArray37 = argsToArray(_args70), _argsToArray38 = _slicedToArray(_argsToArray37, 1),
19285
- category = _argsToArray38[0];
19285
+ _argsToArray37 = argsToArray(_args70), _argsToArray38 = _slicedToArray(_argsToArray37, 2),
19286
+ category = _argsToArray38[0], _argsToArray38$ = _argsToArray38[1], columnName = _argsToArray38$ === void 0 ? null : _argsToArray38$;
19286
19287
  validateParams(yieldParamsSchema, {
19287
- category: category
19288
+ category: category,
19289
+ columnName: columnName
19288
19290
  });
19289
19291
  _context70.n = 1;
19290
- return DEFILLAMA("yields");
19292
+ return DEFILLAMA("yields", columnName);
19291
19293
 
19292
19294
  case 1:
19293
19295
  response = _context70.v;