Error codes
Every custom error social_gate can return, 6000 to 6026, and what to do about it.
When social_gate rejects something, the transaction fails with a custom program error and a log line naming it. Numbers start at 6000 (0x1770). Traders only ever meet the first one; the rest concern launches and administration.
Program JCru37BxoujobuWBFR7kBCWXNCDUuoRuWRgKHAzpkduG invoke [4]
Program log: Error Code: BuyNotAllowed. Error Number: 6000. Error Message: Buying on the curve requires fomo's sponsor signature or a FOMOPRIME approve_buy for this destination and amount.
Program JCru37BxoujobuWBFR7kBCWXNCDUuoRuWRgKHAzpkduG failed: custom program error: 0x1770The one traders see
6000 BuyNotAllowed means a buy from the curve arrived without fomo's signature or a FOMOPRIME approval: for example from a trading bot, an aggregator, or an exported fomo key in another app. Nothing was bought and only the network fee was spent. Buy from the fomo app or on FOMOPRIME instead. After graduation this error can no longer happen.
Tip
0x1770 for 6000. The table below lists both forms.All errors
| Code | Hex | Name | Meaning |
|---|---|---|---|
| 6000 | 0x1770 | BuyNotAllowed | Buying on the curve requires fomo's sponsor signature or a FOMOPRIME approve_buy for this destination and amount |
| 6001 | 0x1771 | NotTransferring | Transfer hook called outside of a Token-2022 transfer |
| 6002 | 0x1772 | InvalidSourceAccount | Source account is not a Token-2022 account |
| 6003 | 0x1773 | MintMismatch | Source token account mint does not match the mint |
| 6004 | 0x1774 | InvalidInstructionsSysvar | Invalid instructions sysvar account |
| 6005 | 0x1775 | MalformedInstructionsSysvar | Malformed instructions sysvar data |
| 6006 | 0x1776 | MintNotHookedToThisProgram | The mint's transfer hook program is not this program |
| 6007 | 0x1777 | MintNotFromDbc | The mint's transfer hook authority is not the DBC pool authority |
| 6008 | 0x1778 | Unauthorized | Unauthorized |
| 6009 | 0x1779 | NoBuyKeys | Sponsors and approvers must not both be empty |
| 6010 | 0x177a | TooManyKeys | Too many keys in a list (max 8) |
| 6011 | 0x177b | InvalidKey | Key must not be the default pubkey |
| 6012 | 0x177c | DuplicateKey | Duplicate key in a list |
| 6013 | 0x177d | InvalidDbcProgram | Invalid DBC program |
| 6014 | 0x177e | RoleConflict | A key may hold only one role: admin/launcher, sponsor or approver |
| 6015 | 0x177f | InvalidApproval | approve_buy needs a non-default destination and max_amount > 0 |
| 6016 | 0x1780 | InvalidDbcPool | Pool is not this mint's DBC transfer-hook pool |
| 6017 | 0x1781 | MintHasAuthority | The mint must have no mint authority and no freeze authority |
| 6018 | 0x1782 | InvalidDbcConfig | Config is not the pool's DBC transfer-hook config |
| 6019 | 0x1783 | TokenAuthorityNotAllowed | The DBC config's token authority option must be 0, 1 or 2 |
| 6020 | 0x1784 | PartnerMismatch | The DBC config's fee claimer is not the FOMOPRIME partner |
| 6021 | 0x1785 | SupplyMismatch | Mint supply and base vault balance must equal the pool's base reserve |
| 6022 | 0x1786 | InvalidBaseVault | Base vault is not the pool's base vault |
| 6023 | 0x1787 | ConfigNotHookedToThisProgram | The DBC config's transfer hook program is not this program |
| 6024 | 0x1788 | DbcConfigNotRegistered | The DBC config is not registered (register_dbc_config by the admin or the launcher) |
| 6025 | 0x1789 | DbcConfigAlreadyRegistered | The DBC config is already registered |
| 6026 | 0x178a | RegistrationStale | The DBC config was registered by a key that is no longer the admin or the launcher |
Account-level problems use Solana's built-in errors instead: NotEnoughAccountKeys, MissingRequiredSignature, InvalidAccountOwner, InvalidSeeds and InvalidInstructionData.