Environment
- SDK version: "@pump-fun/pump-sdk": "^1.31.0",
- OS: macOs
- Node.js version: (e.g., 22)
Using this sdk to create sell instructions results in sell failing sometimes (not always).
Example usage
const sellIxs = await PUMP_SDK.sellInstructions({
global,
...sellState,
mint: mint,
user: user,
amount: tokenAmount,
solAmount: expectedSol,
slippage: slippageDecimal * 100,
mayhemMode: sellState.bondingCurve.isMayhemMode,
tokenProgram: tokenProgramId,
});
Example failed sol sell transaction in pumpfun
{
"amount": {
"type": "u64",
"data": "6325344957752"
},
"min_sol_output": {
"type": "u64",
"data": "63292680"
}
}
#4 Pump.fun instruction
Program log: Instruction: Sell
Invoking
Pump Fees Program
Program log: Instruction: GetFees
Program consumed: 3136 of 1366958 compute units
Program return: pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ AAAAAAAAAABfAAAAAAAAAB4AAAAAAAAA
Program returned success
Invoking
image
Token 2022 Program
Program log: Instruction: TransferChecked
Program consumed: 2475 of 1360112 compute units
Program returned success
Program log: AnchorError thrown in programs/pump/src/lib.rs:764. Error Code: Overflow. Error Number: 6024. Error Message: Overflow.
Program consumed: 48699 of 1399550 compute units
Program returned error: custom program error: 0x1788
How to fix this ?
Environment
Using this sdk to create sell instructions results in sell failing sometimes (not always).
Example usage
Example failed sol sell transaction in pumpfun
{
"amount": {
"type": "u64",
"data": "6325344957752"
},
"min_sol_output": {
"type": "u64",
"data": "63292680"
}
}
#4 Pump.fun instruction
How to fix this ?