Errors

Revert reasons and their error codes.

Some errors take an errorCode. The code tells which check failed.

DropLaunchpad

ErrorCodeCause
DropLaunchpad__InvalidPools1The launch has no pools.
2The launch has more than 5 pools.
3The main pool's share is less than 60%.
4A pool's share is more than the share of the pool before it.
5The shares do not sum to 100%.
DropLaunchpad__InvalidSupplyA pool has a share of zero.
DropLaunchpad__InvalidTick1A start tick is not a multiple of 200.
2A start tick is less than -887200.
3A start tick is 887200 or more.
DropLaunchpad__InvalidDevBuymsg.value is wrong. It must be the dev buy amount for a native main pool, and zero otherwise.
DropLaunchpad__InvalidRecipient1A fee recipient is the zero address.
2A fee recipient is the launchpad.
3The dev buy has an amount but no recipient.
DropLaunchpad__UnknownPartnerThe partner ID is not registered.
DropLaunchpad__UnknownTokenDeployerThe launchpad does not accept the token deployer.
DropLaunchpad__UnknownPoolThe token has no launch pool with that quote.
DropLaunchpad__NotFeeRecipientThe caller is not the current fee recipient.
DropLaunchpad__InvalidShareThe partner share is more than 100%.
DropLaunchpad__InvalidFeeThe partner LP fee is more than 5%.
DropLaunchpad__InvalidTokenDeployer1Constructor only: the launchpad has no token deployers.
2Constructor only: a token deployer is the zero address.
3Constructor only: a token deployer is listed twice.
DropLaunchpad__NotPoolManagerOnly PoolManager can call unlockCallback.
DropLaunchpad__NotHookOnly DropHook can call collectSwapFees.

DropHook

ErrorCause
DropHook__InvalidInitializationSenderAnother address initializes a pool with the hook.
DropHook__LiquidityLockedAnother address adds liquidity, or anyone removes liquidity.

Other reverts in a launch

These errors come from other contracts:

ErrorCause
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 revertThe ERC-20 dev buy has no allowance or balance.
Token deployer revertThe token address is already in use. Use another salt.

On this page