aftermath-ts-sdk 1.1.83 → 1.1.84
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.
|
@@ -34,7 +34,7 @@ class RouterPricesApi {
|
|
|
34
34
|
// TODO: add single caches
|
|
35
35
|
this.fetchCoinsToPrice = this.Provider.withCache({
|
|
36
36
|
key: "routerPricesApi.fetchCoinsToPrice",
|
|
37
|
-
expirationSeconds: 60
|
|
37
|
+
expirationSeconds: 60,
|
|
38
38
|
callback: (inputs) => __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
const { coins } = inputs;
|
|
40
40
|
if (coins.length <= 0)
|
|
@@ -48,7 +48,7 @@ class RouterPricesApi {
|
|
|
48
48
|
// TODO: add single cache by coin type ?
|
|
49
49
|
this.fetchCoinsToPriceInfo = this.Provider.withCache({
|
|
50
50
|
key: "routerPricesApi.fetchCoinsToPriceInfo",
|
|
51
|
-
expirationSeconds: 60
|
|
51
|
+
expirationSeconds: 60,
|
|
52
52
|
callback: (inputs) => __awaiter(this, void 0, void 0, function* () {
|
|
53
53
|
const { coins } = inputs;
|
|
54
54
|
// filter regular vs LP coins
|
|
@@ -84,7 +84,7 @@ class RouterPricesApi {
|
|
|
84
84
|
// =========================================================================
|
|
85
85
|
this.fetchCoinsToPriceInfoInternal = this.Provider.withCache({
|
|
86
86
|
key: "routerPricesApi.fetchCoinsToPriceInfoInternal",
|
|
87
|
-
expirationSeconds: 60
|
|
87
|
+
expirationSeconds: 60,
|
|
88
88
|
callback: (inputs) => __awaiter(this, void 0, void 0, function* () {
|
|
89
89
|
const { coins } = inputs;
|
|
90
90
|
if (coins.length <= 0)
|
|
@@ -115,7 +115,7 @@ class RouterPricesApi {
|
|
|
115
115
|
key: singleCacheKey,
|
|
116
116
|
data: coinsInfo,
|
|
117
117
|
inputs: [coin],
|
|
118
|
-
expirationSeconds: 60
|
|
118
|
+
expirationSeconds: 60,
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
return Object.assign(Object.assign({}, cachedCoinsToPriceInfo), nonCachedCoinsInfo);
|
|
@@ -900,7 +900,7 @@ class PoolsApi {
|
|
|
900
900
|
*/
|
|
901
901
|
this.fetchPoolStats = this.Provider.withCache({
|
|
902
902
|
key: "fetchPoolStats",
|
|
903
|
-
expirationSeconds: 60 *
|
|
903
|
+
expirationSeconds: 60 * 5,
|
|
904
904
|
callback: (inputs) => __awaiter(this, void 0, void 0, function* () {
|
|
905
905
|
const { poolId } = inputs;
|
|
906
906
|
const pool = yield this.fetchPool({ objectId: poolId });
|