timelock-sdk 0.0.83 → 0.0.84
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-Dtm1qie2.d.ts → client-BjjoSITU.d.ts} +234 -234
- package/dist/client.cjs +2 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -386,7 +386,7 @@ const usePoolData = (poolAddr) => {
|
|
|
386
386
|
|
|
387
387
|
//#endregion
|
|
388
388
|
//#region src/hooks/options/useExerciseOption.ts
|
|
389
|
-
const swapper = "
|
|
389
|
+
const swapper = "0x2c79DD9797C35A3D966C2716739542a282BB5540";
|
|
390
390
|
const useExerciseOption = (marketAddr) => {
|
|
391
391
|
const { vault, pool } = useMarketData(marketAddr);
|
|
392
392
|
const { fee } = usePoolData(pool);
|
|
@@ -1015,7 +1015,7 @@ const useClosePerp = () => {
|
|
|
1015
1015
|
//#region src/hooks/pool/usePriceAtTick.ts
|
|
1016
1016
|
const usePriceAtTick = (tick, poolAddr) => {
|
|
1017
1017
|
const { token0Decimals, token1Decimals } = usePoolData(poolAddr);
|
|
1018
|
-
const priceBigInt = (0, react.useMemo)(() => tick ? require_optionUtils.getPriceAtTick(tick) : void 0, [tick]);
|
|
1018
|
+
const priceBigInt = (0, react.useMemo)(() => tick !== void 0 ? require_optionUtils.getPriceAtTick(tick) : void 0, [tick]);
|
|
1019
1019
|
return (0, react.useMemo)(() => priceBigInt && token0Decimals && token1Decimals ? require_optionUtils.wrapPrice(priceBigInt, token0Decimals, token1Decimals) : void 0, [
|
|
1020
1020
|
priceBigInt,
|
|
1021
1021
|
token0Decimals,
|