Skip to content

fix: F-2026-18142 | [Dual Defense] Fund Migration Signing Hash Uses Live Balance and Is Raceable by Dust Inflows - #303

Merged
Aman035 merged 8 commits into
audit-fixesfrom
F-2026-18142
Aug 26, 2026
Merged

fix: F-2026-18142 | [Dual Defense] Fund Migration Signing Hash Uses Live Balance and Is Raceable by Dust Inflows#303
Aman035 merged 8 commits into
audit-fixesfrom
F-2026-18142

Conversation

@Aman035

@Aman035 Aman035 commented Aug 12, 2026

Copy link
Copy Markdown
Member

No description provided.

@Aman035

Aman035 commented Aug 17, 2026

Copy link
Copy Markdown
Member Author

A much better approach is if core provides the transfer_amount

  • For now this can be manual at event creation
  • Later we can use read state to automate this

Admin supplies the observed balance; the keeper derives transfer_amount from
it using the gas figures it fetches, stores it on the migration and emits it,
so validators sign one pinned amount instead of re-deriving from a live
balance. Rejects a balance that cannot cover its own fee.
Without them validSigner fails to parse and ValidateBasic returns on the
signer check, so the balance assertions never ran.
@Aman035 Aman035 changed the title F-2026-18142 | [Dual Defense] Fund Migration Signing Hash Uses Live Balance and Is Raceable by Dust Inflows fix: F-2026-18142 | [Dual Defense] Fund Migration Signing Hash Uses Live Balance and Is Raceable by Dust Inflows Aug 26, 2026
@Aman035
Aman035 marked this pull request as ready for review August 26, 2026 08:03
@Aman035
Aman035 merged commit 258061f into audit-fixes Aug 26, 2026
4 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