jup-ag / jupiter-swap-api

The jupiter swap api binary
72 stars 20 forks source link

Permit same pair swaps #6

Closed defliction closed 1 month ago

defliction commented 8 months ago

The API does not permit same pair swaps.

{"error":"Input and output mints are not allowed to be equal"}

This should be enabled with cli flag depending on desired configuration of deployment.

Godxia commented 7 months ago

still "error":"Input and output mints are not allowed to be equal"

soldv00 commented 3 months ago

I have the exact same use case. I want to do swap from and to the same token for arbitrage reasons. this used to work on the v4 but not anymore on the v6. any updates on this please ?

siong1987 commented 1 month ago

it is permitted now with the /swap endpoint.