@gearbox-protocol/sdk 14.10.7 → 14.10.9
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.
|
@@ -38,7 +38,9 @@ const OUT_OF_SYNC_PATTERNS = [
|
|
|
38
38
|
// Optimism proxyd (code -32019) for future/non-existent blocks
|
|
39
39
|
/block is out of range/i,
|
|
40
40
|
// EIP-1474 standard (code -32001) when block/state is not available
|
|
41
|
-
/resource not found/i
|
|
41
|
+
/resource not found/i,
|
|
42
|
+
// DRPC when a requested block is ahead of the node's latest block
|
|
43
|
+
/greater than latest block/i
|
|
42
44
|
];
|
|
43
45
|
function isOutOfSyncError(e) {
|
|
44
46
|
if (e instanceof import_viem.BaseError) {
|
|
@@ -27,12 +27,12 @@ const curveTwapPriceFeed = {
|
|
|
27
27
|
constructorParams: [
|
|
28
28
|
{
|
|
29
29
|
label: "lowerBound ($)",
|
|
30
|
-
type: { type: "int256", decimals:
|
|
30
|
+
type: { type: "int256", decimals: 18 },
|
|
31
31
|
defaultValue: "0"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
label: "upperBound ($)",
|
|
35
|
-
type: { type: "int256", decimals:
|
|
35
|
+
type: { type: "int256", decimals: 18 },
|
|
36
36
|
defaultValue: "1"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -15,7 +15,9 @@ const OUT_OF_SYNC_PATTERNS = [
|
|
|
15
15
|
// Optimism proxyd (code -32019) for future/non-existent blocks
|
|
16
16
|
/block is out of range/i,
|
|
17
17
|
// EIP-1474 standard (code -32001) when block/state is not available
|
|
18
|
-
/resource not found/i
|
|
18
|
+
/resource not found/i,
|
|
19
|
+
// DRPC when a requested block is ahead of the node's latest block
|
|
20
|
+
/greater than latest block/i
|
|
19
21
|
];
|
|
20
22
|
function isOutOfSyncError(e) {
|
|
21
23
|
if (e instanceof BaseError) {
|
|
@@ -4,12 +4,12 @@ const curveTwapPriceFeed = {
|
|
|
4
4
|
constructorParams: [
|
|
5
5
|
{
|
|
6
6
|
label: "lowerBound ($)",
|
|
7
|
-
type: { type: "int256", decimals:
|
|
7
|
+
type: { type: "int256", decimals: 18 },
|
|
8
8
|
defaultValue: "0"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
label: "upperBound ($)",
|
|
12
|
-
type: { type: "int256", decimals:
|
|
12
|
+
type: { type: "int256", decimals: 18 },
|
|
13
13
|
defaultValue: "1"
|
|
14
14
|
},
|
|
15
15
|
{
|