@rango-dev/widget-embedded 0.27.2-next.0 → 0.27.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.27.2
|
|
3
|
+
"version": "0.27.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@lingui/core": "4.2.1",
|
|
26
26
|
"@lingui/react": "4.2.1",
|
|
27
|
-
"@rango-dev/logging-core": "^0.2.
|
|
28
|
-
"@rango-dev/provider-all": "^0.32.
|
|
27
|
+
"@rango-dev/logging-core": "^0.2.0",
|
|
28
|
+
"@rango-dev/provider-all": "^0.32.1",
|
|
29
29
|
"@rango-dev/queue-manager-core": "^0.26.0",
|
|
30
|
-
"@rango-dev/queue-manager-rango-preset": "^0.32.
|
|
30
|
+
"@rango-dev/queue-manager-rango-preset": "^0.32.0",
|
|
31
31
|
"@rango-dev/queue-manager-react": "^0.26.0",
|
|
32
|
-
"@rango-dev/ui": "^0.33.
|
|
33
|
-
"@rango-dev/wallets-react": "^0.18.
|
|
32
|
+
"@rango-dev/ui": "^0.33.0",
|
|
33
|
+
"@rango-dev/wallets-react": "^0.18.0",
|
|
34
34
|
"@rango-dev/wallets-shared": "^0.32.0",
|
|
35
35
|
"bignumber.js": "^9.1.1",
|
|
36
36
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
}
|
|
@@ -89,14 +89,6 @@ export function useConfirmSwap(): ConfirmSwap {
|
|
|
89
89
|
slippage: userSlippage.toString(),
|
|
90
90
|
disabledSwappersGroups: disabledLiquiditySources,
|
|
91
91
|
};
|
|
92
|
-
const swap = calculatePendingSwap(
|
|
93
|
-
inputAmount.toString(),
|
|
94
|
-
result,
|
|
95
|
-
getWalletsForNewSwap(selectedWallets),
|
|
96
|
-
swapSettings,
|
|
97
|
-
false,
|
|
98
|
-
{ blockchains, tokens }
|
|
99
|
-
);
|
|
100
92
|
|
|
101
93
|
const confirmSwapWarnings = generateWarnings(
|
|
102
94
|
initialQuote ?? undefined,
|
|
@@ -114,6 +106,17 @@ export function useConfirmSwap(): ConfirmSwap {
|
|
|
114
106
|
}
|
|
115
107
|
resetAlerts();
|
|
116
108
|
|
|
109
|
+
const proceedAnyway = !!confirmSwapWarnings.balance;
|
|
110
|
+
|
|
111
|
+
const swap = calculatePendingSwap(
|
|
112
|
+
inputAmount.toString(),
|
|
113
|
+
result,
|
|
114
|
+
getWalletsForNewSwap(selectedWallets),
|
|
115
|
+
swapSettings,
|
|
116
|
+
proceedAnyway ? false : true,
|
|
117
|
+
{ blockchains, tokens }
|
|
118
|
+
);
|
|
119
|
+
|
|
117
120
|
return {
|
|
118
121
|
quote: currentQuote,
|
|
119
122
|
swap,
|