@dhedge/trading-widget 3.3.12 → 3.3.14
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/core-kit/const/default-data.d.ts +1 -1
- package/core-kit/utils/token.d.ts +5 -1
- package/{index-01e95aa2.js → index-1b984a36.js} +207 -202
- package/{index-613fb998.cjs → index-7d31c854.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{pyth-adapter-071c3498.cjs → pyth-adapter-8db76fb6.cjs} +1 -1
- package/{pyth-adapter-8ac95c6a.js → pyth-adapter-ffdcf4d3.js} +1 -1
|
@@ -19,7 +19,7 @@ export declare const DEFAULT_MULTI_ASSET_WITHDRAW_METHOD = "withdrawSafe";
|
|
|
19
19
|
export declare const EASY_SWAPPER_V2_INITIATE_WITHDRAW_METHOD = "initWithdrawal";
|
|
20
20
|
export declare const EASY_SWAPPER_V2_UNROLL_AND_CLAIM_METHOD = "unrollAndClaim";
|
|
21
21
|
export declare const EASY_SWAPPER_V2_COMPLETE_WITHDRAW_METHOD = "completeWithdrawal";
|
|
22
|
-
export declare const NATIVE_TOKEN_DEPOSIT_GAS_LIMIT =
|
|
22
|
+
export declare const NATIVE_TOKEN_DEPOSIT_GAS_LIMIT = 30000000;
|
|
23
23
|
export declare const GAS_LIMIT_BUFFER_COEFF = 1.25;
|
|
24
24
|
export declare const MANAGER_FEE_DENOMINATOR = 10000;
|
|
25
25
|
export declare const DEFAULT_PROMISE_TIMEOUT_MS = 13000;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
|
2
2
|
import type { ChainId } from 'core-kit/types/web3.types';
|
|
3
3
|
export declare const isNativeToken: (symbol: string, chainId: ChainId) => boolean;
|
|
4
|
-
export declare const getNativeTokenInvestableBalance: (nativeTokenBalance
|
|
4
|
+
export declare const getNativeTokenInvestableBalance: ({ nativeTokenBalance, tokenDecimals, gasPrice, }: {
|
|
5
|
+
nativeTokenBalance: string;
|
|
6
|
+
gasPrice: number;
|
|
7
|
+
tokenDecimals: number;
|
|
8
|
+
}) => BigNumber;
|