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

feat(permit): refactor permit caching #3183

Merged
merged 11 commits into from
Oct 5, 2023

Conversation

alfetopito
Copy link
Collaborator

@alfetopito alfetopito commented Oct 4, 2023

Summary

Part of #3146

Built on top/waterfalls onto #3164

Refactor permit caching from localStorage to a jotai atom.
Split storage between static (used for quotes with a fixed PK) and user (signed by users before placing the orders).

Is the basis to implement #3146, coming next.

To Test

  1. Place SWAP order with permit
  2. Place LIMIT order with permit
  • Should work as before

@vercel
Copy link

vercel bot commented Oct 4, 2023

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

Name Status Preview Updated (UTC)
swap-dev ✅ Ready (Inspect) Visit Preview Oct 5, 2023 10:01am

🌃 Cosmos ↗︎

@alfetopito alfetopito self-assigned this Oct 4, 2023
@alfetopito alfetopito requested a review from a team October 4, 2023 13:34
Base automatically changed from permit/3145_modals-limit to develop October 5, 2023 09:36
@alfetopito alfetopito force-pushed the permit/3146_refactor-permit-caching branch from 07d973e to e4405ef Compare October 5, 2023 09:39
Copy link
Collaborator

@shoom3301 shoom3301 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Very clean

@alfetopito alfetopito merged commit e902e36 into develop Oct 5, 2023
7 checks passed
@alfetopito alfetopito deleted the permit/3146_refactor-permit-caching branch October 5, 2023 15:33
@github-actions github-actions bot locked and limited conversation to collaborators Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants