Skip to content

chore: remove pallet-dca - #1575

Merged
enthusiastmartin merged 6 commits into
masterfrom
chore/dca-removal
Nov 23, 2026
Merged

enthusiastmartin merged 6 commits into
masterfrom
chore/dca-removal

Conversation

@enthusiastmartin

@enthusiastmartin enthusiastmartin commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

$ try-runtime --runtime target/release/wbuild/hydradx-runtime/hydradx_runtime.wasm on-runtime-upgrade --blocktime 2000 --checks none --disable-mbm-checks snap --path live.snap
⏳ Loading snapshot...
[2026-11-23T17:34:04Z INFO remote-ext] Loading snapshot from "live.snap"
✅ Loaded snapshot in 1.32s
[2026-11-23T17:34:06Z INFO remote-ext] initialized state externalities with storage root 0x05553a345df48ffdb7fcd0a58045978bcf9f10ae3530a703dc6126f1d73a3d28 and state_version V1
[2026-11-23T17:34:06Z INFO try-runtime::cli] Original runtime [Name: "hydradx"] [Version: 458] [Code hash: 0xce30...be78]
[2026-11-23T17:34:06Z INFO try-runtime::cli] New runtime [Name: "hydradx"] [Version: 459] [Code hash: 0x9f24...a35d]
[2026-11-23T17:34:06Z INFO try-runtime::cli] ------------------------------------------------------------

[2026-11-23T17:34:06Z INFO try-runtime::cli] 🔬 Running TryRuntime_on_runtime_upgrade with checks: None

[2026-11-23T17:34:06Z INFO try-runtime::cli] ------------------------------------------------------------

[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 3734 -> intent 33120289140981312078062026762567 (extra gas used: 0)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 26214: orphan without remaining amount, skipped
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 26216: orphan without remaining amount, skipped
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 26500: orphan without remaining amount, skipped
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 28518 cancelled ("budget below one trade"): refunded 2200098914242880334 of asset 222 (extra gas used: 0)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 29172 -> intent 33120289140981312078062026762568 (extra gas used: 0)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 30104 -> intent 33120289140981312078062026762569 (extra gas used: 0)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 35315 -> intent 33120289140981312078062026762570 (extra gas used: 0)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 37584 -> intent 33120289140981312078062026762571 (extra gas used: 235685)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 37585 -> intent 33120289140981312078062026762572 (extra gas used: 235673)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 37586 -> intent 33120289140981312078062026762573 (extra gas used: 235673)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 37587 -> intent 33120289140981312078062026762574 (extra gas used: 235673)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 37590 -> intent 33120289140981312078062026762575 (extra gas used: 235685)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 37845 -> intent 33120289140981312078062026762576 (extra gas used: 0)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA schedule 38144 -> intent 33120289140981312078062026762577 (extra gas used: 235673)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA retired: 72 keys removed
[2026-11-23T17:34:08Z INFO runtime::migration] DCA retirement weight: Weight { ref_time: 257276550000, proof_size: 2399435 } (gas charged: 9014062)
[2026-11-23T17:34:08Z INFO runtime::migration] DCA retired: 72 keys removed
[2026-11-23T17:34:08Z INFO runtime::migration] DCA retirement weight: Weight { ref_time: 7300000000, proof_size: 0 } (gas charged: 0)
[2026-11-23T17:34:08Z INFO runtime::frame-support] ⚠️ Ethereum declares internal migrations (which might execute). On-chain StorageVersion(0) vs in-code storage version NoStorageVersionSet
[2026-11-23T17:34:08Z INFO runtime::frame-support] ⚠️ MultiBlockMigrations declares internal migrations (which might execute). On-chain StorageVersion(0) vs in-code storage version StorageVersion(0)
[2026-11-23T17:34:08Z INFO try-runtime::cli] ---------------------------------------------------------------------------

[2026-11-23T17:34:08Z INFO try-runtime::cli] 🔬 Running TryRuntime_on_runtime_upgrade again to check idempotency: None

[2026-11-23T17:34:08Z INFO try-runtime::cli] ---------------------------------------------------------------------------

[2026-11-23T17:34:11Z INFO runtime::migration] DCA retired: 72 keys removed
[2026-11-23T17:34:11Z INFO runtime::migration] DCA retirement weight: Weight { ref_time: 7300000000, proof_size: 0 } (gas charged: 0)
[2026-11-23T17:34:11Z INFO runtime::migration] DCA retired: 72 keys removed
[2026-11-23T17:34:11Z INFO runtime::migration] DCA retirement weight: Weight { ref_time: 7300000000, proof_size: 0 } (gas charged: 0)
[2026-11-23T17:34:11Z INFO runtime::frame-support] ⚠️ Ethereum declares internal migrations (which might execute). On-chain StorageVersion(0) vs in-code storage version NoStorageVersionSet
[2026-11-23T17:34:11Z INFO runtime::frame-support] ⚠️ MultiBlockMigrations declares internal migrations (which might execute). On-chain StorageVersion(0) vs in-code storage version StorageVersion(0)
[2026-11-23T17:34:11Z INFO try-runtime::cli] ---------------------------------------------------------------------------------------

[2026-11-23T17:34:11Z INFO try-runtime::cli] 🔬 TryRuntime_on_runtime_upgrade succeeded! Running it again for weight measurements.

[2026-11-23T17:34:11Z INFO try-runtime::cli] ---------------------------------------------------------------------------------------

[2026-11-23T17:34:13Z INFO try-runtime::cli] PoV size (zstd-compressed compact proof): 355.8 KiB. For parachains, it's your responsibility to verify that a PoV of this size fits within any relaychain constraints.
[2026-11-23T17:34:13Z INFO try-runtime::cli] Consumed ref_time: 0.2671132s (17.81% of max 1.5s)
[2026-11-23T17:34:13Z INFO try-runtime::cli] ✅ No weight safety issues detected. Please note this does not guarantee a successful runtime upgrade. Always test your runtime upgrade with recent state, and ensure that the weight usage of your migrations will not drastically differ between testing and actual on-chain execution.

@github-actions

Copy link
Copy Markdown

Weight Diff Report

0 extrinsic(s) changed across 0 pallet(s). New: 0. Removed: 7.

Removed extrinsics (7)
Pallet Extrinsic RefTime Proof Reads Writes
pallet_dca on_initialize_with_buy_trade 264.8M 31230 24 9
pallet_dca on_initialize_with_sell_trade 269.7M 31230 24 9
pallet_dca on_initialize_with_empty_block 21.1M 3510 2 0
pallet_dca schedule 177.2M 28710 18 9
pallet_dca terminate 101.1M 4714 6 9
pallet_dca unlock_reserves 61.9M 4714 3 2
pallet_dca set_migration_enabled 22.2M 0 0 1

Threshold: ±10%. Base Weight::from_parts(ref_time, proof_size) compared; per-unit components ignored.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Crate versions that have been updated:

  • runtime-integration-tests: v1.128.4 -> v1.129.0
  • hydradx: v15.9.1 -> v15.9.2
  • cerebro-hydration: v0.1.0 -> v0.1.1
  • pallet-ice: v1.15.0 -> v1.15.1
  • ice-support: v1.7.0 -> v2.0.0
  • pallet-intent: v1.13.1 -> v1.14.0
  • hydradx-adapters: v2.0.1 -> v3.0.0
  • hydradx-runtime: v461.0.0 -> v462.0.0

Runtime version has been increased.

@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.

add safety bounds to the cleanup migration and include try-runtime results

@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 3c114bb has been executed successfully.
View results

@enthusiastmartin
enthusiastmartin merged commit 46c7256 into master Nov 23, 2026
11 checks passed
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