Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Why this matters
useDepositToPool is documented Deposits to the lending pool with optimistic UI update (useApi.ts:1564) but its mutationFn only POSTs /pool/build-deposit and returns { unsignedTxXdr, networkPassphrase } (useApi.ts:1580-1584) - no deposit happens until sign+submit via useDepositOperation. Same misleading framing on useWithdrawFromPool (1639) and the optimistic block of useRepayLoan. This doc gap directly feeds the already-known bug where optimistic balances bump on build success rather than signed submit.
Acceptance criteria
Files to touch
frontend/src/app/hooks/useApi.ts
Out of scope
- Fixing the optimistic-timing bug itself (already filed)
Why this matters
useDepositToPool is documented Deposits to the lending pool with optimistic UI update (useApi.ts:1564) but its mutationFn only POSTs /pool/build-deposit and returns { unsignedTxXdr, networkPassphrase } (useApi.ts:1580-1584) - no deposit happens until sign+submit via useDepositOperation. Same misleading framing on useWithdrawFromPool (1639) and the optimistic block of useRepayLoan. This doc gap directly feeds the already-known bug where optimistic balances bump on build success rather than signed submit.
Acceptance criteria
Files to touch
frontend/src/app/hooks/useApi.tsOut of scope