Description
src/pathRouter.ts finds payment paths but returns an empty result when no path meets the minimum liquidity threshold. Adding a fallback that relaxes the threshold by a configurable percentage gives callers a viable (if more costly) route instead of a hard failure.
Acceptance Criteria
Context
- Target file:
src/pathRouter.ts
- The fallback retry is a single retry; do not implement multi-level fallback chaining
Description
src/pathRouter.tsfinds payment paths but returns an empty result when no path meets the minimum liquidity threshold. Adding a fallback that relaxes the threshold by a configurable percentage gives callers a viable (if more costly) route instead of a hard failure.Acceptance Criteria
findPath(params)accepts afallbackSlippagePct?: numberoption (default: none)threshold * (1 + fallbackSlippagePct/100)usedFallback: trueflagContext
src/pathRouter.ts