@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.
- package/dist/borrow/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/borrow/index.mjs
CHANGED
|
@@ -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).
|
|
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