timelock-sdk 0.0.33 → 0.0.34
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/client.cjs +3 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +56 -56
- package/dist/client.d.ts +55 -55
- package/dist/client.js +3 -2
- package/dist/client.js.map +1 -1
- package/dist/{index-CA5kB-yT.d.cts → index-B7b3c8cu.d.cts} +92 -92
- package/dist/package.d.cts +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -420,8 +420,9 @@ const useOptionPremium = (marketAddr, optionType, optionAmount, duration, strike
|
|
|
420
420
|
const { exact: currentTick } = useCurrentTick(pool);
|
|
421
421
|
const strikeTickRounded = (0, react.useMemo)(() => {
|
|
422
422
|
if (!tickSpacing || currentTick === void 0) return;
|
|
423
|
-
|
|
424
|
-
if (optionType === "CALL" && optionAssetIsToken0 || optionType === "PUT" && !optionAssetIsToken0)
|
|
423
|
+
let strikeTickRounded$1 = require_numberUtils.roundTickDown(strikeTick ?? currentTick, tickSpacing);
|
|
424
|
+
if (optionType === "CALL" && optionAssetIsToken0 || optionType === "PUT" && !optionAssetIsToken0) strikeTickRounded$1 += tickSpacing;
|
|
425
|
+
return strikeTickRounded$1;
|
|
425
426
|
}, [
|
|
426
427
|
currentTick,
|
|
427
428
|
tickSpacing,
|