Errors
Revert reasons and their error codes.
Some errors take an errorCode. The code tells which check failed.
DropLaunchpad
| Error | Code | Cause |
|---|---|---|
DropLaunchpad__InvalidPools | 1 | The launch has no pools. |
2 | The launch has more than 5 pools. | |
3 | The main pool's share is less than 60%. | |
4 | A pool's share is more than the share of the pool before it. | |
5 | The shares do not sum to 100%. | |
DropLaunchpad__InvalidSupply | A pool has a share of zero. | |
DropLaunchpad__InvalidTick | 1 | A start tick is not a multiple of 200. |
2 | A start tick is less than -887200. | |
3 | A start tick is 887200 or more. | |
DropLaunchpad__InvalidDevBuy | msg.value is wrong. It must be the dev buy amount for a native main pool, and zero otherwise. | |
DropLaunchpad__InvalidRecipient | 1 | A fee recipient is the zero address. |
2 | A fee recipient is the launchpad. | |
3 | The dev buy has an amount but no recipient. | |
DropLaunchpad__UnknownPartner | The partner ID is not registered. | |
DropLaunchpad__UnknownTokenDeployer | The launchpad does not accept the token deployer. | |
DropLaunchpad__UnknownPool | The token has no launch pool with that quote. | |
DropLaunchpad__NotFeeRecipient | The caller is not the current fee recipient. | |
DropLaunchpad__InvalidShare | The partner share is more than 100%. | |
DropLaunchpad__InvalidFee | The partner LP fee is more than 5%. | |
DropLaunchpad__InvalidTokenDeployer | 1 | Constructor only: the launchpad has no token deployers. |
2 | Constructor only: a token deployer is the zero address. | |
3 | Constructor only: a token deployer is listed twice. | |
DropLaunchpad__NotPoolManager | Only PoolManager can call unlockCallback. | |
DropLaunchpad__NotHook | Only DropHook can call collectSwapFees. |
DropHook
| Error | Cause |
|---|---|
DropHook__InvalidInitializationSender | Another address initializes a pool with the hook. |
DropHook__LiquidityLocked | Another address adds liquidity, or anyone removes liquidity. |
Other reverts in a launch
These errors come from other contracts:
| Error | Cause |
|---|---|
PoolAlreadyInitialized (PoolManager) | Two pools of the launch have the same quote. |
TickLiquidityOverflow (PoolManager) | The start price is too high for the pool's supply. Use a lower start tick. |
SafeCastOverflow (PoolManager) | The start price is near the highest tick. Use a lower start tick. |
CurrencyNotSettled (PoolManager) | The dev buy is too large. The pool cannot take all of amountIn. |
| The quote's own revert | The ERC-20 dev buy has no allowance or balance. |
| Token deployer revert | The token address is already in use. Use another salt. |