Skip to content

Fix failed transaction activity#1312

Open
rossgalloway wants to merge 3 commits into
mainfrom
codex/fix-failed-portfolio-activity
Open

Fix failed transaction activity#1312
rossgalloway wants to merge 3 commits into
mainfrom
codex/fix-failed-portfolio-activity

Conversation

@rossgalloway

@rossgalloway rossgalloway commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Failed Transactions were showing up as successful in the activity tab of the portfolio page. Upon deeper review, this was only for failed transactions in the local cache, which were not being tagged as "failed".

  • require an explicitly successful receipt before transaction overlays complete
  • treat reverted receipts as errors in transaction and approval flows
  • revalidate cached local portfolio activity against on-chain receipts
  • show reverted local activity with a Failed badge
  • add regression coverage for reverted receipts and cached activity validation

Root cause

The transaction overlays used the receipt query's isSuccess state as the transaction outcome. That state only means the receipt request completed; the receipt can still have a reverted status. Those transactions were persisted as successful local notifications, and the portfolio activity page trusted the cached status.

Impact

Failed transactions are no longer recorded as completed. Existing cached success entries are checked against their receipts before display, and reverted entries remain available for auditability with a clear failed state. Indexed activity remains unchanged because reverted transactions do not emit the event logs used by the indexer.

Validation

  • bun run lint:fix
  • bun run tslint
  • focused Vitest suite: 61 tests passed
  • bun run build

Validate transaction receipt outcomes before marking activity complete.\n\n- Treat reverted receipts as transaction errors\n- Revalidate cached local activity against on-chain receipts\n- Label failed local activity and cover regressions with tests
@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yearnfi Ready Ready Preview, Comment Jul 15, 2026 4:44pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
yearnfi-nextjs Ignored Ignored Preview Jul 15, 2026 4:44pm
yearnfi-nextjs-2 Ignored Ignored Preview Jul 15, 2026 4:44pm

Request Review

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

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