@merkl/api 0.10.242 → 0.10.243
Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,7 @@ async function getEulerV2Vaults() {
|
|
44
44
|
return {
|
45
45
|
allowFailure: true,
|
46
46
|
callData: EulerVaultLensInterface.encodeFunctionData("getRecognizedCollateralsLTVInfo", [vault.address]),
|
47
|
-
target: VAULT_LENS_ADDRESS[
|
47
|
+
target: VAULT_LENS_ADDRESS[chainId],
|
48
48
|
};
|
49
49
|
}),
|
50
50
|
});
|
@@ -64,7 +64,7 @@ async function getEulerV2Vaults() {
|
|
64
64
|
});
|
65
65
|
}
|
66
66
|
}
|
67
|
-
const resCollatUnderlying = await batchMulticallCallWithRetry(
|
67
|
+
const resCollatUnderlying = await batchMulticallCallWithRetry(chainId, {
|
68
68
|
calls: callsCollatUnderlying,
|
69
69
|
});
|
70
70
|
for (let i = 0; i < resCollatUnderlying.length; i = i + 2) {
|
@@ -75,7 +75,7 @@ async function getEulerV2Vaults() {
|
|
75
75
|
target: underlyingToken,
|
76
76
|
});
|
77
77
|
}
|
78
|
-
const resCollatUnderlyingSymbol = await batchMulticallCallWithRetry(
|
78
|
+
const resCollatUnderlyingSymbol = await batchMulticallCallWithRetry(chainId, {
|
79
79
|
calls: callsCollatUnderlyingSymbol,
|
80
80
|
});
|
81
81
|
vaults = vaults.concat((await Promise.all(decodedVaults.map(async (decodedVault, index) => {
|