@haven-fi/solauto-sdk 1.0.731 → 1.0.733
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.
@@ -1,6 +1,7 @@
|
|
1
1
|
import { PublicKey } from "@solana/web3.js";
|
2
2
|
export declare const StrategyTypes: readonly ["Long", "Short", "Ratio"];
|
3
3
|
export type StrategyType = (typeof StrategyTypes)[number];
|
4
|
+
export declare function adjustedTicker(mint?: PublicKey): string;
|
4
5
|
export declare function ratioMintDetails(supplyMint?: PublicKey, debtMint?: PublicKey): {
|
5
6
|
order: (PublicKey | undefined)[];
|
6
7
|
strategyName: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stringUtils.d.ts","sourceRoot":"","sources":["../../src/utils/stringUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,eAAO,MAAM,aAAa,qCAAsC,CAAC;AACjE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"stringUtils.d.ts","sourceRoot":"","sources":["../../src/utils/stringUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,eAAO,MAAM,aAAa,qCAAsC,CAAC;AACjE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,SAAS,UAU9C;AAED,wBAAgB,gBAAgB,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,SAAS;;;EAY5E;AAED,wBAAgB,SAAS,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,SAAS,UAGrE;AAED,wBAAgB,mBAAmB,CACjC,UAAU,CAAC,EAAE,SAAS,EACtB,QAAQ,CAAC,EAAE,SAAS,UAcrB;AAED,wBAAgB,YAAY,CAC1B,UAAU,EAAE,SAAS,EACrB,QAAQ,EAAE,SAAS,GAClB,YAAY,CAWd"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.StrategyTypes = void 0;
|
4
|
+
exports.adjustedTicker = adjustedTicker;
|
4
5
|
exports.ratioMintDetails = ratioMintDetails;
|
5
6
|
exports.ratioName = ratioName;
|
6
7
|
exports.solautoStrategyName = solautoStrategyName;
|
package/local/.env
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ADDRESS_WHITELIST=5UqsR2PGzbP8pGPbXEeXx86Gjz2N2UFBAuFZUSVydAEe,He4ka5Q3N1UvZikZvykdi47xyk5PoVP2tcQL5sVp31Sz,
|
1
|
+
ADDRESS_WHITELIST=5UqsR2PGzbP8pGPbXEeXx86Gjz2N2UFBAuFZUSVydAEe,He4ka5Q3N1UvZikZvykdi47xyk5PoVP2tcQL5sVp31Sz,E5BBsR1sUToPc3jXVwhrK5ttSiy6xhWJDMdQLvkgNppe,DRP5cgM1JpnMySvwg3jqRP2VA2DXSWUjo6VGLkNZ2etb
|
package/package.json
CHANGED
package/src/utils/stringUtils.ts
CHANGED
@@ -6,7 +6,7 @@ import { tokenInfo } from "./generalUtils";
|
|
6
6
|
export const StrategyTypes = ["Long", "Short", "Ratio"] as const;
|
7
7
|
export type StrategyType = (typeof StrategyTypes)[number];
|
8
8
|
|
9
|
-
function adjustedTicker(mint?: PublicKey) {
|
9
|
+
export function adjustedTicker(mint?: PublicKey) {
|
10
10
|
const info = tokenInfo(mint);
|
11
11
|
|
12
12
|
if (info.ticker.toLowerCase() === "wbtc") {
|