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

[CL][Swap Router Module]: improve TestMultihopSwapExactAmountIn and TestMultihopSwapExactAmountOut #3131

Closed
p0mvn opened this issue Oct 24, 2022 · 6 comments
Labels
C:x/swap-router F: concentrated-liquidity Tracking the development of concentrated liquidity feature to improve filtering on the project board T:task ⚙️ A task belongs to a story T:tests

Comments

@p0mvn
Copy link
Member

p0mvn commented Oct 24, 2022

Background

Desired test cases are listed here for TestMultihopSwapExactAmountIn:

// TODO:
// tests for concentrated liquidity
// test for multi-hop
// test for multi hop (osmo routes) -> reduces fee, add an assertion
// change values in and out to be different with each swap module type
// create more precise assertions on what the results are
// edge cases:
// * invalid route length
// * pool does not exist
// * swap errors

and here for TestMultihopSwapExactAmountOut:

// TODO:
// tests for concentrated liquidity
// test for multi-hop
// test for multi hop (osmo routes) -> reduces fee, add an assertion
// change values in and out to be different with each swap module type
// create more precise assertions on what the results are
// edge cases:
// * invalid route length
// * pool does not exist
// * swap errors

Acceptance Criteria

  • all proposed test cases are covered
  • new test cases are added if applicable
@hieuvubk
Copy link
Contributor

hieuvubk commented Nov 1, 2022

Hello anyone working on this issue? I would like to work with it

@p0mvn
Copy link
Member Author

p0mvn commented Nov 1, 2022

Hi @hieuvubk . I'm afraid it’s currently blocked on: #3170

I’m planning to finalize that PR soon. Will lyk once this issue is unblocked. Thanks

@hieuvubk
Copy link
Contributor

hieuvubk commented Nov 1, 2022

Yes thank u

@p0mvn
Copy link
Member Author

p0mvn commented Nov 4, 2022

This is now blocked on #3238 since we need proper routing to work first

@p0mvn
Copy link
Member Author

p0mvn commented Nov 30, 2022

Some progress towards this has been done in: #3490

However, there is still more to test. swaprouter module is currently on code-freeze until we finish merge to main

@p0mvn
Copy link
Member Author

p0mvn commented Dec 22, 2022

We still need to add a test with a concentrated liquidity pool, upon merging the module to main

@p0mvn p0mvn removed their assignment Jan 12, 2023
@p0mvn p0mvn added this to the CL 8: Fees and Misc Bug Fixes milestone Jan 13, 2023
@p0mvn p0mvn moved this from Needs Review 🔍 to Todo 🕒 in Osmosis Chain Development Jan 13, 2023
@p0mvn p0mvn self-assigned this Feb 1, 2023
@p0mvn p0mvn removed their assignment Feb 27, 2023
@p0mvn p0mvn moved this from Todo 🕒 to Needs Triage 🔍 in Osmosis Chain Development Mar 26, 2023
@p0mvn p0mvn closed this as completed May 23, 2023
@github-project-automation github-project-automation bot moved this from Needs Triage 🔍 to Done ✅ in Osmosis Chain Development May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:x/swap-router F: concentrated-liquidity Tracking the development of concentrated liquidity feature to improve filtering on the project board T:task ⚙️ A task belongs to a story T:tests
Projects
Archived in project
Development

No branches or pull requests

3 participants