@dodoex/widgets 3.0.2-neox.1 → 3.0.2-pool.1
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/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/{helper-CuTmbsue.cjs → helper-CcLPxjla.cjs} +1 -1
- package/dist/{helper-u3n5TpaA.js → helper-DXdwWXyJ.js} +1 -1
- package/dist/{index-DGfFyxhb.cjs → index-BargU8OU.cjs} +1 -1
- package/dist/index-Bk7wsUIy.cjs +31 -0
- package/dist/{index-BvjPNHer.js → index-BkkpNlKq.js} +1 -1
- package/dist/index-C9hy4O-G.js +31 -0
- package/dist/{index-iIQatzFL.js → index-CjkFLWU7.js} +1 -1
- package/dist/{index-BgJpw3jN.cjs → index-u0QgQtTK.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/types/components/AddressWithLinkAndCopy.d.ts +2 -1
- package/dist/types/components/Swap/components/TokenCard/BalanceText.d.ts +1 -3
- package/dist/types/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +1 -5
- package/dist/types/components/Swap/components/TokenCard/index.d.ts +1 -2
- package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +2 -14
- package/dist/types/components/Widget/index.d.ts +21 -0
- package/dist/types/components/WidgetContainer.d.ts +1 -1
- package/dist/types/components/WithExecutionDialog/index.d.ts +1 -1
- package/dist/types/hooks/Submission/types.d.ts +3 -0
- package/dist/types/hooks/Submission/useExecution.d.ts +2 -0
- package/dist/types/hooks/style/useWidgetDevice.d.ts +0 -1
- package/dist/types/utils/address.d.ts +8 -1
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/addresses.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/constants.d.ts +11 -2
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +7 -1
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +7 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/migationWidget.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +15 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +4 -3
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +45 -0
- package/package.json +4 -4
- package/dist/9cc2b17a1958d960.svg +0 -3
- package/dist/f7a5110e71722a0c.svg +0 -10
- package/dist/index-BEVRr0PH.js +0 -32
- package/dist/index-DogPNaZV.cjs +0 -32
- package/dist/types/components/Swap/components/SwapInfoCard.d.ts +0 -9
|
@@ -16,7 +16,14 @@ export declare function truncatePoolAddress(address: string): string;
|
|
|
16
16
|
export declare function sortsAddress(address0: string, address1: string): boolean;
|
|
17
17
|
export declare function getEtherscanPage(chainId: ChainId, id?: string | null, prefix?: string): string;
|
|
18
18
|
export declare function openEtherscanPage(path: string | undefined, chainId: ChainId, customUrl?: string): Promise<void>;
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* UniswapV2Router02
|
|
21
|
+
* contracts > v2-periphery-contracts > contracts > libraries > UniswapV2Library.sol -> pairFor
|
|
22
|
+
* @param chainId
|
|
23
|
+
* @returns
|
|
24
|
+
* @see https://test-explorer.plumenetwork.xyz/address/0x3A7Bc5F9E41356728f037f17D88c642EE46d1Aaa?tab=contract
|
|
25
|
+
*/
|
|
26
|
+
export declare const getUniInitCodeHash: (chainId: number) => "0x67a372377cf6d7f78cfdcc9df0bc21e1139bd49e5a47c33ee0de5389a4396410" | "0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" | "0x007722521498f3d29a63d1eb6ab35e202874706c77ce73d45c1ad9da88174a3f";
|
|
20
27
|
export declare function sortsBefore(tokenA: TokenInfo, tokenB: TokenInfo): boolean;
|
|
21
28
|
export declare const computePairAddress: ({ factoryAddress, tokenA, tokenB, fee, }: {
|
|
22
29
|
factoryAddress: string;
|
|
@@ -3,7 +3,15 @@ type AddressMap = {
|
|
|
3
3
|
[chainId: number]: string;
|
|
4
4
|
};
|
|
5
5
|
type ChainAddresses = {
|
|
6
|
+
/**
|
|
7
|
+
* UniswapV3Factory
|
|
8
|
+
* @see https://taikoscan.io/address/0x78172691DD3B8ADa7aEbd9bFfB487FB11D735DB2?tab=contract#code
|
|
9
|
+
*/
|
|
6
10
|
v3CoreFactoryAddress: string;
|
|
11
|
+
/**
|
|
12
|
+
* NonfungiblePositionManager
|
|
13
|
+
* @see https://taikoscan.io/address/0x2623281DdcC34A73a9e8898f2c57A32A860903f1?tab=contract#code
|
|
14
|
+
*/
|
|
7
15
|
nonfungiblePositionManagerAddress?: string;
|
|
8
16
|
};
|
|
9
17
|
export declare const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses>;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { ChainId } from '../sdk-core';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Taiko UniswapV3Factory
|
|
4
|
+
* @see https://taikoscan.io/address/0x78172691DD3B8ADa7aEbd9bFfB487FB11D735DB2?tab=contract#code
|
|
5
|
+
*/
|
|
6
|
+
export declare const FACTORY_ADDRESS = "0x78172691DD3B8ADa7aEbd9bFfB487FB11D735DB2";
|
|
3
7
|
export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";
|
|
4
|
-
export declare const POOL_INIT_CODE_HASH = "
|
|
8
|
+
export declare const POOL_INIT_CODE_HASH = "0x5ccd5621c1bb9e44ce98cef8b90d31eb2423dec3793b6239232cefae976936ea";
|
|
9
|
+
/**
|
|
10
|
+
* Taiko POOL_INIT_CODE_HASH
|
|
11
|
+
* @see PoolAddress.sol
|
|
12
|
+
* @see https://taikoscan.io/address/0x202bEE65B164aEcBb6A2318438bf46bEF14E1072?tab=contract#code#F12#L6
|
|
13
|
+
*/
|
|
5
14
|
export declare function poolInitCodeHash(chainId?: ChainId): string;
|
|
6
15
|
/**
|
|
7
16
|
* The default factory enabled fee amounts, denominated in hundredths of bips.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ChainId } from '@dodoex/api';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import TokenAndPoolFilterOrigin from './components/TokenAndPoolFilter';
|
|
3
4
|
import { PoolOperateProps } from '../PoolOperate';
|
|
4
|
-
export default function AddLiquidityList({ scrollParentRef, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, }: {
|
|
5
|
+
export default function AddLiquidityList({ scrollParentRef, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, TokenAndPoolFilter: TokenAndPoolFilterProps, getMigrationPairAndMining, }: {
|
|
5
6
|
scrollParentRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
6
7
|
account?: string;
|
|
7
8
|
filterChainIds?: ChainId[];
|
|
@@ -9,4 +10,9 @@ export default function AddLiquidityList({ scrollParentRef, filterChainIds, acti
|
|
|
9
10
|
handleChangeActiveChainId: (chainId: number | undefined) => void;
|
|
10
11
|
operatePool: Partial<PoolOperateProps> | null;
|
|
11
12
|
setOperatePool: (operate: Partial<PoolOperateProps> | null) => void;
|
|
13
|
+
TokenAndPoolFilter?: typeof TokenAndPoolFilterOrigin;
|
|
14
|
+
getMigrationPairAndMining?: (p: {
|
|
15
|
+
address: string;
|
|
16
|
+
chainId: number;
|
|
17
|
+
}) => void;
|
|
12
18
|
}): JSX.Element;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { ChainId } from '@dodoex/api';
|
|
2
|
+
import TokenAndPoolFilterOrigin from './components/TokenAndPoolFilter';
|
|
2
3
|
import { PoolOperateProps } from '../PoolOperate';
|
|
3
|
-
export default function MyLiquidity({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, }: {
|
|
4
|
+
export default function MyLiquidity({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, TokenAndPoolFilter: TokenAndPoolFilterProps, getMigrationPairAndMining, }: {
|
|
4
5
|
account?: string;
|
|
5
6
|
filterChainIds?: ChainId[];
|
|
6
7
|
activeChainId: ChainId | undefined;
|
|
7
8
|
handleChangeActiveChainId: (chainId: number | undefined) => void;
|
|
8
9
|
operatePool: Partial<PoolOperateProps> | null;
|
|
9
10
|
setOperatePool: (operate: Partial<PoolOperateProps> | null) => void;
|
|
11
|
+
TokenAndPoolFilter?: typeof TokenAndPoolFilterOrigin;
|
|
12
|
+
getMigrationPairAndMining?: (p: {
|
|
13
|
+
address: string;
|
|
14
|
+
chainId: number;
|
|
15
|
+
}) => void;
|
|
10
16
|
}): JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BoxProps } from '@dodoex/components';
|
|
2
|
-
export default function LiquidityTable({ sx, children, hasMore, loadMore, loadMoreLoading, ...props }: BoxProps & {
|
|
2
|
+
export default function LiquidityTable({ sx, children, empty, loading, hasMore, loadMore, loadMoreLoading, ...props }: BoxProps & {
|
|
3
|
+
empty?: boolean;
|
|
4
|
+
loading?: boolean;
|
|
3
5
|
hasMore?: boolean;
|
|
4
6
|
loadMore?: () => void;
|
|
5
7
|
loadMoreLoading?: boolean;
|
|
@@ -10,6 +10,7 @@ export default function PoolApyTooltip({ chainId, baseToken, quoteToken, apy, ha
|
|
|
10
10
|
transactionQuoteApy?: string | null;
|
|
11
11
|
miningBaseApy?: string | null;
|
|
12
12
|
miningQuoteApy?: string | null;
|
|
13
|
+
metromMiningApy?: string | null;
|
|
13
14
|
} | undefined | null;
|
|
14
15
|
hasQuote: boolean;
|
|
15
16
|
hasMining: boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
export interface MigrationTagProps {
|
|
3
|
+
sx?: BoxProps['sx'];
|
|
4
|
+
isRightTop?: boolean;
|
|
5
|
+
isReverseColor?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const MigrationTag: ({ sx, isRightTop, isReverseColor, }: MigrationTagProps) => JSX.Element;
|
|
@@ -18,9 +18,11 @@ export declare function usePoolListFilterTokenAndPool(): {
|
|
|
18
18
|
volume24H?: any | null;
|
|
19
19
|
baseLpToken?: {
|
|
20
20
|
id: string;
|
|
21
|
+
decimals: any;
|
|
21
22
|
} | null;
|
|
22
23
|
quoteLpToken?: {
|
|
23
24
|
id: string;
|
|
25
|
+
decimals: any;
|
|
24
26
|
} | null;
|
|
25
27
|
baseToken: {
|
|
26
28
|
id: string;
|
|
@@ -41,6 +43,7 @@ export declare function usePoolListFilterTokenAndPool(): {
|
|
|
41
43
|
miningQuoteApy?: any | null;
|
|
42
44
|
transactionBaseApy?: any | null;
|
|
43
45
|
transactionQuoteApy?: any | null;
|
|
46
|
+
metromMiningApy?: any | null;
|
|
44
47
|
} | null;
|
|
45
48
|
} | null;
|
|
46
49
|
} | null)[] | null | undefined;
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Page, PageType } from '../../../router/types';
|
|
2
|
-
|
|
3
|
+
import { PoolOperateProps } from '../PoolOperate';
|
|
4
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
5
|
+
export default function PoolList({ params, scrollRef: scrollParentRefProps, TokenAndPoolFilter, onOperatePool, getMigrationPairAndMining, }: {
|
|
3
6
|
params?: Page<PageType.Pool>['params'];
|
|
7
|
+
scrollRef?: React.RefObject<any>;
|
|
8
|
+
TokenAndPoolFilter?: (props: {
|
|
9
|
+
value: Array<TokenInfo>;
|
|
10
|
+
onChange: (v: Array<TokenInfo>) => void;
|
|
11
|
+
searchAddress: (address: string, onClose: () => void) => Promise<JSX.Element | null>;
|
|
12
|
+
}) => JSX.Element;
|
|
13
|
+
onOperatePool?: (pool: Partial<PoolOperateProps> | null) => void;
|
|
14
|
+
getMigrationPairAndMining?: (p: {
|
|
15
|
+
address: string;
|
|
16
|
+
chainId: number;
|
|
17
|
+
}) => void;
|
|
4
18
|
}): JSX.Element;
|
|
@@ -66,7 +66,7 @@ export declare function useDiffer({ srcPool, newPool, }: {
|
|
|
66
66
|
isRemove: boolean;
|
|
67
67
|
};
|
|
68
68
|
} | null;
|
|
69
|
-
export declare const getModifyDPPPoolParams: ({ chainId, account, srcPool, baseToken, quoteToken, baseAmount, quoteAmount, feeRate, initPrice, slippageCoefficient, SLIPPAGE_PROTECTION, }: {
|
|
69
|
+
export declare const getModifyDPPPoolParams: ({ chainId, account, srcPool, baseToken, quoteToken, baseAmount, quoteAmount, feeRate, initPrice, slippageCoefficient, ddl, SLIPPAGE_PROTECTION, }: {
|
|
70
70
|
chainId?: number;
|
|
71
71
|
account?: string;
|
|
72
72
|
srcPool?: ModifyPool;
|
|
@@ -77,6 +77,7 @@ export declare const getModifyDPPPoolParams: ({ chainId, account, srcPool, baseT
|
|
|
77
77
|
feeRate: string;
|
|
78
78
|
initPrice: string;
|
|
79
79
|
slippageCoefficient: string;
|
|
80
|
+
ddl: number | undefined;
|
|
80
81
|
SLIPPAGE_PROTECTION: number;
|
|
81
82
|
}) => Promise<{
|
|
82
83
|
data: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PoolType } from '@dodoex/api';
|
|
2
2
|
import { BigNumber } from 'bignumber.js';
|
|
3
|
-
import { TokenInfo } from '../../../hooks/Token';
|
|
4
3
|
type Balance = BigNumber | null | undefined;
|
|
5
4
|
export declare function getLpToTokenBalance(userLpBalance: Balance, totalLpBalance: Balance, reserve: Balance, target: Balance, address: string | undefined, type: PoolType | undefined, decimals: number | undefined): undefined[] | BigNumber[];
|
|
6
5
|
export declare function usePoolBalanceInfo({ account, pool, }: {
|
|
@@ -8,8 +7,10 @@ export declare function usePoolBalanceInfo({ account, pool, }: {
|
|
|
8
7
|
pool?: {
|
|
9
8
|
address: string;
|
|
10
9
|
chainId: number;
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
baseTokenDecimals: number;
|
|
11
|
+
quoteTokenDecimals: number;
|
|
12
|
+
baseLpTokenDecimals: number;
|
|
13
|
+
quoteLpTokenDecimals: number;
|
|
13
14
|
type: PoolType;
|
|
14
15
|
};
|
|
15
16
|
}): {
|
|
@@ -11,6 +11,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
11
11
|
baseToken: TokenInfo;
|
|
12
12
|
quoteToken: TokenInfo;
|
|
13
13
|
miningAddress: string;
|
|
14
|
+
apy: {
|
|
15
|
+
miningBaseApy?: any | null;
|
|
16
|
+
miningQuoteApy?: any | null;
|
|
17
|
+
transactionBaseApy?: any | null;
|
|
18
|
+
transactionQuoteApy?: any | null;
|
|
19
|
+
metromMiningApy?: any | null;
|
|
20
|
+
} | null | undefined;
|
|
14
21
|
baseApy: string | undefined;
|
|
15
22
|
quoteApy: string | undefined;
|
|
16
23
|
isCpPool: boolean;
|
|
@@ -39,11 +46,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
39
46
|
id: string;
|
|
40
47
|
symbol: string;
|
|
41
48
|
name: string;
|
|
49
|
+
decimals: any;
|
|
42
50
|
} | null;
|
|
43
51
|
quoteLpToken?: {
|
|
44
52
|
id: string;
|
|
45
53
|
symbol: string;
|
|
46
54
|
name: string;
|
|
55
|
+
decimals: any;
|
|
47
56
|
} | null;
|
|
48
57
|
} | null;
|
|
49
58
|
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
@@ -78,6 +87,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
78
87
|
baseToken: TokenInfo;
|
|
79
88
|
quoteToken: TokenInfo;
|
|
80
89
|
miningAddress: string;
|
|
90
|
+
apy: {
|
|
91
|
+
miningBaseApy?: any | null;
|
|
92
|
+
miningQuoteApy?: any | null;
|
|
93
|
+
transactionBaseApy?: any | null;
|
|
94
|
+
transactionQuoteApy?: any | null;
|
|
95
|
+
metromMiningApy?: any | null;
|
|
96
|
+
} | null | undefined;
|
|
81
97
|
baseApy: string | undefined;
|
|
82
98
|
quoteApy: string | undefined;
|
|
83
99
|
isCpPool: boolean;
|
|
@@ -106,11 +122,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
106
122
|
id: string;
|
|
107
123
|
symbol: string;
|
|
108
124
|
name: string;
|
|
125
|
+
decimals: any;
|
|
109
126
|
} | null;
|
|
110
127
|
quoteLpToken?: {
|
|
111
128
|
id: string;
|
|
112
129
|
symbol: string;
|
|
113
130
|
name: string;
|
|
131
|
+
decimals: any;
|
|
114
132
|
} | null;
|
|
115
133
|
} | null;
|
|
116
134
|
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
@@ -145,6 +163,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
145
163
|
baseToken: TokenInfo;
|
|
146
164
|
quoteToken: TokenInfo;
|
|
147
165
|
miningAddress: string;
|
|
166
|
+
apy: {
|
|
167
|
+
miningBaseApy?: any | null;
|
|
168
|
+
miningQuoteApy?: any | null;
|
|
169
|
+
transactionBaseApy?: any | null;
|
|
170
|
+
transactionQuoteApy?: any | null;
|
|
171
|
+
metromMiningApy?: any | null;
|
|
172
|
+
} | null | undefined;
|
|
148
173
|
baseApy: string | undefined;
|
|
149
174
|
quoteApy: string | undefined;
|
|
150
175
|
isCpPool: boolean;
|
|
@@ -173,11 +198,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
173
198
|
id: string;
|
|
174
199
|
symbol: string;
|
|
175
200
|
name: string;
|
|
201
|
+
decimals: any;
|
|
176
202
|
} | null;
|
|
177
203
|
quoteLpToken?: {
|
|
178
204
|
id: string;
|
|
179
205
|
symbol: string;
|
|
180
206
|
name: string;
|
|
207
|
+
decimals: any;
|
|
181
208
|
} | null;
|
|
182
209
|
} | null;
|
|
183
210
|
data: undefined;
|
|
@@ -212,6 +239,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
212
239
|
baseToken: TokenInfo;
|
|
213
240
|
quoteToken: TokenInfo;
|
|
214
241
|
miningAddress: string;
|
|
242
|
+
apy: {
|
|
243
|
+
miningBaseApy?: any | null;
|
|
244
|
+
miningQuoteApy?: any | null;
|
|
245
|
+
transactionBaseApy?: any | null;
|
|
246
|
+
transactionQuoteApy?: any | null;
|
|
247
|
+
metromMiningApy?: any | null;
|
|
248
|
+
} | null | undefined;
|
|
215
249
|
baseApy: string | undefined;
|
|
216
250
|
quoteApy: string | undefined;
|
|
217
251
|
isCpPool: boolean;
|
|
@@ -240,11 +274,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
240
274
|
id: string;
|
|
241
275
|
symbol: string;
|
|
242
276
|
name: string;
|
|
277
|
+
decimals: any;
|
|
243
278
|
} | null;
|
|
244
279
|
quoteLpToken?: {
|
|
245
280
|
id: string;
|
|
246
281
|
symbol: string;
|
|
247
282
|
name: string;
|
|
283
|
+
decimals: any;
|
|
248
284
|
} | null;
|
|
249
285
|
} | null;
|
|
250
286
|
data: undefined;
|
|
@@ -279,6 +315,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
279
315
|
baseToken: TokenInfo;
|
|
280
316
|
quoteToken: TokenInfo;
|
|
281
317
|
miningAddress: string;
|
|
318
|
+
apy: {
|
|
319
|
+
miningBaseApy?: any | null;
|
|
320
|
+
miningQuoteApy?: any | null;
|
|
321
|
+
transactionBaseApy?: any | null;
|
|
322
|
+
transactionQuoteApy?: any | null;
|
|
323
|
+
metromMiningApy?: any | null;
|
|
324
|
+
} | null | undefined;
|
|
282
325
|
baseApy: string | undefined;
|
|
283
326
|
quoteApy: string | undefined;
|
|
284
327
|
isCpPool: boolean;
|
|
@@ -307,11 +350,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
307
350
|
id: string;
|
|
308
351
|
symbol: string;
|
|
309
352
|
name: string;
|
|
353
|
+
decimals: any;
|
|
310
354
|
} | null;
|
|
311
355
|
quoteLpToken?: {
|
|
312
356
|
id: string;
|
|
313
357
|
symbol: string;
|
|
314
358
|
name: string;
|
|
359
|
+
decimals: any;
|
|
315
360
|
} | null;
|
|
316
361
|
} | null;
|
|
317
362
|
data: undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "3.0.2-
|
|
3
|
+
"version": "3.0.2-pool.1",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@babel/runtime": "^7.17.0",
|
|
61
|
-
"@dodoex/api": "3.0.
|
|
62
|
-
"@dodoex/components": "
|
|
61
|
+
"@dodoex/api": "3.0.3-morph.7",
|
|
62
|
+
"@dodoex/components": "3.0.3",
|
|
63
63
|
"@dodoex/contract-request": "^1.3.0",
|
|
64
|
-
"@dodoex/dodo-contract-request": "^1.
|
|
64
|
+
"@dodoex/dodo-contract-request": "^1.9.0-alpha.9",
|
|
65
65
|
"@dodoex/icons": "^2.0.2",
|
|
66
66
|
"@emotion/react": "^11.10.0",
|
|
67
67
|
"@emotion/styled": "^11.10.0",
|