@1delta/margin-fetcher 0.0.67 → 0.0.68
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.js +140 -96
- package/dist/index.js.map +1 -1
- package/dist/lending-pairs/index.d.ts +1 -1
- package/dist/lending-pairs/index.d.ts.map +1 -1
- package/dist/prices/pendle/fetchPendlePrices.d.ts +35 -0
- package/dist/prices/pendle/fetchPendlePrices.d.ts.map +1 -1
- package/dist/yields/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { generateLendingPairs, getTopPairs, type LendingPair, } from './computeLendingPairs';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lending-pairs/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lending-pairs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,WAAW,EACX,KAAK,WAAW,GACjB,MAAM,uBAAuB,CAAA"}
|
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
import { TokenList } from '../../types';
|
|
2
|
+
type PendleAssetTypes = 'PT' | 'YT' | 'SY' | 'PENDLE_LP';
|
|
3
|
+
interface PendleMarket {
|
|
4
|
+
name: string;
|
|
5
|
+
address: string;
|
|
6
|
+
expiry: string;
|
|
7
|
+
pt: string;
|
|
8
|
+
yt: string;
|
|
9
|
+
sy: string;
|
|
10
|
+
underlyingAsset: string;
|
|
11
|
+
details: any;
|
|
12
|
+
isNew: boolean;
|
|
13
|
+
isPrime: boolean;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
lpWrapper?: string;
|
|
16
|
+
categoryIds: string[];
|
|
17
|
+
chainId: number;
|
|
18
|
+
}
|
|
19
|
+
interface PendleMarketsByChain {
|
|
20
|
+
[chainId: string]: PendleMarket[];
|
|
21
|
+
}
|
|
22
|
+
export declare function fetchPendleMarkets(): Promise<PendleMarketsByChain>;
|
|
2
23
|
/**
|
|
3
24
|
* Main function to fetch Pendle prices
|
|
4
25
|
*/
|
|
@@ -6,7 +27,21 @@ export declare function fetchPendlePrices(lists?: {
|
|
|
6
27
|
[chainId: string]: {
|
|
7
28
|
list: TokenList;
|
|
8
29
|
};
|
|
30
|
+
}, assetType?: PendleAssetTypes[]): Promise<{
|
|
31
|
+
[address: string]: number;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Main function to fetch Pendle yields
|
|
35
|
+
* Provide lists to map to asset groups
|
|
36
|
+
* For all chains
|
|
37
|
+
* Skips 0 APRs
|
|
38
|
+
*/
|
|
39
|
+
export declare function fetchPendleYields(lists?: {
|
|
40
|
+
[chainId: string]: {
|
|
41
|
+
list: TokenList;
|
|
42
|
+
};
|
|
9
43
|
}): Promise<{
|
|
10
44
|
[address: string]: number;
|
|
11
45
|
}>;
|
|
46
|
+
export {};
|
|
12
47
|
//# sourceMappingURL=fetchPendlePrices.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchPendlePrices.d.ts","sourceRoot":"","sources":["../../../src/prices/pendle/fetchPendlePrices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"fetchPendlePrices.d.ts","sourceRoot":"","sources":["../../../src/prices/pendle/fetchPendlePrices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AASvC,KAAK,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,WAAW,CAAA;AAExD,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,eAAe,EAAE,MAAM,CAAA;IACvB,OAAO,EAAE,GAAG,CAAA;IACZ,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;CAChB;AAaD,UAAU,oBAAoB;IAC5B,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,EAAE,CAAA;CAClC;AAED,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,oBAAoB,CAAC,CA2BxE;AA2FD;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,GAAE;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAA;CAAO,EACtD,SAAS,GAAE,gBAAgB,EAAiB,GAC3C,OAAO,CAAC;IACT,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;CAC1B,CAAC,CAgBD;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,GAAE;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAA;CAAO,GACrD,OAAO,CAAC;IACT,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;CAC1B,CAAC,CAkCD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/yields/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/yields/index.ts"],"names":[],"mappings":"AA0GA,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,qBAAqB,EAAE,GAAG,CAAA;IAC1B,oBAAoB,EAAE,GAAG,CAAA;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,CAAA;IACxD,aAAa,EAAE;QACb,CAAC,OAAO,EAAE,MAAM,GAAG;YACjB,CAAC,MAAM,EAAE,MAAM,GAAG;gBAAE,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,CAAA;aAAE,CAAA;SACzD,CAAA;KACF,CAAA;CACF;AAmCD,eAAO,MAAM,kBAAkB,uCAmgB9B,CAAA"}
|