Background & current state
The payout reserve (NEW-010) holds one asset (say USDC), but some users want to receive a different asset (e.g., XLM or a local-currency anchor token). Stellar path payments can convert at claim time when DEX liquidity exists.
Goal
Let a user claim into their preferred asset via a strict-receive path payment from the reserve asset, when a viable path exists; otherwise fail clearly.
Technical design
- Backend builds a
PathPaymentStrictReceive (or strict-send) from the reserve asset to the user's chosen asset, using /paths (Horizon path finding) to select a route + max slippage.
- Slippage guard (
destMin/sendMax); reject if no path or slippage exceeds tolerance.
Edge cases
- No path / illiquid market → clear
NO_PATH error; user can fall back to the reserve asset.
- Slippage beyond tolerance → reject (don't execute a bad swap).
- Partial liquidity → strict-receive guarantees amount or fails.
- Trustline missing for the destination asset → detect + instruct the user to add a trustline.
Task breakdown
Acceptance criteria
Testing & verification
- Integration test against testnet DEX with a seeded path + a no-path case.
Out of scope
- AMM-specific routing beyond Horizon path finding.
Dependencies / related
- Builds on NEW-010 payout reserve.
References
- Path payments; Horizon path finding.
Difficulty: medium · Effort: M · stellar
Background & current state
The payout reserve (NEW-010) holds one asset (say USDC), but some users want to receive a different asset (e.g., XLM or a local-currency anchor token). Stellar path payments can convert at claim time when DEX liquidity exists.
Goal
Let a user claim into their preferred asset via a strict-receive path payment from the reserve asset, when a viable path exists; otherwise fail clearly.
Technical design
PathPaymentStrictReceive(or strict-send) from the reserve asset to the user's chosen asset, using/paths(Horizon path finding) to select a route + max slippage.destMin/sendMax); reject if no path or slippage exceeds tolerance.Edge cases
NO_PATHerror; user can fall back to the reserve asset.Task breakdown
/paths).Acceptance criteria
Testing & verification
Out of scope
Dependencies / related
References
Difficulty: medium · Effort: M · stellar