Rehypothecation
In DeFi, rehypothecation means a protocol or user reuses collateral that’s already locked or staked somewhere else, effectively stacking leverage on top of the same underlying asset.
For example:
- 
You deposit ETH into Lido and receive stETH (a liquid staking token).
 - 
You use that stETH as collateral on Aave to borrow USDC.
 - 
Someone else might take that USDC, buy more ETH, stake it again, mint more stETH…
 
Rehypothecation in Uniswap v4
Uniswap v4 hooks enable a form of rehypothecation by allowing liquidity providers to earn additional yield on their deposited tokens without compromising the pool’s functionality.
How it works:
- 
Liquidity Deposit: When users add liquidity to a pool, the hook can intercept the tokens using
beforeAddLiquidityandafterAddLiquiditycallbacks. - 
External Deployment: The hook automatically deposits these tokens into external yield-generating protocols (like lending platforms, staking contracts, or other DeFi protocols).
 - 
Swap Execution: Before each swap, the hook uses
beforeSwapto withdraw tokens from the external protocol, allowing the swap to execute normally. - 
Re-deposit: After the swap completes,
afterSwapre-deposits the tokens back into the yield-generating protocol. 
This creates a seamless experience where LPs earn both trading fees from Uniswap and additional yield from external protocols, while maintaining full liquidity for trading.
WIP.