-
Notifications
You must be signed in to change notification settings - Fork 609
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]: refactor simulation hack #3087
Comments
@rusakh said that he's on it. Can you self-assign please? |
I don't understand, the simulator already supports this? This shouldn't require any scaffolding or simulator changes? All you'd have to do is add the other keepers to the |
I think you are right and that is possible without additional changes, just not very intuitive. @rusakh suggested this method:
|
But if we simply include new keepers in I might be wrong and might not understand something correctly, but I think we would actually need to implement |
Can we supply the gamm keeper to swaprouter Line 150 in 70bf005
|
Background
In #3073, we ported swap messages from gamm to
swap-router
.Additionally, we ported pre-existing simulation
Pre-existing setup for simulation requires access to several gamm keeper APIs.
Current simulation utility functions do not provide support to wire additional keepers. As a result, extra keeper methods were defined on
swaprouter
keeper to route the calls togamm
keeper internally.osmosis/x/swaprouter/types/routes.go
Lines 29 to 38 in ba30351
We should refactor simulator API to provide the ability for wiring additional keepers to avoid this issue.
Suggested Design
GetPoolId
fromswaprouter
GetNextPoolId
from `swaprouterSimulatorExtension
swaprouter
keeper to be of typeSwapI
gamm
keeper inswaprouter
simulatorAcceptance Criteria
The text was updated successfully, but these errors were encountered: