Skip to content

refactor(zap): harden multi-chain zap flow and improve tx lifecycle handling#2

Open
syed-ghufran-hassan wants to merge 1 commit intoChaoLing140:mainfrom
syed-ghufran-hassan:patch-2
Open

refactor(zap): harden multi-chain zap flow and improve tx lifecycle handling#2
syed-ghufran-hassan wants to merge 1 commit intoChaoLing140:mainfrom
syed-ghufran-hassan:patch-2

Conversation

@syed-ghufran-hassan
Copy link
Copy Markdown

  • Replaced parseFloat math with parseUnits for safe BigInt handling
  • Switched to writeContractAsync for proper async transaction control
  • Centralized isProcessing state for consistent UI locking
  • Simplified and standardized step management using Step type
  • Improved amount validation logic
  • Cleaned up error handling and state transitions
  • Reduced duplicated logic across approve/deposit/finalize steps

…andling

- Replaced parseFloat math with parseUnits for safe BigInt handling
- Switched to writeContractAsync for proper async transaction control
- Centralized isProcessing state for consistent UI locking
- Simplified and standardized step management using Step type
- Improved amount validation logic
- Cleaned up error handling and state transitions
- Reduced duplicated logic across approve/deposit/finalize steps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant