TimeConcentrate
Concentrate liquidity along price and now TIME with uni v4 hooks.
Screenshots



Problem Statement
Uniswap v3 lets LPs concentrate liquidity along certain price bands. This makes capital more efficient and limits un-used liquidity. Our uniswap v4 hook lets you also set different times of day to concentrate liquidity to. We also did analysis of all volume that has ever been swapped on uniswap v3 to find the best times of day for optimal strategy that will result in more capital efficiency, more fees and lower risk for LPs.
Solution
Uniswap v4 hookshorsefacts timeDate librarysoliditypython script to make the graphDune analytics with SQL for dataThe docs for uni v4 are still very lacking so we had to do our best and learn a lot fast by reading the actually uniswap core contracts which are still being developed. Testing was hard because v4 uses new Op-codes that are not available on goerli or most networks. We created schemas in dune to compile the data and wrote the uni hooks in smart contracts extended from the uniswap example hooks library.
Hackathon
ETHGlobal New York
2024
Prizes
- 🏆
🏊♂️ Scroll — Pool Prize
Contributors
- MarcusWentz
27 contributions
- 0xshapley
11 contributions
- cupOJoseph
5 contributions
- dependabot[bot]
4 contributions