Skip to content

BeforeSwapDelta docs inconsistency #7

@GianfrancoBazzani

Description

@GianfrancoBazzani

- The `afterSwap` hook receives the `beforeSwapDelta` as a parameter.

This line in the docs states that the afterSwap hook receives the beforeSwapDelta as a parameter, but neither IHooks.sol nor BaseHook.sol shows such a parameter.

https://github.com/Uniswap/v4-core/blob/e8e63c87afb433b650c2387d6d839a239ee05653/src/interfaces/IHooks.sol#L120-L126
https://github.com/Uniswap/v4-periphery/blob/d325f82761b2b37daed44ca237382c83243b1a32/src/base/hooks/BaseHook.sol#L111-L117

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