@dodoex/widgets 3.0.0-taiko.1 → 3.0.0-taiko.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.
- package/dist/cjs/components/AddTokenToMetamask.d.ts +9 -0
- package/dist/cjs/components/CardWidgets.d.ts +50 -0
- package/dist/cjs/components/LoadMore.d.ts +9 -0
- package/dist/cjs/components/Message/Countdown.d.ts +12 -0
- package/dist/cjs/components/Message/index.d.ts +2 -0
- package/dist/cjs/components/Select.d.ts +16 -0
- package/dist/cjs/components/SelectChain.d.ts +2 -1
- package/dist/cjs/components/Swap/SwapOrderHistory/PriceWithToggle.d.ts +11 -0
- package/dist/cjs/components/Swap/SwapOrderHistory/RoutingCard.d.ts +8 -0
- package/dist/cjs/components/Swap/SwapOrderHistory/RoutingVision.d.ts +26 -0
- package/dist/cjs/components/Swap/SwapOrderHistory/SameOrderCard.d.ts +6 -0
- package/dist/cjs/components/Swap/SwapOrderHistory/index.d.ts +5 -0
- package/dist/cjs/components/Swap/components/Dialog.d.ts +3 -1
- package/dist/cjs/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +2 -1
- package/dist/cjs/components/Swap/components/TokenCard/index.d.ts +3 -1
- package/dist/cjs/components/Table.d.ts +7 -0
- package/dist/cjs/components/TokenPicker/index.d.ts +3 -1
- package/dist/cjs/components/Widget/index.d.ts +24 -5
- package/dist/cjs/constants/chains.d.ts +0 -3
- package/dist/cjs/helper-AEVpcN4Q.cjs +1 -0
- package/dist/cjs/helper-B28RZPzZ.cjs +1 -0
- package/dist/cjs/helper-B5-dopL3.cjs +1 -0
- package/dist/cjs/helper-BUMQuktL.cjs +1 -0
- package/dist/cjs/helper-BokQKn5w.cjs +1 -0
- package/dist/cjs/helper-CZEDmRtc.cjs +1 -0
- package/dist/cjs/helper-D5AT_nXF.cjs +1 -0
- package/dist/cjs/helper-DRQb-zRZ.cjs +1 -0
- package/dist/cjs/helper-DZ9PoJfn.cjs +1 -0
- package/dist/cjs/helper-EMN78znq.cjs +1 -0
- package/dist/cjs/helper-Wxkk-z7S.cjs +1 -0
- package/dist/cjs/helper-ZnKsWZwe.cjs +1 -0
- package/dist/cjs/hooks/Submission/useSubmissionStatusColor.d.ts +18 -0
- package/dist/cjs/hooks/Swap/useTradeSwapOrderList.d.ts +242 -0
- package/dist/cjs/hooks/Token/useHasBalanceTokenList.d.ts +12 -0
- package/dist/cjs/hooks/contract/wallet.d.ts +9 -0
- package/dist/cjs/hooks/useGraphQLRequests.d.ts +3 -0
- package/dist/cjs/hooks/useMessageState.d.ts +17 -0
- package/dist/cjs/hooks/useRouteVisionData.d.ts +15 -0
- package/dist/cjs/index---vZXui7.cjs +78 -0
- package/dist/cjs/index-9gzrDvF1.cjs +53 -0
- package/dist/cjs/index-B3d6c72H.cjs +78 -0
- package/dist/cjs/index-B8At_46W.cjs +12 -0
- package/dist/cjs/index-BINVus8-.cjs +12 -0
- package/dist/cjs/index-BUAIZB_b.cjs +53 -0
- package/dist/cjs/index-BUmtQAPv.cjs +53 -0
- package/dist/cjs/index-BVDJ3tMF.cjs +78 -0
- package/dist/cjs/index-BYDyRaYw.cjs +78 -0
- package/dist/cjs/index-Bfvi1Dvs.cjs +78 -0
- package/dist/cjs/index-BkOUMfo-.cjs +31 -0
- package/dist/cjs/index-Bses_q_p.cjs +78 -0
- package/dist/cjs/index-Bxd1r7rZ.cjs +53 -0
- package/dist/cjs/index-Bzv76d55.cjs +12 -0
- package/dist/cjs/index-CJ7yVX5-.cjs +12 -0
- package/dist/cjs/index-CKFuzYox.cjs +53 -0
- package/dist/cjs/index-CKSw6536.cjs +12 -0
- package/dist/cjs/index-CLsu79Ey.cjs +53 -0
- package/dist/cjs/index-CNZgGvQd.cjs +78 -0
- package/dist/cjs/index-CVUcICkM.cjs +31 -0
- package/dist/cjs/index-ChMu8KP5.cjs +78 -0
- package/dist/cjs/index-CoNXp8uS.cjs +12 -0
- package/dist/cjs/index-Cv7crNpR.cjs +78 -0
- package/dist/cjs/index-DC3VzvbA.cjs +78 -0
- package/dist/cjs/index-DCC6KmOy.cjs +12 -0
- package/dist/cjs/index-DTFsbG9q.cjs +31 -0
- package/dist/cjs/index-DWbAbc6N.cjs +53 -0
- package/dist/cjs/index-Db-LwHYQ.cjs +78 -0
- package/dist/cjs/index-DuKVJ5m2.cjs +78 -0
- package/dist/cjs/index-V5pk3jpT.cjs +12 -0
- package/dist/cjs/index-ZB5rwuu5.cjs +12 -0
- package/dist/cjs/index-a33funYe.cjs +53 -0
- package/dist/cjs/index-btFkxIUa.cjs +12 -0
- package/dist/cjs/index-sZhViBfs.cjs +12 -0
- package/dist/cjs/index-vAFpaw_G.cjs +12 -0
- package/dist/cjs/index-vDmXbsA5.cjs +53 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.ts +7 -0
- package/dist/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/cjs/utils/formatter.d.ts +4 -2
- package/dist/cjs/utils/time.d.ts +3 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/index.d.ts +3 -2
- package/dist/components/AddTokenToMetamask.d.ts +9 -0
- package/dist/components/CardWidgets.d.ts +50 -0
- package/dist/components/LoadMore.d.ts +9 -0
- package/dist/components/Message/Countdown.d.ts +12 -0
- package/dist/components/Message/index.d.ts +2 -0
- package/dist/components/Select.d.ts +16 -0
- package/dist/components/SelectChain.d.ts +2 -1
- package/dist/components/Swap/SwapOrderHistory/PriceWithToggle.d.ts +11 -0
- package/dist/components/Swap/SwapOrderHistory/RoutingCard.d.ts +8 -0
- package/dist/components/Swap/SwapOrderHistory/RoutingVision.d.ts +26 -0
- package/dist/components/Swap/SwapOrderHistory/SameOrderCard.d.ts +6 -0
- package/dist/components/Swap/SwapOrderHistory/index.d.ts +5 -0
- package/dist/components/Swap/components/Dialog.d.ts +3 -1
- package/dist/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +2 -1
- package/dist/components/Swap/components/TokenCard/index.d.ts +3 -1
- package/dist/components/Table.d.ts +7 -0
- package/dist/components/TokenPicker/index.d.ts +3 -1
- package/dist/components/Widget/index.d.ts +24 -5
- package/dist/constants/chains.d.ts +0 -3
- package/dist/helper--x0bM3NN.js +1 -0
- package/dist/helper-BCODdDsl.js +1 -0
- package/dist/helper-BFIa-Sxl.js +1 -0
- package/dist/helper-BHBNgSXe.js +1 -0
- package/dist/helper-BHyfpbn4.js +1 -0
- package/dist/helper-BabWbsrl.js +1 -0
- package/dist/helper-CPlSAYZj.js +1 -0
- package/dist/helper-CeRr-ahw.js +1 -0
- package/dist/helper-DMZOVdOe.js +1 -0
- package/dist/helper-D_HCgsuM.js +1 -0
- package/dist/helper-GyI_fKL4.js +1 -0
- package/dist/helper-oOs-78Qo.js +1 -0
- package/dist/hooks/Submission/useSubmissionStatusColor.d.ts +18 -0
- package/dist/hooks/Swap/useTradeSwapOrderList.d.ts +242 -0
- package/dist/hooks/Token/useHasBalanceTokenList.d.ts +12 -0
- package/dist/hooks/contract/wallet.d.ts +9 -0
- package/dist/hooks/useGraphQLRequests.d.ts +3 -0
- package/dist/hooks/useMessageState.d.ts +17 -0
- package/dist/hooks/useRouteVisionData.d.ts +15 -0
- package/dist/index-948LlTEB.js +78 -0
- package/dist/index-B2kWqDsS.js +12 -0
- package/dist/index-BA0PdxKT.js +78 -0
- package/dist/index-BHq17HE0.js +78 -0
- package/dist/index-BPwFGIZJ.js +53 -0
- package/dist/index-BSsyDyCc.js +12 -0
- package/dist/index-BfXWBgGk.js +31 -0
- package/dist/index-BusGExka.js +31 -0
- package/dist/index-C6RRc-Bm.js +12 -0
- package/dist/index-C8_lojZA.js +53 -0
- package/dist/index-CFfQaiEw.js +78 -0
- package/dist/index-CULEUfEd.js +12 -0
- package/dist/index-CdoYbgUH.js +53 -0
- package/dist/index-Chj0rE9p.js +78 -0
- package/dist/index-CoUyFIj-.js +78 -0
- package/dist/index-DA7GqWGm.js +53 -0
- package/dist/index-DB7QF6D6.js +53 -0
- package/dist/index-DDbDVssW.js +78 -0
- package/dist/index-DGhFswSA.js +12 -0
- package/dist/index-DUzkU_Rq.js +53 -0
- package/dist/index-DZo93Pfj.js +53 -0
- package/dist/index-DcsdBPza.js +78 -0
- package/dist/index-Dj2wp0Y6.js +78 -0
- package/dist/index-DjoVE6wb.js +12 -0
- package/dist/index-DqZplict.js +12 -0
- package/dist/index-Ds2O6WTP.js +78 -0
- package/dist/index-LGo4TYTR.js +12 -0
- package/dist/index-N1amd1gr.js +12 -0
- package/dist/index-RpeAOdf7.js +12 -0
- package/dist/index-U5Xf15NM.js +78 -0
- package/dist/index-W7Vt38od.js +31 -0
- package/dist/index-YXd3DB_m.js +78 -0
- package/dist/index-_wX6obb0.js +12 -0
- package/dist/index-gNVXsNuw.js +53 -0
- package/dist/index-sqM3Qvq_.js +53 -0
- package/dist/index-wPCw-iRI.js +12 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/utils/formatter.d.ts +4 -2
- package/dist/utils/time.d.ts +3 -0
- package/dist/widgets/PoolWidget/PoolOperate/index.d.ts +3 -2
- package/package.json +5 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./index-
|
|
1
|
+
"use strict";var e=require("./index-DTFsbG9q.cjs");require("@lingui/react"),require("@lingui/core"),require("bignumber.js"),require("lodash"),require("@dodoex/components"),require("@dodoex/api"),require("react"),require("react-redux"),require("identicon.js"),require("@web3-react/core"),require("@web3-react/eip1193"),require("@web3-react/walletconnect-v2"),require("@web3-react/metamask"),require("@web3-react/types"),require("@reduxjs/toolkit"),require("redux"),require("@tanstack/react-query"),require("react-dom"),require("react-window"),require("@ethersproject/bignumber"),require("dayjs"),require("react-transition-group"),require("zustand"),require("axios"),require("react-infinite-scroller"),require("recharts"),exports.InitSwapWidget=e.InitSwapWidget,Object.defineProperty(exports,"MetadataFlag",{enumerable:!0,get:function(){return e.MetadataFlag}}),Object.defineProperty(exports,"PageType",{enumerable:!0,get:function(){return e.PageType}}),exports.Pool=e.Pool,exports.PoolOperate=e.PoolOperate,exports.PoolOperateDialog=e.PoolOperateDialog,exports.PoolWidget=e.PoolWidget,exports.Swap=e.Swap,exports.SwapOrderHistory=e.SwapOrderHistory,exports.SwapWidget=e.SwapWidget,exports.TokenCard=e.TokenCard,exports.WIDGET_CLASS_NAME=e.WIDGET_CLASS_NAME,exports.WIDGET_MODULE_CLASS_NAME=e.WIDGET_MODULE_CLASS_NAME,exports.Widget=e.Widget,exports.formatPercentageNumber=e.formatPercentageNumber,exports.formatReadableNumber=e.formatReadableNumber,exports.formatShortNumber=e.formatShortNumber,exports.formatTokenAmountNumber=e.formatTokenAmountNumber,exports.getEtherscanPage=e.getEtherscanPage,exports.useHasBalanceTokenList=e.useHasBalanceTokenList,exports.useMessageState=e.useMessageState,exports.usePoolBalanceInfo=e.usePoolBalanceInfo,exports.useRouterStore=e.useRouterStore,exports.useTradeSwapOrderList=e.useTradeSwapOrderList;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { SwapProps } from './components/Swap';
|
|
|
3
3
|
import { WidgetProps } from './components/Widget';
|
|
4
4
|
export { useRouterStore, PageType } from './router';
|
|
5
5
|
export type { Page } from './router';
|
|
6
|
+
export { useMessageState } from './hooks/useMessageState';
|
|
6
7
|
export { WIDGET_CLASS_NAME } from './components/Widget';
|
|
7
8
|
export { MetadataFlag } from './hooks/Submission/types';
|
|
8
9
|
export { Widget } from './components/Widget';
|
|
@@ -10,11 +11,17 @@ export { WIDGET_MODULE_CLASS_NAME } from './components/WidgetContainer';
|
|
|
10
11
|
export type { WidgetProps } from './components/Widget';
|
|
11
12
|
export declare type SwapWidgetProps = WidgetProps & SwapProps;
|
|
12
13
|
export type { TokenInfo } from './hooks/Token/type';
|
|
14
|
+
export { useHasBalanceTokenList } from './hooks/Token/useHasBalanceTokenList';
|
|
13
15
|
export { Swap } from './components/Swap';
|
|
16
|
+
export { default as SwapOrderHistory } from './components/Swap/SwapOrderHistory';
|
|
17
|
+
export { useTradeSwapOrderList } from './hooks/Swap/useTradeSwapOrderList';
|
|
18
|
+
export { TokenCard } from './components/Swap/components/TokenCard';
|
|
14
19
|
export { Pool } from './widgets/PoolWidget';
|
|
15
20
|
export { default as PoolOperateDialog, PoolOperate, } from './widgets/PoolWidget/PoolOperate';
|
|
16
21
|
export type { PoolOperateProps } from './widgets/PoolWidget/PoolOperate';
|
|
17
22
|
export { usePoolBalanceInfo } from './widgets/PoolWidget/hooks/usePoolBalanceInfo';
|
|
23
|
+
export { getEtherscanPage } from './utils/address';
|
|
24
|
+
export { formatReadableNumber, formatTokenAmountNumber, formatShortNumber, formatPercentageNumber, } from './utils/formatter';
|
|
18
25
|
export declare function SwapWidget(props: SwapWidgetProps): JSX.Element;
|
|
19
26
|
export declare function PoolWidget(props: SwapWidgetProps): JSX.Element;
|
|
20
27
|
export declare function InitSwapWidget(props: SwapWidgetProps): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*eslint-disable*/module.exports={messages:JSON.parse("{\"+/wf6Z\":\"The smaller the slippage coefficient, the lower the slippage for traders, and the deeper the market depth.\",\"+Jkdiu\":\"Transaction Time:\",\"+uZnU3\":\"Cross Chain\",\"/+c6tU\":\"99% Default\",\"//95jS\":[\"The current slippage protection coefficient set exceeds \",[\"maxSlippageWarning\"],\"%, which may result in losses.\"],\"/Ak0Fw\":[\"Opening \",[\"0\"],\"...\"],\"/BbUJ6\":\"Total Number of Traders\",\"/cF7Rs\":\"Volume\",\"/jQctM\":\"To\",\"/nzjSF\":[[\"0\"],\" pending\"],\"0+31GV\":\"Removing\",\"0O1wzf\":[\"Traders sold \",[\"0\"],\" \",[\"1\"],\", price in the pool increased to \",[\"2\"]],\"0QDjxt\":\"Balance:\",\"0YxDPW\":\"Loading info...\",\"0b0AkA\":\"* Please note that the Fee Rate cannot be modified after the pool is created\",\"1+P9RR\":[\"Switch to \",[\"0\"]],\"1QfxQT\":\"Dismiss\",\"1gWStS\":\"Unstaking\",\"1yHVE+\":\"Adding\",\"22Xs8M\":\"Deposit Ratio\",\"237hSL\":\"Ended\",\"2vjOqX\":\"Pools with lower transaction fees will attract more traders.\",\"34w3mT\":\"Single-Token\",\"3U+Oti\":\"he slippage coefficient needs to be greater than or equal to 0, and less than or equal to 1.\",\"3XBvkd\":\"Remove Liquidity\",\"4cJ0hF\":\"Rewards\",\"4kY4C4\":\"Due to the market condition, market price and estimated price may have a slight difference\",\"4nzwq3\":\"Search by token or pool address\",\"4ogEAw\":\"Pegged Exchange Rate\",\"4vKwIV\":\"Private Pool\",\"4xbbt/\":[[\"0\"],\" confirmed\"],\"52uNwk\":\"Creation Time\",\"54ffaC\":\"The current network is inconsistent with the wallet - please switch in wallet\",\"5OKrbq\":\"Since this pool uses the PMM algorithm, which is different from the normal AMM pool mechanism, the initial price calculation is also different from AMM.\",\"5QDjef\":\"The token amount is calculated by initial price.\",\"6+mYrD\":\"Current price impact\",\"6UYTy8\":\"Minute\",\"6V3Ea3\":\"Copied\",\"6XYkjc\":\"Edit Parameter Settings\",\"6XgEPi\":\"Hour\",\"6y2TB3\":\"Liquidity\",\"72/M0o\":\"Enter the token symbol or address\",\"7C/BwI\":\"Community Treasury\",\"7IKPTP\":\"Fee includes: Cross Chain fees + Swap fees. Gas fee not included.\",\"7VpPHA\":\"Confirm\",\"7X+IbB\":\"Powered by DODO protocol\",\"7X40pG\":\"Fees (24H)\",\"7m5+6j\":\"Initial Tokens\",\"7rpoXw\":\"This token is on\",\"8OiU8L\":\"Pool Creation\",\"8Tg/JR\":\"Custom\",\"8Z29ZO\":\"Estimated service provider fees\",\"93m8jT\":\"Basic Fee\",\"9D2g7k\":\"The liquidity of DODO is continuous, which is different from the discrete liquidity of UniV3. The ticks shown in the illustration are for demonstration purposes only.\",\"9QjAGB\":\"FeeRevenue\",\"A1taO8\":\"Search\",\"AOhRo6\":\"DODO provides a variety of pool versions to suit your needs.\",\"AghcDJ\":\"Price impact exceeds the slippage tolerance you set. Try increasing the slippage tolerance.\",\"AxPAXW\":\"No results found\",\"AxdOHo\":\"Pair\",\"B0/2ea\":\"s\",\"B3mhDR\":\"Add liquidity to obtain LP tokens for mining\",\"C1mcuF\":\"This CP has been settled by other addrs\",\"C1qIFl\":\"Liquidity Supplied\",\"CK1KXz\":\"Max\",\"CKyk7Q\":\"Go back\",\"CMHmbm\":\"Slippage\",\"CeLrge\":\"Mid Price\",\"CkfzUf\":[\"Insufficient funds - Please retry after depositing more \",[\"EtherTokenSymbol\"],\" into your wallet\"],\"DPfwMq\":\"Done\",\"DPi/hO\":\"Results in a relatively fixed price.\",\"DZULmp\":\"Swap Rate\",\"Da1+Da\":\"Pool not found. Please switch to another network and retry.\",\"DuVAxN\":[\"The area of the chart indicates the buy/sell volume of \",[\"baseSymbol\"],\" that can be carried by the market when the current price changes to the hover price.\"],\"EUBGvH\":\"Are you sure swapping to another chain?\",\"EatqP4\":\"Swaps\",\"Enslfm\":\"Destination\",\"F+sxb9\":\"Unapproved\",\"F18WP3\":\"Parameters\",\"F2vX4t\":[\"Users buy \",[\"0\"],\" amount:\"],\"F9xwHA\":[\"Insufficient cross-chain fees, need at least \",[\"0\"],\" \",[\"1\"]],\"FHKsZF\":\"TVL\",\"FQfStS\":\"Emulator\",\"FRBvjQ\":\"Transaction Pending\",\"Fdp03t\":\"on\",\"FrP5tr\":\"Suitable for stablecoins with price fluctuations within 2%\",\"GAypnX\":\"High slippage tolerance will increase the success rate of transaction, but might not get the best quote.\",\"GGPOuT\":\"set current mid price\",\"GSt7YT\":\"The fee rate must be between 0.01% to 10%\",\"Gr2anW\":\"Traders (24H)\",\"H7OUPr\":\"Day\",\"HGf8fG\":\"You can set the minimum selling price for single-token pools.\",\"HuVZMK\":\"Days\",\"I0LXan\":[\"Price Impact: \",[\"0\"]],\"I0yi1d\":\"Deposit ratio is determined by the current assets ratio in the pool. The ratio does not represent the exchange price\",\"J28zul\":\"Connecting...\",\"J39pAJ\":\"Additional Fee\",\"J7M/DA\":\"Pegged\",\"JR7wWw\":\"Equilibrium target\",\"JYKRJS\":\"Stake\",\"JaeUyE\":[\"Price discrepancy \",[\"lqAndDodoCompareText\"],\" between liquidity pool and the quote price on DODO.\"],\"JdNn1Y\":\"Fetching best price...\",\"JlIjZf\":\"Liquidity Provider\",\"JuzN3b\":\"Related CrowdPooling\",\"K/Ay/d\":\"Review Swap\",\"K/PgcA\":\"Select Cross Chain\",\"KAmxpM\":\"Attention: High slippage tolerance will increase the success rate of transaction, but might not get the best quote.\",\"KRnA5J\":\"Set pool parameters\",\"Kb3KaW\":\"Any Ratio\",\"KlvBGJ\":\"Select Tokens\",\"KsqhWn\":\"Staking\",\"KvG1xW\":\"Claiming\",\"L4nQwl\":\"Suitable for stablecoins with price fluctuations within 0.5%\",\"LDprZB\":\"The slippage coefficient needs to be greater than 0, and less than 0.1.\",\"LQU+Dm\":\"Risk Disclaimer\",\"LhMjLm\":\"Time\",\"LtI9AS\":\"Owner\",\"M9dIDb\":\"The pegged exchange rate refers to the exchange rate between two token assets where one's value is pegged/fixed by the other. For example, the pegged exchange rate between the US Dollar and USDT is 1.\",\"NSCBTb\":\"The setting has been switched to swap mode\",\"NVAuTg\":\"Quote not available\",\"NgeSlx\":\"Learn More\",\"OBdohg\":\"Add Liquidity\",\"OFjZGo\":\"Unstake\",\"OJOe+K\":\"Set the fee to the same as most other pools\",\"OauUE6\":\"Fetching Price...\",\"OfhWJH\":\"Reset\",\"OgKD6h\":\"Best offer\",\"OnDEky\":\"LP Fee\",\"P+K/3O\":\"Confirming\",\"P4iKEj\":[\"The initial price needs to be greater than \",[\"min\"],\" and less than 100,000,000\"],\"PC9Biq\":[[\"DEFAULT_SWAP_DDL\"],\" minutes\"],\"PIYEqF\":\"Quantity model\",\"PLUB/s\":\"Fee\",\"PZqJog\":\"Confirm Cross Chain\",\"Price impact reaches <0>{priceImpact}</0>%, accept the quote\":[\"Price impact reaches <0>\",[\"priceImpact\"],\"</0>%, accept the quote\"],\"QNWt8A\":\"Estimated Time\",\"QNrpkx\":\"Classical AMM-like pool. Suitable for most assets.\",\"QR4/RH\":\"Swap summary\",\"R9Khdg\":\"Auto\",\"RvYEUJ\":\"Suitable for synthetic assets. The liquidity is super concentrated at some price like Curve Finance.\",\"RxHSET\":\"LP Balance:\",\"S3piC2\":\"Tx\",\"S8G1qk\":\"Single\",\"SXnevP\":\"Review Cross Chain\",\"Sti4vy\":\"Mining\",\"T+qgFw\":\"Price Impact\",\"T0Y2+3\":\"Select a token\",\"TFOxRM\":\"Mins\",\"TGi+jm\":\"Doc\",\"TJBHlP\":\"Standard\",\"TY5fM3\":\"LP Tokens\",\"TaScUS\":[\"Users sell \",[\"0\"],\" amount:\"],\"TizaRy\":\"Wallet incompatibility\",\"TvH4Ym\":[\"Bought \",[\"0\"],\" \",[\"1\"],\", price in the pool decreased to \",[\"2\"]],\"Tz0i8g\":\"Settings\",\"UE2beD\":\"Creator\",\"UPXmW+\":\"Trader\",\"URmyfc\":\"Details\",\"UbRKMZ\":\"Pending\",\"UdY69+\":\"vDODO Rewards\",\"Uzr1HF\":[\"Connect to your \",[\"0\"],\" Wallet\"],\"V+rJKF\":\"Seconds\",\"VXTSOE\":\"Suitable for most situations.\",\"Vmw6BM\":\"Something went wrong…<0>Refresh again</0>\",\"XeovX3\":\"Swap Detail\",\"Xpkm7d\":\"No ForceStop access\",\"Y7rVy0\":\"Fee Rate\",\"Y9QDtD\":\"You are making changes to the liquidity of a private pool. This is a highly discretionary operation that may cause substantial inflows/outflows of funds and changes in market prices. Please make sure you are fully aware of the implications of each parameter modification.\",\"YHc3B+\":\"My Liquidity\",\"YHpbe1\":\"For\",\"YUyuNp\":[[\"lqAndDodoCompareText\"],\" Price Difference\"],\"YvXHDU\":[\"The area of the chart indicates the buy/sell volume of \",[\"0\"],\" that can be carried by the market when the current price changes to the hover price.\"],\"Z033WN\":\"Total Swap Fee\",\"Z5HWHd\":\"On\",\"Z7ZXbT\":\"Approve\",\"Z8lGw6\":\"Share\",\"ZXvy7b\":\"Additional routing fees set by the Widget user\",\"ZhEBp4\":\"Current liquidity pool token price\",\"Zm56FI\":\"Maximum slippage do not exceed 50%\",\"a1AzKr\":\"For those who are looking to sell tokens and only need ask-side liquidity.\",\"a7u1N9\":\"Price\",\"agPptk\":\"Medium\",\"agRWc1\":\"Minutes\",\"bC0iyq\":\"Suitable for stablecoins with price fluctuations within 10%\",\"bEsfUQ\":\"Confirm submission\",\"bUUVED\":\"Asset\",\"cDWXuq\":\"Settler\",\"cmUrtC\":\"SEE HOW IT WORKS\",\"cnbRVW\":[\"Initial Price \",[\"0\"],\" \",[\"1\"],\" = \",[\"2\"],\" \",[\"3\"]],\"d2CZvA\":\"Initial Price\",\"d8YnVj\":\"Guide Price\",\"dEgA5A\":\"Cancel\",\"dI46oG\":\"Auto switch network\",\"dJqd5x\":[\"Get \",[\"tokenSymbol\"]],\"dUdltF\":\"One-Click Claim\",\"dqWPbT\":\"I have read, understand, and agree to the <0>Terms of Service</0>.\",\"dzV+zO\":\"Modify Confirmation\",\"eE0JZ4\":\"Version\",\"ePK91l\":\"Edit\",\"eTUF28\":\"Min\",\"eVZ7bY\":\"Hide TVL=0 pools\",\"em6LzM\":\"Transaction rejected.\",\"fKYdE9\":\"Results in a more volatile price.\",\"fSFt4a\":\"Token Pair\",\"fZ5Vnu\":\"Received\",\"fZFkP1\":\"My Pools\",\"g3x+cF\":\"Service update, please wait and try again\",\"gz+9Rb\":\"Gas price is too low, please adjust in your wallet and try again\",\"h4RLFN\":\"RPC node data exception\",\"h5FVz1\":\"Estimated transaction time\",\"h7LgzN\":\"Connect to your wallet\",\"hCBYHP\":\"Total Fee Revenue\",\"hXzOVo\":\"Next\",\"hYgDIe\":\"Create\",\"hcNa1G\":\"Token Amount\",\"hdIg7i\":\"Select Pool Version\",\"hom7qf\":\"Claim\",\"iH8pgl\":\"Back\",\"iPMIoT\":\"Enter an amount\",\"iaocTt\":\"Ratio\",\"j2Uisd\":\"Approving\",\"jjuKOj\":\"Min Price\",\"juypHV\":\"Liquidity Providers\",\"kNeEXg\":\"Current Price\",\"kdzjmC\":[\"The mid price needs to be greater than \",[\"min\"],\" and less than 100,000,000\"],\"kf83Ld\":\"Something went wrong.\",\"ku//5b\":\"Second\",\"l4Za6X\":\"Total Swap Volume\",\"lDgVWA\":\"Receive\",\"lJvbHq\":\"Select Network\",\"lQ6r7x\":\"Confirm swap\",\"lqTDfd\":\"Slippage Tolerance\",\"lsg9Mi\":\"Parameter Settings\",\"lt8yMa\":\"Send to:\",\"luOvdJ\":\"My Staked\",\"m16xKo\":\"Add\",\"mObS+5\":\"Failed to get price of the token\",\"me2dmq\":\"Value (USD)\",\"n25Lml\":\"Depth\",\"nTWWCZ\":\"Low\",\"o8aMNm\":\"Select a liquidity pool\",\"p2jbcE\":\"Create Pool\",\"p7/w10\":\"Volume (24H)\",\"pHQq+U\":\"Pool Setup\",\"pKjCsP\":\"100% use your own funds and enjoy the maximum degree of flexibility.\",\"pSQ1lM\":\"MT Fee\",\"pY/ok7\":\"All chains\",\"q+Q952\":[\"Users pay \",[\"0\"],\" \",[\"1\"],\" and receive \",[\"2\"],\" \",[\"3\"],\"\\\\nPrice \",[\"4\"],\" (\",[\"5\"],\"%)\"],\"q/XX3T\":\"Current:\",\"qDhDFK\":\"Traders\",\"qK7wuW\":\"Unable to SETTLE during the cooling-off period\",\"qLkska\":\"The setting has been switched to cross chain mode\",\"qiOIiY\":\"Buy\",\"r7ScnQ\":\"Connect to a wallet\",\"rFbNvu\":\"If your transaction time exceeds the deadline, your transaction will be rescinded.\",\"rRDi3Y\":\"Detail\",\"rSayea\":\"APY\",\"sIPJGT\":\"SELECT TOKEN\",\"sTnImq\":\"Total Liquidity\",\"sjn3tj\":\"Slippage Coefficient\",\"t+LmjM\":\"Initial Price Alert\",\"t/YqKh\":\"Remove\",\"tKE4Ak\":\"Cross Chain Summary\",\"tMVAXL\":\"SafeERC20: low-level call failed. Please contact the DODO team.\",\"tnRI9r\":\"Pool Creation Confirmation\",\"tyGEMJ\":\"Amounts\",\"uaKP0s\":[\"differs from the price quoted by DODO by \",[\"lqAndDodoCompareText\"]],\"ubzjDN\":\"Real Time\",\"udsWDJ\":\"Unsupported network - switch to trade\",\"uiuMDr\":\"Enter parameters to view the yield curve\",\"v4nCHK\":\"Paid\",\"vH2C/2\":\"Swap\",\"vXvgFK\":\"There is risk of being arbitraged if adding this liquidity.\",\"wdxz7K\":\"Source\",\"x4QVeW\":\"Percentage to remove\",\"xEbi+8\":\"User denied transaction signature.\",\"yM82Jw\":\"ForceStop exception\",\"yQ2kGp\":\"Load more\",\"yXm1vH\":\"The initial price is different from the current market price, which may cause your pool to be arbitraged\",\"yY8wAv\":\"Hours\",\"yx/fMc\":\"High\",\"yz7wBu\":\"Close\",\"yzjPpo\":\"Fees will be the same as in most other pools.\",\"zSMRJ/\":\"Transaction Deadline\",\"znqB4T\":\"Insufficient balance\",\"zwBp5t\":\"Private\"}")};
|
|
1
|
+
/*eslint-disable*/module.exports={messages:JSON.parse("{\"+/wf6Z\":\"The smaller the slippage coefficient, the lower the slippage for traders, and the deeper the market depth.\",\"+Jkdiu\":\"Transaction Time:\",\"+uZnU3\":\"Cross Chain\",\"/+c6tU\":\"99% Default\",\"//95jS\":[\"The current slippage protection coefficient set exceeds \",[\"maxSlippageWarning\"],\"%, which may result in losses.\"],\"/Ak0Fw\":[\"Opening \",[\"0\"],\"...\"],\"/BbUJ6\":\"Total Number of Traders\",\"/cF7Rs\":\"Volume\",\"/jQctM\":\"To\",\"/nzjSF\":[[\"0\"],\" pending\"],\"0+31GV\":\"Removing\",\"0O1wzf\":[\"Traders sold \",[\"0\"],\" \",[\"1\"],\", price in the pool increased to \",[\"2\"]],\"0QDjxt\":\"Balance:\",\"0YxDPW\":\"Loading info...\",\"0b0AkA\":\"* Please note that the Fee Rate cannot be modified after the pool is created\",\"1+P9RR\":[\"Switch to \",[\"0\"]],\"1QfxQT\":\"Dismiss\",\"1gWStS\":\"Unstaking\",\"1yHVE+\":\"Adding\",\"22Xs8M\":\"Deposit Ratio\",\"237hSL\":\"Ended\",\"2vjOqX\":\"Pools with lower transaction fees will attract more traders.\",\"34w3mT\":\"Single-Token\",\"3U+Oti\":\"he slippage coefficient needs to be greater than or equal to 0, and less than or equal to 1.\",\"3XBvkd\":\"Remove Liquidity\",\"4cJ0hF\":\"Rewards\",\"4fL/V7\":\"Pay\",\"4kY4C4\":\"Due to the market condition, market price and estimated price may have a slight difference\",\"4nzwq3\":\"Search by token or pool address\",\"4ogEAw\":\"Pegged Exchange Rate\",\"4vKwIV\":\"Private Pool\",\"4xbbt/\":[[\"0\"],\" confirmed\"],\"52uNwk\":\"Creation Time\",\"54ffaC\":\"The current network is inconsistent with the wallet - please switch in wallet\",\"5OKrbq\":\"Since this pool uses the PMM algorithm, which is different from the normal AMM pool mechanism, the initial price calculation is also different from AMM.\",\"5QDjef\":\"The token amount is calculated by initial price.\",\"6+mYrD\":\"Current price impact\",\"6UYTy8\":\"Minute\",\"6V3Ea3\":\"Copied\",\"6XYkjc\":\"Edit Parameter Settings\",\"6XgEPi\":\"Hour\",\"6y2TB3\":\"Liquidity\",\"72/M0o\":\"Enter the token symbol or address\",\"7Bj3x9\":\"Failed\",\"7C/BwI\":\"Community Treasury\",\"7IKPTP\":\"Fee includes: Cross Chain fees + Swap fees. Gas fee not included.\",\"7VpPHA\":\"Confirm\",\"7X+IbB\":\"Powered by DODO protocol\",\"7X40pG\":\"Fees (24H)\",\"7m5+6j\":\"Initial Tokens\",\"7rpoXw\":\"This token is on\",\"8OiU8L\":\"Pool Creation\",\"8Tg/JR\":\"Custom\",\"8Z29ZO\":\"Estimated service provider fees\",\"93m8jT\":\"Basic Fee\",\"9D2g7k\":\"The liquidity of DODO is continuous, which is different from the discrete liquidity of UniV3. The ticks shown in the illustration are for demonstration purposes only.\",\"9QjAGB\":\"FeeRevenue\",\"A1taO8\":\"Search\",\"AOhRo6\":\"DODO provides a variety of pool versions to suit your needs.\",\"AghcDJ\":\"Price impact exceeds the slippage tolerance you set. Try increasing the slippage tolerance.\",\"AxPAXW\":\"No results found\",\"AxdOHo\":\"Pair\",\"B0/2ea\":\"s\",\"B3mhDR\":\"Add liquidity to obtain LP tokens for mining\",\"C1mcuF\":\"This CP has been settled by other addrs\",\"C1qIFl\":\"Liquidity Supplied\",\"CK1KXz\":\"Max\",\"CKyk7Q\":\"Go back\",\"CMHmbm\":\"Slippage\",\"CeLrge\":\"Mid Price\",\"CkfzUf\":[\"Insufficient funds - Please retry after depositing more \",[\"EtherTokenSymbol\"],\" into your wallet\"],\"DPfwMq\":\"Done\",\"DPi/hO\":\"Results in a relatively fixed price.\",\"DZULmp\":\"Swap Rate\",\"Da1+Da\":\"Pool not found. Please switch to another network and retry.\",\"DuVAxN\":[\"The area of the chart indicates the buy/sell volume of \",[\"baseSymbol\"],\" that can be carried by the market when the current price changes to the hover price.\"],\"DupCvC\":\"Added successful\",\"EUBGvH\":\"Are you sure swapping to another chain?\",\"EatqP4\":\"Swaps\",\"Enslfm\":\"Destination\",\"F+sxb9\":\"Unapproved\",\"F18WP3\":\"Parameters\",\"F2vX4t\":[\"Users buy \",[\"0\"],\" amount:\"],\"F9xwHA\":[\"Insufficient cross-chain fees, need at least \",[\"0\"],\" \",[\"1\"]],\"FHKsZF\":\"TVL\",\"FQfStS\":\"Emulator\",\"FRBvjQ\":\"Transaction Pending\",\"Fdp03t\":\"on\",\"FrP5tr\":\"Suitable for stablecoins with price fluctuations within 2%\",\"GAypnX\":\"High slippage tolerance will increase the success rate of transaction, but might not get the best quote.\",\"GGPOuT\":\"set current mid price\",\"GGWsTU\":\"Canceled\",\"GSt7YT\":\"The fee rate must be between 0.01% to 10%\",\"Gr2anW\":\"Traders (24H)\",\"H7OUPr\":\"Day\",\"HGf8fG\":\"You can set the minimum selling price for single-token pools.\",\"HuVZMK\":\"Days\",\"I0LXan\":[\"Price Impact: \",[\"0\"]],\"I0yi1d\":\"Deposit ratio is determined by the current assets ratio in the pool. The ratio does not represent the exchange price\",\"J28zul\":\"Connecting...\",\"J39pAJ\":\"Additional Fee\",\"J7M/DA\":\"Pegged\",\"JR7wWw\":\"Equilibrium target\",\"JYKRJS\":\"Stake\",\"JaeUyE\":[\"Price discrepancy \",[\"lqAndDodoCompareText\"],\" between liquidity pool and the quote price on DODO.\"],\"JdNn1Y\":\"Fetching best price...\",\"JlIjZf\":\"Liquidity Provider\",\"JuzN3b\":\"Related CrowdPooling\",\"K/Ay/d\":\"Review Swap\",\"K/PgcA\":\"Select Cross Chain\",\"KAbcm2\":\"Succeeded\",\"KAmxpM\":\"Attention: High slippage tolerance will increase the success rate of transaction, but might not get the best quote.\",\"KRnA5J\":\"Set pool parameters\",\"Kb3KaW\":\"Any Ratio\",\"KlvBGJ\":\"Select Tokens\",\"KsqhWn\":\"Staking\",\"KvG1xW\":\"Claiming\",\"L4nQwl\":\"Suitable for stablecoins with price fluctuations within 0.5%\",\"LDprZB\":\"The slippage coefficient needs to be greater than 0, and less than 0.1.\",\"LQU+Dm\":\"Risk Disclaimer\",\"LhMjLm\":\"Time\",\"LtI9AS\":\"Owner\",\"M9dIDb\":\"The pegged exchange rate refers to the exchange rate between two token assets where one's value is pegged/fixed by the other. For example, the pegged exchange rate between the US Dollar and USDT is 1.\",\"NSCBTb\":\"The setting has been switched to swap mode\",\"NVAuTg\":\"Quote not available\",\"NgeSlx\":\"Learn More\",\"OBdohg\":\"Add Liquidity\",\"OFjZGo\":\"Unstake\",\"OJOe+K\":\"Set the fee to the same as most other pools\",\"OauUE6\":\"Fetching Price...\",\"OfhWJH\":\"Reset\",\"OgKD6h\":\"Best offer\",\"OnDEky\":\"LP Fee\",\"P+K/3O\":\"Confirming\",\"P4iKEj\":[\"The initial price needs to be greater than \",[\"min\"],\" and less than 100,000,000\"],\"PC9Biq\":[[\"DEFAULT_SWAP_DDL\"],\" minutes\"],\"PIYEqF\":\"Quantity model\",\"PLUB/s\":\"Fee\",\"PZqJog\":\"Confirm Cross Chain\",\"Price impact reaches <0>{priceImpact}</0>%, accept the quote\":[\"Price impact reaches <0>\",[\"priceImpact\"],\"</0>%, accept the quote\"],\"QNWt8A\":\"Estimated Time\",\"QNrpkx\":\"Classical AMM-like pool. Suitable for most assets.\",\"QR4/RH\":\"Swap summary\",\"R9Khdg\":\"Auto\",\"RvYEUJ\":\"Suitable for synthetic assets. The liquidity is super concentrated at some price like Curve Finance.\",\"RxHSET\":\"LP Balance:\",\"S3piC2\":\"Tx\",\"S8G1qk\":\"Single\",\"SXnevP\":\"Review Cross Chain\",\"Sti4vy\":\"Mining\",\"T+qgFw\":\"Price Impact\",\"T0Y2+3\":\"Select a token\",\"TFOxRM\":\"Mins\",\"TGi+jm\":\"Doc\",\"TJBHlP\":\"Standard\",\"TY5fM3\":\"LP Tokens\",\"TaScUS\":[\"Users sell \",[\"0\"],\" amount:\"],\"TizaRy\":\"Wallet incompatibility\",\"TvH4Ym\":[\"Bought \",[\"0\"],\" \",[\"1\"],\", price in the pool decreased to \",[\"2\"]],\"Tz0i8g\":\"Settings\",\"UE2beD\":\"Creator\",\"UPXmW+\":\"Trader\",\"URmyfc\":\"Details\",\"UbRKMZ\":\"Pending\",\"UdY69+\":\"vDODO Rewards\",\"Uzr1HF\":[\"Connect to your \",[\"0\"],\" Wallet\"],\"V+rJKF\":\"Seconds\",\"VXTSOE\":\"Suitable for most situations.\",\"Vmw6BM\":\"Something went wrong…<0>Refresh again</0>\",\"XeovX3\":\"Swap Detail\",\"Xpkm7d\":\"No ForceStop access\",\"Y7rVy0\":\"Fee Rate\",\"Y9QDtD\":\"You are making changes to the liquidity of a private pool. This is a highly discretionary operation that may cause substantial inflows/outflows of funds and changes in market prices. Please make sure you are fully aware of the implications of each parameter modification.\",\"YHc3B+\":\"My Liquidity\",\"YHpbe1\":\"For\",\"YUyuNp\":[[\"lqAndDodoCompareText\"],\" Price Difference\"],\"YvXHDU\":[\"The area of the chart indicates the buy/sell volume of \",[\"0\"],\" that can be carried by the market when the current price changes to the hover price.\"],\"Z033WN\":\"Total Swap Fee\",\"Z5HWHd\":\"On\",\"Z7ZXbT\":\"Approve\",\"Z8lGw6\":\"Share\",\"ZXvy7b\":\"Additional routing fees set by the Widget user\",\"ZhEBp4\":\"Current liquidity pool token price\",\"Zm56FI\":\"Maximum slippage do not exceed 50%\",\"a1AzKr\":\"For those who are looking to sell tokens and only need ask-side liquidity.\",\"a7u1N9\":\"Price\",\"agPptk\":\"Medium\",\"agRWc1\":\"Minutes\",\"bC0iyq\":\"Suitable for stablecoins with price fluctuations within 10%\",\"bEsfUQ\":\"Confirm submission\",\"bUUVED\":\"Asset\",\"cDWXuq\":\"Settler\",\"cmUrtC\":\"SEE HOW IT WORKS\",\"cnbRVW\":[\"Initial Price \",[\"0\"],\" \",[\"1\"],\" = \",[\"2\"],\" \",[\"3\"]],\"d2CZvA\":\"Initial Price\",\"d8YnVj\":\"Guide Price\",\"dEgA5A\":\"Cancel\",\"dI46oG\":\"Auto switch network\",\"dJqd5x\":[\"Get \",[\"tokenSymbol\"]],\"dUdltF\":\"One-Click Claim\",\"dqWPbT\":\"I have read, understand, and agree to the <0>Terms of Service</0>.\",\"dzV+zO\":\"Modify Confirmation\",\"eE0JZ4\":\"Version\",\"ePK91l\":\"Edit\",\"eTUF28\":\"Min\",\"eVZ7bY\":\"Hide TVL=0 pools\",\"em6LzM\":\"Transaction rejected.\",\"fKYdE9\":\"Results in a more volatile price.\",\"fSFt4a\":\"Token Pair\",\"fZ5Vnu\":\"Received\",\"fZFkP1\":\"My Pools\",\"fqDzSu\":\"Rate\",\"g3x+cF\":\"Service update, please wait and try again\",\"gz+9Rb\":\"Gas price is too low, please adjust in your wallet and try again\",\"h4RLFN\":\"RPC node data exception\",\"h5FVz1\":\"Estimated transaction time\",\"h7LgzN\":\"Connect to your wallet\",\"hCBYHP\":\"Total Fee Revenue\",\"hXzOVo\":\"Next\",\"hYgDIe\":\"Create\",\"hcNa1G\":\"Token Amount\",\"hdIg7i\":\"Select Pool Version\",\"hom7qf\":\"Claim\",\"iH8pgl\":\"Back\",\"iPMIoT\":\"Enter an amount\",\"iaocTt\":\"Ratio\",\"j2Uisd\":\"Approving\",\"jjuKOj\":\"Min Price\",\"juypHV\":\"Liquidity Providers\",\"kNeEXg\":\"Current Price\",\"kdzjmC\":[\"The mid price needs to be greater than \",[\"min\"],\" and less than 100,000,000\"],\"kf83Ld\":\"Something went wrong.\",\"ku//5b\":\"Second\",\"l4Za6X\":\"Total Swap Volume\",\"lDgVWA\":\"Receive\",\"lJvbHq\":\"Select Network\",\"lQ6r7x\":\"Confirm swap\",\"lqTDfd\":\"Slippage Tolerance\",\"lsg9Mi\":\"Parameter Settings\",\"lt8yMa\":\"Send to:\",\"luOvdJ\":\"My Staked\",\"m16xKo\":\"Add\",\"mObS+5\":\"Failed to get price of the token\",\"me2dmq\":\"Value (USD)\",\"n25Lml\":\"Depth\",\"nTWWCZ\":\"Low\",\"o8aMNm\":\"Select a liquidity pool\",\"p2jbcE\":\"Create Pool\",\"p7/w10\":\"Volume (24H)\",\"pHQq+U\":\"Pool Setup\",\"pKjCsP\":\"100% use your own funds and enjoy the maximum degree of flexibility.\",\"pSQ1lM\":\"MT Fee\",\"pY/ok7\":\"All chains\",\"q+Q952\":[\"Users pay \",[\"0\"],\" \",[\"1\"],\" and receive \",[\"2\"],\" \",[\"3\"],\"\\\\nPrice \",[\"4\"],\" (\",[\"5\"],\"%)\"],\"q/XX3T\":\"Current:\",\"qDhDFK\":\"Traders\",\"qK7wuW\":\"Unable to SETTLE during the cooling-off period\",\"qLkska\":\"The setting has been switched to cross chain mode\",\"qiOIiY\":\"Buy\",\"r7ScnQ\":\"Connect to a wallet\",\"rFbNvu\":\"If your transaction time exceeds the deadline, your transaction will be rescinded.\",\"rRDi3Y\":\"Detail\",\"rSayea\":\"APY\",\"sIPJGT\":\"SELECT TOKEN\",\"sTnImq\":\"Total Liquidity\",\"sjn3tj\":\"Slippage Coefficient\",\"t+LmjM\":\"Initial Price Alert\",\"t/YqKh\":\"Remove\",\"tKE4Ak\":\"Cross Chain Summary\",\"tMVAXL\":\"SafeERC20: low-level call failed. Please contact the DODO team.\",\"tnRI9r\":\"Pool Creation Confirmation\",\"tyGEMJ\":\"Amounts\",\"uAQUqI\":\"Status\",\"uaKP0s\":[\"differs from the price quoted by DODO by \",[\"lqAndDodoCompareText\"]],\"ubzjDN\":\"Real Time\",\"udsWDJ\":\"Unsupported network - switch to trade\",\"uiuMDr\":\"Enter parameters to view the yield curve\",\"v4nCHK\":\"Paid\",\"v4wgrk\":\"Failed to add\",\"vH2C/2\":\"Swap\",\"vXvgFK\":\"There is risk of being arbitraged if adding this liquidity.\",\"wdxz7K\":\"Source\",\"x4QVeW\":\"Percentage to remove\",\"xEbi+8\":\"User denied transaction signature.\",\"yM82Jw\":\"ForceStop exception\",\"yQ2kGp\":\"Load more\",\"yQE2r9\":\"Loading\",\"yXm1vH\":\"The initial price is different from the current market price, which may cause your pool to be arbitraged\",\"yY8wAv\":\"Hours\",\"yx/fMc\":\"High\",\"yz7wBu\":\"Close\",\"yzjPpo\":\"Fees will be the same as in most other pools.\",\"zSMRJ/\":\"Transaction Deadline\",\"znqB4T\":\"Insufficient balance\",\"zwBp5t\":\"Private\"}")};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*eslint-disable*/module.exports={messages:JSON.parse("{\"+/wf6Z\":\"The smaller the slippage coefficient, the lower the slippage for traders, and the deeper the market depth.\",\"+Jkdiu\":\"交易时长:\",\"+uZnU3\":\"跨链桥\",\"/+c6tU\":\"99% Default\",\"//95jS\":[\"当前滑点保护系数设置超过\",[\"maxSlippageWarning\"],\"%,可能会造成损失。\"],\"/Ak0Fw\":[\"连接 \",[\"0\"],\"...\"],\"/BbUJ6\":\"Total Number of Traders\",\"/cF7Rs\":\"Volume\",\"/jQctM\":\"至\",\"/nzjSF\":[[\"0\"],\" 等待中\"],\"0+31GV\":\"Removing\",\"0O1wzf\":[\"Traders sold \",[\"0\"],\" \",[\"1\"],\", price in the pool increased to \",[\"2\"]],\"0QDjxt\":\"余额:\",\"0YxDPW\":\"Loading info...\",\"0b0AkA\":\"* Please note that the Fee Rate cannot be modified after the pool is created\",\"1+P9RR\":[\"Switch to \",[\"0\"]],\"1QfxQT\":\"忽略\",\"1gWStS\":\"Unstaking\",\"1yHVE+\":\"Adding\",\"22Xs8M\":\"Deposit Ratio\",\"237hSL\":\"Ended\",\"2vjOqX\":\"Pools with lower transaction fees will attract more traders.\",\"34w3mT\":\"Single-Token\",\"3U+Oti\":\"he slippage coefficient needs to be greater than or equal to 0, and less than or equal to 1.\",\"3XBvkd\":\"Remove Liquidity\",\"4cJ0hF\":\"Rewards\",\"4kY4C4\":\"由于市场情况不同,市场价格与估算价格可能略有差异。\",\"4nzwq3\":\"Search by token or pool address\",\"4ogEAw\":\"Pegged Exchange Rate\",\"4vKwIV\":\"Private Pool\",\"4xbbt/\":[[\"0\"],\" 已确认\"],\"52uNwk\":\"Creation Time\",\"54ffaC\":\"当前网络与钱包不一致,请在钱包中切换\",\"5OKrbq\":\"Since this pool uses the PMM algorithm, which is different from the normal AMM pool mechanism, the initial price calculation is also different from AMM.\",\"5QDjef\":\"The token amount is calculated by initial price.\",\"6+mYrD\":\"当前价格冲击\",\"6UYTy8\":\"分钟\",\"6V3Ea3\":\"Copied\",\"6XYkjc\":\"Edit Parameter Settings\",\"6XgEPi\":\"小时\",\"6y2TB3\":\"Liquidity\",\"72/M0o\":\"输入代币符号或地址\",\"7C/BwI\":\"Community Treasury\",\"7IKPTP\":\"费用包括过跨链桥和交易的手续费,不包括 gas 费。\",\"7VpPHA\":\"确认\",\"7X+IbB\":\"Powered by DODO protocol\",\"7X40pG\":\"Fees (24H)\",\"7m5+6j\":\"Initial Tokens\",\"7rpoXw\":\"该代币在\",\"8OiU8L\":\"Pool Creation\",\"8Tg/JR\":\"Custom\",\"8Z29ZO\":\"预计服务供应商费用\",\"93m8jT\":\"基础手续费\",\"9D2g7k\":\"The liquidity of DODO is continuous, which is different from the discrete liquidity of UniV3. The ticks shown in the illustration are for demonstration purposes only.\",\"9QjAGB\":\"FeeRevenue\",\"A1taO8\":\"Search\",\"AOhRo6\":\"DODO provides a variety of pool versions to suit your needs.\",\"AghcDJ\":\"价格冲击超过了你设置的滑点, 请提高滑点后重试\",\"AxPAXW\":\"No results found\",\"AxdOHo\":\"Pair\",\"B0/2ea\":\"秒\",\"B3mhDR\":\"Add liquidity to obtain LP tokens for mining\",\"C1mcuF\":\"此众筹池已被其他地址结算\",\"C1qIFl\":\"Liquidity Supplied\",\"CK1KXz\":\"全部\",\"CKyk7Q\":\"Go back\",\"CMHmbm\":\"滑点\",\"CeLrge\":\"Mid Price\",\"CkfzUf\":[\"余额不足 - 请在钱包充值\",[\"EtherTokenSymbol\"],\"后重试\"],\"DPfwMq\":\"Done\",\"DPi/hO\":\"Results in a relatively fixed price.\",\"DZULmp\":\"Swap Rate\",\"Da1+Da\":\"Pool not found. Please switch to another network and retry.\",\"DuVAxN\":[\"The area of the chart indicates the buy/sell volume of \",[\"baseSymbol\"],\" that can be carried by the market when the current price changes to the hover price.\"],\"EUBGvH\":\"是否确认切换到另一个链?\",\"EatqP4\":\"Swaps\",\"Enslfm\":\"目标\",\"F+sxb9\":\"未授权\",\"F18WP3\":\"Parameters\",\"F2vX4t\":[\"Users buy \",[\"0\"],\" amount:\"],\"F9xwHA\":[\"跨链费用不足,至少需要 \",[\"0\"],\" \",[\"1\"],\" \"],\"FHKsZF\":\"TVL\",\"FQfStS\":\"Emulator\",\"FRBvjQ\":\"交易进行中\",\"Fdp03t\":\"在\",\"FrP5tr\":\"Suitable for stablecoins with price fluctuations within 2%\",\"GAypnX\":\"滑点越高,交易的成功率越高,但是交易的价格可能不会是最好的市场价格。请谨慎调整滑点。\",\"GGPOuT\":\"set current mid price\",\"GSt7YT\":\"The fee rate must be between 0.01% to 10%\",\"Gr2anW\":\"Traders (24H)\",\"H7OUPr\":\"天\",\"HGf8fG\":\"You can set the minimum selling price for single-token pools.\",\"HuVZMK\":\"天\",\"I0LXan\":[\"Price Impact: \",[\"0\"]],\"I0yi1d\":\"Deposit ratio is determined by the current assets ratio in the pool. The ratio does not represent the exchange price\",\"J28zul\":\"连接中...\",\"J39pAJ\":\"额外手续费\",\"J7M/DA\":\"Pegged\",\"JR7wWw\":\"Equilibrium target\",\"JYKRJS\":\"Stake\",\"JaeUyE\":[\"Price discrepancy \",[\"lqAndDodoCompareText\"],\" between liquidity pool and the quote price on DODO.\"],\"JdNn1Y\":\"获取最优价格中...\",\"JlIjZf\":\"Liquidity Provider\",\"JuzN3b\":\"Related CrowdPooling\",\"K/Ay/d\":\"预览交易\",\"K/PgcA\":\"选择跨链桥\",\"KAmxpM\":\"注意:滑点越高,交易的成功率越高,但是交易的价格可能不会是最好的市场价格。请谨慎调整滑点。\",\"KRnA5J\":\"Set pool parameters\",\"Kb3KaW\":\"Any Ratio\",\"KlvBGJ\":\"选择代币\",\"KsqhWn\":\"Staking\",\"KvG1xW\":\"Claiming\",\"L4nQwl\":\"Suitable for stablecoins with price fluctuations within 0.5%\",\"LDprZB\":\"The slippage coefficient needs to be greater than 0, and less than 0.1.\",\"LQU+Dm\":\"Risk Disclaimer\",\"LhMjLm\":\"Time\",\"LtI9AS\":\"Owner\",\"M9dIDb\":\"The pegged exchange rate refers to the exchange rate between two token assets where one's value is pegged/fixed by the other. For example, the pegged exchange rate between the US Dollar and USDT is 1.\",\"NSCBTb\":\"设置已切换至闪兑模式\",\"NVAuTg\":\"没有报价\",\"NgeSlx\":\"Learn More\",\"OBdohg\":\"Add Liquidity\",\"OFjZGo\":\"Unstake\",\"OJOe+K\":\"Set the fee to the same as most other pools\",\"OauUE6\":\"获取价格中...\",\"OfhWJH\":\"重置\",\"OgKD6h\":\"最优价格\",\"OnDEky\":\"LP Fee\",\"P+K/3O\":\"确认中\",\"P4iKEj\":[\"The initial price needs to be greater than \",[\"min\"],\" and less than 100,000,000\"],\"PC9Biq\":[[\"DEFAULT_SWAP_DDL\"],\" 分钟\"],\"PIYEqF\":\"Quantity model\",\"PLUB/s\":\"手续费\",\"PZqJog\":\"确认跨链交易\",\"Price impact reaches <0>{priceImpact}</0>%, accept the quote\":[\"价格冲击为<0>\",[\"priceImpact\"],\"</0>%, 仍接受此报价\"],\"QNWt8A\":\"预计时间\",\"QNrpkx\":\"Classical AMM-like pool. Suitable for most assets.\",\"QR4/RH\":\"交易预览\",\"R9Khdg\":\"Auto\",\"RvYEUJ\":\"Suitable for synthetic assets. The liquidity is super concentrated at some price like Curve Finance.\",\"RxHSET\":\"LP Balance:\",\"S3piC2\":\"交易哈希:\",\"S8G1qk\":\"Single\",\"SXnevP\":\"预览跨链交易\",\"Sti4vy\":\"Mining\",\"T+qgFw\":\"价格冲击\",\"T0Y2+3\":\"选择代币\",\"TFOxRM\":\"分钟\",\"TGi+jm\":\"Doc\",\"TJBHlP\":\"Standard\",\"TY5fM3\":\"LP Tokens\",\"TaScUS\":[\"Users sell \",[\"0\"],\" amount:\"],\"TizaRy\":\"钱包不兼容\",\"TvH4Ym\":[\"Bought \",[\"0\"],\" \",[\"1\"],\", price in the pool decreased to \",[\"2\"]],\"Tz0i8g\":\"设置\",\"UE2beD\":\"Creator\",\"UPXmW+\":\"Trader\",\"URmyfc\":\"Details\",\"UbRKMZ\":\"Pending\",\"UdY69+\":\"vDODO Rewards\",\"Uzr1HF\":[\"连接你的\",[\"0\"],\"钱包\"],\"V+rJKF\":\"秒\",\"VXTSOE\":\"Suitable for most situations.\",\"Vmw6BM\":\"Something went wrong…<0>Refresh again</0>\",\"XeovX3\":\"交易详情\",\"Xpkm7d\":\"No ForceStop access\",\"Y7rVy0\":\"Fee Rate\",\"Y9QDtD\":\"You are making changes to the liquidity of a private pool. This is a highly discretionary operation that may cause substantial inflows/outflows of funds and changes in market prices. Please make sure you are fully aware of the implications of each parameter modification.\",\"YHc3B+\":\"My Liquidity\",\"YHpbe1\":\"对于\",\"YUyuNp\":[[\"lqAndDodoCompareText\"],\" Price Difference\"],\"YvXHDU\":[\"The area of the chart indicates the buy/sell volume of \",[\"0\"],\" that can be carried by the market when the current price changes to the hover price.\"],\"Z033WN\":\"Total Swap Fee\",\"Z5HWHd\":\"在\",\"Z7ZXbT\":\"代币授权\",\"Z8lGw6\":\"Share\",\"ZXvy7b\":\"由 Widget 设置的额外路由费用\",\"ZhEBp4\":\"Current liquidity pool token price\",\"Zm56FI\":\"最大滑点不能超过50%\",\"a1AzKr\":\"For those who are looking to sell tokens and only need ask-side liquidity.\",\"a7u1N9\":\"Price\",\"agPptk\":\"Medium\",\"agRWc1\":\"分钟\",\"bC0iyq\":\"Suitable for stablecoins with price fluctuations within 10%\",\"bEsfUQ\":\"Confirm submission\",\"bUUVED\":\"Asset\",\"cDWXuq\":\"Settler\",\"cmUrtC\":\"SEE HOW IT WORKS\",\"cnbRVW\":[\"Initial Price \",[\"0\"],\" \",[\"1\"],\" = \",[\"2\"],\" \",[\"3\"]],\"d2CZvA\":\"Initial Price\",\"d8YnVj\":\"Guide Price\",\"dEgA5A\":\"取消\",\"dI46oG\":\"自动切换网络\",\"dJqd5x\":[\"Get \",[\"tokenSymbol\"]],\"dUdltF\":\"One-Click Claim\",\"dqWPbT\":\"I have read, understand, and agree to the <0>Terms of Service</0>.\",\"dzV+zO\":\"Modify Confirmation\",\"eE0JZ4\":\"Version\",\"ePK91l\":\"Edit\",\"eTUF28\":\"分钟\",\"eVZ7bY\":\"Hide TVL=0 pools\",\"em6LzM\":\"交易被拒绝.\",\"fKYdE9\":\"Results in a more volatile price.\",\"fSFt4a\":\"Token Pair\",\"fZ5Vnu\":\"Received\",\"fZFkP1\":\"My Pools\",\"g3x+cF\":\"服务升级中, 请等待或重试\",\"gz+9Rb\":\"Gas 价格过低, 请调整后重试\",\"h4RLFN\":\"RPC节点异常\",\"h5FVz1\":\"预计交易时长\",\"h7LgzN\":\"连接钱包\",\"hCBYHP\":\"Total Fee Revenue\",\"hXzOVo\":\"Next\",\"hYgDIe\":\"Create\",\"hcNa1G\":\"Token Amount\",\"hdIg7i\":\"Select Pool Version\",\"hom7qf\":\"Claim\",\"iH8pgl\":\"Back\",\"iPMIoT\":\"输入代币数量\",\"iaocTt\":\"Ratio\",\"j2Uisd\":\"授权中\",\"jjuKOj\":\"Min Price\",\"juypHV\":\"Liquidity Providers\",\"kNeEXg\":\"Current Price\",\"kdzjmC\":[\"The mid price needs to be greater than \",[\"min\"],\" and less than 100,000,000\"],\"kf83Ld\":\"发生异常错误.\",\"ku//5b\":\"秒\",\"l4Za6X\":\"Total Swap Volume\",\"lDgVWA\":\"Receive\",\"lJvbHq\":\"Select Network\",\"lQ6r7x\":\"确认交易\",\"lqTDfd\":\"滑点\",\"lsg9Mi\":\"Parameter Settings\",\"lt8yMa\":\"发送至:\",\"luOvdJ\":\"My Staked\",\"m16xKo\":\"Add\",\"mObS+5\":\"Failed to get price of the token\",\"me2dmq\":\"Value (USD)\",\"n25Lml\":\"Depth\",\"nTWWCZ\":\"Low\",\"o8aMNm\":\"Select a liquidity pool\",\"p2jbcE\":\"Create Pool\",\"p7/w10\":\"Volume (24H)\",\"pHQq+U\":\"Pool Setup\",\"pKjCsP\":\"100% use your own funds and enjoy the maximum degree of flexibility.\",\"pSQ1lM\":\"MT Fee\",\"pY/ok7\":\"All chains\",\"q+Q952\":[\"Users pay \",[\"0\"],\" \",[\"1\"],\" and receive \",[\"2\"],\" \",[\"3\"],\"\\\\nPrice \",[\"4\"],\" (\",[\"5\"],\"%)\"],\"q/XX3T\":\"Current:\",\"qDhDFK\":\"Traders\",\"qK7wuW\":\"在冷静期无法进行清算\",\"qLkska\":\"设置已切换到跨链桥交易模式\",\"qiOIiY\":\"Buy\",\"r7ScnQ\":\"连接钱包\",\"rFbNvu\":\"如果你的交易被确认的时间超过这个时间,你的交易将被退回。 \",\"rRDi3Y\":\"详情\",\"rSayea\":\"APY\",\"sIPJGT\":\"选择代币\",\"sTnImq\":\"Total Liquidity\",\"sjn3tj\":\"Slippage Coefficient\",\"t+LmjM\":\"Initial Price Alert\",\"t/YqKh\":\"Remove\",\"tKE4Ak\":\"跨链桥概览\",\"tMVAXL\":\"SafeERC20:low-level call failed,请联系DODO团队解决。\",\"tnRI9r\":\"Pool Creation Confirmation\",\"tyGEMJ\":\"Amounts\",\"uaKP0s\":[\"differs from the price quoted by DODO by \",[\"lqAndDodoCompareText\"]],\"ubzjDN\":\"Real Time\",\"udsWDJ\":\"未支持网络 - 请切换后进行交易\",\"uiuMDr\":\"Enter parameters to view the yield curve\",\"v4nCHK\":\"Paid\",\"vH2C/2\":\"交易\",\"vXvgFK\":\"There is risk of being arbitraged if adding this liquidity.\",\"wdxz7K\":\"源\",\"x4QVeW\":\"Percentage to remove\",\"xEbi+8\":\"用户拒绝交易签名.\",\"yM82Jw\":\"ForceStop 异常\",\"yQ2kGp\":\"Load more\",\"yXm1vH\":\"The initial price is different from the current market price, which may cause your pool to be arbitraged\",\"yY8wAv\":\"小时\",\"yx/fMc\":\"High\",\"yz7wBu\":\"关闭\",\"yzjPpo\":\"Fees will be the same as in most other pools.\",\"zSMRJ/\":\"交易截止时间\",\"znqB4T\":\"余额不足\",\"zwBp5t\":\"Private\"}")};
|
|
1
|
+
/*eslint-disable*/module.exports={messages:JSON.parse("{\"+/wf6Z\":\"The smaller the slippage coefficient, the lower the slippage for traders, and the deeper the market depth.\",\"+Jkdiu\":\"交易时长:\",\"+uZnU3\":\"跨链桥\",\"/+c6tU\":\"99% Default\",\"//95jS\":[\"当前滑点保护系数设置超过\",[\"maxSlippageWarning\"],\"%,可能会造成损失。\"],\"/Ak0Fw\":[\"连接 \",[\"0\"],\"...\"],\"/BbUJ6\":\"Total Number of Traders\",\"/cF7Rs\":\"Volume\",\"/jQctM\":\"至\",\"/nzjSF\":[[\"0\"],\" 等待中\"],\"0+31GV\":\"Removing\",\"0O1wzf\":[\"Traders sold \",[\"0\"],\" \",[\"1\"],\", price in the pool increased to \",[\"2\"]],\"0QDjxt\":\"余额:\",\"0YxDPW\":\"Loading info...\",\"0b0AkA\":\"* Please note that the Fee Rate cannot be modified after the pool is created\",\"1+P9RR\":[\"Switch to \",[\"0\"]],\"1QfxQT\":\"忽略\",\"1gWStS\":\"Unstaking\",\"1yHVE+\":\"Adding\",\"22Xs8M\":\"Deposit Ratio\",\"237hSL\":\"Ended\",\"2vjOqX\":\"Pools with lower transaction fees will attract more traders.\",\"34w3mT\":\"Single-Token\",\"3U+Oti\":\"he slippage coefficient needs to be greater than or equal to 0, and less than or equal to 1.\",\"3XBvkd\":\"Remove Liquidity\",\"4cJ0hF\":\"Rewards\",\"4fL/V7\":\"Pay\",\"4kY4C4\":\"由于市场情况不同,市场价格与估算价格可能略有差异。\",\"4nzwq3\":\"Search by token or pool address\",\"4ogEAw\":\"Pegged Exchange Rate\",\"4vKwIV\":\"Private Pool\",\"4xbbt/\":[[\"0\"],\" 已确认\"],\"52uNwk\":\"Creation Time\",\"54ffaC\":\"当前网络与钱包不一致,请在钱包中切换\",\"5OKrbq\":\"Since this pool uses the PMM algorithm, which is different from the normal AMM pool mechanism, the initial price calculation is also different from AMM.\",\"5QDjef\":\"The token amount is calculated by initial price.\",\"6+mYrD\":\"当前价格冲击\",\"6UYTy8\":\"分钟\",\"6V3Ea3\":\"Copied\",\"6XYkjc\":\"Edit Parameter Settings\",\"6XgEPi\":\"小时\",\"6y2TB3\":\"Liquidity\",\"72/M0o\":\"输入代币符号或地址\",\"7Bj3x9\":\"Failed\",\"7C/BwI\":\"Community Treasury\",\"7IKPTP\":\"费用包括过跨链桥和交易的手续费,不包括 gas 费。\",\"7VpPHA\":\"确认\",\"7X+IbB\":\"Powered by DODO protocol\",\"7X40pG\":\"Fees (24H)\",\"7m5+6j\":\"Initial Tokens\",\"7rpoXw\":\"该代币在\",\"8OiU8L\":\"Pool Creation\",\"8Tg/JR\":\"Custom\",\"8Z29ZO\":\"预计服务供应商费用\",\"93m8jT\":\"基础手续费\",\"9D2g7k\":\"The liquidity of DODO is continuous, which is different from the discrete liquidity of UniV3. The ticks shown in the illustration are for demonstration purposes only.\",\"9QjAGB\":\"FeeRevenue\",\"A1taO8\":\"Search\",\"AOhRo6\":\"DODO provides a variety of pool versions to suit your needs.\",\"AghcDJ\":\"价格冲击超过了你设置的滑点, 请提高滑点后重试\",\"AxPAXW\":\"No results found\",\"AxdOHo\":\"Pair\",\"B0/2ea\":\"秒\",\"B3mhDR\":\"Add liquidity to obtain LP tokens for mining\",\"C1mcuF\":\"此众筹池已被其他地址结算\",\"C1qIFl\":\"Liquidity Supplied\",\"CK1KXz\":\"全部\",\"CKyk7Q\":\"Go back\",\"CMHmbm\":\"滑点\",\"CeLrge\":\"Mid Price\",\"CkfzUf\":[\"余额不足 - 请在钱包充值\",[\"EtherTokenSymbol\"],\"后重试\"],\"DPfwMq\":\"Done\",\"DPi/hO\":\"Results in a relatively fixed price.\",\"DZULmp\":\"Swap Rate\",\"Da1+Da\":\"Pool not found. Please switch to another network and retry.\",\"DuVAxN\":[\"The area of the chart indicates the buy/sell volume of \",[\"baseSymbol\"],\" that can be carried by the market when the current price changes to the hover price.\"],\"DupCvC\":\"Added successful\",\"EUBGvH\":\"是否确认切换到另一个链?\",\"EatqP4\":\"Swaps\",\"Enslfm\":\"目标\",\"F+sxb9\":\"未授权\",\"F18WP3\":\"Parameters\",\"F2vX4t\":[\"Users buy \",[\"0\"],\" amount:\"],\"F9xwHA\":[\"跨链费用不足,至少需要 \",[\"0\"],\" \",[\"1\"],\" \"],\"FHKsZF\":\"TVL\",\"FQfStS\":\"Emulator\",\"FRBvjQ\":\"交易进行中\",\"Fdp03t\":\"在\",\"FrP5tr\":\"Suitable for stablecoins with price fluctuations within 2%\",\"GAypnX\":\"滑点越高,交易的成功率越高,但是交易的价格可能不会是最好的市场价格。请谨慎调整滑点。\",\"GGPOuT\":\"set current mid price\",\"GGWsTU\":\"Canceled\",\"GSt7YT\":\"The fee rate must be between 0.01% to 10%\",\"Gr2anW\":\"Traders (24H)\",\"H7OUPr\":\"天\",\"HGf8fG\":\"You can set the minimum selling price for single-token pools.\",\"HuVZMK\":\"天\",\"I0LXan\":[\"Price Impact: \",[\"0\"]],\"I0yi1d\":\"Deposit ratio is determined by the current assets ratio in the pool. The ratio does not represent the exchange price\",\"J28zul\":\"连接中...\",\"J39pAJ\":\"额外手续费\",\"J7M/DA\":\"Pegged\",\"JR7wWw\":\"Equilibrium target\",\"JYKRJS\":\"Stake\",\"JaeUyE\":[\"Price discrepancy \",[\"lqAndDodoCompareText\"],\" between liquidity pool and the quote price on DODO.\"],\"JdNn1Y\":\"获取最优价格中...\",\"JlIjZf\":\"Liquidity Provider\",\"JuzN3b\":\"Related CrowdPooling\",\"K/Ay/d\":\"预览交易\",\"K/PgcA\":\"选择跨链桥\",\"KAbcm2\":\"Succeeded\",\"KAmxpM\":\"注意:滑点越高,交易的成功率越高,但是交易的价格可能不会是最好的市场价格。请谨慎调整滑点。\",\"KRnA5J\":\"Set pool parameters\",\"Kb3KaW\":\"Any Ratio\",\"KlvBGJ\":\"选择代币\",\"KsqhWn\":\"Staking\",\"KvG1xW\":\"Claiming\",\"L4nQwl\":\"Suitable for stablecoins with price fluctuations within 0.5%\",\"LDprZB\":\"The slippage coefficient needs to be greater than 0, and less than 0.1.\",\"LQU+Dm\":\"Risk Disclaimer\",\"LhMjLm\":\"Time\",\"LtI9AS\":\"Owner\",\"M9dIDb\":\"The pegged exchange rate refers to the exchange rate between two token assets where one's value is pegged/fixed by the other. For example, the pegged exchange rate between the US Dollar and USDT is 1.\",\"NSCBTb\":\"设置已切换至闪兑模式\",\"NVAuTg\":\"没有报价\",\"NgeSlx\":\"Learn More\",\"OBdohg\":\"Add Liquidity\",\"OFjZGo\":\"Unstake\",\"OJOe+K\":\"Set the fee to the same as most other pools\",\"OauUE6\":\"获取价格中...\",\"OfhWJH\":\"重置\",\"OgKD6h\":\"最优价格\",\"OnDEky\":\"LP Fee\",\"P+K/3O\":\"确认中\",\"P4iKEj\":[\"The initial price needs to be greater than \",[\"min\"],\" and less than 100,000,000\"],\"PC9Biq\":[[\"DEFAULT_SWAP_DDL\"],\" 分钟\"],\"PIYEqF\":\"Quantity model\",\"PLUB/s\":\"手续费\",\"PZqJog\":\"确认跨链交易\",\"Price impact reaches <0>{priceImpact}</0>%, accept the quote\":[\"价格冲击为<0>\",[\"priceImpact\"],\"</0>%, 仍接受此报价\"],\"QNWt8A\":\"预计时间\",\"QNrpkx\":\"Classical AMM-like pool. Suitable for most assets.\",\"QR4/RH\":\"交易预览\",\"R9Khdg\":\"Auto\",\"RvYEUJ\":\"Suitable for synthetic assets. The liquidity is super concentrated at some price like Curve Finance.\",\"RxHSET\":\"LP Balance:\",\"S3piC2\":\"交易哈希:\",\"S8G1qk\":\"Single\",\"SXnevP\":\"预览跨链交易\",\"Sti4vy\":\"Mining\",\"T+qgFw\":\"价格冲击\",\"T0Y2+3\":\"选择代币\",\"TFOxRM\":\"分钟\",\"TGi+jm\":\"Doc\",\"TJBHlP\":\"Standard\",\"TY5fM3\":\"LP Tokens\",\"TaScUS\":[\"Users sell \",[\"0\"],\" amount:\"],\"TizaRy\":\"钱包不兼容\",\"TvH4Ym\":[\"Bought \",[\"0\"],\" \",[\"1\"],\", price in the pool decreased to \",[\"2\"]],\"Tz0i8g\":\"设置\",\"UE2beD\":\"Creator\",\"UPXmW+\":\"Trader\",\"URmyfc\":\"Details\",\"UbRKMZ\":\"Pending\",\"UdY69+\":\"vDODO Rewards\",\"Uzr1HF\":[\"连接你的\",[\"0\"],\"钱包\"],\"V+rJKF\":\"秒\",\"VXTSOE\":\"Suitable for most situations.\",\"Vmw6BM\":\"Something went wrong…<0>Refresh again</0>\",\"XeovX3\":\"交易详情\",\"Xpkm7d\":\"No ForceStop access\",\"Y7rVy0\":\"Fee Rate\",\"Y9QDtD\":\"You are making changes to the liquidity of a private pool. This is a highly discretionary operation that may cause substantial inflows/outflows of funds and changes in market prices. Please make sure you are fully aware of the implications of each parameter modification.\",\"YHc3B+\":\"My Liquidity\",\"YHpbe1\":\"对于\",\"YUyuNp\":[[\"lqAndDodoCompareText\"],\" Price Difference\"],\"YvXHDU\":[\"The area of the chart indicates the buy/sell volume of \",[\"0\"],\" that can be carried by the market when the current price changes to the hover price.\"],\"Z033WN\":\"Total Swap Fee\",\"Z5HWHd\":\"在\",\"Z7ZXbT\":\"代币授权\",\"Z8lGw6\":\"Share\",\"ZXvy7b\":\"由 Widget 设置的额外路由费用\",\"ZhEBp4\":\"Current liquidity pool token price\",\"Zm56FI\":\"最大滑点不能超过50%\",\"a1AzKr\":\"For those who are looking to sell tokens and only need ask-side liquidity.\",\"a7u1N9\":\"Price\",\"agPptk\":\"Medium\",\"agRWc1\":\"分钟\",\"bC0iyq\":\"Suitable for stablecoins with price fluctuations within 10%\",\"bEsfUQ\":\"Confirm submission\",\"bUUVED\":\"Asset\",\"cDWXuq\":\"Settler\",\"cmUrtC\":\"SEE HOW IT WORKS\",\"cnbRVW\":[\"Initial Price \",[\"0\"],\" \",[\"1\"],\" = \",[\"2\"],\" \",[\"3\"]],\"d2CZvA\":\"Initial Price\",\"d8YnVj\":\"Guide Price\",\"dEgA5A\":\"取消\",\"dI46oG\":\"自动切换网络\",\"dJqd5x\":[\"Get \",[\"tokenSymbol\"]],\"dUdltF\":\"One-Click Claim\",\"dqWPbT\":\"I have read, understand, and agree to the <0>Terms of Service</0>.\",\"dzV+zO\":\"Modify Confirmation\",\"eE0JZ4\":\"Version\",\"ePK91l\":\"Edit\",\"eTUF28\":\"分钟\",\"eVZ7bY\":\"Hide TVL=0 pools\",\"em6LzM\":\"交易被拒绝.\",\"fKYdE9\":\"Results in a more volatile price.\",\"fSFt4a\":\"Token Pair\",\"fZ5Vnu\":\"Received\",\"fZFkP1\":\"My Pools\",\"fqDzSu\":\"Rate\",\"g3x+cF\":\"服务升级中, 请等待或重试\",\"gz+9Rb\":\"Gas 价格过低, 请调整后重试\",\"h4RLFN\":\"RPC节点异常\",\"h5FVz1\":\"预计交易时长\",\"h7LgzN\":\"连接钱包\",\"hCBYHP\":\"Total Fee Revenue\",\"hXzOVo\":\"Next\",\"hYgDIe\":\"Create\",\"hcNa1G\":\"Token Amount\",\"hdIg7i\":\"Select Pool Version\",\"hom7qf\":\"Claim\",\"iH8pgl\":\"Back\",\"iPMIoT\":\"输入代币数量\",\"iaocTt\":\"Ratio\",\"j2Uisd\":\"授权中\",\"jjuKOj\":\"Min Price\",\"juypHV\":\"Liquidity Providers\",\"kNeEXg\":\"Current Price\",\"kdzjmC\":[\"The mid price needs to be greater than \",[\"min\"],\" and less than 100,000,000\"],\"kf83Ld\":\"发生异常错误.\",\"ku//5b\":\"秒\",\"l4Za6X\":\"Total Swap Volume\",\"lDgVWA\":\"Receive\",\"lJvbHq\":\"Select Network\",\"lQ6r7x\":\"确认交易\",\"lqTDfd\":\"滑点\",\"lsg9Mi\":\"Parameter Settings\",\"lt8yMa\":\"发送至:\",\"luOvdJ\":\"My Staked\",\"m16xKo\":\"Add\",\"mObS+5\":\"Failed to get price of the token\",\"me2dmq\":\"Value (USD)\",\"n25Lml\":\"Depth\",\"nTWWCZ\":\"Low\",\"o8aMNm\":\"Select a liquidity pool\",\"p2jbcE\":\"Create Pool\",\"p7/w10\":\"Volume (24H)\",\"pHQq+U\":\"Pool Setup\",\"pKjCsP\":\"100% use your own funds and enjoy the maximum degree of flexibility.\",\"pSQ1lM\":\"MT Fee\",\"pY/ok7\":\"All chains\",\"q+Q952\":[\"Users pay \",[\"0\"],\" \",[\"1\"],\" and receive \",[\"2\"],\" \",[\"3\"],\"\\\\nPrice \",[\"4\"],\" (\",[\"5\"],\"%)\"],\"q/XX3T\":\"Current:\",\"qDhDFK\":\"Traders\",\"qK7wuW\":\"在冷静期无法进行清算\",\"qLkska\":\"设置已切换到跨链桥交易模式\",\"qiOIiY\":\"Buy\",\"r7ScnQ\":\"连接钱包\",\"rFbNvu\":\"如果你的交易被确认的时间超过这个时间,你的交易将被退回。 \",\"rRDi3Y\":\"详情\",\"rSayea\":\"APY\",\"sIPJGT\":\"选择代币\",\"sTnImq\":\"Total Liquidity\",\"sjn3tj\":\"Slippage Coefficient\",\"t+LmjM\":\"Initial Price Alert\",\"t/YqKh\":\"Remove\",\"tKE4Ak\":\"跨链桥概览\",\"tMVAXL\":\"SafeERC20:low-level call failed,请联系DODO团队解决。\",\"tnRI9r\":\"Pool Creation Confirmation\",\"tyGEMJ\":\"Amounts\",\"uAQUqI\":\"Status\",\"uaKP0s\":[\"differs from the price quoted by DODO by \",[\"lqAndDodoCompareText\"]],\"ubzjDN\":\"Real Time\",\"udsWDJ\":\"未支持网络 - 请切换后进行交易\",\"uiuMDr\":\"Enter parameters to view the yield curve\",\"v4nCHK\":\"Paid\",\"v4wgrk\":\"Failed to add\",\"vH2C/2\":\"交易\",\"vXvgFK\":\"There is risk of being arbitraged if adding this liquidity.\",\"wdxz7K\":\"源\",\"x4QVeW\":\"Percentage to remove\",\"xEbi+8\":\"用户拒绝交易签名.\",\"yM82Jw\":\"ForceStop 异常\",\"yQ2kGp\":\"Load more\",\"yQE2r9\":\"Loading\",\"yXm1vH\":\"The initial price is different from the current market price, which may cause your pool to be arbitraged\",\"yY8wAv\":\"小时\",\"yx/fMc\":\"High\",\"yz7wBu\":\"关闭\",\"yzjPpo\":\"Fees will be the same as in most other pools.\",\"zSMRJ/\":\"交易截止时间\",\"znqB4T\":\"余额不足\",\"zwBp5t\":\"Private\"}")};
|
|
@@ -3,19 +3,21 @@ import { BigNumber } from 'bignumber.js';
|
|
|
3
3
|
* format to readable number, like: 0.00 -> 0, 1.00 -> 1, 1.235 -> 1.23, 1.230 -> 1.23
|
|
4
4
|
* @param input
|
|
5
5
|
*/
|
|
6
|
-
export declare function formatReadableNumber({ input, showDecimals, showPrecisionDecimals, showIntegerOnly, showDecimalsOnly, noGroupSeparator, roundingMode, }: {
|
|
6
|
+
export declare function formatReadableNumber({ input, showDecimals, showPrecisionDecimals, exponentialDecimalsAmount, showIntegerOnly, showDecimalsOnly, noGroupSeparator, roundingMode, }: {
|
|
7
7
|
input: BigNumber | number | string;
|
|
8
8
|
showDecimals?: number;
|
|
9
9
|
showIntegerOnly?: boolean;
|
|
10
10
|
showDecimalsOnly?: boolean;
|
|
11
11
|
showPrecisionDecimals?: number;
|
|
12
|
+
exponentialDecimalsAmount?: number;
|
|
12
13
|
noGroupSeparator?: boolean;
|
|
13
14
|
roundingMode?: BigNumber.RoundingMode;
|
|
14
15
|
}): string;
|
|
15
|
-
export declare function formatTokenAmountNumber({ input, decimals, showPrecisionDecimals, noGroupSeparator, }: {
|
|
16
|
+
export declare function formatTokenAmountNumber({ input, decimals, showPrecisionDecimals, exponentialDecimalsAmount, noGroupSeparator, }: {
|
|
16
17
|
input?: BigNumber | number | string | null;
|
|
17
18
|
decimals?: number;
|
|
18
19
|
showPrecisionDecimals?: number;
|
|
20
|
+
exponentialDecimalsAmount?: number;
|
|
19
21
|
noGroupSeparator?: boolean;
|
|
20
22
|
}): string;
|
|
21
23
|
export declare const fixedString: (raw: string | number | BigNumber, showDecimals?: number) => string;
|
package/dist/cjs/utils/time.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ export interface PoolOperateProps {
|
|
|
12
12
|
sx?: BoxProps['sx'];
|
|
13
13
|
}
|
|
14
14
|
export declare function PoolOperate({ onClose, pool: poolProps, address, operate, chainId, hasMining, sx, }: PoolOperateProps): JSX.Element;
|
|
15
|
-
export
|
|
16
|
-
|
|
15
|
+
export default function PoolOperateDialog({ modal, ...props }: PoolOperateProps & {
|
|
16
|
+
modal?: boolean;
|
|
17
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '@dodoex/components';
|
|
3
|
+
import { TokenInfo } from '../hooks/Token';
|
|
4
|
+
export declare function AddTokenToMetamask({ token, size, sx, children, }: {
|
|
5
|
+
token: TokenInfo;
|
|
6
|
+
size?: 'small' | 'medium';
|
|
7
|
+
sx?: BoxProps['sx'];
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChainId } from '@dodoex/api';
|
|
3
|
+
import { BoxProps } from '@dodoex/components';
|
|
4
|
+
import BigNumber from 'bignumber.js';
|
|
5
|
+
import { TokenInfo } from '../hooks/Token';
|
|
6
|
+
export declare function CardStatus({ isMobile, loading, empty, children, }: React.PropsWithChildren<{
|
|
7
|
+
isMobile: boolean;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
empty: boolean;
|
|
10
|
+
}>): JSX.Element;
|
|
11
|
+
export default function FoldBtn({ show, onClick, }: {
|
|
12
|
+
show: boolean;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
}): JSX.Element;
|
|
15
|
+
export declare function TypeText({ color, type }: {
|
|
16
|
+
color: string;
|
|
17
|
+
type: string;
|
|
18
|
+
}): JSX.Element;
|
|
19
|
+
export declare function StatusAndTime({ isMobile, statusText, statusColor: statusColorProps, time, alphaColor, sx, }: {
|
|
20
|
+
isMobile: boolean;
|
|
21
|
+
statusText: string;
|
|
22
|
+
statusColor: string;
|
|
23
|
+
time?: string;
|
|
24
|
+
alphaColor?: number;
|
|
25
|
+
sx?: BoxProps['sx'];
|
|
26
|
+
}): JSX.Element;
|
|
27
|
+
export declare function ChainName({ chainId }: {
|
|
28
|
+
chainId: ChainId;
|
|
29
|
+
}): JSX.Element | null;
|
|
30
|
+
export declare function TokenAndAmount({ token, amount, showChain, hideLogo, canAddMetamask, sx, }: {
|
|
31
|
+
token: TokenInfo;
|
|
32
|
+
amount: string | BigNumber;
|
|
33
|
+
showChain?: boolean;
|
|
34
|
+
hideLogo?: boolean;
|
|
35
|
+
canAddMetamask?: boolean;
|
|
36
|
+
sx?: BoxProps['sx'];
|
|
37
|
+
}): JSX.Element;
|
|
38
|
+
export declare function TokenPairAndAmount({ baseToken, quoteToken, amount, sx, }: {
|
|
39
|
+
baseToken: TokenInfo;
|
|
40
|
+
quoteToken: TokenInfo;
|
|
41
|
+
amount: BigNumber;
|
|
42
|
+
sx?: BoxProps['sx'];
|
|
43
|
+
}): JSX.Element;
|
|
44
|
+
export declare function TokenPairOrTokenListAndAmount({ baseToken, quoteToken, baseAmount, quoteAmount, sx, }: {
|
|
45
|
+
baseToken: TokenInfo;
|
|
46
|
+
quoteToken: TokenInfo;
|
|
47
|
+
baseAmount: BigNumber;
|
|
48
|
+
quoteAmount: BigNumber | null;
|
|
49
|
+
sx?: BoxProps['sx'];
|
|
50
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '@dodoex/components';
|
|
3
|
+
export default function LoadMore({ height, sx, onClick, hasMore, loading, }: {
|
|
4
|
+
height?: number | string;
|
|
5
|
+
sx?: BoxProps['sx'];
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
hasMore?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
}): JSX.Element | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
size: number;
|
|
5
|
+
color: string;
|
|
6
|
+
time: string;
|
|
7
|
+
strokeWidth?: number | string;
|
|
8
|
+
sx?: BoxProps['sx'];
|
|
9
|
+
}
|
|
10
|
+
declare function Countdown({ size, color, time, strokeWidth, sx }: Props): JSX.Element;
|
|
11
|
+
declare const _default: React.MemoExoticComponent<typeof Countdown>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function Select<V extends string | number = string>({ value, onChange, placeholder, options, sx, readOnly, valueOnlyIcon, }: {
|
|
4
|
+
value: V | undefined;
|
|
5
|
+
onChange: (value: V | undefined) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
options: Array<{
|
|
8
|
+
logo?: React.ReactNode;
|
|
9
|
+
key: V;
|
|
10
|
+
value: string | React.ReactNode;
|
|
11
|
+
}>;
|
|
12
|
+
sx?: BoxProps['sx'];
|
|
13
|
+
buttonSx?: BoxProps['sx'];
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
valueOnlyIcon?: boolean;
|
|
16
|
+
}): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BoxProps } from '@dodoex/components';
|
|
3
|
-
export default function SelectChain({ chainId, setChainId, logoWidth, mobileLogoWidth, mainLogoWidth, mainMobileLogoWidth, notShowAllChain, sx, }: {
|
|
3
|
+
export default function SelectChain({ chainId, setChainId, logoWidth, mobileLogoWidth, mainLogoWidth, mainMobileLogoWidth, notShowAllChain, valueOnlyIcon, sx, }: {
|
|
4
4
|
chainId: number | undefined;
|
|
5
5
|
setChainId: (chainId: number | undefined) => void;
|
|
6
6
|
logoWidth?: number;
|
|
@@ -8,5 +8,6 @@ export default function SelectChain({ chainId, setChainId, logoWidth, mobileLogo
|
|
|
8
8
|
mainLogoWidth?: number;
|
|
9
9
|
mainMobileLogoWidth?: number;
|
|
10
10
|
notShowAllChain?: boolean;
|
|
11
|
+
valueOnlyIcon?: boolean;
|
|
11
12
|
sx?: BoxProps['sx'];
|
|
12
13
|
}): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '@dodoex/components';
|
|
3
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
4
|
+
export declare function PriceWithToggle({ fromToken, toToken, fromTokenPrice, toTokenPrice, sx, children, }: {
|
|
5
|
+
fromToken: TokenInfo;
|
|
6
|
+
toToken: TokenInfo;
|
|
7
|
+
fromTokenPrice: string | null | undefined;
|
|
8
|
+
toTokenPrice: string | null | undefined;
|
|
9
|
+
sx?: BoxProps['sx'];
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MidPathType } from '../../../hooks/useRouteVisionData';
|
|
3
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
4
|
+
export default function RoutingCard({ routing, fromTokenRaw, toTokenRaw, }: {
|
|
5
|
+
routing: MidPathType;
|
|
6
|
+
fromTokenRaw: TokenInfo;
|
|
7
|
+
toTokenRaw: TokenInfo;
|
|
8
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '@dodoex/components';
|
|
3
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
4
|
+
import { MidPathType } from '../../../hooks/useRouteVisionData';
|
|
5
|
+
export declare function Dot({ sx }: {
|
|
6
|
+
sx?: BoxProps['sx'];
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
export declare function Triangle({ sx }: {
|
|
9
|
+
sx?: BoxProps['sx'];
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
export declare function DashedLine({ sx }: {
|
|
12
|
+
sx?: BoxProps['sx'];
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
interface Props {
|
|
15
|
+
routeData: MidPathType[];
|
|
16
|
+
fromTokenRaw: TokenInfo;
|
|
17
|
+
toTokenRaw: TokenInfo;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Path visualization
|
|
21
|
+
*/
|
|
22
|
+
export declare function MobileRoutingVision({ routeData, fromTokenRaw, toTokenRaw, sx, }: Props & {
|
|
23
|
+
sx?: BoxProps['sx'];
|
|
24
|
+
}): JSX.Element;
|
|
25
|
+
export declare function PCRoutingVision({ routeData, fromTokenRaw, toTokenRaw, }: Props): JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { useTradeSwapOrderList } from '../../../hooks/Swap/useTradeSwapOrderList';
|
|
3
|
+
export default function SameOrderCard({ data, isMobile, }: {
|
|
4
|
+
data: ReturnType<typeof useTradeSwapOrderList>['orderList'][0];
|
|
5
|
+
isMobile: boolean;
|
|
6
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { useTradeSwapOrderList } from '../../../hooks/Swap/useTradeSwapOrderList';
|
|
3
|
+
export default function SwapOrderHistory({ swapOrderListQuery: swapOrderListQueryProps, }: {
|
|
4
|
+
swapOrderListQuery?: ReturnType<typeof useTradeSwapOrderList>;
|
|
5
|
+
}): JSX.Element;
|
|
@@ -13,4 +13,6 @@ export interface DialogProps {
|
|
|
13
13
|
height?: number | string;
|
|
14
14
|
testId?: string;
|
|
15
15
|
}
|
|
16
|
-
export default function Dialog({ scope, ...props }: DialogProps
|
|
16
|
+
export default function Dialog({ scope, modal, ...props }: DialogProps & {
|
|
17
|
+
modal?: boolean;
|
|
18
|
+
}): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TokenPickerProps } from '../../../TokenPicker';
|
|
3
3
|
import { DialogProps } from '../Dialog';
|
|
4
|
-
export declare function TokenPickerDialog({ open, title, value, onClose, occupiedAddrs, occupiedChainId, onTokenChange, side, defaultLoadBalance, multiple, searchPlaceholder, searchOtherAddress, chainId, }: {
|
|
4
|
+
export declare function TokenPickerDialog({ open, title, value, onClose, occupiedAddrs, occupiedChainId, onTokenChange, side, defaultLoadBalance, multiple, searchPlaceholder, searchOtherAddress, chainId, modal, }: {
|
|
5
5
|
open: boolean;
|
|
6
6
|
title?: React.ReactNode | string;
|
|
7
7
|
occupiedAddrs?: string[];
|
|
@@ -15,4 +15,5 @@ export declare function TokenPickerDialog({ open, title, value, onClose, occupie
|
|
|
15
15
|
searchPlaceholder?: TokenPickerProps['searchPlaceholder'];
|
|
16
16
|
searchOtherAddress?: TokenPickerProps['searchOtherAddress'];
|
|
17
17
|
chainId?: TokenPickerProps['chainId'];
|
|
18
|
+
modal?: boolean;
|
|
18
19
|
}): JSX.Element;
|
|
@@ -9,6 +9,7 @@ export interface TokenCardProps {
|
|
|
9
9
|
amt: string;
|
|
10
10
|
fiatPriceTxt?: string | React.ReactNode;
|
|
11
11
|
sx?: BoxProps['sx'];
|
|
12
|
+
inputSx?: BoxProps['sx'];
|
|
12
13
|
readOnly?: boolean;
|
|
13
14
|
showMaxBtn?: boolean;
|
|
14
15
|
canClickBalance?: boolean;
|
|
@@ -33,7 +34,8 @@ export interface TokenCardProps {
|
|
|
33
34
|
chainId?: ChainId;
|
|
34
35
|
hideToken?: boolean;
|
|
35
36
|
checkLogBalance?: BalanceData;
|
|
37
|
+
notTokenPickerModal?: boolean;
|
|
36
38
|
}
|
|
37
39
|
export declare function CardPlus(): JSX.Element;
|
|
38
40
|
export declare function CardPlusConnected(): JSX.Element;
|
|
39
|
-
export declare function TokenCard({ sx, amt, token, readOnly, showMaxBtn, canClickBalance, onMaxClick, fiatPriceTxt, occupiedAddrs, occupiedChainId, onInputFocus, onTokenClick, onInputChange, onTokenChange, side, showChainLogo, showChainName, defaultLoadBalance, overrideBalance, overrideBalanceLoading, balanceText, showPercentage, inputReadonlyTooltip, inputTypography, chainId, hideToken, checkLogBalance, }: TokenCardProps): JSX.Element;
|
|
41
|
+
export declare function TokenCard({ sx, inputSx, amt, token, readOnly, showMaxBtn, canClickBalance, onMaxClick, fiatPriceTxt, occupiedAddrs, occupiedChainId, onInputFocus, onTokenClick, onInputChange, onTokenChange, side, showChainLogo, showChainName, defaultLoadBalance, overrideBalance, overrideBalanceLoading, balanceText, showPercentage, inputReadonlyTooltip, inputTypography, chainId, hideToken, checkLogBalance, notTokenPickerModal, }: TokenCardProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '@dodoex/components';
|
|
3
|
+
export default function Table({ sx, children, hasMore, loadMore, loadMoreLoading, ...props }: BoxProps & {
|
|
4
|
+
hasMore?: boolean;
|
|
5
|
+
loadMore?: () => void;
|
|
6
|
+
loadMoreLoading?: boolean;
|
|
7
|
+
}): JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
3
|
import type { TokenInfo } from '../../hooks/Token';
|
|
3
4
|
import { ChainId } from '@dodoex/api';
|
|
4
5
|
export interface TokenPickerProps {
|
|
@@ -20,5 +21,6 @@ export interface TokenPickerProps {
|
|
|
20
21
|
searchPlaceholder?: string;
|
|
21
22
|
/** like search pool address */
|
|
22
23
|
searchOtherAddress?: (address: string) => Promise<JSX.Element | null>;
|
|
24
|
+
sx?: BoxProps['sx'];
|
|
23
25
|
}
|
|
24
|
-
export default function TokenPicker({ chainId, value, onChange, occupiedAddrs, occupiedChainId, hiddenAddrs, showAddrs, visible, side, defaultLoadBalance, multiple, searchPlaceholder, searchOtherAddress, }: TokenPickerProps): JSX.Element;
|
|
26
|
+
export default function TokenPicker({ chainId, value, onChange, occupiedAddrs, occupiedChainId, hiddenAddrs, showAddrs, visible, side, defaultLoadBalance, multiple, searchPlaceholder, searchOtherAddress, sx, }: TokenPickerProps): JSX.Element;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { ContractRequests } from '@dodoex/api';
|
|
2
|
+
import { ContractRequests, GraphQLRequests } from '@dodoex/api';
|
|
3
3
|
import { PaletteMode, ThemeOptions } from '@dodoex/components';
|
|
4
4
|
import { SupportedLang } from '../../constants/locales';
|
|
5
5
|
import { Web3ConnectorsProps } from '../../hooks/ConnectWallet';
|
|
6
6
|
import { InitTokenListProps } from '../../hooks/Token/useInitTokenList';
|
|
7
7
|
import { ExecutionProps } from '../../hooks/Submission';
|
|
8
8
|
import { ChainId } from '@dodoex/api';
|
|
9
|
-
import { DefaultTokenInfo } from '../../hooks/Token/type';
|
|
9
|
+
import { DefaultTokenInfo, TokenInfo } from '../../hooks/Token/type';
|
|
10
10
|
import { APIServices } from '../../constants/api';
|
|
11
|
-
import {
|
|
11
|
+
import { ConfirmProps } from '../Confirm';
|
|
12
|
+
import { DialogProps } from '../Swap/components/Dialog';
|
|
12
13
|
export declare const WIDGET_CLASS_NAME = "dodo-widget-container";
|
|
13
|
-
export interface WidgetProps extends Web3ConnectorsProps, InitTokenListProps, ExecutionProps
|
|
14
|
+
export interface WidgetProps extends Web3ConnectorsProps, InitTokenListProps, ExecutionProps {
|
|
14
15
|
apikey?: string;
|
|
15
16
|
theme?: PartialDeep<ThemeOptions>;
|
|
16
17
|
colorMode?: PaletteMode;
|
|
@@ -29,10 +30,28 @@ export interface WidgetProps extends Web3ConnectorsProps, InitTokenListProps, Ex
|
|
|
29
30
|
noPowerBy?: boolean;
|
|
30
31
|
noDocumentLink?: boolean;
|
|
31
32
|
onlyChainId?: ChainId;
|
|
33
|
+
noUI?: boolean;
|
|
32
34
|
/** When the winding status changes, no pop-up window will be displayed. */
|
|
33
35
|
noSubmissionDialog?: boolean;
|
|
34
36
|
onProviderChanged?: (provider?: any) => void;
|
|
35
|
-
gotoBuyToken?: GlobalFunctionConfig['gotoBuyToken'];
|
|
36
37
|
getStaticJsonRpcProviderByChainId?: Exclude<ConstructorParameters<typeof ContractRequests>[0], undefined>['getProvider'];
|
|
38
|
+
widgetRef?: React.RefObject<HTMLDivElement>;
|
|
39
|
+
/** If true is returned, the default wallet connection logic will not be executed */
|
|
40
|
+
onConnectWalletClick?: () => boolean | Promise<boolean>;
|
|
41
|
+
/** When the token balance is insufficient, users can purchase or swap callbacks */
|
|
42
|
+
gotoBuyToken?: (params: {
|
|
43
|
+
token: TokenInfo;
|
|
44
|
+
account: string;
|
|
45
|
+
}) => void;
|
|
46
|
+
getTokenLogoUrl?: (params: {
|
|
47
|
+
address?: string;
|
|
48
|
+
width?: number;
|
|
49
|
+
height?: number;
|
|
50
|
+
url?: string;
|
|
51
|
+
chainId?: number;
|
|
52
|
+
}) => string;
|
|
53
|
+
graphQLRequests?: GraphQLRequests;
|
|
54
|
+
ConfirmComponent?: React.FunctionComponent<ConfirmProps>;
|
|
55
|
+
DialogComponent?: React.FunctionComponent<DialogProps>;
|
|
37
56
|
}
|
|
38
57
|
export declare function Widget(props: PropsWithChildren<WidgetProps>): JSX.Element;
|
|
@@ -25,9 +25,6 @@ export declare const getRpcSingleUrlMap: (newRpcServerMap?: {
|
|
|
25
25
|
53457: string;
|
|
26
26
|
167000: string;
|
|
27
27
|
};
|
|
28
|
-
export declare const platformIdMap: {
|
|
29
|
-
[key in ChainId]: string;
|
|
30
|
-
};
|
|
31
28
|
export declare const scanUrlDomainMap: {
|
|
32
29
|
[key in ChainId]: string;
|
|
33
30
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i18n as e}from"@lingui/core";import t from"bignumber.js";import{f as i}from"./index-gNVXsNuw.js";function o(t,i){switch(t){case"depth-chart.tips.buy":return e._({id:"q+Q952",message:"Users pay {0} {1} and receive {2} {3}\\nPrice {4} ({5}%)",values:{0:i.amountText,1:i.baseTokenSymbol,2:i.oppositeAmountText,3:i.quoteTokenSymbol,4:i.priceText,5:i.slippageText}});case"depth-chart.tips.mid-price":return e._({id:"cnbRVW",message:"Initial Price {0} {1} = {2} {3}",values:{0:i.amountText,1:i.baseTokenSymbol,2:i.oppositeAmountText,3:i.quoteTokenSymbol}});case"depth-chart.tips.sell":return e._({id:"q+Q952",message:"Users pay {0} {1} and receive {2} {3}\\nPrice {4} ({5}%)",values:{0:i.oppositeAmountText,1:i.quoteTokenSymbol,2:i.amountText,3:i.baseTokenSymbol,4:i.priceText,5:i.slippageText}});case"pool.chart.buy-amount":return e._({id:"TaScUS",message:"Users sell {0} amount:",values:{0:i.symbol}});case"pool.chart.price-impact":return e._({id:"I0LXan",message:"Price Impact: {0}",values:{0:i.amount}});case"pool.chart.sell-amount":return e._({id:"F2vX4t",message:"Users buy {0} amount:",values:{0:i.symbol}});case"pool.create.disabled-token-amount":return e._({id:"5QDjef",message:"The token amount is calculated by initial price."});case"pool.create.set-pool.emulator.title":return e._({id:"FQfStS",message:"Emulator"});case"pool.create.set-pool.emulator.title.question":return e._({id:"9D2g7k",message:"The liquidity of DODO is continuous, which is different from the discrete liquidity of UniV3. The ticks shown in the illustration are for demonstration purposes only."});case"pool.chart.liquidity-chart-tip":return e._({id:"YvXHDU",message:"The area of the chart indicates the buy/sell volume of {0} that can be carried by the market when the current price changes to the hover price.",values:{0:i.baseTokenSymbol}});case"pool.chart.liquidity-chart-buy":return e._({id:"TvH4Ym",message:"Bought {0} {1}, price in the pool decreased to {2}",values:{0:i.amount,1:i.symbol,2:i.price}});case"pool.chart.liquidity-chart-sell":return e._({id:"0O1wzf",message:"Traders sold {0} {1}, price in the pool increased to {2}",values:{0:i.amount,1:i.symbol,2:i.price}});default:throw new Error(`Unknown key ${t}`)}}const l=12,n=18;function s(e){let t=e.toLowerCase();if(t&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)){if(4===t.length){let e="#";for(let i=1;i<4;i+=1)e+=t.slice(i,i+1).concat(t.slice(i,i+1));t=e}const e=[];for(let i=1;i<7;i+=2)e.push(parseInt(`0x${t.slice(i,i+2)}`));return e.join(",")}return t}function r({val:e,model:i}){let o=e;if(e.isNaN())return{side:"no-one",vert:new t(0),base:new t(0),quote:new t(0)};i.Q0.eq(0)&&e.lt(i.i)&&(o=i.i),i.B0.eq(0)&&e.gt(i.i)&&(o=i.i);const l=i.getPriceDepth(o),n=l.baseAmount,s=l.quoteAmount,{isBuy:r}=l;return{side:r?"ask":"bid",vert:r?n:s,base:n,quote:s}}function a({midPrice:e,q:i,q0:o,pmmModel:l}){let n=t.maximum(i,o,l.B.multipliedBy(e));return n.isNaN()&&(n=new t(10)),n.eq(0)&&(n=new t(1)),{buyBaseVert:n.multipliedBy(1.2),sellBaseVert:n.div(e).multipliedBy(1.2)}}function u(e,i=1){return new t(i).div(e/2)}function m({tooltip:e,x:o,chartWidth:l,chartHeight:n,buyBaseVert:a,sellBaseVert:m,pmmModel:p,midPrice:d,baseTokenSymbol:c,quoteTokenSymbol:h,t:b,baseMinAndZoomMultiples:f,isHover:y,color:g,leftColor:T,rightColor:x}){const{zoomMultiples:v,baseMin:w}=f,k=u(l,v),M=a.div(n),B=m.div(n),q=2*v,S=w.multipliedBy(10**k.multipliedBy(o).toNumber());let N=new t(Math.log(d.div(w).toNumber())/Math.log(10));N=t.minimum(q,N),N=t.maximum(0,N);const P=N.div(k),X=r({val:S,model:p,midPrice:d});if(X.vert.isNaN())return;const A=S.lt(d);let _=n-X.vert.div(M).toNumber();A||(_=n-X.vert.div(B).toNumber());const z=i(S),O=i(X.vert),$=S.minus(d).abs().div(d).multipliedBy(100).toFixed(2),D=P.toNumber(),H=e.findOne("#toolTipVertLine"),L=e.findOne("#toolTipHoriLine"),U=e.findOne("#joinCircle"),V=e.findOne("#toolTip"),j=e.findOne("#priceTextLabel"),W=e.findOne("#slippageTextLabel");if(!V)return;V.x(o),V.y(_-5-6);const Y=V.getText(),F=V.getTag();let I="ask"===X.side?i(X.quote):i(X.base);const Q=p.k.lte(0);Q&&(I=O);const C=i(d),Z={amountText:O,baseTokenSymbol:c,oppositeAmountText:I,quoteTokenSymbol:h,priceText:Q?C:z,slippageText:`${A?"-":"+"}${$}`};if(P.minus(4).lte(o)&&P.plus(2).gte(o)&&y)Y.text(b("depth-chart.tips.mid-price",{amountText:1,baseTokenSymbol:c,oppositeAmountText:C,quoteTokenSymbol:h})),V.x(D),V.y(n/2),null==H||H.hide(),null==L||L.hide(),null==U||U.hide(),null==j||j.hide(),null==W||W.hide();else{Y.text(A?b("depth-chart.tips.buy",{amountText:I,baseTokenSymbol:c,oppositeAmountText:O,quoteTokenSymbol:h,priceText:Q?C:z,slippageText:`${A?"-":"+"}${$}`}):b("depth-chart.tips.sell",Z));const e=g||(A?"#55f6db":"#ff4f73"),t=A?T||"#55f6db":x||"#ff4f73";Y.fill(e),V.width()/2>o?(F.pointerDirection("left"),F.pointerHeight(15),F.pointerWidth(8),V.offsetX(-11),V.offsetY(-11)):V.width()/2+o>l?(F.pointerDirection("right"),F.pointerHeight(15),F.pointerWidth(8),V.offsetX(11),V.offsetY(-11)):(F.pointerDirection("down"),F.pointerHeight(8),F.pointerWidth(15),V.offsetX(0),V.offsetY(0)),null==H||H.points([o,n,o,_]),null==H||H.stroke(t),null==L||L.points(A?[o,_,D,_]:[D,_,o,_]),null==L||L.stroke(t),null==U||U.x(o),null==U||U.y(_),null==U||U.fill(A?T||"rgb(86, 246, 218)":x||"#FF5072"),null==U||U.stroke(A?T?`rgba(${s(T)}, 0.4)`:"rgba(86, 246, 218, 0.3)":x?`rgba(${s(x)}, 0.4)`:"rgba(255, 80, 114, 0.3)"),j&&(j.x(o),j.y(n),j.offsetX(j.width()/2),j.x()-j.width()/2<0?j.x(j.width()/2):j.x()+j.width()/2>l?j.x(l-j.width()/2):j.x(o));const i=null==j?void 0:j.findOne("#priceTextLabel-text");i&&(i.fill(e),i.text(z)),W&&(W.x(A?o+(D-o)/2:o-(o-D)/2),W.y(_),W.offsetY(W.height()/2),W.offsetX(W.width()/2));const r=null==W?void 0:W.findOne("#slippageTextLabel-text");r&&(r.fill(e),r.text(`${A?"-":"+"}${$}%`)),null==H||H.show(),null==L||L.show(),null==U||U.show(),null==j||j.show(),null==W||W.show()}e.show()}function p({dragDistance:e,prevBaseMin:i,chartWidth:o,zoomMultiples:l}){const n=u(o,l);return e>0?i.multipliedBy(1-n.multipliedBy(e).toNumber()):i.multipliedBy(10**n.multipliedBy(new t(e).abs()).plus(0).toNumber())}const d=1;function c({prevZoomMultiples:e,zoomIn:t}){return!t&&e<=.1?e:t?e+.1:e-.1}function h({type:e,targetPrice:i,midPrice:o,width:l}){if("sell"===e){return{zoomMultiples:new t(Math.log10(i.div(o).toNumber())).minus(0).div(3/4).abs(),targetX:l/2*(3/4)+l/2}}const n=new t(Math.log10(i.div(o).toNumber()));return{zoomMultiples:new t(0).minus(n).div(3/4).abs(),targetX:l/2*(1/4)}}function b({currentBaseMinAndZoomMultiples:e,targetPrice:i,midPrice:o,width:l}){const{baseMin:n,zoomMultiples:s}=e,r=new t(Math.log10(n.div(o).toNumber())),a=r.plus(2*s),u=new t(o.multipliedBy(10**a.toNumber()));if(i.gte(n)&&i.lte(u)){return{isSkip:!0,targetX:new t(Math.log10(i.div(o).toNumber())).minus(r).div(2*s).multipliedBy(l).toNumber(),baseMin:new t(0),zoomMultiples:1}}const m=new t(o.multipliedBy(.1)),p=new t(o.multipliedBy(10));if(i.gte(m)&&i.lte(p)){return{isSkip:!1,targetX:new t(Math.log10(i.div(o).toNumber())).minus(-1).div(2).multipliedBy(l).toNumber(),baseMin:m,zoomMultiples:1}}return{isSkip:!1,targetX:-1,baseMin:new t(0),zoomMultiples:1}}function f({midPrice:e,zoomMultiples:t}){return e.multipliedBy(10**-t)}export{a,p as b,u as c,c as d,r as e,f,o as g,n as h,d as i,b as j,h as k,l,s as m,m as u};
|