@dhedge/trading-widget 4.4.1 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +115 -106
  2. package/core-kit/abi/limit-order.d.ts +15 -0
  3. package/core-kit/const/logger.d.ts +2 -0
  4. package/core-kit/hooks/trading/limit-order-withdraw/use-is-limit-order-withdraw.d.ts +1 -0
  5. package/core-kit/hooks/trading/limit-order-withdraw/use-is-limit-withdraw-order-approved.d.ts +1 -0
  6. package/core-kit/hooks/trading/limit-order-withdraw/use-limit-order-withdraw-amount.d.ts +2 -0
  7. package/core-kit/hooks/trading/limit-order-withdraw/use-limit-order-withdraw-transaction.d.ts +1 -0
  8. package/core-kit/hooks/trading/limit-order-withdraw/use-limit-withdraw-approve-transaction.d.ts +4 -0
  9. package/core-kit/hooks/trading/trade-handlers/use-handle-limit-order-withdraw.d.ts +10 -0
  10. package/core-kit/types/config.types.d.ts +1 -0
  11. package/core-kit/types/trading-panel.types.d.ts +1 -1
  12. package/index.cjs +10 -10
  13. package/index.d.ts +2 -2
  14. package/index.js +6696 -6382
  15. package/limit-orders/constants.d.ts +1 -0
  16. package/limit-orders/hooks/use-user-limit-order.d.ts +15 -0
  17. package/limit-orders/index.d.ts +3 -0
  18. package/package.json +1 -1
  19. package/style.css +1 -1
  20. package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +1 -0
  21. package/trading-widget/components/widget/widget-meta/index.d.ts +1 -1
  22. package/trading-widget/components/widget/widget-overlay/index.d.ts +1 -0
  23. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-approve-button/limit-order-withdraw-approve-button.d.ts +2 -0
  24. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-approve-button/limit-order-withdraw-approve-button.hooks.d.ts +5 -0
  25. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-button/limit-order-withdraw-button.d.ts +6 -0
  26. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-button/limit-order-withdraw-button.hooks.d.ts +5 -0
  27. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-overlay.d.ts +3 -0
  28. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-terms-content.d.ts +6 -0
  29. package/trading-widget/components/widget/widget-overlay/pool-select-overlay/pool-select-overlay.hooks.d.ts +1 -0
  30. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-overlay.hooks.d.ts +1 -0
  31. package/trading-widget/components/widget/widget-overlay/trading-overlay/withdrawals/limit-order-withdrawal-overlay.d.ts +3 -0
  32. package/trading-widget/components/widget/widget-overlay/trading-overlay/withdrawals/limit-order-withdrawal-overlay.hooks.d.ts +6 -0
  33. package/trading-widget/components/withdraw/init-step/button/limit-order-withdraw-button/limit-order-withdraw-button.d.ts +2 -0
  34. package/trading-widget/components/withdraw/init-step/button/limit-order-withdraw-button/limit-order-withdraw-button.hooks.d.ts +4 -0
  35. package/trading-widget/components/withdraw/init-step/button/valid-init-withdraw-button/valid-init-withdraw-button.hooks.d.ts +2 -0
  36. package/trading-widget/providers/component-provider/component-provider.d.ts +1 -0
  37. package/trading-widget/providers/component-provider/component-provider.hooks.d.ts +1 -0
  38. package/trading-widget/providers/component-provider/component-provider.types.d.ts +1 -0
  39. package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +9 -0
  40. package/trading-widget/types/overlay.types.d.ts +1 -0
package/README.md CHANGED
@@ -483,112 +483,121 @@ path: `component.meta[name]`
483
483
  <code>Translation keys</code>
484
484
  </summary>|
485
485
 
486
- > | name | type | default value | description |
487
- > | ----------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
488
- > | `depositSlippageWarning` | string | Excludes entry fee. | |
489
- > | `withdrawSlippageWarning` | string | Slippage only applies to single asset withdrawals and withdrawals from vaults with debt positions in Aave. | |
490
- > | `minSlippageWarning` | string | Flexible min slippage value that is likely enough to process the transaction. | |
491
- > | `highSlippageWarning` | string | We recommend using another asset to trade with lower slippage. | |
492
- > | `recommendedMinSlippage` | string | Recommended Min Slippage | |
493
- > | `projectedDailyEarningsTooltip` | string | Projected daily earnings are based on the current APY and may differ from actual earnings. | |
494
- > | `dailyEarnings` | string | Daily Earnings | |
495
- > | `projectedYearlyEarningsTooltip` | string | Projected yearly earnings are based on the current APY and may differ from actual earnings. | |
496
- > | `yearlyEarnings` | string | Yearly Earnings | |
497
- > | `fullReceiveDetails` | string | See full details influencing what you will receive. | |
498
- > | `tradeDetails` | string | Trade details | |
499
- > | `maxSlippage` | string | Max slippage | |
500
- > | `minReceiveAmount` | string | You will receive no less than this amount. | |
501
- > | `minReceived` | string | Minimum Received | |
502
- > | `estimatedMultiAssetFractions` | string | Estimated multi asset fractions | |
503
- > | `infinite` | string | Infinite | |
504
- > | `tokenAllowance` | string | Token Allowance | |
505
- > | `entryFee` | string | Entry Fee | |
506
- > | `entryFeeExplanation` | string | When you deposit, the token takes a small entry fee. This fee helps cover the costs when we rebalance the underlying funds, and it's shared among all token holders. | |
507
- > | `minDepositUsd` | string | Minimum deposit in USD. | |
508
- > | `minDeposit` | string | Minimum Deposit | |
509
- > | `tokensLockTime` | string | Purchased tokens will have a {lockTime} lock. | |
510
- > | `slippageTolerance` | string | Slippage tolerance | |
511
- > | `bypassEntryFee` | string | Bypass Entry Fee | |
512
- > | `tokenAmountToApprove` | string | Amount of tokens to be approved. | |
513
- > | `auto` | string | Auto | |
514
- > | `lengthenLockup` | string | Lengthen lockup to remove entry fee | |
515
- > | `deposit` | string | Buy | |
516
- > | `withdraw` | string | Sell | |
517
- > | `max` | string | Max | |
518
- > | `allAssets` | string | All Assets | |
519
- > | `all` | string | All | |
520
- > | `sell` | string | Sell | |
521
- > | `receiveEstimated` | string | Receive (estimated) | |
522
- > | `confirmInWallet` | string | Please confirm in wallet | |
523
- > | `pending` | string | Pending... | |
524
- > | `approve` | string | Approve | |
525
- > | `connectWallet` | string | Connect Wallet | |
526
- > | `minimumPurchase` | string | Minimum purchase is {value} | |
527
- > | `poolIsInactive` | string | {poolSymbol} token is no longer active. Please withdraw from them. | |
528
- > | `poolDepositsAreMaintenance` | string | {poolSymbol} token is under maintenance. Deposits are temporarily blocked. | |
529
- > | `poolWithdrawalsAreMaintenance` | string | {poolSymbol} token is under maintenance. Withdrawals are temporarily blocked. | |
530
- > | `poolIsPrivate` | string | This vault is currently private | |
531
- > | `confirmMaxSlippage` | string | Confirm {slippagePercentage}% max slippage | |
532
- > | `withdrawalLiquidityDisabled` | string | Intended withdraw value is greater than available liquidity ({value}) | |
533
- > | `withdrawCooldown` | string | You can sell your {tokenSymbol} tokens in {cooldownEndTime} | |
534
- > | `termsOfUse` | string | Terms Of Use | |
535
- > | `termOfUseDepositListTitle` | string | Please know the following before depositing | |
536
- > | `termOfUseDepositAssetSlippage` | string | When exiting, investors receive single asset or the underlying vault assets. Withdraw slippage can be customized in withdraw settings | |
537
- > | `termOfUseDepositBugs` | string | There may be interface bugs on the platform | |
538
- > | `termOfUseDepositDowntime` | string | There may be interface downtime (planned and unplanned) | |
539
- > | `termOfUseDepositAuditRisk` | string | Smart contracts are audited but a risk is still present | |
540
- > | `termOfUseDepositAccept` | string | Accept & Deposit | |
541
- > | `back` | string | Back | |
542
- > | `done` | string | Done | |
543
- > | `highSlippage` | string | High Slippage Alert | |
544
- > | `responsibleHighSlippage` | string | By proceeding with this trade, you acknowledge and accept the possibility of experiencing high slippage, resulting in a potential difference between the expected and executed price. | |
545
- > | `highSlippageListTitle` | string | Please consider the following before confirming | |
546
- > | `highSlippageQuoteDiff` | string | Be aware that the final amount of assets you receive may be different from the initially quoted value. | |
547
- > | `highSlippageRisk` | string | Ensure that you understand the risks associated with high slippage and are comfortable proceeding with the trade. | |
548
- > | `confirm` | string | Confirm | |
549
- > | `selectToken` | string | Select Token | |
550
- > | `sendingOrderToWallet` | string | Sending order to your wallet | |
551
- > | `settingUpTx` | string | Setting up transaction | |
552
- > | `miningTx` | string | Processing | |
553
- > | `approveSpending` | string | Approve {symbol} spending | |
554
- > | `pay` | string | Pay | |
555
- > | `multiAssetFractions` | string | multi asset fractions | |
556
- > | `swappableAssets` | string | swappable assets | |
557
- > | `explorer` | string | Explorer | |
558
- > | `as` | string | As | |
559
- > | `switchNetwork` | string | Switch Network | |
560
- > | `depositAction` | string | Buy | |
561
- > | `withdrawAction` | string | Sell | |
562
- > | `swapAction` | string | Swap | |
563
- > | `unrollAction` | string | Unroll | |
564
- > | `unrollAndClaimAction` | string | Claim | |
565
- > | `claimAction` | string | Claim Without Swap | |
566
- > | `claimLabel` | string | Claim Assets | |
567
- > | `createLimitSellOrder` | string | Stop order set | |
568
- > | `swapAndClaimTo` | string | Swap and claim assets to | |
569
- > | `initWithdrawDescription` | string | Unroll | |
570
- > | `initWithdrawTooltip` | string | Unroll prepares assets for single asset withdrawal | |
571
- > | `completeWithdrawDescription` | string | Claim | |
572
- > | `completeWithdrawTooltip` | string | This final step swaps all assets to a single asset and sends it to your wallet | |
573
- > | `unrollAndClaimDescription` | string | Claim | |
574
- > | `total` | string | Total: | |
575
- > | `showAll` | string | Show All | |
576
- > | `hide` | string | Hide | |
577
- > | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
578
- > | `proceedWithNextStep` | string | Please proceed with the next step. | |
579
- > | `aggregatorsLabel` | string | Swap source | |
580
- > | `aggregatorsTooltip` | string | Choose which aggregators to use for your trades. | |
581
- > | `batchTransactionsLabel` | string | Batch transactions | |
582
- > | `batchTransactionsSwitchLabel` | string | Batch | |
583
- > | `batchTransactionsTooltip` | string | Group approve and trade calls into a single batch transaction. Disable if you prefer separate prompts. | |
584
- > | `openLimitOrderAfterBuySwitchLabel` | string | Add Stop Order | |
585
- > | `orderingLabel` | string | Ordering | |
586
- > | `paidLabel` | string | Paid | |
587
- > | `priceLabel` | string | Price | |
588
- > | `transactionLabel` | string | Transaction | |
589
- > | `stopOrder` | string | Stop Order | |
590
- > | `send` | string | Send | |
591
- > | `cooldown` | string | Cooldown | |
486
+ > | name | type | default value | description |
487
+ > | ----------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
488
+ > | `depositSlippageWarning` | string | Excludes entry fee. | |
489
+ > | `withdrawSlippageWarning` | string | Slippage only applies to single asset withdrawals and withdrawals from vaults with debt positions in Aave. | |
490
+ > | `minSlippageWarning` | string | Flexible min slippage value that is likely enough to process the transaction. | |
491
+ > | `highSlippageWarning` | string | We recommend using another asset to trade with lower slippage. | |
492
+ > | `recommendedMinSlippage` | string | Recommended Min Slippage | |
493
+ > | `projectedDailyEarningsTooltip` | string | Projected daily earnings are based on the current APY and may differ from actual earnings. | |
494
+ > | `dailyEarnings` | string | Daily Earnings | |
495
+ > | `projectedYearlyEarningsTooltip` | string | Projected yearly earnings are based on the current APY and may differ from actual earnings. | |
496
+ > | `yearlyEarnings` | string | Yearly Earnings | |
497
+ > | `fullReceiveDetails` | string | See full details influencing what you will receive. | |
498
+ > | `tradeDetails` | string | Trade details | |
499
+ > | `maxSlippage` | string | Max slippage | |
500
+ > | `minReceiveAmount` | string | You will receive no less than this amount. | |
501
+ > | `minReceived` | string | Minimum Received | |
502
+ > | `estimatedMultiAssetFractions` | string | Estimated multi asset fractions | |
503
+ > | `infinite` | string | Infinite | |
504
+ > | `tokenAllowance` | string | Token Allowance | |
505
+ > | `entryFee` | string | Entry Fee | |
506
+ > | `entryFeeExplanation` | string | When you deposit, the token takes a small entry fee. This fee helps cover the costs when we rebalance the underlying funds, and it's shared among all token holders. | |
507
+ > | `minDepositUsd` | string | Minimum deposit in USD. | |
508
+ > | `minDeposit` | string | Minimum Deposit | |
509
+ > | `tokensLockTime` | string | Purchased tokens will have a {lockTime} lock. | |
510
+ > | `slippageTolerance` | string | Slippage tolerance | |
511
+ > | `bypassEntryFee` | string | Bypass Entry Fee | |
512
+ > | `tokenAmountToApprove` | string | Amount of tokens to be approved. | |
513
+ > | `auto` | string | Auto | |
514
+ > | `lengthenLockup` | string | Lengthen lockup to remove entry fee | |
515
+ > | `deposit` | string | Buy | |
516
+ > | `withdraw` | string | Sell | |
517
+ > | `max` | string | Max | |
518
+ > | `allAssets` | string | All Assets | |
519
+ > | `all` | string | All | |
520
+ > | `sell` | string | Sell | |
521
+ > | `receiveEstimated` | string | Receive (estimated) | |
522
+ > | `confirmInWallet` | string | Please confirm in wallet | |
523
+ > | `pending` | string | Pending... | |
524
+ > | `approve` | string | Approve | |
525
+ > | `connectWallet` | string | Connect Wallet | |
526
+ > | `minimumPurchase` | string | Minimum purchase is {value} | |
527
+ > | `poolIsInactive` | string | {poolSymbol} token is no longer active. Please withdraw from them. | |
528
+ > | `poolDepositsAreMaintenance` | string | {poolSymbol} token is under maintenance. Deposits are temporarily blocked. | |
529
+ > | `poolWithdrawalsAreMaintenance` | string | {poolSymbol} token is under maintenance. Withdrawals are temporarily blocked. | |
530
+ > | `poolIsPrivate` | string | This vault is currently private | |
531
+ > | `confirmMaxSlippage` | string | Confirm {slippagePercentage}% max slippage | |
532
+ > | `withdrawalLiquidityDisabled` | string | Intended withdraw value is greater than available liquidity ({value}) | |
533
+ > | `withdrawCooldown` | string | You can sell your {tokenSymbol} tokens in {cooldownEndTime} | |
534
+ > | `termsOfUse` | string | Terms Of Use | |
535
+ > | `termOfUseDepositListTitle` | string | Please know the following before depositing | |
536
+ > | `termOfUseDepositAssetSlippage` | string | When exiting, investors receive single asset or the underlying vault assets. Withdraw slippage can be customized in withdraw settings | |
537
+ > | `termOfUseDepositBugs` | string | There may be interface bugs on the platform | |
538
+ > | `termOfUseDepositDowntime` | string | There may be interface downtime (planned and unplanned) | |
539
+ > | `termOfUseDepositAuditRisk` | string | Smart contracts are audited but a risk is still present | |
540
+ > | `termOfUseDepositAccept` | string | Accept & Deposit | |
541
+ > | `back` | string | Back | |
542
+ > | `done` | string | Done | |
543
+ > | `termOfUseWithdrawAcceptLabel` | string | I understand and accept the withdraw terms | |
544
+ > | `termOfUseWithdrawPoint1` | string | Withdrawal requests are intended to settle in USDC. In rare cases where market conditions or high slippage prevent a USDC swap, the order may be settled in the underlying tokens of the respective vault. | |
545
+ > | `termOfUseWithdrawPoint2` | string | Revoking token approval after placing an order will prevent the order from being executed. | |
546
+ > | `highSlippage` | string | High Slippage Alert | |
547
+ > | `responsibleHighSlippage` | string | By proceeding with this trade, you acknowledge and accept the possibility of experiencing high slippage, resulting in a potential difference between the expected and executed price. | |
548
+ > | `highSlippageListTitle` | string | Please consider the following before confirming | |
549
+ > | `highSlippageQuoteDiff` | string | Be aware that the final amount of assets you receive may be different from the initially quoted value. | |
550
+ > | `highSlippageRisk` | string | Ensure that you understand the risks associated with high slippage and are comfortable proceeding with the trade. | |
551
+ > | `confirm` | string | Confirm | |
552
+ > | `selectToken` | string | Select Token | |
553
+ > | `sendingOrderToWallet` | string | Sending order to your wallet | |
554
+ > | `settingUpTx` | string | Setting up transaction | |
555
+ > | `miningTx` | string | Processing | |
556
+ > | `approveSpending` | string | Approve {symbol} spending | |
557
+ > | `pay` | string | Pay | |
558
+ > | `multiAssetFractions` | string | multi asset fractions | |
559
+ > | `swappableAssets` | string | swappable assets | |
560
+ > | `explorer` | string | Explorer | |
561
+ > | `as` | string | As | |
562
+ > | `switchNetwork` | string | Switch Network | |
563
+ > | `depositAction` | string | Buy | |
564
+ > | `withdrawAction` | string | Sell | |
565
+ > | `swapAction` | string | Swap | |
566
+ > | `unrollAction` | string | Unroll | |
567
+ > | `unrollAndClaimAction` | string | Claim | |
568
+ > | `claimAction` | string | Claim Without Swap | |
569
+ > | `claimLabel` | string | Claim Assets | |
570
+ > | `createLimitSellOrder` | string | Stop order set | |
571
+ > | `swapAndClaimTo` | string | Swap and claim assets to | |
572
+ > | `initWithdrawDescription` | string | Unroll | |
573
+ > | `initWithdrawTooltip` | string | Unroll prepares assets for single asset withdrawal | |
574
+ > | `completeWithdrawDescription` | string | Claim | |
575
+ > | `completeWithdrawTooltip` | string | This final step swaps all assets to a single asset and sends it to your wallet | |
576
+ > | `unrollAndClaimDescription` | string | Claim | |
577
+ > | `limitOrderWithdrawDescription` | string | You are about to create a withdrawal request. Your vault tokens will be withdrawn within a few minutes. | |
578
+ > | `total` | string | Total: | |
579
+ > | `showAll` | string | Show All | |
580
+ > | `hide` | string | Hide | |
581
+ > | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
582
+ > | `proceedWithNextStep` | string | Please proceed with the next step. | |
583
+ > | `aggregatorsLabel` | string | Swap source | |
584
+ > | `aggregatorsTooltip` | string | Choose which aggregators to use for your trades. | |
585
+ > | `batchTransactionsLabel` | string | Batch transactions | |
586
+ > | `batchTransactionsSwitchLabel` | string | Batch | |
587
+ > | `batchTransactionsTooltip` | string | Group approve and trade calls into a single batch transaction. Disable if you prefer separate prompts. | |
588
+ > | `openLimitOrderAfterBuySwitchLabel` | string | Add Stop Order | |
589
+ > | `orderingLabel` | string | Ordering | |
590
+ > | `paidLabel` | string | Paid | |
591
+ > | `priceLabel` | string | Price | |
592
+ > | `transactionLabel` | string | Transaction | |
593
+ > | `stopOrder` | string | Stop Order | |
594
+ > | `send` | string | Send | |
595
+ > | `cooldown` | string | Cooldown | |
596
+ > | `delete` | string | Delete | |
597
+ > | `withdrawalRequest` | string | Withdrawal request | |
598
+ > | `deleteWithdrawalRequest` | string | Delete withdrawal request | |
599
+ > | `insufficientBalance` | string | Insufficient Balance | |
600
+ > | `expectToReceiveUsdcSoon` | string | Expect to receive your USDC over the next few minutes | |
592
601
 
593
602
  ###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
594
603
 
@@ -205,6 +205,21 @@ export declare const LimitOrderAbi: readonly [{
205
205
  }];
206
206
  readonly name: "LimitOrderModified";
207
207
  readonly type: "event";
208
+ }, {
209
+ readonly anonymous: false;
210
+ readonly inputs: readonly [{
211
+ readonly indexed: true;
212
+ readonly internalType: "address";
213
+ readonly name: "user";
214
+ readonly type: "address";
215
+ }, {
216
+ readonly indexed: false;
217
+ readonly internalType: "uint256";
218
+ readonly name: "destTokenAmountReceived";
219
+ readonly type: "uint256";
220
+ }];
221
+ readonly name: "SettlementOrderExecuted";
222
+ readonly type: "event";
208
223
  }, {
209
224
  readonly inputs: readonly [];
210
225
  readonly name: "SLIPPAGE_DENOMINATOR";
@@ -14,6 +14,8 @@ export declare const TRADING_PANEL_LOG_EVENT: {
14
14
  BATCH_TRANSACTIONS_CHANGE: string;
15
15
  CREATE_LIMIT_SELL_ORDER: string;
16
16
  OPEN_LIMIT_SELL_VIEW: string;
17
+ LIMIT_ORDER_WITHDRAW: string;
18
+ LIMIT_ORDER_WITHDRAW_DELETE: string;
17
19
  };
18
20
  export declare const LOG_EVENT_BY_TRANSACTION_ACTION_MAP: Record<TransactionAction, string[]>;
19
21
  /**
@@ -0,0 +1 @@
1
+ export declare const useIsLimitOrderWithdraw: () => boolean;
@@ -0,0 +1 @@
1
+ export declare const useIsLimitWithdrawOrderApproved: () => boolean;
@@ -0,0 +1,2 @@
1
+ import BigNumber from 'bignumber.js';
2
+ export declare const useLimitOrderWithdrawAmount: () => BigNumber;
@@ -0,0 +1 @@
1
+ export declare const useLimitOrderWithdrawTransaction: (txCallback: () => void) => () => Promise<void>;
@@ -0,0 +1,4 @@
1
+ export declare const useLimitWithdrawApproveTransaction: () => {
2
+ approveLimitOrder: () => Promise<void>;
3
+ isApprovePending: boolean;
4
+ };
@@ -0,0 +1,10 @@
1
+ import type { ContractActionFunc } from '../../../types/web3.types';
2
+ interface UseHandleLimitOrderWithdrawProps {
3
+ limitOrderHandler: ContractActionFunc;
4
+ action: 'limit_order_withdraw' | 'delete_limit_order_withdraw';
5
+ }
6
+ export declare const useHandleLimitOrderWithdraw: ({ limitOrderHandler, action, }: UseHandleLimitOrderWithdrawProps) => {
7
+ label: string;
8
+ handleLimitOrderWithdraw: () => Promise<void>;
9
+ };
10
+ export {};
@@ -22,6 +22,7 @@ export interface PoolConfig {
22
22
  maintenanceDeposits?: boolean;
23
23
  maintenanceWithdrawals?: boolean;
24
24
  pricingAsset?: PricingAsset;
25
+ onDemandWithdrawalEnabled?: boolean;
25
26
  }
26
27
  export interface PoolFallbackData {
27
28
  address: Address;
@@ -28,7 +28,7 @@ type RemoveTransaction = {
28
28
  } & Partial<PendingTransaction>;
29
29
  export type UpdateTransactionsArguments = AddTransaction | UpdateTransaction | RemoveTransaction;
30
30
  export type TradingPanelType = 'deposit' | 'withdraw';
31
- export type TransactionAction = 'deposit' | 'multi_withdraw' | 'single_withdraw' | 'approve' | 'swap' | 'claim' | 'single_withdraw_and_claim' | 'create_limit_sell_order';
31
+ export type TransactionAction = 'deposit' | 'multi_withdraw' | 'single_withdraw' | 'approve' | 'swap' | 'claim' | 'single_withdraw_and_claim' | 'create_limit_sell_order' | 'limit_order_withdraw' | 'delete_limit_order_withdraw';
32
32
  export type SwapEntity = 'token' | 'pool';
33
33
  export interface TokenSelectorPayload {
34
34
  isOpen: boolean;