@xswap-link/sdk 0.11.3 → 0.11.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/CHANGELOG.md +6 -0
- package/dist/index.global.js +348 -348
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/constants/index.ts +1 -0
- package/src/context/SwapProvider.tsx +7 -2
package/dist/index.mjs
CHANGED
|
@@ -14111,6 +14111,7 @@ var SOLANA_MAINNET_RPC_URL = "https://orbital-thrilling-water.solana-mainnet.qui
|
|
|
14111
14111
|
var JUPITER_V6_PROGRAM_ID = new PublicKey(
|
|
14112
14112
|
"JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"
|
|
14113
14113
|
);
|
|
14114
|
+
var DEPLOYER_ADDRESS = "0x8ebD04b2fbA00418Be00329146837dcE51F02c00";
|
|
14114
14115
|
var DEFAULT_ECOSYSTEM = "evm" /* EVM */;
|
|
14115
14116
|
var NUMBER_INPUT_REGEX = /^[0-9]*[.,]?[0-9]*$/;
|
|
14116
14117
|
var DELIVERY_TIME = 30 * 1e3 * 60;
|
|
@@ -22076,8 +22077,8 @@ var SwapProvider = ({
|
|
|
22076
22077
|
integratorId: integrationConfig.integratorId,
|
|
22077
22078
|
fromChain: srcChain.chainId,
|
|
22078
22079
|
toChain: dstChain.chainId,
|
|
22079
|
-
fromAddress: evmAddress || ADDRESSES[srcChain.chainId]?.FeeCollector ||
|
|
22080
|
-
toAddress: dstChain.ecosystem === "solana" /* SOLANA */ ? solanaAddress || ADDRESSES[dstChain.chainId]?.FeeCollector || "" : evmAddress || ADDRESSES[dstChain.chainId]?.FeeCollector ||
|
|
22080
|
+
fromAddress: evmAddress || ADDRESSES[srcChain.chainId]?.FeeCollector || DEPLOYER_ADDRESS,
|
|
22081
|
+
toAddress: dstChain.ecosystem === "solana" /* SOLANA */ ? solanaAddress || ADDRESSES[dstChain.chainId]?.FeeCollector || "" : evmAddress || ADDRESSES[dstChain.chainId]?.FeeCollector || DEPLOYER_ADDRESS,
|
|
22081
22082
|
fromToken: srcToken.address,
|
|
22082
22083
|
toToken: dstToken.address,
|
|
22083
22084
|
fromAmount: srcValueWei,
|