@rango-dev/widget-embedded 0.58.1-next.3 → 0.58.1-next.5

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.58.1-next.3",
3
+ "version": "0.58.1-next.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -25,23 +25,23 @@
25
25
  "@lingui/core": "4.2.1",
26
26
  "@lingui/react": "4.2.1",
27
27
  "@rango-dev/logging-core": "^0.12.1",
28
- "@rango-dev/provider-all": "^0.60.1-next.3",
28
+ "@rango-dev/provider-all": "^0.60.1-next.4",
29
29
  "@rango-dev/queue-manager-core": "^0.33.0",
30
- "@rango-dev/queue-manager-rango-preset": "^0.60.1-next.1",
30
+ "@rango-dev/queue-manager-rango-preset": "^0.60.1-next.2",
31
31
  "@rango-dev/queue-manager-react": "^0.33.0",
32
- "@rango-dev/signer-solana": "^0.46.1",
33
- "@rango-dev/ui": "^0.61.1-next.1",
34
- "@rango-dev/wallets-core": "^0.57.0",
35
- "@rango-dev/wallets-react": "^0.44.1-next.1",
36
- "@rango-dev/wallets-shared": "^0.58.1-next.1",
32
+ "@rango-dev/signer-solana": "^0.46.2-next.0",
33
+ "@rango-dev/ui": "^0.61.1-next.2",
34
+ "@rango-dev/wallets-core": "^0.57.1-next.0",
35
+ "@rango-dev/wallets-react": "^0.44.1-next.2",
36
+ "@rango-dev/wallets-shared": "^0.58.1-next.2",
37
37
  "bignumber.js": "^9.1.1",
38
38
  "copy-to-clipboard": "^3.3.3",
39
39
  "dayjs": "^1.11.7",
40
40
  "ethers": "^6.13.2",
41
41
  "immer": "^9.0.19",
42
42
  "mitt": "^3.0.0",
43
- "rango-sdk": "^0.1.70",
44
- "rango-types": "^0.1.89",
43
+ "rango-sdk": "^0.1.72",
44
+ "rango-types": "^0.1.93",
45
45
  "react-i18next": "^12.2.0",
46
46
  "react-router-dom": "^6.8.0",
47
47
  "values.js": "2.1.1",
@@ -54,4 +54,4 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  }
57
- }
57
+ }
@@ -116,14 +116,9 @@ export function Inputs(props: PropTypes) {
116
116
  loadingBalance={fetchingBalance}
117
117
  tooltipContainer={getContainer()}
118
118
  onSelectMaxBalance={() => {
119
- const tokenBalanceReal = numberToString(
120
- fromBalanceAmount,
121
- fromTokenBalance?.decimals
122
- );
123
-
124
119
  // if a token hasn't any value, we will reset the input by setting an empty string.
125
- const nextInputAmount = !!fromTokenBalance?.amount
126
- ? tokenBalanceReal.split(',').join('')
120
+ const nextInputAmount = fromBalanceAmount.isGreaterThan(ZERO)
121
+ ? fromBalanceAmount.toFixed()
127
122
  : '';
128
123
 
129
124
  setInputAmount(nextInputAmount);