[Frontend] Add a pre-sign transaction simulation summary
Maintainers usually reply within 2 days
@DEV-CHIDIOFFICIAL is already working on this.
Since Nov 20, 2026.
- #1480 by @DEV-CHIDIOFFICIAL — open
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 53/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- blockchain, frontend, testing
Research direction
Start with the deposit and withdraw actions in apps/web/src/hooks/useVaultActions.ts, then read the transaction helpers in packages/stellar-sdk-helpers/src/tx.ts to understand how transactions are built. Check the existing component tests and localized copy under apps/web/src/locales before planning the flow. Done means users can review simulated results, retry a failure, or cancel before signing, with component tests covering success, failure, and cancel.
Written by the indexing model from the issue text.
Description
Summary
The deposit and withdraw flows build a transaction and ask the wallet to sign it without showing the simulated result. A user cannot see the expected shares, payout, fee, or slippage outcome before signing.
Motivation
A short summary before signing makes the transaction understandable and catches a bad quote before the wallet prompt. It also gives the user a place to see why a simulation failed instead of receiving a generic wallet error.
Proposed Solution
Simulate the built transaction before opening the wallet and show a summary with the operation, amount, expected shares or payout, fee, and minimum received. Show a clear error with a retry when simulation fails. Keep the raw XDR out of the primary view. Cover success, simulation failure, and a changed quote with component tests.
Scope
| Field | Value |
|---|---|
| Area | Frontend |
| Protocol affected | Both |
| Network | testnet and mainnet |
| Breaking change? | No |
Alternatives Considered
Showing the summary after signing is too late to change the amount. A static estimate from the last read can drift from the simulated transaction.
Acceptance Criteria
- The summary shows the operation, amount, expected result, and fee
- A simulation failure shows a retryable error before signing
- The user can cancel without opening the wallet
- The summary uses the simulated transaction, not a stale estimate
- Component tests cover success, failure, and cancel
-
pnpm lintandpnpm typecheckpass
Additional Context
The deposit and withdraw actions are in apps/web/src/hooks/useVaultActions.ts. Transaction helpers are in packages/stellar-sdk-helpers/src/tx.ts. Localized copy lives under apps/web/src/locales.
- Dominant language
- TypeScript
- Stars
- 17
- Forks
- 129
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 54
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from drydocs/meridian
-
chore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
drydocs/meridian#1503 · 1 comment ·
Maintainers usually reply within 2 days
-
[Docs] Add a supported wallet capability matrixPossibly taken @Joeljosef7 claimed this 3 days ago. Opendocs frontend Stellar Wave trivial
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
drydocs/meridian#1349 · 6 comments · 1 assignee ·
Maintainers usually reply within 2 days
-
[Test] Add cross-language conformance vectors for vault mathPossibly taken @VeronicDev claimed this 3 days ago. Opencontracts medium sdk Stellar Wave testing
drydocs/meridian#1444 · 5 comments · 1 assignee ·
Maintainers usually reply within 2 days
-
[Security] Extend CSP and security headers to landing and docs routesPossibly taken @anietie234 claimed this 3 days ago. Openapi frontend medium security Stellar Wave
drydocs/meridian#1443 · 5 comments · 1 assignee ·
Maintainers usually reply within 2 days
-
[Docs] Establish ADRs and backfill architecture decisionsPossibly taken @Sammydz456 claimed this 3 days ago. Opendocs medium Stellar Wave
drydocs/meridian#1442 · 5 comments · 1 assignee ·
Maintainers usually reply within 2 days
All issues in drydocs/meridian
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
External sources always come back in English: `lc` isn't passed to `/api/v3/external_sources`Possibly taken @Anurag1428 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
openfoodfacts/openfoodfacts-explorer#2264 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
cloudflare/workers-sdk#17139 ·
Maintainers usually reply within 1 day
-
area: editor P3 type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
halisonworks/mod-codeling#290 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
colinhacks/zod#6776 ·
Maintainers usually reply within 1 day