@haven-fi/solauto-sdk 1.0.707 → 1.0.708
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.
@@ -7,8 +7,6 @@ export declare class MarginfiSolautoPositionEx extends SolautoPositionEx {
|
|
7
7
|
maxLtvPriceType: PriceType;
|
8
8
|
supplyBank: Bank | null;
|
9
9
|
debtBank: Bank | null;
|
10
|
-
supplyPrice(priceType?: PriceType): number | undefined;
|
11
|
-
debtPrice(priceType?: PriceType): number | undefined;
|
12
10
|
private getBankAccounts;
|
13
11
|
getBanks(): Promise<Bank[]>;
|
14
12
|
priceOracles(): Promise<PublicKey[]>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"marginfiSolautoPositionEx.d.ts","sourceRoot":"","sources":["../../src/solautoPosition/marginfiSolautoPositionEx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAA+B,MAAM,iBAAiB,CAAC;AAepE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,qBAAa,yBAA0B,SAAQ,iBAAiB;IAC9D,eAAe,kBAA4B;IAC3C,eAAe,YAAiB;IAEzB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAQ;IAC/B,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAQ;
|
1
|
+
{"version":3,"file":"marginfiSolautoPositionEx.d.ts","sourceRoot":"","sources":["../../src/solautoPosition/marginfiSolautoPositionEx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAA+B,MAAM,iBAAiB,CAAC;AAepE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,qBAAa,yBAA0B,SAAQ,iBAAiB;IAC9D,eAAe,kBAA4B;IAC3C,eAAe,YAAiB;IAEzB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAQ;IAC/B,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAQ;IAUpC,OAAO,CAAC,eAAe;IAMjB,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;IAW3B,YAAY,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IASpC,wBAAwB,IAAI,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAa3D,OAAO,CAAC,6BAA6B;IAwBrC,gCAAgC,CAAC,KAAK,EAAE,IAAI,EAAE;IAK9C,4BAA4B,CAAC,KAAK,EAAE,IAAI,EAAE;IAQ1C,IAAI,eAAe,cAElB;IAED,IAAI,aAAa,cAEhB;IAED,IAAI,wBAAwB,IAAI,MAAM,CAKrC;IAEK,oBAAoB,CAAC,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CA2BjE"}
|
@@ -16,12 +16,12 @@ class MarginfiSolautoPositionEx extends solautoPositionEx_1.SolautoPositionEx {
|
|
16
16
|
this.supplyBank = null;
|
17
17
|
this.debtBank = null;
|
18
18
|
}
|
19
|
-
supplyPrice(priceType) {
|
20
|
-
|
21
|
-
}
|
22
|
-
debtPrice(priceType) {
|
23
|
-
|
24
|
-
}
|
19
|
+
// supplyPrice(priceType?: PriceType): number | undefined {
|
20
|
+
// return this._supplyPrice ?? safeGetPrice(this.supplyMint, priceType, PriceBias.Low);
|
21
|
+
// }
|
22
|
+
// debtPrice(priceType?: PriceType): number | undefined {
|
23
|
+
// return this._debtPrice ?? safeGetPrice(this.debtMint, priceType, PriceBias.High);
|
24
|
+
// }
|
25
25
|
getBankAccounts(mint) {
|
26
26
|
const group = this.lpPoolAccount.toString();
|
27
27
|
const bankAccounts = (0, constants_1.getMarginfiAccounts)(this.lpEnv).bankAccounts;
|
package/package.json
CHANGED
@@ -24,13 +24,13 @@ export class MarginfiSolautoPositionEx extends SolautoPositionEx {
|
|
24
24
|
public supplyBank: Bank | null = null;
|
25
25
|
public debtBank: Bank | null = null;
|
26
26
|
|
27
|
-
supplyPrice(priceType?: PriceType): number | undefined {
|
28
|
-
|
29
|
-
}
|
27
|
+
// supplyPrice(priceType?: PriceType): number | undefined {
|
28
|
+
// return this._supplyPrice ?? safeGetPrice(this.supplyMint, priceType, PriceBias.Low);
|
29
|
+
// }
|
30
30
|
|
31
|
-
debtPrice(priceType?: PriceType): number | undefined {
|
32
|
-
|
33
|
-
}
|
31
|
+
// debtPrice(priceType?: PriceType): number | undefined {
|
32
|
+
// return this._debtPrice ?? safeGetPrice(this.debtMint, priceType, PriceBias.High);
|
33
|
+
// }
|
34
34
|
|
35
35
|
private getBankAccounts(mint: PublicKey) {
|
36
36
|
const group = this.lpPoolAccount.toString();
|