@exodus/fiat-balances 13.6.1 → 13.6.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 +4 -0
- package/package.json +2 -2
- package/plugin/analytics.js +1 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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
|
+
## [13.6.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/fiat-balances@13.6.1...@exodus/fiat-balances@13.6.2) (2025-10-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/fiat-balances
|
|
9
|
+
|
|
6
10
|
## [13.6.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/fiat-balances@13.6.0...@exodus/fiat-balances@13.6.1) (2025-10-21)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/fiat-balances",
|
|
3
|
-
"version": "13.6.
|
|
3
|
+
"version": "13.6.2",
|
|
4
4
|
"description": "Track asset and portfolio fiat balances based on changes in crypto balances and the user's preferred fiat currency",
|
|
5
5
|
"author": "Exodus Movement, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"access": "public",
|
|
68
68
|
"provenance": false
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "30137851a6c221e970e9bc85a704403124632c62"
|
|
71
71
|
}
|
package/plugin/analytics.js
CHANGED
|
@@ -19,10 +19,8 @@ const createFiatBalancesAnalyticsPlugin = ({
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const onStart = () => {
|
|
22
|
-
// Set initial properties to 0 immediately
|
|
23
22
|
setBalanceProperties(undefined)
|
|
24
23
|
|
|
25
|
-
// Start observing future updates
|
|
26
24
|
const unsubscribeBalancesAtom = fiatBalancesAtom.observe(({ balances }) => {
|
|
27
25
|
setBalanceProperties(balances)
|
|
28
26
|
})
|
|
@@ -30,18 +28,11 @@ const createFiatBalancesAnalyticsPlugin = ({
|
|
|
30
28
|
subscriptions = [unsubscribeBalancesAtom]
|
|
31
29
|
}
|
|
32
30
|
|
|
33
|
-
const onUnlock = () => {
|
|
34
|
-
// Load current balance value after wallet is unlocked (non-blocking)
|
|
35
|
-
fiatBalancesAtom.get().then((currentValue) => {
|
|
36
|
-
setBalanceProperties(currentValue?.balances)
|
|
37
|
-
})
|
|
38
|
-
}
|
|
39
|
-
|
|
40
31
|
const onStop = () => {
|
|
41
32
|
subscriptions.forEach((unsubscribe) => unsubscribe())
|
|
42
33
|
}
|
|
43
34
|
|
|
44
|
-
return { onStart,
|
|
35
|
+
return { onStart, onStop }
|
|
45
36
|
}
|
|
46
37
|
|
|
47
38
|
const fiatBalancesAnalyticsPluginDefinition = {
|