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

Add test for router.set_route() for different tradability states #791

Closed
jak-pan opened this issue Mar 19, 2024 · 0 comments · Fixed by #792
Closed

Add test for router.set_route() for different tradability states #791

jak-pan opened this issue Mar 19, 2024 · 0 comments · Fixed by #792
Assignees

Comments

@jak-pan
Copy link
Contributor

jak-pan commented Mar 19, 2024

We don't have test where router.set_route() fails due to change in tradability flags of omnipool assets.

https://github.com/galacticcouncil/HydraDX-node/blob/a0c524a6c3d7613635614588901a51546782b341/pallets/omnipool/src/types.rs#L31-L35

Scenario:
DOT has BUY disabled
sell DOT->HDX will pass but HDX->DOT will fail due to BUY of DOT being disabled.

This is currently case with LRNA

@dmoka dmoka linked a pull request Mar 19, 2024 that will close this issue
3 tasks
@dmoka dmoka closed this as completed in #792 Apr 8, 2024
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 a pull request may close this issue.

2 participants