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

fix(spl): amount formatting

Public commit record

What the developer wrote

Authored by sneurlax

47/100 · Thin
fix(spl): amount formatting
✓ Descriptive subject✓ Uses a recognizable type or scope! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes how Solana token (SPL) amounts are displayed and confirmed in Stack Wallet's transaction confirmation screen. Previously, the app likely treated SPL tokens like Ethereum tokens, which could cause wrong decimal places, wrong token symbols, or even sending/confirming with incorrect values. The change adds separate code paths for Solana tokens so the correct token info is used for formatting, price lookup, and confirming the send.

Recommended action

Review the Solana token wallet provider implementation and confirm that tokenDecimals, tokenMint, and tokenSymbol are validated before use. Add tests covering SPL token send confirmation for tokens with non-default decimals. Verify that the fallback values (e.g., decimals=9, symbol='TOKEN') cannot be exploited to trick users into approving misformatted amounts.

Security signals we found

01

Incorrect amount formatting due to wrong token decimals can mislead users about transaction value

02

Use of wrong token wallet provider could lead to sending through unintended contract/token path

03

UI display mismatch between token symbol/decimals and actual SPL token metadata

04

Price lookup using wrong token identifier could show incorrect fiat value

05

Fix adds explicit Solana-specific branch, suggesting prior code assumed ERC-20 semantics for all tokens

Risk score

Why this scored 42/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 6/15
Affected reach 7/15
Confidence 6/10
Evidence quality 3/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.