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: add sell_all for route executor #888

Merged
merged 13 commits into from
Sep 5, 2024
Merged

Conversation

dmoka
Copy link
Contributor

@dmoka dmoka commented Aug 7, 2024

Fixes #883

  • test out on chopsticks

@dmoka dmoka self-assigned this Aug 7, 2024
@dmoka dmoka marked this pull request as ready for review August 7, 2024 08:25
Copy link

github-actions bot commented Aug 7, 2024

Crate versions that have been updated:

  • runtime-integration-tests: v1.23.2 -> v1.23.3
  • pallet-route-executor: v2.5.1 -> v2.6.0
  • hydradx-traits: v3.4.0 -> v3.5.0

Runtime version has not been increased.

Copy link
Member

@mrq1911 mrq1911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

benchmarks

Copy link
Member

@mrq1911 mrq1911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bechmark is not necessary as there is no additional read

@dmoka dmoka requested a review from jak-pan August 9, 2024 11:04
Copy link
Contributor

@jak-pan jak-pan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the native balance test is also a fee payment asset and in this case LGTM

@dmoka
Copy link
Contributor Author

dmoka commented Sep 2, 2024

I assume the native balance test is also a fee payment asset and in this case LGTM

@jak-pan Although it is true that the fee payment asset is indeed HDX in the native balance test, it does not have any impact as in integration tests the tx fees are not deducted directly. Anyway, I tested out sell_all on chopsticks, and working fine, first the fee is deducated then the rest is sold in sell_all

@dmoka dmoka merged commit ffc7b9e into master Sep 5, 2024
7 checks passed
@dmoka dmoka deleted the feat/add-router-sell-all branch September 5, 2024 07:18
@dmoka
Copy link
Contributor Author

dmoka commented Sep 5, 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 this pull request may close these issues.

Add sell all functions to router and AMMs
3 participants