@orderly.network/hooks 0.0.67 → 0.0.68

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/index.js CHANGED
@@ -3144,6 +3144,7 @@ var useWithdraw = () => {
3144
3144
  };
3145
3145
  var isNativeTokenChecker = (address) => address === nativeTokenAddress;
3146
3146
  var useDeposit = (options) => {
3147
+ console.log("useDeposit options:", options);
3147
3148
  const { onlyTestnet } = React2.useContext(OrderlyContext);
3148
3149
  const [balanceRevalidating, setBalanceRevalidating] = React2.useState(false);
3149
3150
  const [allowanceRevalidating, setAllowanceRevalidating] = React2.useState(false);
@@ -3221,7 +3222,7 @@ var useDeposit = (options) => {
3221
3222
  const getAllowance = React2.useCallback(
3222
3223
  async (address, vaultAddress) => {
3223
3224
  console.log("getAllowance", address, vaultAddress);
3224
- if (!address)
3225
+ if (!address || !vaultAddress)
3225
3226
  return;
3226
3227
  if (address && isNativeTokenChecker(address))
3227
3228
  return;
@@ -3982,7 +3983,6 @@ var useSwap = () => {
3982
3983
  if (loading)
3983
3984
  return;
3984
3985
  start();
3985
- console.log("---------", inputs);
3986
3986
  try {
3987
3987
  const result = await account5.walletClient.sendTransaction(
3988
3988
  woofiDexDepositorAdress,