@defillama/sdk 2.3.30 → 2.3.31

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.
@@ -70,9 +70,8 @@ var kavaBlockProvider = {
70
70
  };
71
71
  var terraBlockProvider = {
72
72
  getBlock: function (height) { return __awaiter(void 0, void 0, void 0, function () {
73
- var _a;
74
- return __generator(this, function (_b) {
75
- return [2 /*return*/, node_fetch_1.default(((_a = process.env["TERRA_RPC"]) !== null && _a !== void 0 ? _a : "https://lcd.terra.dev") + "/blocks/" + height)
73
+ return __generator(this, function (_a) {
74
+ return [2 /*return*/, node_fetch_1.default("https://lcd.terra.dev/blocks/" + height)
76
75
  .then(function (res) { return res.json(); })
77
76
  .then(function (block) { return ({
78
77
  number: Number(block.block.header.height),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defillama/sdk",
3
- "version": "2.3.30",
3
+ "version": "2.3.31",
4
4
  "description": "SDK for calculating TVL",
5
5
  "main": "build/index.js",
6
6
  "scripts": {