@reflectmoney/stable.ts 1.2.3 → 1.2.5
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,15 +65,12 @@ class UsdcPlusStablecoin extends Stablecoin_1.Stablecoin {
|
|
|
65
65
|
this.stablecoinMint = baseStrategy.mint;
|
|
66
66
|
this.strategy = baseStrategy;
|
|
67
67
|
this.controller = controller;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
console.log("Error subscribing to Drift Client:", err);
|
|
75
|
-
console.log("Silently ignoring error.");
|
|
76
|
-
}
|
|
68
|
+
const subscribed = yield this.driftClient.subscribe();
|
|
69
|
+
if (!subscribed)
|
|
70
|
+
throw new Error("Failed to subscribe to Drift Client");
|
|
71
|
+
const addedController = yield this.driftClient.addUser(0, this.controllerKey);
|
|
72
|
+
if (!addedController)
|
|
73
|
+
throw new Error("Failed to add controller account to Drift Client");
|
|
77
74
|
});
|
|
78
75
|
}
|
|
79
76
|
/**
|