@reflectmoney/stable.ts 2.5.4 → 2.6.0
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.
|
@@ -134,4 +134,5 @@ export declare class UsdcPlusStablecoin extends Stablecoin<DriftUsdcController>
|
|
|
134
134
|
simulateMintMath(usdcAmount: BN): Promise<BN>;
|
|
135
135
|
simulateRedeemMath(receiptTokens: BN): Promise<BN>;
|
|
136
136
|
depositDrift(signer: PublicKey, amount: BN): Promise<TransactionInstruction>;
|
|
137
|
+
cleanup(): Promise<void>;
|
|
137
138
|
}
|
|
@@ -436,5 +436,10 @@ class UsdcPlusStablecoin extends Stablecoin_1.Stablecoin {
|
|
|
436
436
|
return ix;
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
|
+
cleanup() {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
yield this.driftClient.unsubscribe();
|
|
442
|
+
});
|
|
443
|
+
}
|
|
439
444
|
}
|
|
440
445
|
exports.UsdcPlusStablecoin = UsdcPlusStablecoin;
|