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: Ignore throwing paths #158

Merged
merged 1 commit into from
Dec 11, 2023
Merged

fix: Ignore throwing paths #158

merged 1 commit into from
Dec 11, 2023

Conversation

gmbronco
Copy link
Contributor

@gmbronco gmbronco commented Dec 8, 2023

When comparing multiple paths for a swap, if one pool in any path is throwing, eg: new Error('Swap amount exceeds the pool limit') - it makes the PathGraph.getCandidatePaths to fail for all the other paths. Handling the error allows to return the other paths.

@gmbronco gmbronco merged commit 9c50e5d into main Dec 11, 2023
4 checks 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