Solana error codes › BonkSwap

BonkSwap error codes

16 error codes defined by BonkSwap (program ID BSwp6bEBihVLdqJRKGgzjcGLHkcTuzmSo1TQkHepzH8p). In logs they appear as custom program error: 0x… after Program BSwp6bEBihVLdqJRKGgzjcGLHkcTuzmSo1TQkHepzH8p failed.

Custom errors start at 6000 (0x1770). If a code is below 6000 and not listed here, see the Anchor framework errors.

HexCodeError
0x17706000DeltaTooBig
Delta greater than provider's tokens
0x17716001TokenUnderflow
Token amount underflow
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
0x17726002WrongRatio
Wrong tokens ratio
0x17736003TooMuchShares
Too much shares provided
0x17746004SwapToBig
Swap too big
0x17756005FeeExceeded
Fee exceeded 100%
0x17776007ScalesNotEqual
Scales have to be equal
0x17786008FeeExceededDeltaOut
Fees exceeded delta_out
0x17796009PriceLimitExceeded
Price limit exceeded
0x177a6010MintMismatch
Mint mismatch
0x177b6011TokensAreTheSame
Tokens are the same
0x177c6012WrongFarm
Cannot add supply to wrong farm
0x177d6013RewardsExceedingSupply
Cannot withdraw rewards exceeding supply left
0x177e6014FarmNotEnded
Farm has not ended, cannot add additional rewards
The name points to a feature or pool state that currently blocks this action.
0x177f6015ZeroAmount
Must provide a nonzero amount
0x17806016InvariantDecreased
Invariant has changed

Decode an error

Free, no sign-up, nothing to connect. Works offline from a bundled list; we do not look anything up on-chain.

Swapping a token you do not know? A free Rugsight check shows mint and freeze authority, Token-2022 extensions, holder concentration and liquidity before you trade.

Source: solana-idls@1.2.1. Data: program error lists from published IDLs (solana-idls 1.2.1, MIT) and the System, SPL Token, Token-2022 and Associated Token Account source code, snapshot 2026-11-16. Programs can be upgraded and add or change errors; the failing program's current IDL is the final word.