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

Fix bug that made s_tokenToPool to store only the last created pool #1

Merged
merged 2 commits into from
Mar 24, 2024
Merged

Fix bug that made s_tokenToPool to store only the last created pool #1

merged 2 commits into from
Mar 24, 2024

Conversation

zarkk01
Copy link
Contributor

@zarkk01 zarkk01 commented Mar 24, 2024

When a pool was created it was store on s_tokenToPool mapping but when a new pool was created with the same token this new pool took the place of the prev one. To fix it I made s_tokenToPools to point to an array of address[], not a single address.

Copy link
Owner

@mgnfy-view mgnfy-view left a comment

Choose a reason for hiding this comment

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

Thanks for pointing out this bug! The changes look good to me!

@mgnfy-view mgnfy-view merged commit 90f27ae into mgnfy-view:main Mar 24, 2024
1 check passed
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.

2 participants