@typus/typus-sdk 1.4.48 → 1.4.49

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.
@@ -82,16 +82,16 @@ function getPairPrices(pair, startTs, endTs) {
82
82
  }
83
83
  function getLatestPrice(pair) {
84
84
  return __awaiter(this, void 0, void 0, function () {
85
- var currentTimestampInSeconds, minuteAgo, res, e_1;
85
+ var currentTimestampInSeconds, fiveMinuteAgo, res, e_1;
86
86
  return __generator(this, function (_a) {
87
87
  switch (_a.label) {
88
88
  case 0:
89
89
  currentTimestampInSeconds = Math.floor(new Date().getTime() / 1000);
90
- minuteAgo = currentTimestampInSeconds - 60;
90
+ fiveMinuteAgo = currentTimestampInSeconds - 300;
91
91
  _a.label = 1;
92
92
  case 1:
93
93
  _a.trys.push([1, 3, , 4]);
94
- return [4 /*yield*/, getPairPrices(pair, minuteAgo.toString(), currentTimestampInSeconds.toString())];
94
+ return [4 /*yield*/, getPairPrices(pair, fiveMinuteAgo.toString(), currentTimestampInSeconds.toString())];
95
95
  case 2:
96
96
  res = _a.sent();
97
97
  if (res.at(-1)) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.4.48",
5
+ "version": "1.4.49",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.8.10",