@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.mjs CHANGED
@@ -3135,6 +3135,7 @@ var useWithdraw = () => {
3135
3135
  };
3136
3136
  var isNativeTokenChecker = (address) => address === nativeTokenAddress;
3137
3137
  var useDeposit = (options) => {
3138
+ console.log("useDeposit options:", options);
3138
3139
  const { onlyTestnet } = useContext(OrderlyContext);
3139
3140
  const [balanceRevalidating, setBalanceRevalidating] = useState(false);
3140
3141
  const [allowanceRevalidating, setAllowanceRevalidating] = useState(false);
@@ -3212,7 +3213,7 @@ var useDeposit = (options) => {
3212
3213
  const getAllowance = useCallback(
3213
3214
  async (address, vaultAddress) => {
3214
3215
  console.log("getAllowance", address, vaultAddress);
3215
- if (!address)
3216
+ if (!address || !vaultAddress)
3216
3217
  return;
3217
3218
  if (address && isNativeTokenChecker(address))
3218
3219
  return;
@@ -3973,7 +3974,6 @@ var useSwap = () => {
3973
3974
  if (loading)
3974
3975
  return;
3975
3976
  start();
3976
- console.log("---------", inputs);
3977
3977
  try {
3978
3978
  const result = await account5.walletClient.sendTransaction(
3979
3979
  woofiDexDepositorAdress,