Skip to content

send_path_payment simulates DEX swaps 1:1 instead of calling a real router — no actual price discovery #2

Description

@abayomicornelius

In stellar_send/src/lib.rs (lines ~273-298), the code contains an explicit comment stating "For path payments on Soroban we perform the swaps manually... We model the output as 1:1 for testing purposes" and shows a commented-out example of the real dex_router::Client call that should replace it.

This means send_path_payment currently cannot perform genuine cross-asset swaps — the destination amount is always equal to the net send amount regardless of dest_token, path, or real market rates, and the contract only works because callers pre-fund it with dest_token. This is a functional gap between the documented "DEX path swap" feature and the actual implementation that needs a tracked task before any real deployment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcontractsSmart contract logicenhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions