@huma-finance/widgets 0.0.29 → 0.0.30

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
@@ -1,4 +1,4 @@
1
- import { txAtom, useMQ, sendTxAtom, isTxFailed, EARejectionError, EARejectMessage, EARejectReason, EAService, useCLFeeManager, upScale, CHAINS, openInNewTab, usePoolUnderlyingTokenContract, TxStateType, useMount, usePoolContract, useCLPoolAllowance, toBigNumber, timeUtil, POOL_NAME, POOL_TYPE, usePoolInfo, useAccountStats, CreditState, decodeLogs, downScale, formatMoney, useFeeManager, combineStyles, isEmpty, useInvoiceNFTContract, useRFPoolAllowance, IdentityService, usePoolAllowance, useLenderApproved, useLenderPosition, useWithdrawlLockoutInSeconds, usePoolUnderlyingTokenBalance, useLastDepositTime, CreditEventText, useERC2612Permit, useMultiSendContract, usePoolUnderlyingToken, hasRFActiveLoan, timestampToLL, getWalletAddressAbbr, useFactoring, PoolMap, PoolContractMap, CreditEvent, supportedChainId, Provider as Provider$1 } from '@huma-finance/shared';
1
+ import { txAtom, useMQ, sendTxAtom, isTxFailed, EARejectionError, EARejectMessage, EARejectReason, EAService, useCLFeeManager, upScale, CHAINS, openInNewTab, usePoolUnderlyingTokenContract, TxStateType, useMount, usePoolContract, useCLPoolAllowance, toBigNumber, timeUtil, POOL_NAME, POOL_TYPE, usePoolInfo, useAccountStats, CreditState, decodeLogs, downScale, formatMoney, useFeeManager, combineStyles, isEmpty, useInvoiceNFTContract, useRFPoolAllowance, IdentityService, usePoolAllowance, useLenderApproved, useLenderPosition, useWithdrawlLockoutInSeconds, usePoolUnderlyingTokenBalance, useLastDepositTime, CreditEventText, useERC2612Permit, useMultiSendContract, usePoolUnderlyingToken, hasRFActiveLoan, timestampToLL, getWalletAddressAbbr, useFactoring, PoolMap, PoolSubgraphMap, CreditEvent, supportedChainId, Provider as Provider$1 } from '@huma-finance/shared';
2
2
  import { useTheme, css, Box, Typography, Tooltip, Button, Dialog, Slider, Input, Divider, TablePagination, LinearProgress, createTheme, ThemeProvider } from '@mui/material';
3
3
  import { useAtom, Provider as Provider$2 } from 'jotai';
4
4
  import * as React from 'react';
@@ -6227,7 +6227,7 @@ function SuperfluidUpcomingList(_ref) {
6227
6227
  }
6228
6228
 
6229
6229
  function SuperfluidFactoring() {
6230
- var _PoolMap$Stream$poolN, _poolInfo$extra, _PoolContractMap;
6230
+ var _PoolMap$Stream$poolN, _PoolSubgraphMap, _PoolSubgraphMap2;
6231
6231
  var poolName = POOL_NAME.Superfluid;
6232
6232
  var _useWeb3React = useWeb3React(),
6233
6233
  chainId = _useWeb3React.chainId;
@@ -6259,7 +6259,7 @@ function SuperfluidFactoring() {
6259
6259
  loading: loading && actionType === 'payment',
6260
6260
  accountStats: accountStats
6261
6261
  }), jsx(ApolloWrapper, {
6262
- uri: poolInfo === null || poolInfo === void 0 ? void 0 : (_poolInfo$extra = poolInfo.extra) === null || _poolInfo$extra === void 0 ? void 0 : _poolInfo$extra.subgraph,
6262
+ uri: (_PoolSubgraphMap = PoolSubgraphMap[chainId]) === null || _PoolSubgraphMap === void 0 ? void 0 : _PoolSubgraphMap.subgraph,
6263
6263
  children: jsx(SuperfluidUpcomingList, {
6264
6264
  poolInfo: poolInfo,
6265
6265
  handleGetPaid: handleGetPaid,
@@ -6267,7 +6267,7 @@ function SuperfluidFactoring() {
6267
6267
  loading: loading && actionType === 'borrow'
6268
6268
  })
6269
6269
  }), jsx(ApolloWrapper, {
6270
- uri: (_PoolContractMap = PoolContractMap[chainId]) === null || _PoolContractMap === void 0 ? void 0 : _PoolContractMap.subgraph,
6270
+ uri: (_PoolSubgraphMap2 = PoolSubgraphMap[chainId]) === null || _PoolSubgraphMap2 === void 0 ? void 0 : _PoolSubgraphMap2.subgraph,
6271
6271
  children: poolInfo && jsx(Activity, {
6272
6272
  poolInfo: poolInfo,
6273
6273
  targetEvents: [CreditEvent.DrawdownMadeWithReceivable, CreditEvent.PaymentMade, CreditEvent.ReceivedPaymentProcessed]