datai-sdk 1.0.3 → 1.0.4

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.
@@ -22,6 +22,11 @@ export namespace activePositions {
22
22
  result.borrowTokens.some((token) =>
23
23
  token.balanceBytes.some((byte) => byte != 0)
24
24
  )
25
+ isActive =
26
+ isActive ||
27
+ result.rewardTokens.some((token) =>
28
+ token.balanceBytes.some((byte) => byte != 0)
29
+ )
25
30
  isActive = isActive && !forceInactive
26
31
 
27
32
  const resultMsg = Protobuf.encode(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "datai-sdk",
3
3
  "main": "index.ts",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "description": "Datai SDK which has useful libraries to help building projections",
6
6
  "scripts": {
7
7
  "postinstall": "node postinstall-script.js"