Carry
RobinhoodRegisteredCarry is a Uniswap v4 hook on Robinhood Chain by 0xbd139eedb2e2eb6ef01a7e24539ffc7f77e3dfdb, also known as CarryStrategy. A custom-curve AMM hook that prices each pool off an external source pool (v2/v3/v4 on the same chain), using flat-center/steep-tail curve math (CarryFlatMath) and its own ERC-6909 reserves held inside the PoolManager. Swaps are fully handled in `beforeSwap`; Uniswap v4 concentrated liquidity is disabled for these pools. Live for 2 days. Still in use: 3 trades in the last week, and 1 new pool this week.
- Made by
- 0xbd139eedb2e2eb6ef01a7e24539ffc7f77e3dfdb
- Contract name
- CarryStrategy
How this hook works
Trading taxA trading tax hook. It takes a cut of every trade, keeps rewards to claim and stops liquidity being added or removed directly.
Takes a cut of every trade
On top of the normal pool fee, it keeps a share of each trade. The fee can be changed. The fee builds up in the hook until it is collected.
The code that does this (beforeSwap):function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata) external returns (bytes4, BeforeSwapDelta, uint24) { if (msg.sender != address(poolManager)) revert OnlyPoolManager(); _enter(); PoolId id = key.toId(); Pool storage p = pools[id]; if (!p.exists) revert UnknownPool(); if (!p.live) revert NotLive(); if (p.paused) revert Paused(); if (params.amountSpecified == 0 || params.amountSpecified == type(int256).min) revert BadParams(); (uint256 kb, uint256 ks, uint256 pb, uint256 ps, uint256 spot) = _prepareSame(p); bool exactIn = params.amountSpecified < 0; uint256 spec = exactIn ? uint256(-params.amountSpecified) : uint256(params.amountSpecified); // input is currency0 when zeroForOne; the input is the coin on a sell bool sell = params.zeroForOne == p.coinIs0; (uint256 coinAmt, uint256 quoteAmt, uint256 pf) = _fillP(p, p.book.x, p.book.y, p.tX128, sell ? ks : kb, sell ? ps : pb, sell, exactIn, spec); // v0.3: the book records each swap's earnings (paid out per epoch) at the less favourable of the anchor and // the leader, so the anchor's lag behind the leader is never booked as fees (round-6 N-1). The leader counts // only as far as both this block's sample and the live spot agree: a leader pushed for the sample alone and // put back cannot book a made-up loss. A real move of any size is marked in full once it is in the block's // sample; a move after the block's first touch is marked from the next block (the conservative side). { uint256 a = p.anchorX128; uint256 sm = p.sampleX128; if (sell) { // …Rewards to claim
It keeps track of what people have earned, and they claim it themselves.
The code that does this (claimProtocolFee):function claimProtocolFee(PoolId id) external lock returns (uint256 x, uint256 y) { Pool storage p = _known(id); address to = protoTo; if (to == address(0)) revert BadParams(); (x, y) = (p.protoX, p.protoY); p.protoX = 0; p.protoY = 0; _moves(id, _pair(p, x, y, to, false)); emit ProtocolFeePaid(id, to, x, y); }Liquidity can’t be added or removed directly
Nobody can add or remove liquidity through Uniswap directly. Liquidity only moves through the hook’s own code.
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, PoolKey calldata, uint160) external view returns (bytes4) { if (msg.sender != address(poolManager)) revert OnlyPoolManager(); revert ExternalInit(); }No trading before the start
Trades are refused until trading has been opened.
The code that does this (beforeSwap):function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata) external returns (bytes4, BeforeSwapDelta, uint24) { if (msg.sender != address(poolManager)) revert OnlyPoolManager(); _enter(); PoolId id = key.toId(); Pool storage p = pools[id]; if (!p.exists) revert UnknownPool(); if (!p.live) revert NotLive(); if (p.paused) revert Paused(); if (params.amountSpecified == 0 || params.amountSpecified == type(int256).min) revert BadParams(); (uint256 kb, uint256 ks, uint256 pb, uint256 ps, uint256 spot) = _prepareSame(p); bool exactIn = params.amountSpecified < 0; uint256 spec = exactIn ? uint256(-params.amountSpecified) : uint256(params.amountSpecified); // input is currency0 when zeroForOne; the input is the coin on a sell bool sell = params.zeroForOne == p.coinIs0; (uint256 coinAmt, uint256 quoteAmt, uint256 pf) = _fillP(p, p.book.x, p.book.y, p.tX128, sell ? ks : kb, sell ? ps : pb, sell, exactIn, spec); // v0.3: the book records each swap's earnings (paid out per epoch) at the less favourable of the anchor and // the leader, so the anchor's lag behind the leader is never booked as fees (round-6 N-1). The leader counts // only as far as both this block's sample and the live spot agree: a leader pushed for the sample alone and // put back cannot book a made-up loss. A real move of any size is marked in full once it is in the block's // sample; a move after the block's first touch is marked from the next block (the conservative side). { uint256 a = p.anchorX128; uint256 sm = p.sampleX128; if (sell) { // …Trading can be paused
The hook can stop all trading in its pools until it is switched back on.
The code that does this (beforeSwap):function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata) external returns (bytes4, BeforeSwapDelta, uint24) { if (msg.sender != address(poolManager)) revert OnlyPoolManager(); _enter(); PoolId id = key.toId(); Pool storage p = pools[id]; if (!p.exists) revert UnknownPool(); if (!p.live) revert NotLive(); if (p.paused) revert Paused(); if (params.amountSpecified == 0 || params.amountSpecified == type(int256).min) revert BadParams(); (uint256 kb, uint256 ks, uint256 pb, uint256 ps, uint256 spot) = _prepareSame(p); bool exactIn = params.amountSpecified < 0; uint256 spec = exactIn ? uint256(-params.amountSpecified) : uint256(params.amountSpecified); // input is currency0 when zeroForOne; the input is the coin on a sell bool sell = params.zeroForOne == p.coinIs0; (uint256 coinAmt, uint256 quoteAmt, uint256 pf) = _fillP(p, p.book.x, p.book.y, p.tX128, sell ? ks : kb, sell ? ps : pb, sell, exactIn, spec); // v0.3: the book records each swap's earnings (paid out per epoch) at the less favourable of the anchor and // the leader, so the anchor's lag behind the leader is never booked as fees (round-6 N-1). The leader counts // only as far as both this block's sample and the live spot agree: a leader pushed for the sample alone and // put back cannot book a made-up loss. A real move of any size is marked in full once it is in the block's // sample; a move after the block's first touch is marked from the next block (the conservative side). { uint256 a = p.anchorX128; uint256 sm = p.sampleX128; if (sell) { // …
Who controls it: The hook developer can change the fee, the wallets that receive its fees and the trading limits. The hook developer can also change: curve, gate, leader, tip rule, depth rule and 1 more. The hook developer can also call: propose admin, accept admin. The hook developer can pause trading. 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 auditsetFeeAndEdge setCurve setLeader setTipRulesetPausedWhat 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 before liquidity is removed, so it can delay or refuse LP exits.
It checks every deposit before it goes in.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
Across all its pools, the hook modify liquidity: $125.00, and handled a trade: $51.03.
- Modify liquidity 2 times, worth $125.00
Latest transactions
- 0xfaacc0e7…1ad017 block 113,929,532
- 0x84adbf97…0e9314 block 113,901,751
- Handled a trade 3 times, worth $51.03
Latest transactions
- 0x8bd375f3…27b7e4 block 115,894,628
- 0x5e3da085…b0669e block 115,852,592
- 0xfb808a4c…65ba00 block 113,925,280
- Tipped 31 times
Latest transactions
- 0x5f57311e…0ec41c block 115,867,307
- 0xb8b838ea…4aac2f block 115,867,182
- 0x2f3c78df…d16436 block 115,853,217
- 0xb52da588…c47ae0 block 115,833,952
- 0x6f53ae6e…02a8b9 block 115,833,385
- 0x5ca3aad6…b10e52 block 115,832,301
- 0xcf37eac5…6e61f3 block 115,832,176
- 0x14536f0d…6704c7 block 115,382,492
- 0x2c35b3c6…fcbcd8 block 115,381,699
- 0xda5677a7…5fa852 block 114,651,273
- Took in a deposit 1 time
- Funded the jar 1 time
- Created 1 time
Settings changes: settled (2 times), changed who controls the hook (1 time), proposed a new controlling wallet (1 time), changed the guardian wallet (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. Dollar values count the amounts paid in ETH, stablecoins, BNB and BTC, at today’s prices.