Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GSW-1984] swap route debounce #597

Merged
merged 5 commits into from
Dec 31, 2024
Merged

[GSW-1984] swap route debounce #597

merged 5 commits into from
Dec 31, 2024

Conversation

tfrg
Copy link
Collaborator

@tfrg tfrg commented Dec 23, 2024

Description

  • Instant API call whenever a user enters a swap amount
  • Multiple unnecessary API calls during the input process
  • Increase server load

Details

  • Optimising API calls with debounce
  • Wait a certain amount of time (500ms) after user input is complete before calling the API
  • Eliminate unnecessary intermediate requests
  • Reduce server load

Copy link

vercel bot commented Dec 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gnoswap-interface ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 31, 2024 9:37am

jinoosss
jinoosss previously approved these changes Dec 31, 2024
tfrg added 5 commits December 31, 2024 18:34
Extract this nested ternary operation into an independent statement.
Ternary operators should not be nested typescript:S3358
Software qualities impacted:
Maintainability
@tfrg tfrg merged commit ea9ea82 into develop Dec 31, 2024
6 checks passed
@tfrg tfrg deleted the GSW-1984-swap-route-debounce branch December 31, 2024 09:38
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.

3 participants