@goodaofi/bonds-sdk 3.0.147 → 3.0.148
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 +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -100328,7 +100328,7 @@ const GooSale = () => {
|
|
|
100328
100328
|
const { activeView, handleToogle } = useActiveView(true);
|
|
100329
100329
|
const { address } = useAccount();
|
|
100330
100330
|
const { data: yourGoo, isLoading, isFetching } = useYourGoo(address);
|
|
100331
|
-
const userParticipated = !isLoading && !isFetching && ((yourGoo === null || yourGoo === void 0 ? void 0 : yourGoo.depositToGooBond) !== '0' || (yourGoo === null || yourGoo === void 0 ? void 0 : yourGoo.depositToSGooBond) !== '0');
|
|
100331
|
+
const userParticipated = address && !isLoading && !isFetching && ((yourGoo === null || yourGoo === void 0 ? void 0 : yourGoo.depositToGooBond) !== '0' || (yourGoo === null || yourGoo === void 0 ? void 0 : yourGoo.depositToSGooBond) !== '0');
|
|
100332
100332
|
const chainId = useChainId();
|
|
100333
100333
|
const { switchChain } = useSwitchChain();
|
|
100334
100334
|
const { data: elegibleForSale, cbBTCBalance, isCbBTCBalanceLoading, cbBTCBalanceChecked, checkCbBTCBalance, addToWhitelist, isAddingToWhitelist, addToWhitelistSuccess, addToWhitelistError, } = useGooEligibility();
|