
Uniswap Hooks
/uniswaphooks202
Discuss anything and everything Uniswap Hooks. Moderated by Atrium Academy: https://atrium.academy/uniswap
Introducing two new @uniswap hooks to the Bonsai Launchpad
💸 Lottery Hook: every trade on graduated tokens contributes a 1% fee to a growing jackpot. After every 72 hours or 1,000 swaps, one lucky participant takes home the entire pool—no extra steps required.
🏦 Trading Days Hook: New York Stock Exchange hours for swaps. No weekends. No holidays.
💸 Lottery Hook: every trade on graduated tokens contributes a 1% fee to a growing jackpot. After every 72 hours or 1,000 swaps, one lucky participant takes home the entire pool—no extra steps required.
🏦 Trading Days Hook: New York Stock Exchange hours for swaps. No weekends. No holidays.
Need certain clarification in liquidity-operator-limit-order-part-1: what happens to the minted tokens to the user equal to their inputAmount? Are they burned based on no-fill/partial-fill? Furthermore, there is no time-limit attached to this pending order. would appreciate some clarification on this point.
Hey guys any chance to watch again the videos of the first cohort?
Hey, would be cool to connect with 1st cohort and share experiences as well!
🎉 We’ve done it again! 🎉
Proud to announce that we've won the Uniswap Hook Incubator Hackathon with our V4 Orderbook DEX, integrating @eigenlayer AVS!
This is our third win this year! 🙌. Thank you @eigenfoundation @uniswap foundation, for this opportunity
Proud to announce that we've won the Uniswap Hook Incubator Hackathon with our V4 Orderbook DEX, integrating @eigenlayer AVS!
This is our third win this year! 🙌. Thank you @eigenfoundation @uniswap foundation, for this opportunity
Is there like a non fungible position manager periphery contract for v4 or something that EOAs will use to add liquidity? I don’t find it in v4 periphery
🔹 I find more difficult to understand the American date format than Haardik’s Dynamic Fee workshop, lol
are you a good solidity dev?
do you gag when you see a uint256 timestamp storage variable?
tired of solidity roles where you end up being a full stack developer?
tired of your aave fork product with 0 users and revenue, existing only because of the VC money?
do you gag when you see a uint256 timestamp storage variable?
tired of solidity roles where you end up being a full stack developer?
tired of your aave fork product with 0 users and revenue, existing only because of the VC money?
🔹 Question, do you know some tool to know how much toxic order flow have a specific LP? 🤔
has anyone run into the error "panic: arithmetic underflow or overflow" when adding liquidity?
My math is probably wrong lol
I'm using the liquidity amount library in v4 to figure out how much liquidity i need to add to my pool.
https://github.com/atj3097/nft-amm-hook/blob/master/test/NFTAMMHook.t.sol#L131-L163
My math is probably wrong lol
I'm using the liquidity amount library in v4 to figure out how much liquidity i need to add to my pool.
https://github.com/atj3097/nft-amm-hook/blob/master/test/NFTAMMHook.t.sol#L131-L163
Anyone interested in building something around LVR minimization using v4? My DMs are open
Are there any examples of a contract factory for deploying hooks in a production environment?
I think I remember seeing somewhere that HookMiner.sol should probably not be used for production.
I think I remember seeing somewhere that HookMiner.sol should probably not be used for production.
Seems that accrual of LP fees is not yet implemented in v4-core. Anyone knows what’s the status for this? Maybe @poi ?
Reply to Dynamic Fees: Gas Price Fee:
"If anyone has any suggestions to improve this - let me know - but it should be understandable at least the way it is."
We can separate the logic into smaller helper functions: https://github.com/cristianopolicarpo/gas-price-dynamic-fees/blob/master/test/GasPriceFeesHook.t.sol
"If anyone has any suggestions to improve this - let me know - but it should be understandable at least the way it is."
We can separate the logic into smaller helper functions: https://github.com/cristianopolicarpo/gas-price-dynamic-fees/blob/master/test/GasPriceFeesHook.t.sol
Won’t be able to make it to today’s office hours unfortunately 😢 feel free to ask questions here though!
Can the price of a pool reach a tick outside the bounds of existing liquidity ranges?
Does anybody know what would "gas: 0" error mean when Foundry test sets up environment? Increasing HookMiner iteration limits doesn't work, some parameters of Foundry like max gas also not working here. I am confused and the error message is not really indicative.
saw in v4-core they use mythx in combination with echidna. how does that work? cant find anything related. https://github.com/Uniswap/v4-core/blob/b045af29b1e0a0a9baabbb7233dc130e5ea80fe2/.github/workflows/mythx.yml#L46
Hi guys! Does anyone have already tried to run the code from today's lesson? I have one failed test there (test_multiple_orderExecute_zeroForOne_both - last assert with 60 tick: [FAIL. Reason: assertion failed: 10000000000000000 != 0] test_multiple_orderExecute_zeroForOne_both() (gas: 612203). Has anyone got this too?
one question for a point of clarity on uni pools
token 0 <> token 1
these tokens are lexicographically sorted by their addresses.
what is the reasoning behind sorting tokens in a pool like that? particularly in terms of the sc design choice there
token 0 <> token 1
these tokens are lexicographically sorted by their addresses.
what is the reasoning behind sorting tokens in a pool like that? particularly in terms of the sc design choice there
🔹 Guys, maybe im wrong, but if a user does 2 orders with the same quantity, lets say 100 each one, 200 in total. Then if he/she cancels only 1 order, then the 2 orders will be canceled according to this code, right? 🤔
🔹 Question, we mint the ERC1155 to keep track the user order, right? If we dont do this, we will never know how to match a position with a user, am i right? 🤔
question; looking at the poolManager.initialize() function.
This takes in a sqrtRatioX96.
Say I have the below supply of tokens (maybe from a presale)
token0 = 20000000000000000000
token1 = 590000000000000000000
I want to set the sqrtPriceX96 to be the proportion of tokens i.e 1 token1 = 29.5 token0? (all onchain)
This takes in a sqrtRatioX96.
Say I have the below supply of tokens (maybe from a presale)
token0 = 20000000000000000000
token1 = 590000000000000000000
I want to set the sqrtPriceX96 to be the proportion of tokens i.e 1 token1 = 29.5 token0? (all onchain)