@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 +1 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-complex-asset-data.d.ts +2 -1
- package/{index-5ba43d21.js → index-1e6d4ed1.js} +3401 -3390
- package/{index-addee486.cjs → index-d12c98d4.cjs} +40 -40
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{pyth-adapter-ae35e010.js → pyth-adapter-962e1e47.js} +1 -1
- package/{pyth-adapter-557e7325.cjs → pyth-adapter-ddee6a85.cjs} +1 -1
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +1 -0
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
|
|
package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-complex-asset-data.d.ts
CHANGED
|
@@ -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[]>;
|