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

Newly created open orders accounts aren't picked up by the manage dex component #15

Open
armaniferrante opened this issue May 20, 2021 · 0 comments

Comments

@armaniferrante
Copy link
Contributor

armaniferrante commented May 20, 2021

When the swap component creates a new open orders account, because it detects one doesn't exist, it doesn't save that open orders account after the transaction completes. This will cause the component to recreate a new open orders account, even though one exists, if one initiates a swap for the second time without refreshing.

One easy solution is to just save the new open orders accounts into the context open orders cache immediately after the transaction to create them completes.

@armaniferrante armaniferrante changed the title Newly created open orders aren't picked up by the component Newly created open orders accounts aren't picked up by the manage dex component May 26, 2021
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

No branches or pull requests

1 participant