Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/contracts/v4/quickstart/04-hooks/01-swap.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ A brief overview of the parameters:
- `sender` The initial `msg.sender` for the `PoolManager.swap` call - typically a swap router
- `key` The key for the pool
- `params` The parameters for the swap i.e. [`SwapParams`](/contracts/v4/reference/core/interfaces/IPoolManager#swapparams) from `IPoolManager`
- `hookData` Arbitrary data handed into the `PoolManager` by the swapper to be be passed on to the hook
- `hookData` Arbitrary data handed into the `PoolManager` by the swapper to be passed on to the hook

## afterSwap

Expand All @@ -125,7 +125,7 @@ A brief overview of the parameters:
- `key` The key for the pool
- `params` The parameters for the swap i.e. [`SwapParams`](/contracts/v4/reference/core/interfaces/IPoolManager#swapparams) from `IPoolManager`
- `delta` The amount owed to the caller (positive) or owed to the pool (negative)
- `hookData` Arbitrary data handed into the `PoolManager` by the swapper to be be passed on to the hook
- `hookData` Arbitrary data handed into the `PoolManager` by the swapper to be passed on to the hook



Expand Down Expand Up @@ -198,4 +198,4 @@ contract SwapHook is BaseHook {
return (BaseHook.afterSwap.selector, 0);
}
}
```
```