@exodus/solana-plugin 1.37.0 → 1.37.1
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 +10 -0
- package/package.json +2 -2
- package/src/send-validations.js +14 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.37.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.37.0...@exodus/solana-plugin@1.37.1) (2026-05-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix(solana): clarify rent-exempt sender warning copy by send type (#7899)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [1.37.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.36.5...@exodus/solana-plugin@1.37.0) (2026-04-27)
|
|
7
17
|
|
|
8
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.37.
|
|
3
|
+
"version": "1.37.1",
|
|
4
4
|
"description": "Solana plugin for Exodus SDK powered wallets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"type": "git",
|
|
45
45
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "d54300209b29f7e664a871697efadc4db19c3adf"
|
|
48
48
|
}
|
package/src/send-validations.js
CHANGED
|
@@ -146,11 +146,23 @@ const sendValidationsFactory = ({ api, assetName, assetClientInterface }) => {
|
|
|
146
146
|
.sub(fees?.fee || asset.feeAsset.currency.ZERO)
|
|
147
147
|
.sub(sendingSolAmount)
|
|
148
148
|
|
|
149
|
-
if (!remaining.
|
|
149
|
+
if (!remaining.isPositive || !remaining.lt(rentExemptAmount)) {
|
|
150
|
+
return
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
const minAmount = rentExemptAmount.toDefaultString()
|
|
154
|
+
const ticker = asset.feeAsset.displayTicker
|
|
155
|
+
const isTokenSend = asset.name !== asset.baseAsset.name
|
|
156
|
+
|
|
157
|
+
if (isTokenSend) {
|
|
150
158
|
return t(
|
|
151
|
-
`
|
|
159
|
+
`Your Solana account needs at least ${minAmount} ${ticker} to stay open. Add ${ticker} to keep your account active.`
|
|
152
160
|
)
|
|
153
161
|
}
|
|
162
|
+
|
|
163
|
+
return t(
|
|
164
|
+
`Solana accounts need at least ${minAmount} ${ticker} to stay open. Reduce your send amount, or send all your ${ticker} to close the account.`
|
|
165
|
+
)
|
|
154
166
|
},
|
|
155
167
|
}
|
|
156
168
|
|