@ape.swap/bonds-sdk 4.6.3-test.1 → 4.6.4

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.
Files changed (2) hide show
  1. package/dist/main.js +4 -4
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -63720,11 +63720,11 @@ const useApproval = (amount, currency, spender, account, chainId) => {
63720
63720
  const confirmingTxOnChain = isConfirming && !isConfirmed;
63721
63721
  useEffect(() => {
63722
63722
  if (txHash && isConfirmed) {
63723
- refetch();
63724
- console.log('refetch allowance');
63725
63723
  setTimeout(() => {
63724
+ refetch();
63725
+ console.log('refetch allowance');
63726
63726
  reset();
63727
- }, 1000);
63727
+ }, 1500);
63728
63728
  }
63729
63729
  /* eslint-disable react-hooks/exhaustive-deps */
63730
63730
  }, [txHash, confirmingTxOnChain, isConfirmed]);
@@ -63750,7 +63750,7 @@ const useApproval = (amount, currency, spender, account, chainId) => {
63750
63750
  });
63751
63751
  setConfirmingTxOnWallet(false);
63752
63752
  // Adding a delay as I suspect RPCs need to catch up as the txs are indexed onchain too fast
63753
- yield new Promise((resolve) => setTimeout(resolve, 1000));
63753
+ yield new Promise((resolve) => setTimeout(resolve, 1500));
63754
63754
  return hash;
63755
63755
  }
63756
63756
  catch (error) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "4.6.3-test.1",
6
+ "version": "4.6.4",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",