feat: Payment Path Simulator - route finding, hop visualization, slippage estimation#31
Open
devboluwatife53 wants to merge 1 commit into
Open
Conversation
… hop visualization, and slippage estimation - Add GET /simulator/paths wrapping Horizon strict-send/strict-receive with per-hop breakdown, effective rate, and recommended slippage - Add POST /simulator/estimate computing destination_min/send_max from slippage tolerance - Add validation DTOs (find-paths.dto.ts, estimate.dto.ts) with class-validator - Rewrite simulator-tool.tsx with asset pickers, direction toggle, hop chain visualization, live slippage recalc, and composer linking - Register SimulatorModule in app.module.ts - Add simulator types to frontend api.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #20
Full implementation of the Payment Path Simulator feature for the Stellar developer workstation.
Changes
Backend (
apps/api/src/modules/simulator/)/simulator/paths— wraps Horizon/paths/strict-sendand/paths/strict-receivewith per-hop asset breakdown, effective exchange rate, estimated fee, and recommended slippage based on order book depth/simulator/estimate— given a selected path and slippage tolerance %, returns computeddestination_min(strict send) orsend_max(strict receive)class-validatorvalidation for both endpointsSimulatorModuleregistered inapp.module.tsFrontend (
apps/web/src/components/tools/simulator-tool.tsx)destination_min/send_max(no API call)/composerpre-filled with all path payment fieldsAcceptance Criteria