AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 31 Monero

fix: account for Firo OP_RETURN in fee previews

Public commit record

What the developer wrote

Authored by Navid Rahimi

57/100 · Thin
fix: account for Firo OP_RETURN in fee previews
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a bug in Stack Wallet where transaction fee previews did not include the extra cost of adding an OP_RETURN data output for Firo public-balance sends. As a result, users could have been shown a lower fee than what the network would actually charge, or the wallet might have constructed an under-funded transaction. The patch adds the missing fee calculation, makes the OP_RETURN state provider auto-dispose to avoid stale data, and guards state updates with a 'mounted' check to prevent crashes after a screen is closed.

Recommended action

Treat as a routine bug-fix patch. Review that the new vSize calculation matches Firo's consensus rules and that estimateTxFee uses the correct fee-rate units. Verify no other send paths bypass the OP_RETURN fee adjustment. No emergency response is indicated unless user reports of stuck or under-funded Firo OP_RETURN transactions surface.

Security signals we found

01

Incorrect fee estimation leading to under-funded transactions

02

UI state provider lifecycle fix (autoDispose) to prevent stale OP_RETURN data across sessions

03

Mounted guard added before provider state writes to avoid use-after-dispose exceptions

04

OP_RETURN hex validation and 80-byte limit enforcement added in utility function

Risk score

Why this scored 31/100

Our methodology →
Potential impact 8/30
Exploitability 3/25
Stealth signal 4/15
Affected reach 5/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.