@meteora-ag/dlmm 1.0.35-rc.5 → 1.0.35-rc.6
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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5131,7 +5131,7 @@ declare class DLMM {
|
|
|
5131
5131
|
* `LbPairAccount` objects.
|
|
5132
5132
|
*/
|
|
5133
5133
|
static getLbPairs(connection: Connection, opt?: Opt): Promise<LbPairAccount[]>;
|
|
5134
|
-
static isPoolExisted(connection: Connection, tokenX: PublicKey, tokenY: PublicKey, binStep: BN, baseFactor: BN, opt?: Opt): Promise<
|
|
5134
|
+
static isPoolExisted(connection: Connection, tokenX: PublicKey, tokenY: PublicKey, binStep: BN, baseFactor: BN, opt?: Opt): Promise<PublicKey>;
|
|
5135
5135
|
/**
|
|
5136
5136
|
* The `create` function is a static method that creates a new instance of the `DLMM` class
|
|
5137
5137
|
* @param {Connection} connection - The `connection` parameter is an instance of the `Connection`
|
package/dist/index.js
CHANGED
|
@@ -6949,13 +6949,14 @@ var DLMM = class {
|
|
|
6949
6949
|
);
|
|
6950
6950
|
const account = await program.account.lbPair.fetchNullable(lbPairKey);
|
|
6951
6951
|
if (!account) {
|
|
6952
|
-
return
|
|
6952
|
+
return null;
|
|
6953
6953
|
}
|
|
6954
6954
|
if (account.parameters.baseFactor === baseFactor.toNumber()) {
|
|
6955
6955
|
return lbPairKey;
|
|
6956
6956
|
}
|
|
6957
|
-
} catch (
|
|
6958
|
-
|
|
6957
|
+
} catch (error) {
|
|
6958
|
+
console.log("\u{1F680} ~ DLMM ~ error:", error);
|
|
6959
|
+
return null;
|
|
6959
6960
|
}
|
|
6960
6961
|
}
|
|
6961
6962
|
/**
|