- Replace static template value with dynamic DOM-based balance reading
- Use parseFloat(walletBalanceElement.textContent) for current balance
- Ensures validation uses the actual displayed balance, not stale template value
- Fixes false "insufficient balance" errors after successful transactions
- Maintains consistency between display and validation logic
- Prevents user confusion with inconsistent balance states
This was a critical bug where users would see updated balance but still get
insufficient balance errors due to static template rendering.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>