@dhedge/trading-widget 3.3.0-alpha.1 → 3.3.0-alpha.2

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
@@ -129,6 +129,7 @@ UI configuration provider. Manages params to configure custom styling, component
129
129
  > | `isAllAssetsWithdrawOptionDefault` | `boolean` | `false` | Sets "All Assets" withdraw option by default |
130
130
  > | `chainConfig` | `Partial<Record<ChainId, { name: string; iconPath: string }>>` | `{}` | Sets map of chain `name` and `iconPath` |
131
131
  > | `aaveOffchainWithdrawChainIds` | `ChainId[]` | `[]` | Offchain swap data will be used for Aave withdrawals for selected chains |
132
+ > | `aaveOffchainWithdrawMinValue` | `number` | `50` | Value in USD when off-chain Aave withdrawal is enabled |
132
133
 
133
134
  ##### actions
134
135
 
@@ -1,5 +1,6 @@
1
1
  import type { FetchAaveSwapParamsProps } from 'core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-aave-swap-params';
2
2
  import type { ComplexWithdrawAssetData, PoolConfig } from 'core-kit/types';
3
- export declare const useFetchInitWithdrawComplexAssetData: ({ address, chainId, }: Pick<PoolConfig, 'address' | 'chainId'>) => ({ withdrawAmount, slippage, disabled, }: FetchAaveSwapParamsProps & {
3
+ export declare const useFetchInitWithdrawComplexAssetData: ({ address, chainId, }: Pick<PoolConfig, 'address' | 'chainId'>) => ({ withdrawAmount, vaultTokenPrice, slippage, disabled, }: FetchAaveSwapParamsProps & {
4
4
  disabled?: boolean | undefined;
5
+ vaultTokenPrice: string;
5
6
  }) => Promise<ComplexWithdrawAssetData[]>;