@dhedge/trading-widget 3.3.3 → 3.3.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 +2 -2
- package/core-kit/const/flat-money.d.ts +2 -1
- package/core-kit/hooks/trading/synthetix-v3/use-withdraw-liquidity.d.ts +1 -1
- package/core-kit/utils/flat-money.d.ts +1 -1
- package/{index-c5ea2d97.cjs → index-146145a3.cjs} +46 -46
- package/{index-57762a43.js → index-683da8b1.js} +5335 -5295
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +191 -190
- package/package.json +1 -1
- package/{pyth-adapter-7ab8a03c.js → pyth-adapter-6df6645f.js} +1 -1
- package/{pyth-adapter-fa331ec2.cjs → pyth-adapter-834651fc.cjs} +1 -1
- package/trading-widget/components/withdraw/init-step/button/valid-init-withdraw-button/valid-init-withdraw-button.hooks.d.ts +2 -1
- package/trading-widget/hooks/use-leveraged-flat-money-withdrawal-checks.d.ts +4 -0
package/README.md
CHANGED
|
@@ -110,7 +110,7 @@ UI configuration provider. Manages params to configure custom styling, component
|
|
|
110
110
|
##### params
|
|
111
111
|
|
|
112
112
|
> | name | type | default value | description |
|
|
113
|
-
>
|
|
113
|
+
> | ---------------------------------- | -------------------------------------------------------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
114
114
|
> | `isGeoBlocked` | `boolean` | `false` | Restricts depositing action button and conditionally renders GeoBlockAlert component |
|
|
115
115
|
> | `isSanctioned` | `boolean` | `false` | Restricts depositing action button and conditionally renders SanctionedAlert component |
|
|
116
116
|
> | `depositQuoteDiffWarningThreshold` | `number` | `1` | Deposit slippage absolute percent value warning threshold, Affects styling to warn user |
|
|
@@ -488,7 +488,7 @@ path: `component.meta[name]`
|
|
|
488
488
|
> | `checkingOracles` | string | Checking Oracles | |
|
|
489
489
|
> | `confirmMaxSlippage` | string | Confirm {slippagePercentage}% max slippage | |
|
|
490
490
|
> | `withdrawalWindowDisabled` | string | You can sell your {tokenSymbol} tokens during withdrawal window period starting from {startTime} | |
|
|
491
|
-
> | `withdrawalLiquidityDisabled` | string | Intended withdraw value is greater than available liquidity ({
|
|
491
|
+
> | `withdrawalLiquidityDisabled` | string | Intended withdraw value is greater than available liquidity ({value}) | |
|
|
492
492
|
> | `withdrawCooldown` | string | You can sell your {tokenSymbol} tokens in {cooldownEndTime} | |
|
|
493
493
|
> | `termsOfUse` | string | Terms Of Use | |
|
|
494
494
|
> | `termOfUseDepositListTitle` | string | Please know the following before depositing | |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Address, ChainId } from '../types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const FLATMONEY_LEVERAGED_ASSET_MAP: Record<ChainId, Address>;
|
|
3
|
+
export declare const FLATMONEY_COLLATERAL_ADDRESS_MAP: Record<ChainId, Address>;
|
|
3
4
|
export declare const FLATMONEY_COLLATERAL_SYMBOL_MAP: Record<ChainId, string>;
|
|
4
5
|
export declare const FLATMONEY_UNIT_SYMBOL_MAP: Record<ChainId, string>;
|
|
5
6
|
export declare const FLATMONEY_UNIT_ADDRESS_MAP: Record<ChainId, Address>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
2
|
export declare const isFmpAirdropVaultAddress: (address: Address) => boolean;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const isFlatMoneyLeveragedAsset: (address: Address) => boolean;
|
|
4
4
|
export declare const getFlatMonetUnitSymbol: (chainId: number) => string;
|