@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.
- package/build/abi/multicall3.js +5 -0
- package/build/eth/index.d.ts +2 -4
- package/build/eth/index.js +31 -5
- package/build/providers.json +1 -1
- package/build/util/LlamaProvider.js +3 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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);
|