@dhedge/trading-widget 3.2.1 → 3.2.3

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/README.md CHANGED
@@ -243,6 +243,14 @@ path: `global.style[name]`
243
243
 
244
244
  ##### component
245
245
 
246
+ ###### notification
247
+
248
+ path: `component.notification[name]`
249
+
250
+ > | name | type | default value | description |
251
+ > | --------------- | ------ | ---------------------------------------------------- | --------------------- |
252
+ > | `color.colorBg` | string | `config?.global?.color?.colorBgSecondary ?? #2B313E` | Notification bg color |
253
+
246
254
  ###### popup
247
255
 
248
256
  path: `component.popup[name]`
@@ -427,102 +435,102 @@ path: `component.meta[name]`
427
435
  <code>Translation keys</code>
428
436
  </summary>|
429
437
 
430
- > | name | type | default value | description |
431
- > | -------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
432
- > | `depositSlippageWarning` | string | Excludes entry fee. Slippage may be amplified by the leverage. See the docs for more info. | |
433
- > | `withdrawSlippageWarning` | string | Slippage only applies to single asset withdrawals and withdrawals from vaults with debt positions in Aave. | |
434
- > | `minSlippageWarning` | string | Flexible min slippage value that is likely enough to process the transaction. | |
435
- > | `highSlippageWarning` | string | We recommend using another asset to trade with lower slippage. | |
436
- > | `recommendedMinSlippage` | string | Recommended Min Slippage | |
437
- > | `projectedDailyEarningsTooltip` | string | Projected daily earnings are based on the current APY and may differ from actual earnings. | |
438
- > | `dailyEarnings` | string | Daily Earnings | |
439
- > | `projectedYearlyEarningsTooltip` | string | Projected yearly earnings are based on the current APY and may differ from actual earnings. | |
440
- > | `yearlyEarnings` | string | Yearly Earnings | |
441
- > | `fullReceiveDetails` | string | See full details influencing what you will receive. | |
442
- > | `tradeDetails` | string | Trade details | |
443
- > | `maxSlippage` | string | Max slippage | |
444
- > | `minReceiveAmount` | string | You will receive no less than this amount. | |
445
- > | `minReceived` | string | Minimum Received | |
446
- > | `estimatedMultiAssetFractions` | string | Estimated multi asset fractions | |
447
- > | `infinite` | string | Infinite | |
448
- > | `tokenAllowance` | string | Token Allowance | |
449
- > | `entryFee` | string | Entry Fee | |
450
- > | `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. | |
451
- > | `minDepositUsd` | string | Minimum deposit in USD. | |
452
- > | `minDeposit` | string | Minimum Deposit | |
453
- > | `tokensLockTime` | string | Purchased tokens will have a {lockTime} lock. | |
454
- > | `slippageTolerance` | string | Slippage tolerance | |
455
- > | `bypassEntryFee` | string | Bypass Entry Fee | |
456
- > | `tokenAmountToApprove` | string | Amount of tokens to be approved. | |
457
- > | `auto` | string | Auto | |
458
- > | `lengthenLockup` | string | Lengthen lockup to remove entry fee | |
459
- > | `deposit` | string | Buy | |
460
- > | `withdraw` | string | Sell | |
461
- > | `yourBalance` | string | Your Balance | |
462
- > | `max` | string | Max | |
463
- > | `allAssets` | string | All Assets | |
464
- > | `all` | string | All | |
465
- > | `payWith` | string | Pay with | |
466
- > | `buyEstimated` | string | Buy (estimated) | |
467
- > | `sell` | string | Sell | |
468
- > | `receiveEstimated` | string | Receive (estimated) | |
469
- > | `confirmInWallet` | string | Please confirm in wallet | |
470
- > | `pending` | string | Pending... | |
471
- > | `approve` | string | Approve | |
472
- > | `connectWallet` | string | Connect Wallet | |
473
- > | `minimumPurchase` | string | Minimum purchase is ${value} | |
474
- > | `poolIsInactive` | string | {poolSymbol} token is no longer active. Please withdraw from them. | |
475
- > | `poolIsPrivate` | string | This vault is currently private | |
476
- > | `updateOracles` | string | Update Oracles | |
477
- > | `checkingOracles` | string | Checking Oracles | |
478
- > | `confirmMaxSlippage` | string | Confirm {slippagePercentage}% max slippage | |
479
- > | `withdrawalWindowDisabled` | string | You can sell your {tokenSymbol} tokens during withdrawal window period starting from {startTime} | |
480
- > | `withdrawalLiquidityDisabled` | string | Intended withdraw value is greater than available liquidity ({symbol} {value}) | |
481
- > | `withdrawCooldown` | string | You can sell your {tokenSymbol} tokens in {cooldownEndTime} | |
482
- > | `termsOfUse` | string | Terms Of Use | |
483
- > | `termOfUseDepositListTitle` | string | Please know the following before depositing | |
484
- > | `termOfUseDepositAssetSlippage` | string | When exiting, investors receive single asset or the underlying vault assets. Withdraw slippage can be customized in withdraw settings | |
485
- > | `termOfUseDepositBugs` | string | There may be interface bugs on the platform | |
486
- > | `termOfUseDepositDowntime` | string | There may be interface downtime (planned and unplanned) | |
487
- > | `termOfUseDepositAuditRisk` | string | Smart contracts are audited but a risk is still present | |
488
- > | `termOfUseDepositAccept` | string | Accept & Deposit | |
489
- > | `back` | string | Back | |
490
- > | `highSlippage` | string | High Slippage Alert | |
438
+ > | name | type | default value | description |
439
+ > | -------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
440
+ > | `depositSlippageWarning` | string | Excludes entry fee. Slippage may be amplified by the leverage. See the docs for more info. | |
441
+ > | `withdrawSlippageWarning` | string | Slippage only applies to single asset withdrawals and withdrawals from vaults with debt positions in Aave. | |
442
+ > | `minSlippageWarning` | string | Flexible min slippage value that is likely enough to process the transaction. | |
443
+ > | `highSlippageWarning` | string | We recommend using another asset to trade with lower slippage. | |
444
+ > | `recommendedMinSlippage` | string | Recommended Min Slippage | |
445
+ > | `projectedDailyEarningsTooltip` | string | Projected daily earnings are based on the current APY and may differ from actual earnings. | |
446
+ > | `dailyEarnings` | string | Daily Earnings | |
447
+ > | `projectedYearlyEarningsTooltip` | string | Projected yearly earnings are based on the current APY and may differ from actual earnings. | |
448
+ > | `yearlyEarnings` | string | Yearly Earnings | |
449
+ > | `fullReceiveDetails` | string | See full details influencing what you will receive. | |
450
+ > | `tradeDetails` | string | Trade details | |
451
+ > | `maxSlippage` | string | Max slippage | |
452
+ > | `minReceiveAmount` | string | You will receive no less than this amount. | |
453
+ > | `minReceived` | string | Minimum Received | |
454
+ > | `estimatedMultiAssetFractions` | string | Estimated multi asset fractions | |
455
+ > | `infinite` | string | Infinite | |
456
+ > | `tokenAllowance` | string | Token Allowance | |
457
+ > | `entryFee` | string | Entry Fee | |
458
+ > | `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. | |
459
+ > | `minDepositUsd` | string | Minimum deposit in USD. | |
460
+ > | `minDeposit` | string | Minimum Deposit | |
461
+ > | `tokensLockTime` | string | Purchased tokens will have a {lockTime} lock. | |
462
+ > | `slippageTolerance` | string | Slippage tolerance | |
463
+ > | `bypassEntryFee` | string | Bypass Entry Fee | |
464
+ > | `tokenAmountToApprove` | string | Amount of tokens to be approved. | |
465
+ > | `auto` | string | Auto | |
466
+ > | `lengthenLockup` | string | Lengthen lockup to remove entry fee | |
467
+ > | `deposit` | string | Buy | |
468
+ > | `withdraw` | string | Sell | |
469
+ > | `yourBalance` | string | Your Balance | |
470
+ > | `max` | string | Max | |
471
+ > | `allAssets` | string | All Assets | |
472
+ > | `all` | string | All | |
473
+ > | `payWith` | string | Pay with | |
474
+ > | `buyEstimated` | string | Buy (estimated) | |
475
+ > | `sell` | string | Sell | |
476
+ > | `receiveEstimated` | string | Receive (estimated) | |
477
+ > | `confirmInWallet` | string | Please confirm in wallet | |
478
+ > | `pending` | string | Pending... | |
479
+ > | `approve` | string | Approve | |
480
+ > | `connectWallet` | string | Connect Wallet | |
481
+ > | `minimumPurchase` | string | Minimum purchase is ${value} | |
482
+ > | `poolIsInactive` | string | {poolSymbol} token is no longer active. Please withdraw from them. | |
483
+ > | `poolIsPrivate` | string | This vault is currently private | |
484
+ > | `updateOracles` | string | Update Oracles | |
485
+ > | `checkingOracles` | string | Checking Oracles | |
486
+ > | `confirmMaxSlippage` | string | Confirm {slippagePercentage}% max slippage | |
487
+ > | `withdrawalWindowDisabled` | string | You can sell your {tokenSymbol} tokens during withdrawal window period starting from {startTime} | |
488
+ > | `withdrawalLiquidityDisabled` | string | Intended withdraw value is greater than available liquidity ({symbol} {value}) | |
489
+ > | `withdrawCooldown` | string | You can sell your {tokenSymbol} tokens in {cooldownEndTime} | |
490
+ > | `termsOfUse` | string | Terms Of Use | |
491
+ > | `termOfUseDepositListTitle` | string | Please know the following before depositing | |
492
+ > | `termOfUseDepositAssetSlippage` | string | When exiting, investors receive single asset or the underlying vault assets. Withdraw slippage can be customized in withdraw settings | |
493
+ > | `termOfUseDepositBugs` | string | There may be interface bugs on the platform | |
494
+ > | `termOfUseDepositDowntime` | string | There may be interface downtime (planned and unplanned) | |
495
+ > | `termOfUseDepositAuditRisk` | string | Smart contracts are audited but a risk is still present | |
496
+ > | `termOfUseDepositAccept` | string | Accept & Deposit | |
497
+ > | `back` | string | Back | |
498
+ > | `highSlippage` | string | High Slippage Alert | |
491
499
  > | `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. | |
492
- > | `highSlippageListTitle` | string | Please consider the following before confirming | |
493
- > | `highSlippageQuoteDiff` | string | Be aware that the final amount of assets you receive may be different from the initially quoted value. | |
494
- > | `highSlippageRisk` | string | Ensure that you understand the risks associated with high slippage and are comfortable proceeding with the trade. | |
495
- > | `confirm` | string | Confirm | |
496
- > | `selectToken` | string | Select Token | |
497
- > | `sendingOrderToWallet` | string | Sending order to your wallet | |
498
- > | `settingUpTx` | string | Setting up transaction | |
499
- > | `miningTx` | string | Processing | |
500
- > | `updateSynthetixOracles` | string | Updating Synthetix Oracles | |
501
- > | `approveSpending` | string | Approve {symbol} spending | |
502
- > | `pay` | string | Pay | |
503
- > | `multiAssetFractions` | string | multi asset fractions | |
504
- > | `swappableAssets` | string | swappable assets | |
505
- > | `explorer` | string | Explorer | |
506
- > | `as` | string | As | |
507
- > | `switchNetwork` | string | Switch Network | |
508
- > | `depositAction` | string | Buy | |
509
- > | `withdrawAction` | string | Sell | |
510
- > | `swapAction` | string | Swap | |
511
- > | `unrollAction` | string | Unroll | |
512
- > | `unrollAndClaimAction` | string | Claim | |
513
- > | `claimAction` | string | Claim Without Swap | |
514
- > | `claimLabel` | string | Claim Assets | |
515
- > | `swapAndClaimTo` | string | Swap and claim assets to | |
516
- > | `initWithdrawDescription` | string | Unroll | |
517
- > | `initWithdrawTooltip` | string | Unroll prepares assets for single asset withdrawal | |
518
- > | `completeWithdrawDescription` | string | Claim | |
519
- > | `completeWithdrawTooltip` | string | This final step swaps all assets to a single asset and sends it to your wallet | |
520
- > | `unrollAndClaimDescription` | string | Claim | |
521
- > | `total` | string | Total: | |
522
- > | `showAll` | string | Show All | |
523
- > | `hide` | string | Hide | |
524
- > | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
525
- > | `proceedWithNextStep` | string | Please proceed with the next step. | |
500
+ > | `highSlippageListTitle` | string | Please consider the following before confirming | |
501
+ > | `highSlippageQuoteDiff` | string | Be aware that the final amount of assets you receive may be different from the initially quoted value. | |
502
+ > | `highSlippageRisk` | string | Ensure that you understand the risks associated with high slippage and are comfortable proceeding with the trade. | |
503
+ > | `confirm` | string | Confirm | |
504
+ > | `selectToken` | string | Select Token | |
505
+ > | `sendingOrderToWallet` | string | Sending order to your wallet | |
506
+ > | `settingUpTx` | string | Setting up transaction | |
507
+ > | `miningTx` | string | Processing | |
508
+ > | `updateSynthetixOracles` | string | Updating Synthetix Oracles | |
509
+ > | `approveSpending` | string | Approve {symbol} spending | |
510
+ > | `pay` | string | Pay | |
511
+ > | `multiAssetFractions` | string | multi asset fractions | |
512
+ > | `swappableAssets` | string | swappable assets | |
513
+ > | `explorer` | string | Explorer | |
514
+ > | `as` | string | As | |
515
+ > | `switchNetwork` | string | Switch Network | |
516
+ > | `depositAction` | string | Buy | |
517
+ > | `withdrawAction` | string | Sell | |
518
+ > | `swapAction` | string | Swap | |
519
+ > | `unrollAction` | string | Unroll | |
520
+ > | `unrollAndClaimAction` | string | Claim | |
521
+ > | `claimAction` | string | Claim Without Swap | |
522
+ > | `claimLabel` | string | Claim Assets | |
523
+ > | `swapAndClaimTo` | string | Swap and claim assets to | |
524
+ > | `initWithdrawDescription` | string | Unroll | |
525
+ > | `initWithdrawTooltip` | string | Unroll prepares assets for single asset withdrawal | |
526
+ > | `completeWithdrawDescription` | string | Claim | |
527
+ > | `completeWithdrawTooltip` | string | This final step swaps all assets to a single asset and sends it to your wallet | |
528
+ > | `unrollAndClaimDescription` | string | Claim | |
529
+ > | `total` | string | Total: | |
530
+ > | `showAll` | string | Show All | |
531
+ > | `hide` | string | Hide | |
532
+ > | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
533
+ > | `proceedWithNextStep` | string | Please proceed with the next step. | |
526
534
 
527
535
  ###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
528
536