Skip to content

fix(kaspa): use relayer_sum for migration mass estimation placeholder#447

Merged
danwt merged 1 commit intomain-dymfrom
danwt/claude/fix-migration-div-zero
Jan 23, 2026
Merged

fix(kaspa): use relayer_sum for migration mass estimation placeholder#447
danwt merged 1 commit intomain-dymfrom
danwt/claude/fix-migration-div-zero

Conversation

@danwt
Copy link
Copy Markdown

@danwt danwt commented Jan 23, 2026

Summary

  • Fixed divide-by-zero panic in escrow migration mass estimation
  • KIP-0009 storage mass divides by output amounts, so using 0 as the relayer change placeholder caused a panic at mass/mod.rs:362
  • Use relayer_sum instead, matching the pattern in the withdrawal sweep flow's create_test_outputs()

Test plan

  • Deploy to blumbus and re-run Phase 5 migration
  • Verify relayer no longer panics at mass estimation step
  • Confirm migration TX is submitted successfully

🤖 Generated with Claude Code

…ceholder

KIP-0009 storage mass divides by output amounts, so using zero as the
relayer change placeholder caused a divide-by-zero panic. Use relayer_sum
instead, matching the pattern in the withdrawal sweep flow.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@danwt danwt merged commit dadb7f3 into main-dym Jan 23, 2026
7 of 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.

1 participant