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

feat: re-add dex-swap-router with better weight estimation #1055

Merged
merged 2 commits into from
May 16, 2023

Conversation

gregdhill
Copy link
Member

Re-adds the DexSwapRouter pallet because it is difficult to determine the input amounts for intermediate trades when chaining DexGeneral and DexStable calls. Also removes the custom benchmarking in favour of reusing the weights already determined for those pallets. To do this we require to iterate through the routes in the weight annotation but I think this is fine because pallet-utility does the same here.

Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
@sander2 sander2 merged commit 4c4c197 into interlay:master May 16, 2023
2 checks passed
@gregdhill gregdhill deleted the feat/dex-swap-router branch May 16, 2023 08:39
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.

None yet

2 participants