Skip to content

Fix/issues 281 282 283 287#414

Merged
Austinaminu2 merged 4 commits into
FlowwStar:mainfrom
Xoulomon:fix/issues-281-282-283-287
Jul 26, 2026
Merged

Fix/issues 281 282 283 287#414
Austinaminu2 merged 4 commits into
FlowwStar:mainfrom
Xoulomon:fix/issues-281-282-283-287

Conversation

@Xoulomon

Copy link
Copy Markdown
Contributor

Maintenance: Remove dead code and fix token handling

Changes

  • Remove unused useNotifications.ts, useBulkActions.ts, and useBulkSelect.ts hooks
  • Fix portfolio value calculation to show USD for known tokens when unknown tokens are present
  • Add Soroban contract error code pattern matching (Error(Contract, #N)) for all 20 StreamError variants with descriptive messages

Closes

Xoulomon added 4 commits July 26, 2026 17:01
…and test

The hooks/useNotifications.ts file is a dead scaffold with no importers.
The actual implementation is in hooks/use-notifications.ts which is used
by components/layout/notification-bell.tsx. Removing the duplicate reduces
confusion for future contributors.
Both hooks/useBulkActions.ts and hooks/useBulkSelect.ts have no importers
outside their test files. Removing unused code reduces maintenance surface
and prevents contributor confusion when searching for bulk-action logic.
…alue

Previously, a single stream with an unknown token would set totalUsd to null
for the entire portfolio, hiding USD values for all known tokens. Now:
- Only sum USD values for streams with known/priced tokens (XLM, USDC, EURC)
- Unknown tokens are silently skipped instead of nulling the aggregate
- Returns null only when ALL streams use unknown tokens
- Added test cases to verify the fix handles mixed known/unknown tokens
The error message mapper now recognizes and handles all Soroban contract
error codes (Error(Contract, #N)) from the StreamError enum (1-20) with
specific, actionable error messages for each code. This replaces the
previous behavior where contract-level failures fell through to the generic
'Transaction failed' message.

Each error now includes:
- Descriptive message identifying the specific failure
- Actionable suggestion for recovery
- Appropriate category (user, contract, or network)
- Fallback patterns preserved for non-contract errors

Patterns match the format: Error(Contract, #N) with flexible whitespace.
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@Xoulomon Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Austinaminu2
Austinaminu2 merged commit e470b7b into FlowwStar:main Jul 26, 2026
0 of 6 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

2 participants