project-serum/swap

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

bigearsenal opened this issue · 3 comments

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.

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

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

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