@reflectmoney/stable.ts 1.2.1 → 1.2.3

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.
@@ -65,6 +65,15 @@ class UsdcPlusStablecoin extends Stablecoin_1.Stablecoin {
65
65
  this.stablecoinMint = baseStrategy.mint;
66
66
  this.strategy = baseStrategy;
67
67
  this.controller = controller;
68
+ try {
69
+ const subscribed = yield this.driftClient.subscribe();
70
+ if (!subscribed)
71
+ throw new Error("Failed to subscribe to Drift Client");
72
+ }
73
+ catch (err) {
74
+ console.log("Error subscribing to Drift Client:", err);
75
+ console.log("Silently ignoring error.");
76
+ }
68
77
  });
69
78
  }
70
79
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reflectmoney/stable.ts",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "type": "commonjs",
5
5
  "author": "stablecoinjesus @ Palindrome Engineering",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@coral-xyz/anchor": "0.29.0",
12
- "@drift-labs/sdk": "2.135.0-beta.8",
12
+ "@drift-labs/sdk": "2.136.0-beta.6",
13
13
  "@metaplex-foundation/beet": "=0.7.2",
14
14
  "@metaplex-foundation/beet-solana": "=0.4.1",
15
15
  "@metaplex-foundation/mpl-token-metadata": "2.13.0",