@defillama/sdk 5.0.161 → 5.0.165

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.
@@ -105,7 +105,9 @@ class LlamaProvider extends ethers_1.FallbackProvider {
105
105
  else
106
106
  runners = runners.slice(1).sort(() => Math.random() - 0.5); // randomize order of runners
107
107
  const isArchivalRequest = ['call', 'getBalance'].includes(method) && params[1] !== 'latest';
108
- let noPlayingAround = (0, env_1.getEnvValue)('RPC_NO_PLAYING_AROUND') === 'true' || primaryRunner.url.includes('llama.fi') || method === 'getLogs' || isArchivalRequest;
108
+ // check if domain name of primaryRunner.url is llama
109
+ const isLlamaRPC = primaryRunner.url.includes('llama');
110
+ let noPlayingAround = (0, env_1.getEnvValue)('RPC_NO_PLAYING_AROUND') === 'true' || isLlamaRPC || method === 'getLogs' || isArchivalRequest;
109
111
  if (noPlayingAround) {
110
112
  // if primary runner is llama.fi or alchemy, then try it first
111
113
  runners.unshift(primaryRunner);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defillama/sdk",
3
- "version": "5.0.161",
3
+ "version": "5.0.165",
4
4
  "description": "SDK for calculating TVL",
5
5
  "main": "build/index.js",
6
6
  "scripts": {