@silentswap/react 0.1.56 → 0.1.57
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.
|
@@ -723,7 +723,8 @@ export function useBridgeExecution(walletClient, connector, solanaConnector, sol
|
|
|
723
723
|
},
|
|
724
724
|
}),
|
|
725
725
|
});
|
|
726
|
-
const usdIn = debridgeQuote.estimation?.srcChainTokenIn?.
|
|
726
|
+
const usdIn = debridgeQuote.estimation?.srcChainTokenIn?.originApproximateUsdValue
|
|
727
|
+
?? debridgeQuote.estimation?.srcChainTokenIn?.approximateUsdValue ?? 0;
|
|
727
728
|
const usdOut = debridgeQuote.estimation?.dstChainTokenOut?.approximateUsdValue || 0;
|
|
728
729
|
const impactPercent = usdIn > 0 ? 100 * (1 - usdOut / usdIn) : 0;
|
|
729
730
|
if (impactPercent > X_MAX_IMPACT_PERCENT) {
|
|
@@ -107,7 +107,7 @@ export interface ExecuteSwapParams {
|
|
|
107
107
|
destinations: Destination[];
|
|
108
108
|
/** Splits array for destination amounts */
|
|
109
109
|
splits: number[];
|
|
110
|
-
/** Contact ID of the sender (e.g., "caip10:eip155:*:0x...") */
|
|
110
|
+
/** Contact ID of the sender (e.g., "caip10:eip155:*:0x...", "caip10:solana:*:...", "caip10:bip122:*:...", "caip10:tron:*:...") */
|
|
111
111
|
senderContactId: string;
|
|
112
112
|
/** Optional integrator ID for tracking */
|
|
113
113
|
integratorId?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silentswap/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.57",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@bigmi/core": "^0.6.5",
|
|
26
26
|
"@ensdomains/ensjs": "^4.2.0",
|
|
27
|
-
"@silentswap/sdk": "0.1.
|
|
28
|
-
"@silentswap/ui-kit": "0.1.
|
|
27
|
+
"@silentswap/sdk": "0.1.57",
|
|
28
|
+
"@silentswap/ui-kit": "0.1.57",
|
|
29
29
|
"@solana/codecs-strings": "^5.1.0",
|
|
30
30
|
"@solana/kit": "^5.1.0",
|
|
31
31
|
"@solana/rpc": "^5.1.0",
|