@huma-finance/widgets 0.0.62-beta.691 → 0.0.62-beta.698
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/cjs/index.cjs +8 -12
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.js +8 -12
- package/dist/index.js.map +1 -1
- package/package.json +4 -8
- package/src/components/Lend/solanaSupply/6-PointsEarned.tsx +1 -2
- package/src/components/Lend/supplyV2/8-PointsEarned.tsx +1 -2
- package/src/index.tsx +7 -13
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
2
|
-
import { txAtom, useMQ, sendTxAtom, usePoolUnderlyingTokenContract, useMount, usePoolInfo, useAccountStats, usePoolInfoV2, usePoolUnderlyingTokenInfoV2, usePoolSafeAllowanceV2, useAuthErrorHandling, useCLFeeManager, useCLPoolAllowance, usePoolContract, useCreditContractV2, useCreditStatsV2, useFirstLossCoverContractV2, useFirstLossCoverRequirementV2, useFirstLossCoverAllowanceV2, useFeeManager, useInvoiceNFTContract, useRFPoolAllowance, useLenderDepositRecordV2, useLPConfigV2, useNextEpochStartTimeV2, useTrancheVaultContractV2, useCancellableRedemptionInfoV2, useParamsSearch, usePoolAllowance, useLenderApproved, useLenderPosition, useWithdrawlLockoutInSeconds, usePoolUnderlyingTokenBalance, useChainInfo, usePoolUnderlyingTokenBalanceV2, useLenderApprovedV2, useTrancheVaultAssetsV2, useLastDepositTime, usePoolBalance, useReceivableInfoV2, useReceivableContractV2, useERC2612Permit, useMultiSendContract, useFactoring, useLenderAccounts, useHumaProgram, useTokenAccount, useTrancheMintAccounts, useTrancheTokenAccounts, useBorrowerAccounts, Provider as Provider$1 } from '@huma-finance/web-shared';
|
|
3
2
|
import { useTheme, css, Box, Typography, Tooltip, Button, Dialog, Slider, Input, Divider, TextField, FormControl, FormLabel, RadioGroup, FormControlLabel, Radio, Snackbar, Alert, Link, createTheme, ThemeProvider } from '@mui/material';
|
|
4
|
-
import { useAtom, Provider as Provider$
|
|
3
|
+
import { useAtom, Provider as Provider$1 } from 'jotai';
|
|
5
4
|
import React, { useCallback, useState, useEffect, useMemo, useRef } from 'react';
|
|
6
5
|
import { useSelector, useDispatch, Provider } from 'react-redux';
|
|
7
6
|
import { supportedChainId, isTxFailed, getExplorerUrl, openInNewTab, TxStateType, decodeLogs, ERC20_ABI, downScale, formatMoney, POOL_NAME, POOL_TYPE, getERC20Contract, checkIsDev, EAService, EARejectionError, EARejectMessage, EARejectReason, timeUtil, formatNumber, doesChainSupportNotifi, CreditState, isEmpty, CreditStateV2, upScale, toBigNumber, TRANSFER_ABI, FirstLossCoverIndex, combineStyles, timestampToLL, getTrancheAssetsAndShares, IdentityService, CHAINS, configUtil, IdentityServiceV2, IdentityVerificationStatusV2, CampaignService, CAMPAIGN_REFERENCE_CODE, KYC_PROVIDER, CHAIN_TYPE, formatAmount, getTrancheVaultContractV2, getTrancheRedemptionStatusV2, getPoolContractV2, CURRENCY_CODE, SuperfluidPoolProcessor_ABI, PoolMap, SOLANA_CHAIN_INFO, SolanaTokenUtils, getSolanaExplorerUrl, getTokenAccounts, getSentinelAddress, getCreditAccounts, ChainEnum, getBlockchainConfigFromChain } from '@huma-finance/shared';
|
|
8
7
|
import { useWeb3React } from '@web3-react/core';
|
|
9
8
|
import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline';
|
|
9
|
+
import { txAtom, useMQ, sendTxAtom, usePoolUnderlyingTokenContract, useMount, usePoolInfo, useAccountStats, usePoolInfoV2, usePoolUnderlyingTokenInfoV2, usePoolSafeAllowanceV2, useAuthErrorHandling, useCLFeeManager, useCLPoolAllowance, usePoolContract, useCreditContractV2, useCreditStatsV2, useFirstLossCoverContractV2, useFirstLossCoverRequirementV2, useFirstLossCoverAllowanceV2, useFeeManager, useInvoiceNFTContract, useRFPoolAllowance, useLenderDepositRecordV2, useLPConfigV2, useNextEpochStartTimeV2, useTrancheVaultContractV2, useCancellableRedemptionInfoV2, useParamsSearch, usePoolAllowance, useLenderApproved, useLenderPosition, useWithdrawlLockoutInSeconds, usePoolUnderlyingTokenBalance, useChainInfo, usePoolUnderlyingTokenBalanceV2, useLenderApprovedV2, useTrancheVaultAssetsV2, useLastDepositTime, usePoolBalance, useReceivableInfoV2, useReceivableContractV2, useERC2612Permit, useMultiSendContract, useFactoring, useLenderAccounts, useHumaProgram, useTokenAccount, useTrancheMintAccounts, useTrancheTokenAccounts, useBorrowerAccounts } from '@huma-finance/web-shared';
|
|
10
10
|
import { useResetAtom } from 'jotai/utils';
|
|
11
11
|
import { createSlice, configureStore } from '@reduxjs/toolkit';
|
|
12
12
|
import { jsxs, jsx, Fragment } from '@emotion/react/jsx-runtime';
|
|
@@ -6431,7 +6431,7 @@ function PointsEarned$1(_ref) {
|
|
|
6431
6431
|
children: ["You'll earn points ", jsx("span", {
|
|
6432
6432
|
css: styles.everyday,
|
|
6433
6433
|
children: "everyday"
|
|
6434
|
-
}), " for", ' ', monthText, " straight.
|
|
6434
|
+
}), " for", ' ', monthText, " straight."]
|
|
6435
6435
|
}), jsx(BottomButton, {
|
|
6436
6436
|
variant: "contained",
|
|
6437
6437
|
onClick: handleCloseModal,
|
|
@@ -9138,7 +9138,7 @@ function PointsEarned(_ref) {
|
|
|
9138
9138
|
children: ["You'll earn points ", jsx("span", {
|
|
9139
9139
|
css: styles.everyday,
|
|
9140
9140
|
children: "everyday"
|
|
9141
|
-
}), " for", ' ', monthText, " straight.
|
|
9141
|
+
}), " for", ' ', monthText, " straight."]
|
|
9142
9142
|
}), jsx(BottomButton, {
|
|
9143
9143
|
variant: "contained",
|
|
9144
9144
|
onClick: handleCloseModal,
|
|
@@ -10239,14 +10239,10 @@ function Widget(props) {
|
|
|
10239
10239
|
children: jsx(Provider, {
|
|
10240
10240
|
store: store,
|
|
10241
10241
|
children: jsx(Provider$1, {
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
children: jsx(NotifiContextWrapper, {
|
|
10247
|
-
chainId: chainId,
|
|
10248
|
-
children: children
|
|
10249
|
-
})
|
|
10242
|
+
children: jsx(ChainSupportProvider, {
|
|
10243
|
+
children: jsx(NotifiContextWrapper, {
|
|
10244
|
+
chainId: chainId,
|
|
10245
|
+
children: children
|
|
10250
10246
|
})
|
|
10251
10247
|
})
|
|
10252
10248
|
})
|