@reflectmoney/stable.ts 1.0.5 → 1.0.7
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.
|
@@ -25,10 +25,8 @@ export declare class LstStablecoin extends Stablecoin {
|
|
|
25
25
|
/**
|
|
26
26
|
* Loads the LST controller data from the blockchain.
|
|
27
27
|
* Updates the stablecoin mint and LST mapping information.
|
|
28
|
-
*
|
|
29
|
-
* @param connection - Solana connection instance
|
|
30
28
|
*/
|
|
31
|
-
load(
|
|
29
|
+
load(): Promise<void>;
|
|
32
30
|
/**
|
|
33
31
|
* Initializes the LST stablecoin with the specified parameters.
|
|
34
32
|
* Sets up the controller with cap, mint, and recipient information.
|
|
@@ -54,12 +54,10 @@ class LstStablecoin extends Stablecoin_1.Stablecoin {
|
|
|
54
54
|
/**
|
|
55
55
|
* Loads the LST controller data from the blockchain.
|
|
56
56
|
* Updates the stablecoin mint and LST mapping information.
|
|
57
|
-
*
|
|
58
|
-
* @param connection - Solana connection instance
|
|
59
57
|
*/
|
|
60
|
-
load(
|
|
58
|
+
load() {
|
|
61
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
const { lsts, baseStrategy, } = yield reflect_main_1.DriftLstController.fromAccountAddress(connection, this.controller);
|
|
60
|
+
const { lsts, baseStrategy, } = yield reflect_main_1.DriftLstController.fromAccountAddress(this.connection, this.controller);
|
|
63
61
|
this.stablecoinMint = baseStrategy.mint;
|
|
64
62
|
this.lstMap = lsts;
|
|
65
63
|
this.collaterals = lsts.map(({ marketIndex }) => {
|