MENDRA
EthereumMENDRA is a Uniswap v4 hook on Ethereum. Brand new: its first pool went live today. Active: 96 trades in the last week, and 1 new pool this week.
- Contract name
- MENDRA
How this hook works
Trading taxA trading tax hook. It takes 2% on buys and 3% on sells, keeps rewards to claim and only lets approved callers create pools.
Takes 2% on buys and 3% on sells
On top of the normal pool fee, buys pay 2% and sells pay 3%. The rates are written into the code. The tax builds up in the hook until it is collected.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata key, SwapParams calldata params, bytes calldata) external onlyManager returns (bytes4, BeforeSwapDelta, uint24) { _requirePool(key); if (!params.zeroForOne && params.amountSpecified > 0) revert UnsupportedExactOutputSell(); if (params.zeroForOne && params.amountSpecified < 0) { uint256 fee = _fee(uint256(-params.amountSpecified), BUY_FEE_BPS); if (fee > uint256(uint128(type(int128).max))) revert FeeOverflow(); if (fee != 0) { poolManager.take(key.currency0, address(this), fee); return (IHooks.beforeSwap.selector, toBeforeSwapDelta(int128(int256(fee)), 0), 0); } } return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0); }Rewards to claim
It keeps track of what people have earned, and they claim it themselves.
The code that does this (claimRewards):function claimRewards() external nonReentrant returns (uint256 amount) { _settle(msg.sender); amount = pending[msg.sender]; if (amount == 0) revert NoRewards(); pending[msg.sender] = 0; if (_eligible(msg.sender)) rewardClock[msg.sender] = uint64(block.timestamp); claimedOf[msg.sender] += amount; totalRewardsClaimed += amount; (bool ok,) = msg.sender.call{value: amount}(""); if (!ok) revert EthTransferFailed(); emit RewardsClaimed(msg.sender, amount); }Only approved callers create pools
New pools with this hook can only be created by approved callers, for example its own factory or launcher.
The code that does this (beforeInitialize):function beforeInitialize(address sender, PoolKey calldata key, uint160) external onlyManager returns (bytes4) { if (sender != owner()) revert UnauthorizedInitializer(); if (poolBound) revert PoolAlreadyBound(); if (!_validPool(key)) revert WrongPool(); poolBound = true; canonicalPool = key.toId(); emit PoolBound(canonicalPool); return IHooks.beforeInitialize.selector; }Simple trades only
Trades must state the amount going in, not the amount coming out.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata key, SwapParams calldata params, bytes calldata) external onlyManager returns (bytes4, BeforeSwapDelta, uint24) { _requirePool(key); if (!params.zeroForOne && params.amountSpecified > 0) revert UnsupportedExactOutputSell(); if (params.zeroForOne && params.amountSpecified < 0) { uint256 fee = _fee(uint256(-params.amountSpecified), BUY_FEE_BPS); if (fee > uint256(uint128(type(int128).max))) revert FeeOverflow(); if (fee != 0) { poolManager.take(key.currency0, address(this), fee); return (IHooks.beforeSwap.selector, toBeforeSwapDelta(int128(int256(fee)), 0), 0); } } return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0); }
Who controls it: It has an admin address, but no admin-only settings in its own code. The code cannot be changed.
Based on the hook’s published code.What do these labels mean?
Safety report
Before you build on it. Automated checks, not an auditWhat it can do
Its code executes inside each trade in pools that use it.
It can take or add tokens during a swap. Fees, burns and custom curves work this way, and so do scams.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
- Took its fee from a trade 96 times
Latest transactions
- 0x4880de24…bf3e52 block 26,494,931
- 0x17304603…e336e4 block 26,494,928
- 0x60bf7a16…c1ad69 block 26,494,925
- 0xd6431160…565d64 block 26,494,923
- 0x3f7fd2aa…c37653 block 26,494,919
- 0xf759605d…9a2cd6 block 26,494,919
- 0x8f059416…f3917a block 26,494,919
- 0xd4e2366d…dd0562 block 26,494,919
- 0x3b88bdab…3da29b block 26,494,916
- 0x0e9e8b8d…a74321 block 26,494,886
- Paid out rewards 96 times
Latest transactions
- 0x4880de24…bf3e52 block 26,494,931
- 0x17304603…e336e4 block 26,494,928
- 0x60bf7a16…c1ad69 block 26,494,925
- 0xd6431160…565d64 block 26,494,923
- 0x3f7fd2aa…c37653 block 26,494,919
- 0xf759605d…9a2cd6 block 26,494,919
- 0x8f059416…f3917a block 26,494,919
- 0xd4e2366d…dd0562 block 26,494,919
- 0x3b88bdab…3da29b block 26,494,916
- 0x0e9e8b8d…a74321 block 26,494,886
Settings changes: set up a pool (1 time).
Counted from what the hook recorded on-chain across all its pools, for every action in its published code, plus token transfers in and out of it.