@huma-finance/widgets 0.0.59-beta.513 → 0.0.59-beta.520

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.
Files changed (76) hide show
  1. package/dist/cjs/index.cjs +135 -134
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/index.js +4 -3
  4. package/dist/index.js.map +1 -1
  5. package/package.json +5 -4
  6. package/src/components/Activity.tsx +1 -1
  7. package/src/components/ApproveAllowanceModal.tsx +2 -3
  8. package/src/components/ApproveAllowanceModalV2.tsx +1 -3
  9. package/src/components/ChooseAmountModal.tsx +1 -1
  10. package/src/components/CreditLine/approve/2-Success.tsx +1 -1
  11. package/src/components/CreditLine/approve/index.tsx +2 -6
  12. package/src/components/CreditLine/autoPaybackV2/index.tsx +2 -2
  13. package/src/components/CreditLine/borrow/2-ChooseAmount.tsx +2 -6
  14. package/src/components/CreditLine/borrow/4-Transfer.tsx +2 -1
  15. package/src/components/CreditLine/borrow/index.tsx +2 -7
  16. package/src/components/CreditLine/borrowV2/1-ChooseAmount.tsx +1 -1
  17. package/src/components/CreditLine/borrowV2/3-Transfer.tsx +2 -1
  18. package/src/components/CreditLine/borrowV2/index.tsx +2 -3
  19. package/src/components/CreditLine/payment/1-ChooseAmount.tsx +2 -6
  20. package/src/components/CreditLine/payment/4-Success.tsx +1 -1
  21. package/src/components/CreditLine/payment/index.tsx +2 -6
  22. package/src/components/CreditLine/paymentV2/1-ChooseAmount.tsx +1 -1
  23. package/src/components/CreditLine/paymentV2/3-Transfer.tsx +1 -1
  24. package/src/components/CreditLine/paymentV2/4-Success.tsx +1 -1
  25. package/src/components/CreditLine/paymentV2/index.tsx +2 -2
  26. package/src/components/CreditLine/supplyFLC/2-Transfer.tsx +2 -5
  27. package/src/components/CreditLine/supplyFLC/index.tsx +2 -3
  28. package/src/components/ErrorModal.tsx +1 -1
  29. package/src/components/Factoring/FactoredList.tsx +1 -2
  30. package/src/components/Factoring/UpcomingList.tsx +1 -1
  31. package/src/components/InvoiceFactoring/borrow/2-ChooseAmount.tsx +2 -1
  32. package/src/components/InvoiceFactoring/borrow/4-ApproveNFT.tsx +2 -3
  33. package/src/components/InvoiceFactoring/borrow/index.tsx +2 -6
  34. package/src/components/InvoiceFactoring/payment/1-ChooseAmount.tsx +1 -1
  35. package/src/components/InvoiceFactoring/payment/index.tsx +2 -6
  36. package/src/components/Lend/addRedemptionV2/2-ChooseAmount.tsx +3 -1
  37. package/src/components/Lend/addRedemptionV2/3-Transfer.tsx +2 -5
  38. package/src/components/Lend/addRedemptionV2/index.tsx +3 -1
  39. package/src/components/Lend/cancelRedemptionV2 /1-Transfer.tsx +2 -5
  40. package/src/components/Lend/cancelRedemptionV2 /index.tsx +2 -3
  41. package/src/components/Lend/supply/1-Evaluation/EvaluationKYC.tsx +1 -2
  42. package/src/components/Lend/supply/5-Success.tsx +1 -1
  43. package/src/components/Lend/supply/index.tsx +2 -4
  44. package/src/components/Lend/supplyV2/3-ChooseAmount.tsx +4 -2
  45. package/src/components/Lend/supplyV2/5-Transfer.tsx +1 -1
  46. package/src/components/Lend/supplyV2/6-Success.tsx +2 -2
  47. package/src/components/Lend/supplyV2/8-PointsEarned.tsx +2 -6
  48. package/src/components/Lend/supplyV2/components/PersonaEvaluation.tsx +1 -1
  49. package/src/components/Lend/supplyV2/components/SecuritizeEvaluation.tsx +1 -2
  50. package/src/components/Lend/supplyV2/index.tsx +3 -5
  51. package/src/components/Lend/withdraw/1-CheckWithdrawble.tsx +2 -4
  52. package/src/components/Lend/withdraw/4-Success.tsx +1 -1
  53. package/src/components/Lend/withdraw/index.tsx +2 -3
  54. package/src/components/Lend/withdrawV2/2-Transfer.tsx +2 -5
  55. package/src/components/Lend/withdrawV2/index.tsx +3 -1
  56. package/src/components/Notifi/NotifiSubscriptionModal.tsx +2 -1
  57. package/src/components/ReceivableBackedCreditLine/borrow/1-ChooseAmount.tsx +3 -1
  58. package/src/components/ReceivableBackedCreditLine/borrow/3-ApproveReceivable.tsx +2 -3
  59. package/src/components/ReceivableBackedCreditLine/borrow/index.tsx +2 -3
  60. package/src/components/ReceivableBackedCreditLine/payment/2-ChooseAmount.tsx +1 -1
  61. package/src/components/ReceivableBackedCreditLine/payment/5-ApproveReceivable.tsx +2 -3
  62. package/src/components/ReceivableBackedCreditLine/payment/index.tsx +2 -2
  63. package/src/components/StreamFactoring/borrow/2-ChooseAmount.tsx +1 -1
  64. package/src/components/StreamFactoring/borrow/5-Permit.tsx +1 -2
  65. package/src/components/StreamFactoring/borrow/6-Transfer.tsx +2 -1
  66. package/src/components/StreamFactoring/borrow/index.tsx +2 -1
  67. package/src/components/StreamFactoring/payment/index.tsx +5 -2
  68. package/src/components/SuperfluidFactoring/index.tsx +1 -1
  69. package/src/components/TxDoneModal.tsx +1 -1
  70. package/src/components/TxSendModal.tsx +2 -7
  71. package/src/components/TxSendModalV2.tsx +2 -1
  72. package/src/components/WidgetWrapper.tsx +2 -1
  73. package/src/components/humaModal/HumaModal.tsx +1 -1
  74. package/src/hooks/useEA.ts +1 -1
  75. package/src/index.tsx +1 -1
  76. package/tsconfig.json +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huma-finance/widgets",
3
- "version": "0.0.59-beta.513+969215a",
3
+ "version": "0.0.59-beta.520+10261b5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,8 +30,9 @@
30
30
  "@ethersproject/experimental": "^5.7.0",
31
31
  "@ethersproject/providers": "^5.6.0",
32
32
  "@ethersproject/units": "^5.6.0",
33
- "@huma-finance/sdk": "^0.0.59-beta.513+969215a",
34
- "@huma-finance/shared": "^0.0.59-beta.513+969215a",
33
+ "@huma-finance/sdk": "^0.0.59-beta.520+10261b5",
34
+ "@huma-finance/shared": "^0.0.59-beta.520+10261b5",
35
+ "@huma-finance/web-shared": "^0.0.58",
35
36
  "@mui/icons-material": "^5.3.0",
36
37
  "@mui/material": "^5.0.6",
37
38
  "@mui/styles": "^5.0.2",
@@ -195,5 +196,5 @@
195
196
  "optionalDependencies": {
196
197
  "encoding": "^0.1.13"
197
198
  },
198
- "gitHead": "969215a88d8fba86ee71f1a0395402b1022a7539"
199
+ "gitHead": "10261b5c1cc2df17696b5de3391182edcb9ae90f"
199
200
  }
@@ -6,8 +6,8 @@ import {
6
6
  isEmpty,
7
7
  PoolInfoType,
8
8
  timeUtil,
9
- useMQ,
10
9
  } from '@huma-finance/shared'
10
+ import { useMQ } from '@huma-finance/web-shared'
11
11
  import { Box, css, useTheme } from '@mui/material'
12
12
  import { useWeb3React } from '@web3-react/core'
13
13
  import { useEffect, useState } from 'react'
@@ -2,14 +2,13 @@ import { MaxUint256 } from '@ethersproject/constants'
2
2
  import { Box, css, useTheme } from '@mui/material'
3
3
  import { useWeb3React } from '@web3-react/core'
4
4
  import { BigNumber, BigNumberish } from 'ethers'
5
+ import { PoolInfoType, TxStateType } from '@huma-finance/shared'
5
6
  import {
6
- PoolInfoType,
7
7
  sendTxAtom,
8
8
  txAtom,
9
- TxStateType,
10
9
  useMount,
11
10
  usePoolUnderlyingTokenContract,
12
- } from '@huma-finance/shared'
11
+ } from '@huma-finance/web-shared'
13
12
  import { useAtom } from 'jotai'
14
13
  import { useResetAtom } from 'jotai/utils'
15
14
  import React, { useCallback, useEffect } from 'react'
@@ -2,12 +2,10 @@ import { MaxUint256 } from '@ethersproject/constants'
2
2
  import {
3
3
  getERC20Contract,
4
4
  PoolInfoV2,
5
- sendTxAtom,
6
- txAtom,
7
5
  TxStateType,
8
6
  UnderlyingTokenInfo,
9
- useMount,
10
7
  } from '@huma-finance/shared'
8
+ import { sendTxAtom, txAtom, useMount } from '@huma-finance/web-shared'
11
9
  import { Box, css, useTheme } from '@mui/material'
12
10
  import { useWeb3React } from '@web3-react/core'
13
11
  import { BigNumber, BigNumberish } from 'ethers'
@@ -9,7 +9,7 @@ import {
9
9
  Slider,
10
10
  useTheme,
11
11
  } from '@mui/material'
12
- import { useMQ } from '@huma-finance/shared'
12
+ import { useMQ } from '@huma-finance/web-shared'
13
13
  import React, { useState } from 'react'
14
14
 
15
15
  import { IconType } from '../utilTypes'
@@ -3,9 +3,9 @@ import {
3
3
  decodeLogs,
4
4
  downScale,
5
5
  formatMoney,
6
- sendTxAtom,
7
6
  ERC20_ABI,
8
7
  } from '@huma-finance/shared'
8
+ import { sendTxAtom } from '@huma-finance/web-shared'
9
9
  import React, { useEffect, useState } from 'react'
10
10
 
11
11
  import { useAtom } from 'jotai'
@@ -1,9 +1,5 @@
1
- import {
2
- POOL_NAME,
3
- POOL_TYPE,
4
- useAccountStats,
5
- usePoolInfo,
6
- } from '@huma-finance/shared'
1
+ import { POOL_NAME, POOL_TYPE } from '@huma-finance/shared'
2
+ import { useAccountStats, usePoolInfo } from '@huma-finance/web-shared'
7
3
  import { useWeb3React } from '@web3-react/core'
8
4
  import { BigNumberish } from 'ethers'
9
5
  import React, { useEffect } from 'react'
@@ -1,9 +1,9 @@
1
+ import { POOL_NAME } from '@huma-finance/shared'
1
2
  import {
2
- POOL_NAME,
3
3
  usePoolInfoV2,
4
4
  usePoolSafeAllowanceV2,
5
5
  usePoolUnderlyingTokenInfoV2,
6
- } from '@huma-finance/shared'
6
+ } from '@huma-finance/web-shared'
7
7
  import { useWeb3React } from '@web3-react/core'
8
8
  import React, { useEffect } from 'react'
9
9
  import { useDispatch } from 'react-redux'
@@ -1,9 +1,5 @@
1
- import {
2
- AccountStats,
3
- PoolInfoType,
4
- useCLFeeManager,
5
- useCLPoolAllowance,
6
- } from '@huma-finance/shared'
1
+ import { AccountStats, PoolInfoType } from '@huma-finance/shared'
2
+ import { useCLFeeManager, useCLPoolAllowance } from '@huma-finance/web-shared'
7
3
  import { useWeb3React } from '@web3-react/core'
8
4
  import React, { useCallback, useState } from 'react'
9
5
  import { ethers } from 'ethers'
@@ -1,4 +1,5 @@
1
- import { PoolInfoType, txAtom } from '@huma-finance/shared'
1
+ import { PoolInfoType } from '@huma-finance/shared'
2
+ import { txAtom } from '@huma-finance/web-shared'
2
3
  import { useResetAtom } from 'jotai/utils'
3
4
  import React, { useCallback } from 'react'
4
5
  import { BigNumber } from 'ethers'
@@ -1,11 +1,6 @@
1
1
  import { useWeb3React } from '@web3-react/core'
2
- import {
3
- CreditState,
4
- POOL_NAME,
5
- POOL_TYPE,
6
- useAccountStats,
7
- usePoolInfo,
8
- } from '@huma-finance/shared'
2
+ import { CreditState, POOL_NAME, POOL_TYPE } from '@huma-finance/shared'
3
+ import { useAccountStats, usePoolInfo } from '@huma-finance/web-shared'
9
4
  import React, { useCallback, useEffect } from 'react'
10
5
  import { useDispatch } from 'react-redux'
11
6
 
@@ -3,8 +3,8 @@ import {
3
3
  formatNumber,
4
4
  PoolInfoV2,
5
5
  UnderlyingTokenInfo,
6
- usePoolSafeAllowanceV2,
7
6
  } from '@huma-finance/shared'
7
+ import { usePoolSafeAllowanceV2 } from '@huma-finance/web-shared'
8
8
  import { useWeb3React } from '@web3-react/core'
9
9
  import { ethers } from 'ethers'
10
10
  import React, { useCallback, useState } from 'react'
@@ -1,4 +1,5 @@
1
- import { PoolInfoV2, txAtom, useCreditContractV2 } from '@huma-finance/shared'
1
+ import { PoolInfoV2 } from '@huma-finance/shared'
2
+ import { txAtom, useCreditContractV2 } from '@huma-finance/web-shared'
2
3
  import { useWeb3React } from '@web3-react/core'
3
4
  import { BigNumber } from 'ethers'
4
5
  import { useResetAtom } from 'jotai/utils'
@@ -1,10 +1,9 @@
1
+ import { CreditStateV2, POOL_NAME } from '@huma-finance/shared'
1
2
  import {
2
- CreditStateV2,
3
- POOL_NAME,
4
3
  useCreditStatsV2,
5
4
  usePoolInfoV2,
6
5
  usePoolUnderlyingTokenInfoV2,
7
- } from '@huma-finance/shared'
6
+ } from '@huma-finance/web-shared'
8
7
  import { useWeb3React } from '@web3-react/core'
9
8
  import React, { useCallback, useEffect } from 'react'
10
9
  import { useDispatch } from 'react-redux'
@@ -1,10 +1,6 @@
1
1
  import { useWeb3React } from '@web3-react/core'
2
- import {
3
- PoolInfoType,
4
- toBigNumber,
5
- upScale,
6
- useCLPoolAllowance,
7
- } from '@huma-finance/shared'
2
+ import { PoolInfoType, toBigNumber, upScale } from '@huma-finance/shared'
3
+ import { useCLPoolAllowance } from '@huma-finance/web-shared'
8
4
  import React, { useCallback, useEffect, useState } from 'react'
9
5
  import { BigNumber } from 'ethers'
10
6
 
@@ -3,9 +3,9 @@ import {
3
3
  downScale,
4
4
  formatNumber,
5
5
  PoolInfoType,
6
- sendTxAtom,
7
6
  TRANSFER_ABI,
8
7
  } from '@huma-finance/shared'
8
+ import { sendTxAtom } from '@huma-finance/web-shared'
9
9
  import { useAtom } from 'jotai'
10
10
  import React, { useEffect, useState } from 'react'
11
11
 
@@ -1,10 +1,6 @@
1
1
  import { useWeb3React } from '@web3-react/core'
2
- import {
3
- POOL_NAME,
4
- POOL_TYPE,
5
- useAccountStats,
6
- usePoolInfo,
7
- } from '@huma-finance/shared'
2
+ import { POOL_NAME, POOL_TYPE } from '@huma-finance/shared'
3
+ import { useAccountStats, usePoolInfo } from '@huma-finance/web-shared'
8
4
  import React, { useEffect } from 'react'
9
5
  import { useDispatch } from 'react-redux'
10
6
 
@@ -4,8 +4,8 @@ import {
4
4
  toBigNumber,
5
5
  UnderlyingTokenInfo,
6
6
  upScale,
7
- usePoolSafeAllowanceV2,
8
7
  } from '@huma-finance/shared'
8
+ import { usePoolSafeAllowanceV2 } from '@huma-finance/web-shared'
9
9
  import { useWeb3React } from '@web3-react/core'
10
10
  import { BigNumber, ethers } from 'ethers'
11
11
  import React, { useCallback, useEffect, useState } from 'react'
@@ -3,8 +3,8 @@ import {
3
3
  toBigNumber,
4
4
  UnderlyingTokenInfo,
5
5
  upScale,
6
- useCreditContractV2,
7
6
  } from '@huma-finance/shared'
7
+ import { useCreditContractV2 } from '@huma-finance/web-shared'
8
8
  import { useWeb3React } from '@web3-react/core'
9
9
  import React, { useCallback } from 'react'
10
10
 
@@ -2,10 +2,10 @@ import {
2
2
  decodeLogs,
3
3
  downScale,
4
4
  formatNumber,
5
- sendTxAtom,
6
5
  TRANSFER_ABI,
7
6
  UnderlyingTokenInfo,
8
7
  } from '@huma-finance/shared'
8
+ import { sendTxAtom } from '@huma-finance/web-shared'
9
9
  import { useAtom } from 'jotai'
10
10
  import React, { useEffect, useState } from 'react'
11
11
 
@@ -1,9 +1,9 @@
1
+ import { POOL_NAME } from '@huma-finance/shared'
1
2
  import {
2
- POOL_NAME,
3
3
  useCreditStatsV2,
4
4
  usePoolInfoV2,
5
5
  usePoolUnderlyingTokenInfoV2,
6
- } from '@huma-finance/shared'
6
+ } from '@huma-finance/web-shared'
7
7
  import { useWeb3React } from '@web3-react/core'
8
8
  import React, { useEffect } from 'react'
9
9
  import { useDispatch } from 'react-redux'
@@ -1,8 +1,5 @@
1
- import {
2
- FirstLossCoverIndex,
3
- PoolInfoV2,
4
- useFirstLossCoverContractV2,
5
- } from '@huma-finance/shared'
1
+ import { FirstLossCoverIndex, PoolInfoV2 } from '@huma-finance/shared'
2
+ import { useFirstLossCoverContractV2 } from '@huma-finance/web-shared'
6
3
  import { useWeb3React } from '@web3-react/core'
7
4
  import { BigNumber } from 'ethers'
8
5
  import React, { useCallback } from 'react'
@@ -1,11 +1,10 @@
1
+ import { FirstLossCoverIndex, POOL_NAME } from '@huma-finance/shared'
1
2
  import {
2
- FirstLossCoverIndex,
3
- POOL_NAME,
4
3
  useFirstLossCoverAllowanceV2,
5
4
  useFirstLossCoverRequirementV2,
6
5
  usePoolInfoV2,
7
6
  usePoolUnderlyingTokenInfoV2,
8
- } from '@huma-finance/shared'
7
+ } from '@huma-finance/web-shared'
9
8
  import { useWeb3React } from '@web3-react/core'
10
9
  import React, { useEffect } from 'react'
11
10
  import { useDispatch } from 'react-redux'
@@ -1,6 +1,6 @@
1
1
  import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline'
2
2
  import { Box, Button, css, Tooltip, Typography, useTheme } from '@mui/material'
3
- import { txAtom } from '@huma-finance/shared'
3
+ import { txAtom } from '@huma-finance/web-shared'
4
4
  import { useResetAtom } from 'jotai/utils'
5
5
  import React, { useCallback } from 'react'
6
6
 
@@ -7,9 +7,8 @@ import {
7
7
  hasRFActiveLoan,
8
8
  PoolInfoType,
9
9
  timestampToLL,
10
- useMQ,
11
- usePoolUnderlyingToken,
12
10
  } from '@huma-finance/shared'
11
+ import { useMQ, usePoolUnderlyingToken } from '@huma-finance/web-shared'
13
12
  import React, { useEffect, useState } from 'react'
14
13
 
15
14
  import { ColumnType } from '../../utilTypes'
@@ -1,6 +1,6 @@
1
1
  import { Box, css, LinearProgress, useTheme } from '@mui/material'
2
2
  import { useWeb3React } from '@web3-react/core'
3
- import { useMQ } from '@huma-finance/shared'
3
+ import { useMQ } from '@huma-finance/web-shared'
4
4
  import React from 'react'
5
5
 
6
6
  import { ColumnType, WCProps } from '../../utilTypes'
@@ -1,4 +1,5 @@
1
- import { AccountStats, PoolInfoType, useFeeManager } from '@huma-finance/shared'
1
+ import { AccountStats, PoolInfoType } from '@huma-finance/shared'
2
+ import { useFeeManager } from '@huma-finance/web-shared'
2
3
  import React, { useCallback, useState } from 'react'
3
4
  import { ethers } from 'ethers'
4
5
 
@@ -1,11 +1,10 @@
1
1
  import { useWeb3React } from '@web3-react/core'
2
+ import { PoolInfoType, TxStateType } from '@huma-finance/shared'
2
3
  import {
3
- PoolInfoType,
4
4
  sendTxAtom,
5
5
  txAtom,
6
- TxStateType,
7
6
  useInvoiceNFTContract,
8
- } from '@huma-finance/shared'
7
+ } from '@huma-finance/web-shared'
9
8
  import { useAtom } from 'jotai'
10
9
  import { useResetAtom } from 'jotai/utils'
11
10
  import React, { useEffect } from 'react'
@@ -1,11 +1,7 @@
1
1
  import { useWeb3React } from '@web3-react/core'
2
2
  import { BigNumber } from 'ethers'
3
- import {
4
- POOL_NAME,
5
- POOL_TYPE,
6
- useAccountStats,
7
- usePoolInfo,
8
- } from '@huma-finance/shared'
3
+ import { POOL_NAME, POOL_TYPE } from '@huma-finance/shared'
4
+ import { useAccountStats, usePoolInfo } from '@huma-finance/web-shared'
9
5
  import React, { useEffect } from 'react'
10
6
  import { useDispatch } from 'react-redux'
11
7
 
@@ -5,8 +5,8 @@ import {
5
5
  PoolInfoType,
6
6
  toBigNumber,
7
7
  upScale,
8
- useRFPoolAllowance,
9
8
  } from '@huma-finance/shared'
9
+ import { useRFPoolAllowance } from '@huma-finance/web-shared'
10
10
  import React, { useCallback, useState } from 'react'
11
11
  import { useAppDispatch } from '../../../hooks/useRedux'
12
12
  import { setPaymentAmount, setStep } from '../../../store/widgets.reducers'
@@ -1,10 +1,6 @@
1
1
  import { useWeb3React } from '@web3-react/core'
2
- import {
3
- POOL_NAME,
4
- POOL_TYPE,
5
- useAccountStats,
6
- usePoolInfo,
7
- } from '@huma-finance/shared'
2
+ import { POOL_NAME, POOL_TYPE } from '@huma-finance/shared'
3
+ import { useAccountStats, usePoolInfo } from '@huma-finance/web-shared'
8
4
  import React, { useEffect } from 'react'
9
5
  import { useDispatch } from 'react-redux'
10
6
 
@@ -3,10 +3,12 @@ import {
3
3
  PoolInfoV2,
4
4
  timestampToLL,
5
5
  UnderlyingTokenInfo,
6
+ } from '@huma-finance/shared'
7
+ import {
6
8
  useLenderDepositRecordV2,
7
9
  useLPConfigV2,
8
10
  useNextEpochStartTimeV2,
9
- } from '@huma-finance/shared'
11
+ } from '@huma-finance/web-shared'
10
12
  import { ethers } from 'ethers'
11
13
  import React, { useEffect, useState } from 'react'
12
14
 
@@ -1,8 +1,5 @@
1
- import {
2
- PoolInfoV2,
3
- UnderlyingTokenInfo,
4
- useTrancheVaultContractV2,
5
- } from '@huma-finance/shared'
1
+ import { PoolInfoV2, UnderlyingTokenInfo } from '@huma-finance/shared'
2
+ import { useTrancheVaultContractV2 } from '@huma-finance/web-shared'
6
3
  import { useWeb3React } from '@web3-react/core'
7
4
  import { ethers } from 'ethers'
8
5
  import React, { useCallback } from 'react'
@@ -2,9 +2,11 @@ import {
2
2
  getTrancheAssetsAndShares,
3
3
  POOL_NAME,
4
4
  TrancheType,
5
+ } from '@huma-finance/shared'
6
+ import {
5
7
  usePoolInfoV2,
6
8
  usePoolUnderlyingTokenInfoV2,
7
- } from '@huma-finance/shared'
9
+ } from '@huma-finance/web-shared'
8
10
  import { useWeb3React } from '@web3-react/core'
9
11
  import { BigNumber } from 'ethers'
10
12
  import React, { useCallback, useEffect, useState } from 'react'
@@ -1,8 +1,5 @@
1
- import {
2
- PoolInfoV2,
3
- TrancheType,
4
- useTrancheVaultContractV2,
5
- } from '@huma-finance/shared'
1
+ import { PoolInfoV2, TrancheType } from '@huma-finance/shared'
2
+ import { useTrancheVaultContractV2 } from '@huma-finance/web-shared'
6
3
  import { useWeb3React } from '@web3-react/core'
7
4
  import React, { useCallback } from 'react'
8
5
 
@@ -1,10 +1,9 @@
1
+ import { POOL_NAME, TrancheType } from '@huma-finance/shared'
1
2
  import {
2
- POOL_NAME,
3
- TrancheType,
4
3
  useCancellableRedemptionInfoV2,
5
4
  usePoolInfoV2,
6
5
  usePoolUnderlyingTokenInfoV2,
7
- } from '@huma-finance/shared'
6
+ } from '@huma-finance/web-shared'
8
7
  import { useWeb3React } from '@web3-react/core'
9
8
  import { BigNumber } from 'ethers'
10
9
  import React, { useCallback, useEffect } from 'react'
@@ -6,10 +6,9 @@ import {
6
6
  IdentityService,
7
7
  PoolInfoType,
8
8
  timeUtil,
9
- useAuthErrorHandling,
10
- useParamsSearch,
11
9
  VerificationStatusResult,
12
10
  } from '@huma-finance/shared'
11
+ import { useAuthErrorHandling, useParamsSearch } from '@huma-finance/web-shared'
13
12
  import { Box, css, useTheme } from '@mui/material'
14
13
  import { useWeb3React } from '@web3-react/core'
15
14
  import React, { useCallback, useEffect, useMemo, useState } from 'react'
@@ -4,9 +4,9 @@ import {
4
4
  downScale,
5
5
  formatMoney,
6
6
  PoolInfoType,
7
- sendTxAtom,
8
7
  TRANSFER_ABI,
9
8
  } from '@huma-finance/shared'
9
+ import { sendTxAtom } from '@huma-finance/web-shared'
10
10
  import { useAtom } from 'jotai'
11
11
  import React, { useEffect, useState } from 'react'
12
12
 
@@ -1,14 +1,12 @@
1
+ import { downScale, POOL_NAME, POOL_TYPE } from '@huma-finance/shared'
1
2
  import {
2
- downScale,
3
- POOL_NAME,
4
- POOL_TYPE,
5
3
  useLenderApproved,
6
4
  useLenderPosition,
7
5
  usePoolAllowance,
8
6
  usePoolInfo,
9
7
  usePoolUnderlyingTokenBalance,
10
8
  useWithdrawlLockoutInSeconds,
11
- } from '@huma-finance/shared'
9
+ } from '@huma-finance/web-shared'
12
10
  import { useWeb3React } from '@web3-react/core'
13
11
  import React, { useCallback, useEffect } from 'react'
14
12
  import { useDispatch } from 'react-redux'
@@ -5,19 +5,21 @@ import {
5
5
  PoolInfoV2,
6
6
  TrancheType,
7
7
  UnderlyingTokenInfo,
8
+ } from '@huma-finance/shared'
9
+ import {
8
10
  useDebouncedValue,
9
11
  usePoolSafeAllowanceV2,
10
12
  usePoolUnderlyingTokenBalanceV2,
11
- } from '@huma-finance/shared'
13
+ } from '@huma-finance/web-shared'
12
14
  import { useWeb3React } from '@web3-react/core'
13
15
  import { BigNumber, ethers } from 'ethers'
14
16
  import React, { useEffect, useState } from 'react'
15
17
 
18
+ import { Campaign } from '.'
16
19
  import { useAppDispatch } from '../../../hooks/useRedux'
17
20
  import { setStep, setSupplyAmount } from '../../../store/widgets.reducers'
18
21
  import { WIDGET_STEP } from '../../../store/widgets.store'
19
22
  import { InputAmountModal } from '../../InputAmountModal'
20
- import { Campaign } from '.'
21
23
 
22
24
  type Props = {
23
25
  poolInfo: PoolInfoV2
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PoolInfoV2,
3
- useTrancheVaultContractV2,
4
3
  TrancheType,
5
4
  UnderlyingTokenInfo,
6
5
  } from '@huma-finance/shared'
6
+ import { useTrancheVaultContractV2 } from '@huma-finance/web-shared'
7
7
  import { useWeb3React } from '@web3-react/core'
8
8
  import { ethers } from 'ethers'
9
9
  import React, { useCallback } from 'react'
@@ -3,17 +3,18 @@ import {
3
3
  downScale,
4
4
  formatMoney,
5
5
  PoolInfoV2,
6
- sendTxAtom,
7
6
  timeUtil,
8
7
  TRANSFER_ABI,
9
8
  UnderlyingTokenInfo,
10
9
  } from '@huma-finance/shared'
10
+ import { sendTxAtom } from '@huma-finance/web-shared'
11
11
  import { useWeb3React } from '@web3-react/core'
12
12
  import { useAtom } from 'jotai'
13
13
  import moment from 'moment'
14
14
  import React, { useCallback, useEffect, useState } from 'react'
15
15
  import { useDispatch } from 'react-redux'
16
16
 
17
+ import { Campaign } from '.'
17
18
  import {
18
19
  useDoesChainSupportNotifi,
19
20
  useIsFirstTimeNotifiUser,
@@ -21,7 +22,6 @@ import {
21
22
  import { setStep } from '../../../store/widgets.reducers'
22
23
  import { WIDGET_STEP } from '../../../store/widgets.store'
23
24
  import { TxDoneModal } from '../../TxDoneModal'
24
- import { Campaign } from '.'
25
25
 
26
26
  type Props = {
27
27
  poolInfo: PoolInfoV2
@@ -1,9 +1,5 @@
1
- import {
2
- CampaignService,
3
- checkIsDev,
4
- formatNumber,
5
- useAuthErrorHandling,
6
- } from '@huma-finance/shared'
1
+ import { CampaignService, checkIsDev, formatNumber } from '@huma-finance/shared'
2
+ import { useAuthErrorHandling } from '@huma-finance/web-shared'
7
3
  import { Box, css, useTheme } from '@mui/material'
8
4
  import { useWeb3React } from '@web3-react/core'
9
5
  import React, { useEffect, useState } from 'react'
@@ -8,9 +8,9 @@ import {
8
8
  KYCCopy,
9
9
  PoolInfoV2,
10
10
  TrancheType,
11
- useAuthErrorHandling,
12
11
  VerificationStatusResultV2,
13
12
  } from '@huma-finance/shared'
13
+ import { useAuthErrorHandling } from '@huma-finance/web-shared'
14
14
  import { Box, css, useTheme } from '@mui/material'
15
15
  import { useWeb3React } from '@web3-react/core'
16
16
  import { BigNumber } from 'ethers'
@@ -8,10 +8,9 @@ import {
8
8
  KYCCopy,
9
9
  PoolInfoV2,
10
10
  timeUtil,
11
- useAuthErrorHandling,
12
- useParamsSearch,
13
11
  VerificationStatusResult,
14
12
  } from '@huma-finance/shared'
13
+ import { useAuthErrorHandling, useParamsSearch } from '@huma-finance/web-shared'
15
14
  import { Box, css, useTheme } from '@mui/material'
16
15
  import { useWeb3React } from '@web3-react/core'
17
16
  import React, { useCallback, useEffect, useMemo, useState } from 'react'
@@ -1,13 +1,11 @@
1
+ import { openInNewTab, POOL_NAME, TrancheType } from '@huma-finance/shared'
1
2
  import {
2
- POOL_NAME,
3
- TrancheType,
4
- openInNewTab,
5
- useLPConfigV2,
6
3
  useLenderApprovedV2,
4
+ useLPConfigV2,
7
5
  usePoolInfoV2,
8
6
  usePoolSettingsV2,
9
7
  usePoolUnderlyingTokenInfoV2,
10
- } from '@huma-finance/shared'
8
+ } from '@huma-finance/web-shared'
11
9
  import { useWeb3React } from '@web3-react/core'
12
10
  import React, { useEffect, useState } from 'react'
13
11
  import { useDispatch } from 'react-redux'
@@ -1,11 +1,9 @@
1
1
  import { useWeb3React } from '@web3-react/core'
2
+ import { isEmpty, PoolInfoType, timeUtil } from '@huma-finance/shared'
2
3
  import {
3
- isEmpty,
4
- PoolInfoType,
5
- timeUtil,
6
4
  useLastDepositTime,
7
5
  useWithdrawlLockoutInSeconds,
8
- } from '@huma-finance/shared'
6
+ } from '@huma-finance/web-shared'
9
7
  import React, { useEffect, useState } from 'react'
10
8
  import { useAppDispatch } from '../../../hooks/useRedux'
11
9
  import { ErrorModal } from '../../ErrorModal'