@gearbox-protocol/sdk 2.1.13 → 2.1.14
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.
|
@@ -40,6 +40,7 @@ struct CompositePriceFeedData {
|
|
|
40
40
|
struct BoundedPriceFeedData {
|
|
41
41
|
Tokens token;
|
|
42
42
|
address priceFeed;
|
|
43
|
+
uint32 stalenessPeriod;
|
|
43
44
|
uint256 upperBound;
|
|
44
45
|
}
|
|
45
46
|
|
|
@@ -362,6 +363,7 @@ contract PriceFeedDataLive {
|
|
|
362
363
|
BoundedPriceFeedData({
|
|
363
364
|
token: Tokens.LUSD,
|
|
364
365
|
priceFeed: 0x3D7aE7E594f2f2091Ad8798313450130d0Aba3a0,
|
|
366
|
+
stalenessPeriod: 86400,
|
|
365
367
|
upperBound: 110000000
|
|
366
368
|
})
|
|
367
369
|
);
|
|
@@ -369,6 +371,7 @@ contract PriceFeedDataLive {
|
|
|
369
371
|
BoundedPriceFeedData({
|
|
370
372
|
token: Tokens.LUSD,
|
|
371
373
|
priceFeed: 0x0411D28c94d85A36bC72Cb0f875dfA8371D8fFfF,
|
|
374
|
+
stalenessPeriod: 86400,
|
|
372
375
|
upperBound: 110000000
|
|
373
376
|
})
|
|
374
377
|
);
|
|
@@ -275,12 +275,12 @@ exports.priceFeedsByToken = {
|
|
|
275
275
|
feeds: {
|
|
276
276
|
Mainnet: {
|
|
277
277
|
type: pricefeedType_1.PriceFeedType.BOUNDED_ORACLE,
|
|
278
|
-
|
|
278
|
+
priceFeed: "0x3D7aE7E594f2f2091Ad8798313450130d0Aba3a0",
|
|
279
279
|
upperBound: (BigInt(1e8) * 11n) / 10n,
|
|
280
280
|
},
|
|
281
281
|
Arbitrum: {
|
|
282
282
|
type: pricefeedType_1.PriceFeedType.BOUNDED_ORACLE,
|
|
283
|
-
|
|
283
|
+
priceFeed: "0x0411D28c94d85A36bC72Cb0f875dfA8371D8fFfF",
|
|
284
284
|
upperBound: (BigInt(1e8) * 11n) / 10n,
|
|
285
285
|
},
|
|
286
286
|
},
|
|
@@ -54,9 +54,9 @@ class PriceFeedsSuite {
|
|
|
54
54
|
}
|
|
55
55
|
break;
|
|
56
56
|
case pricefeedType_1.PriceFeedType.BOUNDED_ORACLE:
|
|
57
|
-
if (data.
|
|
57
|
+
if (data.priceFeed.startsWith("0x")) {
|
|
58
58
|
calls.push({
|
|
59
|
-
address: data.
|
|
59
|
+
address: data.priceFeed,
|
|
60
60
|
interface: iFeed,
|
|
61
61
|
method: "latestRoundData()",
|
|
62
62
|
key: token,
|
|
@@ -48,7 +48,8 @@ export type PriceFeedData = {
|
|
|
48
48
|
type: PriceFeedType.ZERO_ORACLE;
|
|
49
49
|
} | {
|
|
50
50
|
type: PriceFeedType.BOUNDED_ORACLE;
|
|
51
|
-
|
|
51
|
+
priceFeed: string;
|
|
52
|
+
stalenessPeriod?: number;
|
|
52
53
|
upperBound: bigint;
|
|
53
54
|
} | {
|
|
54
55
|
type: PriceFeedType.WSTETH_ORACLE;
|