From dd6dcfe0228b1a5e15e6f0e830337411ad6b0b23 Mon Sep 17 00:00:00 2001 From: See Yi Jie <36152992+seeyijie@users.noreply.github.com> Date: Fri, 13 Dec 2024 05:51:10 +0800 Subject: [PATCH] Added links to Custom Accounting page (#833) --- docs/contracts/v4/guides/08-custom-accounting.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/contracts/v4/guides/08-custom-accounting.mdx b/docs/contracts/v4/guides/08-custom-accounting.mdx index f8c39a0c1..c90760df8 100644 --- a/docs/contracts/v4/guides/08-custom-accounting.mdx +++ b/docs/contracts/v4/guides/08-custom-accounting.mdx @@ -15,7 +15,7 @@ Before we dive into the details of custom accounting, hook fees, custom curves, As described in [Flash Accounting](/contracts/v4/concepts/flash-accounting) Uniswap v4 tracks net token transfers with transient storage. Unlike previous versions that tracked absolute token balances, v4 records changes to these balances (*deltas*). This approach is at the core of v4’s enhanced flexibility and efficiency. -In the v4 architecture, the `PoolManager` manages credits or debits per address. After a swap router contract interacts with the PoolManager, the core contract determines that the swap router owes input tokens and must claim output tokens. Token balances are tracked as accumulated deltas in transient storage; and only the final deltas incur token transfers +In the v4 architecture, the [`PoolManager`](/contracts/v4/concepts/PoolManager) manages credits or debits per address. After a swap router contract interacts with the PoolManager, the core contract determines that the swap router owes input tokens and must claim output tokens. Token balances are tracked as accumulated deltas in transient storage; and only the final deltas incur token transfers Delta accounting provides several key benefits: @@ -41,7 +41,7 @@ Hook fees are typically calculated and applied in the `beforeSwap` function, all **Use of BeforeSwapDelta** -Hook fees often utilize the `BeforeSwapDelta` mechanism to adjust swap amounts and transfer deltas from the hook to the swap router, enabling precise control over how the fee affects the swap. +Hook fees often utilize the [`BeforeSwapDelta`](/contracts/v4/reference/core/types/beforeswapdelta) mechanism to adjust swap amounts and transfer deltas from the hook to the swap router, enabling precise control over how the fee affects the swap. **Flexible Implementation**