ProblemThe quote handler reads the cache and, on miss, fetches live; two paths recompute amounts and can return different results for the same request.
- Duplicated quote computation.
- Live-fallback path untested in
fx-quote-* tests.
- Inconsistent rounding across paths.
Solution
- Single quote computation path with cache-or-live resolution.
- Test the fallback path.
- Unify rounding.
Acceptance Criteria
- One computation path.
- Fallback tested.
pnpm --filter fx-engine build passes.
Note for Contributors: Write a clear PR description. Show identical results from cache and fallback.
ProblemThe quote handler reads the cache and, on miss, fetches live; two paths recompute amounts and can return different results for the same request.
fx-quote-*tests.Solution
Acceptance Criteria
pnpm --filter fx-engine buildpasses.Note for Contributors: Write a clear PR description. Show identical results from cache and fallback.