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

fix: adjust router for insufficient asset #765

Merged
merged 35 commits into from
Feb 22, 2024
Merged

fix: adjust router for insufficient asset #765

merged 35 commits into from
Feb 22, 2024

Conversation

dmoka
Copy link
Contributor

@dmoka dmoka commented Feb 20, 2024

Since we introduced insufficient assets, the balance check won't work properly as we can have special case with selling fee payment asset for shitcoin, so we decided to remove it.

Furthermore we wanna disable route setting for insufficient asset

TODO:

  • Rebenchmark pallet

Copy link

github-actions bot commented Feb 20, 2024

Crate versions that have been updated:

  • runtime-integration-tests: v1.19.0 -> v1.19.1
  • pallet-asset-registry: v3.0.0 -> v3.1.0
  • pallet-dca: v1.3.4 -> v1.3.5
  • pallet-route-executor: v2.0.1 -> v2.0.2
  • hydradx-adapters: v1.2.0 -> v1.2.1
  • hydradx-runtime: v213.0.0 -> v214.0.0

Runtime version has 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.

pls bump versions

integration-tests/src/dca.rs Outdated Show resolved Hide resolved
pallets/route-executor/src/lib.rs Outdated Show resolved Hide resolved
pallets/route-executor/src/lib.rs Outdated Show resolved Hide resolved
@dmoka dmoka changed the title fix: router with ed fix: router when balance falls below ed Feb 20, 2024
@dmoka dmoka marked this pull request as ready for review February 20, 2024 14:15
@dmoka
Copy link
Contributor Author

dmoka commented Feb 20, 2024

WARNING: dont merge it yet, we will rework to get the ED from asset registry

@dmoka dmoka changed the title fix: router when balance falls below ed fix: remove balance check Feb 21, 2024
@dmoka dmoka linked an issue Feb 21, 2024 that may be closed by this pull request
@dmoka dmoka changed the title fix: remove balance check fix: adjust router for insufficient asset Feb 21, 2024
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.

Rebench and LGTM

@dmoka dmoka merged commit 5bba8e4 into master Feb 22, 2024
5 checks passed
@dmoka dmoka deleted the fix/router-with-ed branch February 22, 2024 13:56
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.

Disable onchain route setting for insufficient asset
3 participants