@defillama/sdk 5.0.139 → 5.0.141

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.
@@ -126,7 +126,7 @@ function getExtraProvider(chain = "ethereum") {
126
126
  }
127
127
  exports.getLatestBlock = getCurrentChainBlock;
128
128
  const intialBlocks = {
129
- planq: 9020190,
129
+ planq: 14000000,
130
130
  sei: 78353999,
131
131
  terra: 4724001,
132
132
  crab: 4969901
@@ -173,6 +173,8 @@ async function _lookupBlock(timestamp, extraParams) {
173
173
  low = parseInt(envLowValue);
174
174
  let lowBlock = getLowBlock();
175
175
  let highBlock = getHighBlock();
176
+ if ((lowBlock === null || lowBlock === void 0 ? void 0 : lowBlock.number) < low)
177
+ lowBlock = undefined;
176
178
  let block;
177
179
  let i = 0;
178
180
  let time = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defillama/sdk",
3
- "version": "5.0.139",
3
+ "version": "5.0.141",
4
4
  "description": "SDK for calculating TVL",
5
5
  "main": "build/index.js",
6
6
  "scripts": {