Content pfp
Content
@
0 reply
0 recast
0 reaction

Robert Leifke pfp
Robert Leifke
@robertleifke
Reposting the question here: If I write a custom invariant with fungible parameters and want a ERC-20 or ERC-4626 representation for the LP position how do I write it as a hook? @zefram Do you have an existing hook implementation for https://github.com/ZeframLou/bunni
2 replies
1 recast
4 reactions

Haardik pfp
Haardik
@haardikkk
Conceptually it’s similar. Users will add liquidity through the hook instead of directly to uniswap. Hook will take their money and add liquidity on its behalf - and issue its own LP token to user See the v4 periphery “fullrange” hook example on GitHub
1 reply
0 recast
3 reactions

zefram.eth🎩 pfp
zefram.eth🎩
@zefram
Adding on to this, you can separate the liquidity manager contract (that's in charge of adding/removing liquidity) and the hook contract, which can let your liquidity manager support different pools using different hooks.
0 reply
0 recast
3 reactions