@exodus/solana-api 1.2.11 → 1.2.12
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 +3 -3
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"description": "Exodus internal Solana asset API wrapper",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@exodus/asset-json-rpc": "^1.0.0",
|
|
17
|
-
"@exodus/solana-lib": "^1.2.
|
|
17
|
+
"@exodus/solana-lib": "^1.2.12",
|
|
18
18
|
"lodash": "^4.17.11",
|
|
19
19
|
"wretch": "^1.5.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"node-fetch": "~1.6.3"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "41e9ea0fdbade75891e954ea56d83a983f18c6ae"
|
|
25
25
|
}
|
package/src/index.js
CHANGED
|
@@ -405,7 +405,7 @@ class Api {
|
|
|
405
405
|
accounts[addr].canWithdraw = state === 'inactive'
|
|
406
406
|
accounts[addr].stake = Number(accounts[addr].stake) || 0 // active staked amount
|
|
407
407
|
totalStake += accounts[addr].stake
|
|
408
|
-
locked += accounts[addr].
|
|
408
|
+
locked += ['active', 'activating'].includes(accounts[addr].state) ? lamports : 0
|
|
409
409
|
withdrawable += accounts[addr].canWithdraw ? lamports : 0
|
|
410
410
|
pending += accounts[addr].isDeactivating ? lamports : 0
|
|
411
411
|
}
|