@turtleclub/hooks 0.5.0-beta.73 → 0.5.0-beta.75

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.cjs CHANGED
@@ -1289,10 +1289,10 @@ var opportunitySchema = import_zod8.z.object({
1289
1289
  updatedAt: import_zod8.z.string().datetime().optional(),
1290
1290
  mainStreamId: import_zod8.z.string().optional(),
1291
1291
  // Relationships
1292
- depositTokens: import_zod8.z.array(supportedTokenSchema),
1293
- withdrawTokens: import_zod8.z.array(supportedTokenSchema).optional().default([]),
1294
- baseTokens: supportedTokenSchema,
1295
- receiptToken: supportedTokenSchema,
1292
+ depositTokens: import_zod8.z.array(tokenSchema),
1293
+ withdrawTokens: import_zod8.z.array(tokenSchema).optional().default([]),
1294
+ baseTokens: tokenSchema,
1295
+ receiptToken: tokenSchema,
1296
1296
  incentives: import_zod8.z.array(incentiveSchema),
1297
1297
  products: import_zod8.z.array(productSchema),
1298
1298
  vaultConfig: vaultConfigSchema.optional().nullable(),
@@ -4017,11 +4017,11 @@ function useWithdrawFlow({
4017
4017
  walletChainId
4018
4018
  });
4019
4019
  const execute = (0, import_react14.useCallback)(async () => {
4020
- if (!selection.amountBigInt || !opportunity) {
4020
+ if (!selection.amountBigInt || !opportunity || !selection.selectedWithdrawTokenAddress) {
4021
4021
  return void 0;
4022
4022
  }
4023
- return earnWithdraw.withdraw(selection.amountBigInt, opportunity.receiptToken.address);
4024
- }, [selection.amountBigInt, earnWithdraw, opportunity]);
4023
+ return earnWithdraw.withdraw(selection.amountBigInt, selection.selectedWithdrawTokenAddress);
4024
+ }, [selection.amountBigInt, selection.selectedWithdrawTokenAddress, earnWithdraw, opportunity]);
4025
4025
  return {
4026
4026
  selection,
4027
4027
  validation,