@dodoex/widgets 3.19.0 → 3.20.0-alpha.10

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 (67) hide show
  1. package/LICENSE +674 -674
  2. package/README.md +70 -70
  3. package/dist/{34acf2e58b457195.svg → 28442382d977858a.svg} +9 -9
  4. package/dist/{219f8611c6c9e6e2.svg → 8de9a184d4ef0a11.svg} +6 -6
  5. package/dist/{44df077bd19df476.svg → b3f16b2626f03378.svg} +10 -10
  6. package/dist/cjs/locales/en-US.js +1 -1
  7. package/dist/cjs/locales/zh-CN.js +1 -1
  8. package/dist/{5c5d298f247819e1.svg → ed726d76d93d4899.svg} +10 -10
  9. package/dist/{helper-C1OYS4SC.cjs → helper-BjLrmjzq.cjs} +1 -1
  10. package/dist/{helper-DUWFcWe6.js → helper-BokybIZ1.js} +1 -1
  11. package/dist/{index-BdB2BCQe.cjs → index-BW38-BRn.cjs} +1 -1
  12. package/dist/{index-BGe7caLE.js → index-CA2kCSB4.js} +1 -1
  13. package/dist/index-DZ6Jwgca.cjs +14 -0
  14. package/dist/{index-XzRE8z_c.js → index-MV36Ujd8.js} +1 -1
  15. package/dist/{index-CQl4nYsF.cjs → index-OBosq5oX.cjs} +1 -1
  16. package/dist/index-SUoF0O-Y.js +14 -0
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/locales/en-US.js +1 -1
  20. package/dist/locales/zh-CN.js +1 -1
  21. package/dist/types/components/Widget/index.d.ts +40 -0
  22. package/dist/types/constants/api.d.ts +4 -4
  23. package/dist/types/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -1
  24. package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +4 -2
  25. package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +6 -1
  26. package/dist/types/hooks/Submission/types.d.ts +1 -0
  27. package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +142 -6
  28. package/dist/types/hooks/Swap/useSwapSlippage.d.ts +143 -7
  29. package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +248 -12
  30. package/dist/types/hooks/Token/useSelectChainList.d.ts +3 -2
  31. package/dist/types/hooks/Token/useTokenStatus.d.ts +4 -4
  32. package/dist/types/hooks/contract/useFetchETHBalance.d.ts +21 -1
  33. package/dist/types/hooks/useGraphQLRequests.d.ts +3 -2
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/utils/chains.d.ts +1 -1
  36. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +28 -2
  37. package/dist/types/widgets/MiningWidget/MiningCreate/utils.d.ts +1 -1
  38. package/dist/types/widgets/MiningWidget/MiningList/hooks/useStatusAndStartBlockNumber.d.ts +2 -1
  39. package/dist/types/widgets/MiningWidget/helper.d.ts +2 -1
  40. package/dist/types/widgets/MiningWidget/hooks/useMiningItem.d.ts +2 -2
  41. package/dist/types/widgets/MiningWidget/hooks/useMiningList.d.ts +2 -2
  42. package/dist/types/widgets/MiningWidget/hooks/useMyCreatedMiningList.d.ts +2 -2
  43. package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +9 -3
  44. package/dist/types/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +8 -2
  45. package/dist/types/widgets/MiningWidget/hooks/utils.d.ts +1 -1
  46. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +2 -1
  47. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +2 -2
  48. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +122 -6
  49. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +336 -8
  50. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +156 -8
  51. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +252 -8
  52. package/dist/types/widgets/PoolWidget/PoolList/components/LpFeeRewardBadge.d.ts +13 -0
  53. package/dist/types/widgets/PoolWidget/PoolList/components/LpFeeRewardBanner.d.ts +1 -0
  54. package/dist/types/widgets/PoolWidget/PoolList/hooks/useClaimLpFeeRewardSubmit.d.ts +14 -0
  55. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +3 -2
  56. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +44 -1
  57. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +11 -5
  58. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +8 -8
  59. package/dist/types/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +1 -1
  60. package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +13 -13
  61. package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +428 -9
  62. package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +1 -1
  63. package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +5 -2
  64. package/dist/types/widgets/PoolWidget/utils.d.ts +3 -3
  65. package/package.json +161 -162
  66. package/dist/index-Cm0O00ow.cjs +0 -14
  67. package/dist/index-ZV1FQySp.js +0 -14
@@ -3,8 +3,30 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
3
3
  address: string | undefined;
4
4
  first?: number;
5
5
  }): {
6
- swapList: any;
7
- data: unknown;
6
+ swapList: {
7
+ id: string;
8
+ timestamp: any;
9
+ from: any;
10
+ baseVolume: any;
11
+ quoteVolume: any;
12
+ feeBase: any;
13
+ feeQuote: any;
14
+ amountIn: any;
15
+ amountOut: any;
16
+ fromToken: {
17
+ id: string;
18
+ symbol: string;
19
+ name: string;
20
+ decimals: any;
21
+ };
22
+ toToken: {
23
+ id: string;
24
+ symbol: string;
25
+ name: string;
26
+ decimals: any;
27
+ };
28
+ }[] | undefined;
29
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery;
8
30
  error: Error;
9
31
  isError: true;
10
32
  isPending: false;
@@ -27,12 +49,34 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
27
49
  isRefetching: boolean;
28
50
  isStale: boolean;
29
51
  isEnabled: boolean;
30
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
52
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
31
53
  fetchStatus: import("@tanstack/react-query").FetchStatus;
32
- promise: Promise<unknown>;
54
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
33
55
  } | {
34
- swapList: any;
35
- data: unknown;
56
+ swapList: {
57
+ id: string;
58
+ timestamp: any;
59
+ from: any;
60
+ baseVolume: any;
61
+ quoteVolume: any;
62
+ feeBase: any;
63
+ feeQuote: any;
64
+ amountIn: any;
65
+ amountOut: any;
66
+ fromToken: {
67
+ id: string;
68
+ symbol: string;
69
+ name: string;
70
+ decimals: any;
71
+ };
72
+ toToken: {
73
+ id: string;
74
+ symbol: string;
75
+ name: string;
76
+ decimals: any;
77
+ };
78
+ }[] | undefined;
79
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery;
36
80
  error: null;
37
81
  isError: false;
38
82
  isPending: false;
@@ -55,7 +99,207 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
55
99
  isRefetching: boolean;
56
100
  isStale: boolean;
57
101
  isEnabled: boolean;
58
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
102
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
59
103
  fetchStatus: import("@tanstack/react-query").FetchStatus;
60
- promise: Promise<unknown>;
104
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
105
+ } | {
106
+ swapList: {
107
+ id: string;
108
+ timestamp: any;
109
+ from: any;
110
+ baseVolume: any;
111
+ quoteVolume: any;
112
+ feeBase: any;
113
+ feeQuote: any;
114
+ amountIn: any;
115
+ amountOut: any;
116
+ fromToken: {
117
+ id: string;
118
+ symbol: string;
119
+ name: string;
120
+ decimals: any;
121
+ };
122
+ toToken: {
123
+ id: string;
124
+ symbol: string;
125
+ name: string;
126
+ decimals: any;
127
+ };
128
+ }[] | undefined;
129
+ data: undefined;
130
+ error: Error;
131
+ isError: true;
132
+ isPending: false;
133
+ isLoading: false;
134
+ isLoadingError: true;
135
+ isRefetchError: false;
136
+ isSuccess: false;
137
+ isPlaceholderData: false;
138
+ status: "error";
139
+ dataUpdatedAt: number;
140
+ errorUpdatedAt: number;
141
+ failureCount: number;
142
+ failureReason: Error | null;
143
+ errorUpdateCount: number;
144
+ isFetched: boolean;
145
+ isFetchedAfterMount: boolean;
146
+ isFetching: boolean;
147
+ isInitialLoading: boolean;
148
+ isPaused: boolean;
149
+ isRefetching: boolean;
150
+ isStale: boolean;
151
+ isEnabled: boolean;
152
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
153
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
154
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
155
+ } | {
156
+ swapList: {
157
+ id: string;
158
+ timestamp: any;
159
+ from: any;
160
+ baseVolume: any;
161
+ quoteVolume: any;
162
+ feeBase: any;
163
+ feeQuote: any;
164
+ amountIn: any;
165
+ amountOut: any;
166
+ fromToken: {
167
+ id: string;
168
+ symbol: string;
169
+ name: string;
170
+ decimals: any;
171
+ };
172
+ toToken: {
173
+ id: string;
174
+ symbol: string;
175
+ name: string;
176
+ decimals: any;
177
+ };
178
+ }[] | undefined;
179
+ data: undefined;
180
+ error: null;
181
+ isError: false;
182
+ isPending: true;
183
+ isLoading: true;
184
+ isLoadingError: false;
185
+ isRefetchError: false;
186
+ isSuccess: false;
187
+ isPlaceholderData: false;
188
+ status: "pending";
189
+ dataUpdatedAt: number;
190
+ errorUpdatedAt: number;
191
+ failureCount: number;
192
+ failureReason: Error | null;
193
+ errorUpdateCount: number;
194
+ isFetched: boolean;
195
+ isFetchedAfterMount: boolean;
196
+ isFetching: boolean;
197
+ isInitialLoading: boolean;
198
+ isPaused: boolean;
199
+ isRefetching: boolean;
200
+ isStale: boolean;
201
+ isEnabled: boolean;
202
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
203
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
204
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
205
+ } | {
206
+ swapList: {
207
+ id: string;
208
+ timestamp: any;
209
+ from: any;
210
+ baseVolume: any;
211
+ quoteVolume: any;
212
+ feeBase: any;
213
+ feeQuote: any;
214
+ amountIn: any;
215
+ amountOut: any;
216
+ fromToken: {
217
+ id: string;
218
+ symbol: string;
219
+ name: string;
220
+ decimals: any;
221
+ };
222
+ toToken: {
223
+ id: string;
224
+ symbol: string;
225
+ name: string;
226
+ decimals: any;
227
+ };
228
+ }[] | undefined;
229
+ data: undefined;
230
+ error: null;
231
+ isError: false;
232
+ isPending: true;
233
+ isLoadingError: false;
234
+ isRefetchError: false;
235
+ isSuccess: false;
236
+ isPlaceholderData: false;
237
+ status: "pending";
238
+ dataUpdatedAt: number;
239
+ errorUpdatedAt: number;
240
+ failureCount: number;
241
+ failureReason: Error | null;
242
+ errorUpdateCount: number;
243
+ isFetched: boolean;
244
+ isFetchedAfterMount: boolean;
245
+ isFetching: boolean;
246
+ isLoading: boolean;
247
+ isInitialLoading: boolean;
248
+ isPaused: boolean;
249
+ isRefetching: boolean;
250
+ isStale: boolean;
251
+ isEnabled: boolean;
252
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
253
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
254
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
255
+ } | {
256
+ swapList: {
257
+ id: string;
258
+ timestamp: any;
259
+ from: any;
260
+ baseVolume: any;
261
+ quoteVolume: any;
262
+ feeBase: any;
263
+ feeQuote: any;
264
+ amountIn: any;
265
+ amountOut: any;
266
+ fromToken: {
267
+ id: string;
268
+ symbol: string;
269
+ name: string;
270
+ decimals: any;
271
+ };
272
+ toToken: {
273
+ id: string;
274
+ symbol: string;
275
+ name: string;
276
+ decimals: any;
277
+ };
278
+ }[] | undefined;
279
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery;
280
+ isError: false;
281
+ error: null;
282
+ isPending: false;
283
+ isLoading: false;
284
+ isLoadingError: false;
285
+ isRefetchError: false;
286
+ isSuccess: true;
287
+ isPlaceholderData: true;
288
+ status: "success";
289
+ dataUpdatedAt: number;
290
+ errorUpdatedAt: number;
291
+ failureCount: number;
292
+ failureReason: Error | null;
293
+ errorUpdateCount: number;
294
+ isFetched: boolean;
295
+ isFetchedAfterMount: boolean;
296
+ isFetching: boolean;
297
+ isInitialLoading: boolean;
298
+ isPaused: boolean;
299
+ isRefetching: boolean;
300
+ isStale: boolean;
301
+ isEnabled: boolean;
302
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
303
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
304
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
61
305
  };
@@ -0,0 +1,13 @@
1
+ import { BoxProps } from '@dodoex/components';
2
+ /**
3
+ * The 🔥 reward badge shown on pool rows that participate in the LP fee reward
4
+ * activity. Styled with the theme primary color (matches the design's blue
5
+ * badge) and shows the activity title/description in a tooltip on hover.
6
+ *
7
+ * `apy` is the `pair.apy.lpFeeRewardApy` fraction from the liquidity list (e.g.
8
+ * 0.241 -> "24.1%").
9
+ */
10
+ export default function LpFeeRewardBadge({ apy, sx, }: {
11
+ apy?: string | number | null;
12
+ sx?: BoxProps['sx'];
13
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function LpFeeRewardBanner(): import("react").JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ export interface LpFeeRewardClaimData {
2
+ claimContract?: string | null;
3
+ claimableRewardRaw?: string | null;
4
+ index?: number | null;
5
+ proof?: string[] | null;
6
+ }
7
+ /**
8
+ * Submits the Merkle distributor `claim` for the LP fee reward. Only valid when
9
+ * `claimStatus === 'CLAIMABLE'`; the caller is responsible for gating on that.
10
+ */
11
+ export declare function useClaimLpFeeRewardSubmit({ reward, successBack, }: {
12
+ reward: LpFeeRewardClaimData | undefined;
13
+ successBack?: () => void;
14
+ }): import("@tanstack/react-query").UseMutationResult<import("../../../../hooks/Submission/types").ExecutionResult | undefined, Error, void, unknown>;
@@ -1,5 +1,6 @@
1
+ import { ChainId } from '@dodoex/api';
1
2
  export declare function usePoolListFilterChainId(): {
2
- activeChainId: any;
3
- filterChainIds: any[] | undefined;
3
+ activeChainId: ChainId | undefined;
4
+ filterChainIds: ChainId[] | undefined;
4
5
  handleChangeActiveChainId: (chainId: number | undefined) => void;
5
6
  };
@@ -12,7 +12,50 @@ export declare function usePoolListFilterTokenAndPool(tokenAndPoolFilter?: Token
12
12
  filterTokens: TokenInfo[];
13
13
  filterASymbol: string;
14
14
  filterBSymbol: string;
15
- filterAddressLqList: ExcludeNone<any>;
15
+ filterAddressLqList: ({
16
+ id?: string | null;
17
+ pair?: {
18
+ id: string;
19
+ chainId: number;
20
+ type: string;
21
+ lpFeeRate: any;
22
+ mtFeeRate: any;
23
+ creator: any;
24
+ tvl?: any | null;
25
+ miningAddress?: Array<string | null> | null;
26
+ volume24H?: any | null;
27
+ baseLpToken?: {
28
+ id: string;
29
+ decimals: any;
30
+ } | null;
31
+ quoteLpToken?: {
32
+ id: string;
33
+ decimals: any;
34
+ } | null;
35
+ baseToken: {
36
+ id: string;
37
+ symbol: string;
38
+ name: string;
39
+ decimals: any;
40
+ logoImg?: string | null;
41
+ };
42
+ quoteToken: {
43
+ id: string;
44
+ symbol: string;
45
+ name: string;
46
+ decimals: any;
47
+ logoImg?: string | null;
48
+ };
49
+ apy?: {
50
+ miningBaseApy?: any | null;
51
+ miningQuoteApy?: any | null;
52
+ transactionBaseApy?: any | null;
53
+ transactionQuoteApy?: any | null;
54
+ metromMiningApy?: any | null;
55
+ lpFeeRewardApy?: any | null;
56
+ } | null;
57
+ } | null;
58
+ } | null)[] | null | undefined;
16
59
  handleDeleteToken: (token: TokenInfo) => void;
17
60
  handleChangeFilterTokens: (tokens: Array<TokenInfo>) => void;
18
61
  handleChangeFilterAddress: (lqList: FetchLiquidityListLqList) => void;
@@ -27,18 +27,24 @@ export declare function useLiquidityOperateAmount({ pool, maxBaseAmount, maxQuot
27
27
  handleChangeQuoteAmount: (newValue: string) => void;
28
28
  reset: () => void;
29
29
  addPortion: BigNumber;
30
- amountLoading: false;
30
+ amountLoading: boolean;
31
31
  amountError: boolean;
32
- amountRefetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
32
+ amountRefetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
33
+ baseReserve: BigNumber;
34
+ quoteReserve: BigNumber;
35
+ } | null, Error>>;
33
36
  amountCheckedDisabled: boolean;
34
- midPrice: any;
37
+ midPrice: BigNumber | undefined;
35
38
  uniV2Pair: {
36
39
  isRearTokenA: boolean;
37
40
  pair: import("@uniswap/v2-sdk").Pair | null;
38
41
  price: BigNumber | undefined;
39
42
  invertedPrice: BigNumber | undefined;
40
- reserveQuery: import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
41
- totalBaseLpQuery: import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
43
+ reserveQuery: import("@tanstack/react-query").UseQueryResult<{
44
+ baseReserve: BigNumber;
45
+ quoteReserve: BigNumber;
46
+ } | null, Error>;
47
+ totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<BigNumber | null, Error>;
42
48
  liquidityMinted: BigNumber | undefined;
43
49
  poolTokenPercentage: BigNumber | undefined;
44
50
  shareOfPool: string;
@@ -12,12 +12,12 @@ export declare function useRemoveLiquidityTokenStatus({ pool, baseAmount, quoteA
12
12
  isGetApproveLoading: boolean;
13
13
  needApprove: boolean;
14
14
  needReset: boolean | undefined;
15
- needShowTokenStatusButton: any;
16
- insufficientBalance: any;
17
- loading: false;
15
+ needShowTokenStatusButton: boolean;
16
+ insufficientBalance: boolean;
17
+ loading: boolean;
18
18
  approveTitle: string;
19
19
  submitApprove: () => Promise<void>;
20
- getMaxBalance: () => any;
20
+ getMaxBalance: () => string;
21
21
  };
22
22
  quoteTokenStatus: {
23
23
  token: import("../../../..").TokenInfo | null | undefined;
@@ -25,11 +25,11 @@ export declare function useRemoveLiquidityTokenStatus({ pool, baseAmount, quoteA
25
25
  isGetApproveLoading: boolean;
26
26
  needApprove: boolean;
27
27
  needReset: boolean | undefined;
28
- needShowTokenStatusButton: any;
29
- insufficientBalance: any;
30
- loading: false;
28
+ needShowTokenStatusButton: boolean;
29
+ insufficientBalance: boolean;
30
+ loading: boolean;
31
31
  approveTitle: string;
32
32
  submitApprove: () => Promise<void>;
33
- getMaxBalance: () => any;
33
+ getMaxBalance: () => string;
34
34
  };
35
35
  };
@@ -28,6 +28,6 @@ export declare const useWithdrawInfo: ({ pool, isBase, baseAmount, quoteAmount,
28
28
  amount: string;
29
29
  symbol: string;
30
30
  }[];
31
- loading: false;
31
+ loading: boolean;
32
32
  error: Error | null;
33
33
  };
@@ -14,35 +14,35 @@ export declare function usePoolBalanceInfo({ account, pool, }: {
14
14
  };
15
15
  }): {
16
16
  /** existing base lp balance */
17
- totalBaseLpBalance: unknown;
17
+ totalBaseLpBalance: BigNumber | null | undefined;
18
18
  /** existing quote lp balance */
19
- totalQuoteLpBalance: unknown;
19
+ totalQuoteLpBalance: BigNumber | null | undefined;
20
20
  /** the total deposited base lp balance */
21
- baseReserve: any;
21
+ baseReserve: BigNumber | undefined;
22
22
  /** the total deposited quote lp balance */
23
- quoteReserve: any;
23
+ quoteReserve: BigNumber | undefined;
24
24
  /** classical base equilibrium target */
25
- classicalBaseTarget: any;
25
+ classicalBaseTarget: BigNumber | undefined;
26
26
  /** classical quote equilibrium target */
27
- classicalQuoteTarget: any;
27
+ classicalQuoteTarget: BigNumber | undefined;
28
28
  /** the user's existing base lp balance */
29
- userBaseLpBalance: any;
29
+ userBaseLpBalance: Balance;
30
30
  /** the user's existing quote lp balance */
31
- userQuoteLpBalance: any;
31
+ userQuoteLpBalance: Balance;
32
32
  /** The number of base that can be obtained when a user withdraws from the pool */
33
- userBaseLpToTokenBalance: any;
33
+ userBaseLpToTokenBalance: BigNumber | undefined;
34
34
  /** The number of quote that can be obtained when a user withdraws from the pool */
35
35
  userQuoteLpToTokenBalance: BigNumber | null | undefined;
36
36
  baseLpToTokenProportion: BigNumber | undefined;
37
37
  quoteLpToTokenProportion: BigNumber | undefined;
38
- isSinglePool: any;
39
- userLpBalanceLoading: false;
40
- userLpToTokenBalanceLoading: false;
38
+ isSinglePool: boolean;
39
+ userLpBalanceLoading: boolean;
40
+ userLpToTokenBalanceLoading: boolean;
41
41
  userLpBalanceError: boolean;
42
42
  userLpToTokenBalanceError: boolean;
43
43
  userLpToTokenBalanceRefetch: () => void;
44
44
  error: boolean;
45
- loading: false;
45
+ loading: boolean;
46
46
  refetch: () => void;
47
47
  };
48
48
  export {};