@1delta/margin-fetcher 0.0.303 → 0.0.2889
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.
|
@@ -60,20 +60,6 @@ export interface VaultClassificationFields {
|
|
|
60
60
|
* token list passed, or a HyperCore vault whose underlying isn't hydrated).
|
|
61
61
|
*/
|
|
62
62
|
logoURI?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Redemption model — whether a depositor can withdraw underlying cash
|
|
65
|
-
* synchronously (standard ERC-4626 up to available liquidity) or must go
|
|
66
|
-
* through a delay/queue/cooldown.
|
|
67
|
-
* - `sync` — morpho/lista/euler-earn/fluid/gearbox/silo/yearn and `instant`
|
|
68
|
-
* savings: instant withdraw up to the vault's cash. For these, ~zero
|
|
69
|
-
* withdrawable liquidity against non-trivial TVL is a genuine red flag
|
|
70
|
-
* (stuck capital — e.g. an allocator parked in an exploited market).
|
|
71
|
-
* - `async` — LSTs (unbonding/cooldown/off-chain), cooldown savings (sUSDe),
|
|
72
|
-
* and epoch/request vaults (lagoon/upshift). Zero *instant* liquidity is
|
|
73
|
-
* expected by design and must NOT be read as a risk.
|
|
74
|
-
* Absent on hypercore/gmx (USD-denominated, no share redemption model).
|
|
75
|
-
*/
|
|
76
|
-
redemptionType?: 'sync' | 'async';
|
|
77
63
|
}
|
|
78
64
|
/**
|
|
79
65
|
* Per-vault overrides for strategy vaults that are volatile despite living
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classification.d.ts","sourceRoot":"","sources":["../../src/vaults/classification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEzE;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG,UAAU,CAAA;AACvD,MAAM,MAAM,YAAY,GA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;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAUD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,aAEnC,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,aAkF7B,CAAA;AAKF,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,GAAG,SAAS,KAAG,OAS/D,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,aAAa,GAAG,WAAW,GAAG,KAAK,CAAA;IAC7C,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO,kBAAkB,KACxB,mBAUF,CAAA;AAoBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,GACnC,MAAM,kBAAkB,EACxB,SAAS,MAAM,GAAG,MAAM,EACxB,YAAW,gBAAqB,KAC/B,IAoEF,CAAA"}
|
|
@@ -2,14 +2,9 @@ import { GenericTokenList } from '../../types';
|
|
|
2
2
|
import { EulerEarnVaults } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* True when the Goldsky subgraph at `subgraphUrl` lags chain head by more
|
|
5
|
-
* than `MAX_LAG_SECONDS`.
|
|
6
|
-
* (RPC/meta unavailable)
|
|
7
|
-
*
|
|
8
|
-
* Goldsky subgraphs are deprecated and have been observed weeks behind chain
|
|
9
|
-
* head; the probe's own RPC (`getEvmClientUniversal`) uses default endpoints
|
|
10
|
-
* that can't be overridden by the caller, so an unreachable head must not be
|
|
11
|
-
* read as "fresh". If the API is also down, the dispatcher still falls back to
|
|
12
|
-
* whatever the subgraph returned, so this never loses data.
|
|
5
|
+
* than `MAX_LAG_SECONDS`. Returns `false` when staleness can't be determined
|
|
6
|
+
* (RPC/meta unavailable) so a transient hiccup never needlessly abandons the
|
|
7
|
+
* richer subgraph source — the data-fetch error path covers hard failures.
|
|
13
8
|
*/
|
|
14
9
|
export declare function isEulerEarnSubgraphStale(chainId: string, subgraphUrl: string): Promise<boolean>;
|
|
15
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchFromApi.d.ts","sourceRoot":"","sources":["../../../src/vaults/euler-earn/fetchFromApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAI9C,OAAO,EAAkB,eAAe,EAAE,MAAM,SAAS,CAAA;AAyEzD
|
|
1
|
+
{"version":3,"file":"fetchFromApi.d.ts","sourceRoot":"","sources":["../../../src/vaults/euler-earn/fetchFromApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAI9C,OAAO,EAAkB,eAAe,EAAE,MAAM,SAAS,CAAA;AAyEzD;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,OAAO,CAAC,CAgBlB;AAiKD;;;;GAIG;AACH,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,MAAM,EACf,MAAM,GAAE;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAO,EACxC,SAAS,GAAE,gBAAqB,GAC/B,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAqBtC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1delta/margin-fetcher",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2889",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"async-retry": "^1.3.3",
|
|
24
24
|
"lodash": "^4.17.23",
|
|
25
|
-
"@1delta/calldata-sdk": "0.0.154",
|
|
26
25
|
"@1delta/abis": "0.0.20",
|
|
26
|
+
"@1delta/calldata-sdk": "0.0.154",
|
|
27
27
|
"@1delta/lender-registry": "0.0.32",
|
|
28
|
-
"@1delta/data-sdk": "0.0.28",
|
|
29
28
|
"@1delta/dex-registry": "0.0.101",
|
|
30
|
-
"@1delta/
|
|
31
|
-
"@1delta/providers": "0.0.59"
|
|
29
|
+
"@1delta/data-sdk": "0.0.28",
|
|
30
|
+
"@1delta/providers": "0.0.59",
|
|
31
|
+
"@1delta/proxy-fetch": "0.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/async-retry": "^1.4.9",
|