@exodus/solana-plugin 1.14.1 → 1.14.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/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/create-asset.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.14.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.14.1...@exodus/solana-plugin@1.14.2) (2024-08-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/solana-plugin
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.14.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.14.0...@exodus/solana-plugin@1.14.1) (2024-08-13)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @exodus/solana-plugin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "Exodus internal Solana asset plugin",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"type": "git",
|
|
40
40
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ec60bae875abe8f3007ab039a2d11cf562697424"
|
|
43
43
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -102,7 +102,9 @@ export const createSolanaAssetFactory =
|
|
|
102
102
|
const isSmallValueTx = (tx) =>
|
|
103
103
|
!tx.tokens?.length &&
|
|
104
104
|
!isSolanaRewardsActivityTx(tx) &&
|
|
105
|
-
|
|
105
|
+
// check that the coinAmount does not drop below the solana base fee
|
|
106
|
+
// we shouldn't see users sending under the base fee so we consider this safe
|
|
107
|
+
Math.abs(tx.coinAmount.toDefaultNumber()) <= 0.000_005
|
|
106
108
|
|
|
107
109
|
const getActivityTxs = ({ txs }) => txs.filter((tx) => !isSmallValueTx(tx))
|
|
108
110
|
|