@jup-ag/lend 0.0.78 → 0.0.80

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.
@@ -1900,7 +1900,7 @@ const getLiquidateIx = async ({
1900
1900
  colPerUnitDebt = new BN(0),
1901
1901
  absorb = false,
1902
1902
  signer,
1903
- to = new PublicKey("11111111111111111111111111111111"),
1903
+ to = signer,
1904
1904
  connection
1905
1905
  }) => {
1906
1906
  const program = getVaultsProgram({ connection, signer });
@@ -1972,14 +1972,12 @@ async function loadRelevantTicksForLiquidate(vaultId, vaultState, liquidationTic
1972
1972
  getTick(vaultId, topTick)
1973
1973
  );
1974
1974
  if (topTickData) ticks.push({ ...topTickData, tick: topTick });
1975
- } catch (error) {
1976
- console.warn(`Failed to fetch top tick ${topTick}:`, error);
1975
+ } catch {
1977
1976
  }
1978
1977
  let nextTick = MIN_TICK$1;
1979
1978
  try {
1980
1979
  nextTick = await findNextTickWithDebt(vaultId, topTick, program);
1981
- } catch (error) {
1982
- console.warn(`Failed to find next tick with debt:`, error);
1980
+ } catch {
1983
1981
  }
1984
1982
  const doesTickExist = (tick) => ticks.some((t) => t.tick === tick);
1985
1983
  while (nextTick > liquidationTick && !doesTickExist(nextTick)) {
@@ -1990,8 +1988,7 @@ async function loadRelevantTicksForLiquidate(vaultId, vaultState, liquidationTic
1990
1988
  if (nextTickData) ticks.push({ ...nextTickData, tick: nextTick });
1991
1989
  else throw new Error("Tick not found to load");
1992
1990
  nextTick = await findNextTickWithDebt(vaultId, nextTick, program);
1993
- } catch (error) {
1994
- console.warn(`Failed to fetch next tick ${nextTick}:`, error);
1991
+ } catch {
1995
1992
  }
1996
1993
  }
1997
1994
  return { ticks, nextTick };
@@ -2087,7 +2084,8 @@ const simulateLiquidate = async (params) => {
2087
2084
  const { connection, signer } = params;
2088
2085
  const { ixs, addressLookupTableAccounts } = await getLiquidateIx({
2089
2086
  ...params,
2090
- signer
2087
+ signer,
2088
+ to: new PublicKey("11111111111111111111111111111111")
2091
2089
  });
2092
2090
  const latestBlockhash = await connection.getLatestBlockhash();
2093
2091
  const messageV0 = new TransactionMessage({
package/dist/index.mjs CHANGED
@@ -8,6 +8,6 @@ import './shared/lend.CioR9-te.mjs';
8
8
  import '@solana/spl-token';
9
9
  import 'bn.js';
10
10
 
11
- const version = "0.0.78";
11
+ const version = "0.0.80";
12
12
 
13
13
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jup-ag/lend",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "type": "module",