@dhedge/trading-widget 4.2.0-canary.2 → 4.2.0-canary.4

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
@@ -135,10 +135,10 @@ UI configuration provider. Manages params to configure custom styling, component
135
135
  > | ---------------------------------- | -------------------------------------------------------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
136
136
  > | `isGeoBlocked` | `boolean` | `false` | Restricts depositing action button and conditionally renders GeoBlockAlert component |
137
137
  > | `isSanctioned` | `boolean` | `false` | Restricts depositing action button and conditionally renders SanctionedAlert component |
138
- > | `depositQuoteDiffWarningThreshold` | `number` | `1` | Deposit slippage absolute percent value warning threshold, Affects styling to warn user |
138
+ > | `depositQuoteDiffWarningThreshold` | `number` | `1.5` | Deposit slippage absolute percent value warning threshold, Affects styling to warn user |
139
139
  > | `depositQuoteDiffErrorThreshold` | `number` | `3` | Deposit slippage absolute percent value error threshold, Affects styling to warn user |
140
140
  > | `defaultWithdrawSlippage` | `number` | `[0.1, 0.3, 0.5, 1, 1.5, 3]` | Initial withdraw slippage absolute percent. Further adjustments are available in panel settings |
141
- > | `defaultSwapTransactionSlippage` | `number` | `0.3` | Default slippage (%) applied to swap transaction. |
141
+ > | `defaultSwapTransactionSlippage` | `number` | `0.75` | Default slippage (%) applied to swap transaction. |
142
142
  > | `defaultNoSwapMinDepositAmountGap` | `number` | `0.1` | Default gap (%) for min received vault tokens during no swap deposits. |
143
143
  > | `defaultNotificationDuration` | `number` | `10000` | Notification duration in ms |
144
144
  > | `defaultLockTime` | `string` | `'24 hours'` | Formatted default deposit lock time to be displayed in panel (Long lockup period is used to bypass entry fee and can be managed in panel settings) |
@@ -13,7 +13,8 @@ export declare const DEFAULT_DEPOSIT_METHOD: DepositMethodName;
13
13
  export declare const DEFAULT_WITHDRAW_SLIPPAGE = 1;
14
14
  export declare const DEFAULT_DEPOSIT_SLIPPAGE = 0;
15
15
  export declare const DEFAULT_NO_SWAP_MIN_DEPOSIT_AMOUNT_GAP = 0.5;
16
- export declare const DEFAULT_SWAP_TRANSACTION_SLIPPAGE = 0.3;
16
+ export declare const DEFAULT_RECEIVED_VALUE_GAP = 0.02;
17
+ export declare const DEFAULT_SWAP_TRANSACTION_SLIPPAGE = 0.75;
17
18
  export declare const DEFAULT_DEPOSIT_SLIPPAGE_SCALE: number[];
18
19
  export declare const DEFAULT_MULTI_ASSET_WITHDRAW_METHOD = "withdrawSafe";
19
20
  export declare const EASY_SWAPPER_V2_INITIATE_WITHDRAW_METHOD = "initWithdrawal";