@1delta/data-sdk 0.0.45 → 0.0.46
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/lending/compoundV2.d.ts +14 -0
- package/package.json +1 -1
|
@@ -16,6 +16,20 @@ export type CompoundV2TokenArrayType = {
|
|
|
16
16
|
[chainId: string]: {
|
|
17
17
|
cToken: string;
|
|
18
18
|
underlying: string;
|
|
19
|
+
/**
|
|
20
|
+
* Pause state for forks whose Comptroller exposes NO
|
|
21
|
+
* `mintGuardianPaused` / `borrowGuardianPaused` getter (WePiggy is the
|
|
22
|
+
* known case: the setters and the pause guardian exist, the mappings are
|
|
23
|
+
* not public). The generator resolves it off-chain by simulating the
|
|
24
|
+
* Comptroller's own `mintAllowed` / `borrowAllowed` and decoding the
|
|
25
|
+
* revert reason, so the fetcher pays nothing at runtime.
|
|
26
|
+
*
|
|
27
|
+
* ONLY a fallback: wherever the live guardian read succeeds it wins, so
|
|
28
|
+
* these are absent for every fork that can be read directly. Absent =
|
|
29
|
+
* unknown, never "not paused".
|
|
30
|
+
*/
|
|
31
|
+
mintPaused?: boolean;
|
|
32
|
+
borrowPaused?: boolean;
|
|
19
33
|
}[];
|
|
20
34
|
};
|
|
21
35
|
};
|