[CL][Swap Router Module]: implement store index to map pool id to swap module #3238
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
Background
We need to store a mapping from pool id to swap module (
gamm
orconcentrated-liquidity
).This is necessary for swaps. Given the pool id, we should be able to know which module to route the swap to.
Currently,
swaprouter
hardcodes all swaps to be routed togamm
.Suggested Design
See for details: #3233
CreatePool
Optionally in the same PR, complete: [CL][Swap Router Module]: test
CreatePool
#3236Optionally in the same PR: [CL][Swap Router Module]: improve
TestMultihopSwapExactAmountIn
andTestMultihopSwapExactAmountOut
#3131Acceptance Criteria
The text was updated successfully, but these errors were encountered: