@curvefi/api 2.67.8 → 2.68.0
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/lib/curve.js +1 -1
- package/lib/external-api.d.ts +1 -1
- package/lib/external-api.js +1 -1
- package/package.json +1 -1
package/lib/curve.js
CHANGED
|
@@ -665,7 +665,7 @@ export class Curve {
|
|
|
665
665
|
}
|
|
666
666
|
_filterHiddenPools(pools) {
|
|
667
667
|
return __awaiter(this, void 0, void 0, function* () {
|
|
668
|
-
const hiddenPools = (yield _getHiddenPools())[this.constants.NETWORK_NAME] || [];
|
|
668
|
+
const hiddenPools = (yield _getHiddenPools(this.isLiteChain))[this.constants.NETWORK_NAME] || [];
|
|
669
669
|
return Object.fromEntries(Object.entries(pools).filter(([id]) => !hiddenPools.includes(id)));
|
|
670
670
|
});
|
|
671
671
|
}
|
package/lib/external-api.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const _getVolumes: ((network: string) => Promise<IVolumeAndAPYs>)
|
|
|
8
8
|
export declare const _getFactoryAPYs: ((network: string) => Promise<IVolumeAndAPYs>) & memoize.Memoized<(network: string) => Promise<IVolumeAndAPYs>>;
|
|
9
9
|
export declare const _getAllGauges: (() => Promise<IDict<IGaugesDataFromApi>>) & memoize.Memoized<() => Promise<IDict<IGaugesDataFromApi>>>;
|
|
10
10
|
export declare const _getAllGaugesFormatted: (() => Promise<IDict<any>>) & memoize.Memoized<() => Promise<IDict<any>>>;
|
|
11
|
-
export declare const _getHiddenPools: (() => Promise<IDict<string[]>>) & memoize.Memoized<() => Promise<IDict<string[]>>>;
|
|
11
|
+
export declare const _getHiddenPools: ((isLiteChain: boolean) => Promise<IDict<string[]>>) & memoize.Memoized<(isLiteChain: boolean) => Promise<IDict<string[]>>>;
|
|
12
12
|
export declare const _generateBoostingProof: ((block: number, address: string) => Promise<{
|
|
13
13
|
block_header_rlp: string;
|
|
14
14
|
proof_rlp: string;
|
package/lib/external-api.js
CHANGED
|
@@ -186,7 +186,7 @@ export const _getAllGaugesFormatted = memoize(() => __awaiter(void 0, void 0, vo
|
|
|
186
186
|
promise: true,
|
|
187
187
|
maxAge: 60 * 60 * 1000, // 60m
|
|
188
188
|
});
|
|
189
|
-
export const _getHiddenPools = memoize(() => fetchData(`https
|
|
189
|
+
export const _getHiddenPools = memoize((isLiteChain) => fetchData(`https://${isLiteChain ? 'api-core' : 'api'}.curve.finance/v1/getHiddenPools`), {
|
|
190
190
|
promise: true,
|
|
191
191
|
maxAge: 5 * 60 * 1000, // 5m
|
|
192
192
|
});
|