Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

circular arbitrage issue #76

Open
osmangokc opened this issue Jan 3, 2025 · 1 comment
Open

circular arbitrage issue #76

osmangokc opened this issue Jan 3, 2025 · 1 comment

Comments

@osmangokc
Copy link

how does this allow circular arbitrage mode work. should i enter wsol mint for both input and output mint?

@shirotech
Copy link

shirotech commented Jan 14, 2025

@osmangokc took abit of digging, but the answer I've derived is not what you wanted. The quotes will give you a blank path, what you need to do is create 2 separate quote (for example SOL => USDC, and USDC => SOL), concat the route plans together and pass it to /swap or /swap-instructions endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@shirotech @osmangokc and others