Junion
Junion
## Related Issue A malicious hook could perform the following actions that are deemed unsafe for the user: **beforeSwap:** frontrun the user / remove liquidity **beforeAddLiquidity:** cause the ratio of...
## Related Issue Current quoter simulates a swap and reverts, using a lot of gas. ## Description of changes This view-only quoter aims to quote a v4 pool cheaper by...
## Related Issue An incorrectly written or malicious hook could revert in the remove liquidity function, bricking funds or holding user funds hostage. ## Description of changes This PR implements...
## Related Issue Hooks can be made to do bad things. Because anyone can create their own arbitrary logic for a hook contract, it's difficult for third parties to decide...
## Related Issue 1. someone can externally call beforeInitialize and overwrite the poolToken 2. function _rebalance is public 3. [fees can easily be yoinked](https://github.com/Uniswap/v4-periphery/issues/68#issuecomment-2187494815) ## Description of changes 1. add...
## Related Issue improves code clarity ## Description of changes rename EPOCH_DEFAULT to EPOCH_NOT_INITIALIZED in LimitOrder.sol
## Related Issue The slot holding the number of nonzero deltas is derived from keccak256("NonzeroDeltaCount"). Most correctly refer to NonzeroDeltaCount, but there are some NonZeroDeltaCount. This was confusing for me...
## Related Issue BalanceDelta and BeforeSwapDelta are custom types of 2 int128s packed into a single 32 byte slot. However, other contexts like CurrencyDelta refer to a single value. This...