@jup-ag/lend 0.0.92 → 0.0.93

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.
@@ -2057,7 +2057,7 @@ async function getRemainingAccountsLiquidate(vaultId, vaultState, vaultConfig, o
2057
2057
  connection,
2058
2058
  signer
2059
2059
  });
2060
- const liquidationRatio = new BN(oraclePriceLiquidate).div(new BN(10).pow(new BN(15))).mul(new BN(281474976710656));
2060
+ const liquidationRatio = new BN(oraclePriceLiquidate).mul(new BN(281474976710656)).div(new BN(10).pow(new BN(15)));
2061
2061
  const liquidationThresholdRatio = liquidationRatio.mul(new BN(vaultConfig.liquidationThreshold)).div(new BN(10).pow(new BN(3)));
2062
2062
  const liquidationTick = getTickAtRatio(liquidationThresholdRatio);
2063
2063
  for (const source of oracleSources) {
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.92";
11
+ const version = "0.0.93";
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.92",
3
+ "version": "0.0.93",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "type": "module",