@1delta/margin-fetcher 0.0.130 → 0.0.132
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/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { formatEther, BaseError, formatUnits } from './chunk-WJRQGN7X.js';
|
|
|
2
2
|
import './chunk-BYTNVMX7.js';
|
|
3
3
|
import './chunk-PR4QN5HX.js';
|
|
4
4
|
import { Lender, AAVE_V3_LENDERS, AAVE_V2_LENDERS, AAVE_V32_LENDERS, COMPOUND_V2_LENDERS, VENUS_LENDERS } from '@1delta/lender-registry';
|
|
5
|
-
import lodash
|
|
5
|
+
import lodash from 'lodash';
|
|
6
6
|
import { getEvmClientUniversal, multicallRetry } from '@1delta/providers';
|
|
7
7
|
import { BALANCER_V2_FORKS, BALANCER_V3_FORKS, UNISWAP_V4_FORKS, FLASH_LOAN_IDS } from '@1delta/dex-registry';
|
|
8
8
|
|
|
@@ -18995,7 +18995,7 @@ var DEFAULT_OPTIONS = {
|
|
|
18995
18995
|
logs: false
|
|
18996
18996
|
};
|
|
18997
18997
|
async function getLenderUserDataMulti(account, chainQueries, prices = {}, pricesHist = {}, lenderState) {
|
|
18998
|
-
const parsedLenderState = isArray
|
|
18998
|
+
const parsedLenderState = Array.isArray(lenderState) ? unflattenLenderData(lenderState) : lenderState;
|
|
18999
18999
|
const cleanChainQueries = chainQueries.map(
|
|
19000
19000
|
({ chainId, queries, providerOptions }) => {
|
|
19001
19001
|
const safeProviderOptions = {
|