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

Custom program error 0x12e: Swap from SPL Token to Native SOL #14

Open
bigearsenal opened this issue Aug 31, 2021 · 4 comments
Open

Custom program error 0x12e: Swap from SPL Token to Native SOL #14

bigearsenal opened this issue Aug 31, 2021 · 4 comments

Comments

@bigearsenal
Copy link

bigearsenal commented Aug 31, 2021

Hi there! When trying to Swap from a SPL Token (SRM for example) to SOL, I faced this problem which I couldn't understand.
Program returned error: custom program error: 0x12e
Any idea why? Thank you. You can follow this link and simulate transaction to see the logs.

@munanadi
Copy link

Is this because there is a minimum limit that is required to be sent? Can you provide details of what amount you transferred?

@bigearsenal
Copy link
Author

bigearsenal commented Sep 25, 2021

Hi @Aadhinana, the amount was 1 USDC. I don't think It was a small number. Thus the error for minimum limit is different

@munanadi
Copy link

Was it 1USDC to SRM? I am not able to understand the transaction. Could you help me out here?

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
@bigearsenal @munanadi and others