@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.
- package/dist/main.js +4 -4
- 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
|
-
},
|
|
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,
|
|
63753
|
+
yield new Promise((resolve) => setTimeout(resolve, 1500));
|
|
63754
63754
|
return hash;
|
|
63755
63755
|
}
|
|
63756
63756
|
catch (error) {
|