@ecency/wallets 1.5.0 → 1.5.1

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.
@@ -185,7 +185,14 @@ function useGetExternalWalletBalanceQuery(currency, address) {
185
185
  function useSeedPhrase(username) {
186
186
  return useQuery({
187
187
  queryKey: ["ecency-wallets", "seed", username],
188
- queryFn: async () => bip39.generateMnemonic(128)
188
+ queryFn: async () => bip39.generateMnemonic(128),
189
+ // CRITICAL: Prevent seed regeneration - cache forever
190
+ // Once generated, the seed must NEVER change to ensure consistency between:
191
+ // 1. Displayed seed phrase
192
+ // 2. Downloaded seed file
193
+ // 3. Keys sent to API for account creation
194
+ staleTime: Infinity,
195
+ gcTime: Infinity
189
196
  });
190
197
  }
191
198
  var options = {