@1delta/margin-fetcher 5.0.124 → 5.0.125
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.d.ts +8 -0
- package/dist/index.js +506 -96
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -7231,6 +7231,10 @@ interface MorphoVault extends VaultClassificationFields {
|
|
|
7231
7231
|
/** Whether the vault is listed by the Morpho frontend. Goldsky-sourced
|
|
7232
7232
|
* chains default to `true` (listing is Morpho-API-only). */
|
|
7233
7233
|
whitelisted: boolean;
|
|
7234
|
+
/** `2` for a Morpho **Vault V2** (adapter-based; `max*` views return 0 by
|
|
7235
|
+
* design, per-selector timelocks, performance + management fee). Absent
|
|
7236
|
+
* for MetaMorpho (V1). */
|
|
7237
|
+
version?: 2;
|
|
7234
7238
|
/** Owner address, lowercased — may be absent if not set. */
|
|
7235
7239
|
owner?: string;
|
|
7236
7240
|
/** Curator address, lowercased — may be absent if not set. */
|
|
@@ -12728,6 +12732,10 @@ declare const fetchMorphoVaults: (chainId: string, multicallRetry: MulticallRetr
|
|
|
12728
12732
|
* Base, Arbitrum, Polygon, Unichain, etc.). Pages through at most
|
|
12729
12733
|
* `maxItems` entries — vault counts per chain are well under 200 in
|
|
12730
12734
|
* practice but we loop defensively for mainnet where count is highest.
|
|
12735
|
+
*
|
|
12736
|
+
* Vault V2s are fetched after the V1 catalogue and merged in; a V1 row wins
|
|
12737
|
+
* on an address collision. A V2 failure is logged and costs only the V2 rows
|
|
12738
|
+
* — it is additive and must never take the V1 catalogue down with it.
|
|
12731
12739
|
*/
|
|
12732
12740
|
declare function fetchMorphoVaultsFromApi(chainId: string, prices?: {
|
|
12733
12741
|
[asset: string]: number;
|