@compass-labs/widgets 0.1.49 → 0.1.50
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/{compass-service-BzYob9QR.d.ts → compass-service-CeZpVv6i.d.ts} +2 -0
- package/dist/{compass-service-Dz4PTtzj.d.mts → compass-service-IVuBewyk.d.mts} +2 -0
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +17 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -4
- package/dist/index.mjs.map +1 -1
- package/dist/server/core/index.d.mts +1 -1
- package/dist/server/core/index.d.ts +1 -1
- package/dist/server/core/index.js +4 -2
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/core/index.mjs +4 -2
- package/dist/server/core/index.mjs.map +1 -1
- package/dist/server/index.js +4 -2
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +4 -2
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/nestjs/index.d.mts +1 -1
- package/dist/server/nestjs/index.d.ts +1 -1
- package/dist/server/nestjs/index.js +4 -2
- package/dist/server/nestjs/index.js.map +1 -1
- package/dist/server/nestjs/index.mjs +4 -2
- package/dist/server/nestjs/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamicModule, ExceptionFilter, ArgumentsHost } from '@nestjs/common';
|
|
2
2
|
import { C as CompassHandlerConfig } from '../../types-BOSq6TbU.mjs';
|
|
3
|
-
import { C as CompassCoreService } from '../../compass-service-
|
|
3
|
+
import { C as CompassCoreService } from '../../compass-service-IVuBewyk.mjs';
|
|
4
4
|
import * as _compass_labs_api_sdk_models_components from '@compass-labs/api-sdk/models/components';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '@compass-labs/api-sdk';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamicModule, ExceptionFilter, ArgumentsHost } from '@nestjs/common';
|
|
2
2
|
import { C as CompassHandlerConfig } from '../../types-BOSq6TbU.js';
|
|
3
|
-
import { C as CompassCoreService } from '../../compass-service-
|
|
3
|
+
import { C as CompassCoreService } from '../../compass-service-CeZpVv6i.js';
|
|
4
4
|
import * as _compass_labs_api_sdk_models_components from '@compass-labs/api-sdk/models/components';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '@compass-labs/api-sdk';
|
|
@@ -681,7 +681,7 @@ var CompassCoreService = class {
|
|
|
681
681
|
}
|
|
682
682
|
// --- Data ---
|
|
683
683
|
async vaults(params) {
|
|
684
|
-
const { chain = "base", orderBy = "apy_7d", direction = "desc", limit = "100", assetSymbol, minTvlUsd } = params;
|
|
684
|
+
const { chain = "base", orderBy = "apy_7d", direction = "desc", limit = "100", assetSymbol, minTvlUsd, minLiquidityUsd, minDepositCapUsd } = params;
|
|
685
685
|
try {
|
|
686
686
|
const response = await this.client.earn.earnVaults({
|
|
687
687
|
chain,
|
|
@@ -689,7 +689,9 @@ var CompassCoreService = class {
|
|
|
689
689
|
direction,
|
|
690
690
|
limit: parseInt(limit, 10),
|
|
691
691
|
...assetSymbol && { assetSymbol },
|
|
692
|
-
...minTvlUsd && { minTvlUsd: parseFloat(minTvlUsd) }
|
|
692
|
+
...minTvlUsd && { minTvlUsd: parseFloat(minTvlUsd) },
|
|
693
|
+
...minLiquidityUsd && { minLiquidityUsd: parseFloat(minLiquidityUsd) },
|
|
694
|
+
...minDepositCapUsd && { minDepositCapUsd: parseFloat(minDepositCapUsd) }
|
|
693
695
|
});
|
|
694
696
|
return response;
|
|
695
697
|
} catch {
|