@jup-ag/lend 0.1.10-beta.3 → 0.1.10-beta.4
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/borrow/index.mjs +3 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/borrow/index.mjs
CHANGED
|
@@ -39,10 +39,11 @@ const getLiquidations = async (params) => {
|
|
|
39
39
|
const getAllLiquidations = async (params) => {
|
|
40
40
|
const program = getVaultsProgram({
|
|
41
41
|
connection: params.connection,
|
|
42
|
-
signer: params.signer || new PublicKey("HEyJLdMfZhhQ7FHCtjD5DWDFNFQhaeAVAsHeWqoY6dSD")
|
|
42
|
+
signer: params.signer || new PublicKey("HEyJLdMfZhhQ7FHCtjD5DWDFNFQhaeAVAsHeWqoY6dSD"),
|
|
43
|
+
market: params.market
|
|
43
44
|
});
|
|
44
45
|
const { nextVaultId: totalVaults } = await program.account.vaultAdmin.fetch(
|
|
45
|
-
getVaultAdmin()
|
|
46
|
+
getVaultAdmin(params.market)
|
|
46
47
|
);
|
|
47
48
|
const vaultIds = Array.from({ length: totalVaults - 1 }, (_, i) => i + 1);
|
|
48
49
|
const results = [];
|
package/dist/index.mjs
CHANGED