Skip to content

feat: buy dca no longer allowed - #1513

Merged
enthusiastmartin merged 2 commits into
masterfrom
feat/buy-dca-not-allowed
Aug 11, 2026
Merged

feat: buy dca no longer allowed#1513
enthusiastmartin merged 2 commits into
masterfrom
feat/buy-dca-not-allowed

Conversation

@enthusiastmartin

Copy link
Copy Markdown
Member

Do not allow creating buy DCAs.

Existing buys keeps executing until completed.

This is first step to completely remove buy possibilities.

@github-actions

Copy link
Copy Markdown

Crate versions that have been updated:

  • runtime-integration-tests: v1.106.0 -> v1.107.0
  • pallet-dca: v1.18.2 -> v1.19.0
  • hydradx-runtime: v437.0.0 -> v438.0.0

Runtime version has been increased.

@enthusiastmartin
enthusiastmartin requested a review from cl0w5 August 10, 2026 17:20
Comment thread pallets/dca/src/lib.rs
///
/// Only `Order::Sell` schedules can be created. Buy orders are rejected with
/// `NoLongerSupported`; buy schedules already stored keep executing until they complete
/// or are terminated.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As we still support running buy execution i would prefer to keep the buy tests (you can inject them in storage for mock)

@cl0w5 cl0w5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@github-actions

Copy link
Copy Markdown

Quick benchmark at commit eb3eccf has been executed successfully.
View results

@enthusiastmartin
enthusiastmartin merged commit 94b5af6 into master Aug 11, 2026
10 of 11 checks passed
@enthusiastmartin
enthusiastmartin deleted the feat/buy-dca-not-allowed branch August 11, 2026 20:41
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.

2 participants