Problem
The frontend swap, remove-liquidity, and fee-collection flows POST signed XDR to ${API_BASE}/transactions, but no controller implements this route. Swaps cannot complete end-to-end on testnet.
Affected callers:
apps/web/hooks/useSwapExecution.ts
apps/web/hooks/useRemoveLiquidity.ts
apps/web/app/portfolio/page.tsx (fee collection)
Acceptance criteria
Files
- New module under
apps/api/src/transactions/
Problem
The frontend swap, remove-liquidity, and fee-collection flows POST signed XDR to
${API_BASE}/transactions, but no controller implements this route. Swaps cannot complete end-to-end on testnet.Affected callers:
apps/web/hooks/useSwapExecution.tsapps/web/hooks/useRemoveLiquidity.tsapps/web/app/portfolio/page.tsx(fee collection)Acceptance criteria
TransactionsControllerwithPOST /transactionsaccepting{ xdr: string }@stellar/stellar-sdkRPC usingSTELLAR_RPC_URL{ hash: string }on success{ code: "SLIPPAGE_EXCEEDED" }Files
apps/api/src/transactions/