Skip to content

Validate/bound max liquidity per tick #162

@kadenzipfel

Description

@kadenzipfel

Uniswap has a max liquidity per tick given the tickSpacing used. It can be retrieved with Pool.tickSpacingToMaxLiquidityPerTick. It's important that we never attempt to provide liquidity, or even compute liquidity amounts, e.g. with getLiquidityForAmount0/1 if we exceed the max liquidity per tick.

We should consider all the places where we must validate the liquidity per tick is less than the max amount and if it is not less, we should extend the slug ranges accordingly

Alternatively, it may be possible to derive whether we will ever reach this maximum given the constructor parameters and enforce this there

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions