@gearbox-protocol/sdk 9.6.1 → 9.6.2
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.
|
@@ -20,7 +20,13 @@ export interface OnDemandPriceUpdates<T = unknown> {
|
|
|
20
20
|
multicall: MultiCall[];
|
|
21
21
|
}
|
|
22
22
|
export interface IPriceOracleContract extends IBaseContract {
|
|
23
|
+
/**
|
|
24
|
+
* Mapping Token => [PriceFeed Address, stalenessPeriod]
|
|
25
|
+
*/
|
|
23
26
|
mainPriceFeeds: AddressMap<PriceFeedRef>;
|
|
27
|
+
/**
|
|
28
|
+
* Mapping Token => Price in USD
|
|
29
|
+
*/
|
|
24
30
|
mainPrices: PriceFeedAnswerMap;
|
|
25
31
|
/**
|
|
26
32
|
* Gets main price for given token
|
|
@@ -29,7 +35,13 @@ export interface IPriceOracleContract extends IBaseContract {
|
|
|
29
35
|
* @returns
|
|
30
36
|
*/
|
|
31
37
|
mainPrice: (token: Address) => bigint;
|
|
38
|
+
/**
|
|
39
|
+
* Mapping Token => [PriceFeed Address, stalenessPeriod]
|
|
40
|
+
*/
|
|
32
41
|
reservePriceFeeds: AddressMap<PriceFeedRef>;
|
|
42
|
+
/**
|
|
43
|
+
* Mapping Token => Price in USD
|
|
44
|
+
*/
|
|
33
45
|
reservePrices: PriceFeedAnswerMap;
|
|
34
46
|
/**
|
|
35
47
|
* Gets reserve price for given token
|
|
@@ -22,6 +22,7 @@ export interface IPriceFeedContract extends IBaseContract {
|
|
|
22
22
|
* Latest answer for this price feed
|
|
23
23
|
*/
|
|
24
24
|
readonly answer: PriceFeedAnswer;
|
|
25
|
+
readonly skipCheck: boolean;
|
|
25
26
|
readonly underlyingPriceFeeds: readonly PriceFeedRef[];
|
|
26
27
|
stateHuman: (raw?: boolean) => UnionOmit<PriceFeedStateHuman, "stalenessPeriod">;
|
|
27
28
|
/**
|