Contract teardown · · data through 2026-11-30, regenerated 2 Dec 2026
Trading bot 0x51C7…2A7F: how it trades, where its edge comes from, what it makes
About +$29k a day over 30 days. The 95% range for the mean, −$1k to +$65k, includes zero. This is the on-chain gain at prices five minutes after each trade, after the tips and gas we could count.
For readers who know AMMs, RFQ and block building. About fifteen minutes.
Daily gains
16 of 30 days were positive. The median day was +$3k.
The numbers in the chart
| Day | All trades | Without the one fill | Own swaps | Other contracts | Quote fills |
|---|---|---|---|---|---|
| 1 Nov | +$4k | +$4k | −$8k | +$3k | +$9k |
| 2 Nov | +$40k | +$40k | −$25k | +$42k | +$23k |
| 3 Nov | −$19k | −$19k | −$31k | −$10k | +$22k |
| 4 Nov | +$273k | −$85k | −$72k | −$49k | +$394k |
| 5 Nov | +$170k | +$170k | −$27k | +$10k | +$187k |
| 6 Nov | −$17k | −$17k | −$31k | +$14k | −$43 |
| 7 Nov | +$10k | +$10k | −$2k | −$5k | +$16k |
| 8 Nov | +$26k | +$26k | −$10k | +$23k | +$12k |
| 9 Nov | −$53k | −$53k | −$49k | +$875 | −$5k |
| 10 Nov | −$88k | −$88k | −$60k | −$14k | −$14k |
| 11 Nov | −$12k | −$12k | −$21k | +$2k | +$8k |
| 12 Nov | −$39k | −$39k | −$55k | +$1k | +$14k |
| 13 Nov | +$63k | +$63k | −$44k | +$73k | +$34k |
| 14 Nov | +$41k | +$41k | −$23k | −$18k | +$82k |
| 15 Nov | −$48k | −$48k | −$25k | −$6k | −$17k |
| 16 Nov | −$84k | −$84k | −$46k | −$18k | −$21k |
| 17 Nov | −$25k | −$25k | −$24k | −$5k | +$4k |
| 18 Nov | −$20k | −$20k | −$25k | −$6k | +$10k |
| 19 Nov | −$17k | −$17k | −$21k | −$5k | +$9k |
| 20 Nov | +$241k | +$241k | −$60k | +$11k | +$291k |
| 21 Nov | +$269k | +$269k | −$2k | +$63k | +$208k |
| 22 Nov | −$2k | −$2k | −$11k | +$926 | +$8k |
| 23 Nov | +$103k | +$103k | +$38k | +$14k | +$51k |
| 24 Nov | −$5k | −$5k | −$34k | −$181 | +$29k |
| 25 Nov | −$28k | −$28k | −$32k | −$4k | +$7k |
| 26 Nov | +$3k | +$3k | −$9k | +$5k | +$8k |
| 27 Nov | +$15k | +$15k | −$24k | −$3k | +$42k |
| 28 Nov | +$73k | +$73k | −$10k | +$26k | +$56k |
| 29 Nov | +$4k | +$4k | −$15k | −$3k | +$22k |
| 30 Nov | +$6k | +$6k | −$30k | −$120 | +$37k |
Each bar shows one day at DefiLlama prices with the day's trend removed. The highlighted fill added +$358k. That day was +$273k with it and −$85k without it.
Without the fill, the mean is +$18k a day, range −$10k to +$49k. In the latest 14 days, the mean was +$44k, with 8 positive days.
The Aave fill
On 4 Nov an Aave liquidator bought $24.1M of WETH at $2,408 while Binance showed $2,371.
Five minutes later the gain was +$321k at Binance's price. We include the fill because winning large quotes is part of the bot's business.
1. How one trade makes money
The bot keeps gains in tokens. Its operator keys, quote fillers and the firm’s other contracts can all trade its inventory.
Path 1: a handpicked winner from its own swaps
- Operator key
- Bot checks it is on, the caller and the pool
- WETH/USDT pool sends WETH
- Callback pays only a listed pool
- Tip goes to a listed builder
The seven steps, with the numbers
An operator key calls the bot's
v3SwapDL(tip, pool, …)in a winning swap of median size.The bot checks it is on, the caller is an operator, the pool listed.
The pool is a Uniswap V3 WETH/USDT pool. It sends the bot 1.502 WETH.
The pool calls the bot's V3 callback. The bot pays 2,738 USDT, because that pool is listed.
The bot tips 0.00122 ETH to
block.coinbase. That block's builder was Titan Builder, a listed builder.At trade-time prices it gained +$7.02 on $2,740. Tip and gas cost $2.51, so the net is +$4.51. Five minutes later the gain had dipped to −$0.11. An hour later it was +$30.47, before tip and gas, trend left in.
The gain stays in the bot as tokens. Only the transferer moves tokens out, to listed recipients such as exchange deposit addresses.
Path 2: a fill of its signed quote
- Unlabelled solver contract
- CoW settlement
- Bebop RFQ settlement
- Bot answers
isValidSignature - Bebop pulls tokens through the allowance
The five steps, with the numbers
An unlabelled CoW solver contract calls CoW's settlement in this fill.
The settlement calls Bebop's RFQ settlement contract. Public labels call it “PMM RFQ Settlement (V1)” and “Bebop: Blend”.
Bebop asks the bot
isValidSignature(EIP-1271): did your quote key sign this? The bot says yes only for its one quote key. It answers only listed callers.Bebop pulls 0.1020 WBTC from the bot through its allowance. The bot receives 6,855 USDT.
The bot sends no transaction and pays no gas. The solver pays its own. On $6,848 it gained +$0.85 at the trade. Five minutes later the gain was +$8.27.
Only 28% of its own swaps gain at the trade. More gain appears later (where the edge comes from).
Of 60 sampled outside fills, 7 asked the bot to check a signature. The code: one swap, the quote check.
Third route. The Swap Router, Rizzolver and two “MEV Bot” contracts hold its spender role. We read them as the firm's own (inference). They pay gas and tip builders.
2. How the contract works
A Safe and its role registry control who can use the bot. We infer that some approved spenders belong to the same firm (note 8).
Who controls what
Safe (0xCe46…f759). 4 of 10 owners sign. The bot's multiSigOwner. Grants allowances. Stops and restarts the bot.
Registry (0x7Ff4…6B93, unverified). Proposes, executes and revokes role grants. Most grants wait over a day.
134 operator keys trade on pools. V3: 242. V2: 103. Curve: 4. Tips go to 4 listed builders.
1 transferer pays 31 listed recipients
10 spenders pull tokens up to their allowance
5 venues call isValidSignature to check its quotes
Brake. Any staff key stops the bot. Only the Safe restarts it (how).
Anyone else can send it money and read it. They can't take anything out.
In the one-day study starting on 14 Nov, we read all 31,737 transactions that moved the bot's tokens.
Functions called that day
9 functions got calls that day. 2 of 18,230 calls failed. 33 read-only getters are not listed.
| Function | What it does | Who may call it | Calls that day |
|---|---|---|---|
| Trade | |||
v3Swap | swap on a listed Uniswap V3 pool, with a tip to the builder | operator keys | 14,113 |
v2Swap | swap on a listed Uniswap V2 pair | operator keys | 1,720 |
curveSwap_2NX0bc | swap on a listed Curve pool | operator keys | 1,175 |
v3SwapDL | v3Swap with a deadline | operator keys | 1,025 |
v2SwapDL | v2Swap with a deadline | operator keys | 21 |
curveSwapCallback1337 | a Curve pool calls back mid-swap | a listed Curve pool, in a tx an operator key sent | inside swaps |
uniswapV3SwapCallback | the pool calls back mid-swap; the bot pays what it owes | a listed V3 pool | inside swaps |
| Liquidity | |||
uniswapV3MintCallback | a V3 pool asks for the liquidity tokens | a listed V3 pool | inside swaps |
| Quote check | |||
isValidSignature | a venue asks: did your quote key sign this quote? | a listed caller (RFQ venue) | inside fills |
| Pay out | |||
transferTo | send tokens to a listed recipient | the transferer key | 90 |
transferEthTo | send ETH to a listed recipient | the transferer key | 9 |
wrapEth | turn ETH into WETH | the WETH-handler key | 68 |
unwrapEth | turn WETH into ETH | the WETH-handler key | 9 |
Functions not called that day
| Function | What it does | Who may call it | Calls that day |
|---|---|---|---|
| Trade | |||
curveSwap | swap on a listed Curve pool (older form) | operator keys | 0 |
curveSwapDL | Curve swap with a deadline | operator keys | 0 |
curveSwapInt128DL_1Mf9Ea | Curve swap, older pool type | operator keys | 0 |
curveSwapInt128RetDL_433L5R | Curve swap, older pool type, returns the amount | operator keys | 0 |
| Liquidity | |||
v3Burn_0wWFdL | remove Uniswap V3 liquidity | operator keys | 0 |
v3Mint_25LOT2 | add Uniswap V3 liquidity | operator keys | 0 |
| Admin and brake | |||
approveTokens_0IT8ik | let a listed spender pull tokens | the Safe | 0 |
authorizeAirswapSigner_61FxMV | register the quote key with AirSwap | the Safe | 0 |
killContract | the brake: stop everything, zero allowances | any staff key or the Safe | 0 |
onRoleGranted_0ZqoAU | the registry adds an account to a list | the registry | 0 |
onRoleRevoked_0LTJTx | the registry removes an account from a list | the registry | 0 |
registerZeroexSigner_2o2iTq | register the quote key with 0x | the Safe | 0 |
revokeAirswapSigner_1kjI2K | unregister the quote key from AirSwap | any staff key, the Safe or the registry | 0 |
revokeAllApprovals_IXLJyu | take every allowance back | any staff key or the Safe | 0 |
revokeApprovals_2Ls0Zw | take some allowances back | any staff key or the Safe | 0 |
unkillContract | release the brake | the Safe | 0 |
unregisterZeroexSigner_7PkJEK | unregister the quote key from 0x | any staff key, the Safe or the registry | 0 |
Role lists and the registry
A 4-of-10 Safe drives an unverified role registry. The registry writes every list on the bot.
The registry calls the bot's onRoleGranted or onRoleRevoked hooks with a role id and an account. The bot flips a flag in the matching list. Nothing else can change these lists (lines 240–349).
A Uniswap pool joins only if a factory lists it: factory.getPair(token0, token1) == pair. Each grant's data names that factory (note 1). The check is at lines 257–284. Curve pools join with no such check (lines 285–287).
The owner, the registry and the wrapped-ETH contract are fixed at deploy. The bot has no upgrade path. There is no proxy, delegatecall or selfdestruct.
The same registry serves 33 more role ids that this bot never reads. The Safe also calls approveTokens on two sibling bots. So one Safe and one registry run a family of contracts. This page covers one of them.
The lists the registry writes
Staff
- Operators
- WETH handlers
- Transferers
Where money may go
- Recipients
- Spenders
- Builders
Pools
- Uniswap V2 pairs
- Uniswap V3 pools
- Curve pools
Quotes
- Quote callers
One-address slots
- Quote key
- AirSwap
- 0x
3. Where the edge comes from
+$70k on 14 Nov came from outside WETH/stable fills priced against Binance. They beat Binance at the trade 59% of the time, by +7.0 bp weighted by dollars. We infer that outside fills of signed quotes drive the gain.
Own swaps were −$22k after $64k in tips and gas, versus +$42k (+3.3 bp) before costs.
The firm’s other contracts made +$3k after costs on 4,179 fills.
How the Binance and DefiLlama figures differ
The Binance comparison covers only WETH/stable swaps at Binance’s one-second price at the trade, with the trend left in. It covers 7,540 own swaps, 4,179 other-contract fills and 659 quote fills. Tips and gas cover the same own swaps.
The DefiLlama figures cover all priced tokens five minutes after the trade, with the trend removed. On 14 Nov, they show −$23k after costs for own swaps, −$18k for the other contracts and +$82k for quote fills.
Price against Binance, by time after the trade
The numbers in the chart
| Time after the trade | Own swaps, before costs | Own swaps, after costs | Quote fills |
|---|---|---|---|
| 0 s | +3.3 bp | −1.8 bp | +7.0 bp |
| 12 s | +3.8 bp | −1.4 bp | +4.0 bp |
| 1 min | +4.7 bp | −0.4 bp | +6.5 bp |
| 5 min | +2.9 bp | −2.3 bp | +8.3 bp |
Which strategy? Four tests
- Rarely a backrun. 5.1% of its legs trade back another trader's swap. Chance gives 0.1%. So some backrunning happens. At least 79% of its swaps follow a bot or family-contract transaction. That is the bundle signature (inference).
- Sandwiches are rare. 10 in the day, against 1.8 by chance.
- Holding time. Inventory tokens close in 3 min, the same as chance. Base tokens close in 24 s.
- Beats Binance. 63% of its 7,540 WETH/stable swaps beat Binance that second. A coin flip gives 50%. The pool then follows it 60% of the time, against 50%.
What each test looks for
| Test | What it would show | Its own swaps | By chance |
|---|---|---|---|
| Backrun | another trader's swap on the same pool just before, then the bot trades it back | 5.1% | 0.1% |
| Sandwich | bot swaps before and after someone else's swap in one block | 10 in the day | 1.8 |
| Buy, wait, sell | the bot sells an inventory token back sooner than chance | half within 3 min | half within 3 min |
| Beats Binance | on-chain price better than Binance ETH/USDT that second | 63% | 50% |
| Others follow | the next swaps on that pool go the bot's way | 60% | 50% |
Tested on 16,877 swap legs.
More evidence: gain over time, sides, sizes and peers
Gain by minutes after the trade, against DefiLlama prices
The numbers in the chart
| Minutes after the trade | Its own swaps | Its own swaps, 95% range | The family's other contracts | Fills inside CoW settlements | Other outside fills |
|---|---|---|---|---|---|
| 0 | −4.5 bp | −8.2 to −0.1 bp | −1.4 bp | −1.5 bp | +18.6 bp |
| 5 | +5.1 bp | +1.4 to +9.5 bp | +1.6 bp | +3.3 bp | +17.7 bp |
| 15 | +3.8 bp | −0.2 to +8.6 bp | +1.8 bp | +3.2 bp | +17.3 bp |
| 30 | +4.8 bp | +0.3 to +10.3 bp | +2.7 bp | +1.6 bp | +12.9 bp |
| 60 | +5.0 bp | −3.7 to +14.6 bp | +3.5 bp | +1.1 bp | +23.2 bp |
Own swaps gained +$88k before costs at five minutes, range +$25k to +$164k. Tips and gas of $111k left −$23k. See the all-trades result for comparison.
DefiLlama's 5-minute price lags Binance. That is why own swaps look negative at the trade and positive minutes later (inference).
Share of own swaps that beat Binance
| Time after the trade | Share better, before costs |
|---|---|
| 0 s | 63% |
| 12 s | 62% |
| 1 min | 56% |
| 5 min | 54% |
The gain is concentrated in time. Three hours gave 76% of it. Those hours: 02:00 to 05:00 UTC. That is around the day's first big move (inference). Overall, 14 of 24 hours were positive.
Before the trend was removed: +5.3 bp at five minutes. +7.9 bp at an hour.
Buys and sells
WETH fell from $1,930 to $1,730, which favors sales. After removing each token’s trend, sells gained more than buys.
The five-minute range was +0.2 bp to +18.4 bp for sells and −0.1 bp to +5.9 bp for buys. The range for buys includes zero.
| Own swaps that | Volume | At the trade | 5 minutes later | 5 minutes later, trend removed |
|---|---|---|---|---|
| buys WETH | $67.5M | −4.3 bp | −0.6 bp | +2.6 bp |
| sells WETH | $80.8M | −4.4 bp | +11.7 bp | +8.5 bp |
| no WETH leg | $24.3M | −5.2 bp | +0.9 bp | +0.7 bp |
Own swaps by the side of their WETH leg, before tips and gas.
Results by swap size
Every size group loses at the trade. Thirty minutes later, with the trend removed, the small swaps and the largest gain. The group up to $8k is flat, at +0.1 bp.
| Swap size | Volume | At the trade | 30 minutes later, trend removed |
|---|---|---|---|
| up to $1k | $2.2M | −7.6 bp | +7.8 bp |
| up to $3k | $6.8M | −8.9 bp | +4.6 bp |
| up to $8k | $18.5M | −7.9 bp | +0.1 bp |
| over $8k | $150.1M | −4.0 bp | +5.4 bp |
Own swaps in four size groups, before tips and gas. Only swaps priced at the trade and thirty minutes later count. So the volume differs from the curves' $172.6M.
What it is, and what it isn't
We read it as the on-chain inventory wallet of a professional market maker (inference). Its keys swap on Uniswap and Curve and tip builders. Solvers and fillers pull its tokens through allowances. Funds arrive from exchange hot wallets and leave to Binance and Circle deposit addresses.
A source comment calls it an “MEV bot and contract wallet” (line 81). Explorer tags say “Market Maker” and “MEV Bot”. Tags are third-party (note 7).
The bot is neither a drainer nor a honeypot. Outsiders cannot withdraw its funds.
How it compares with similar bots
We identified peers from 1,307 UniswapX fills by 53 fillers. We measured each one the same way over 6.7 hours.
Four contracts on four measures, each drawn on its own scale
| this bot | $73.7M |
| Market Maker | $10.5M |
| MEV Bot | $2.7M |
| Rizzolver: Uniswap X | $39k |
| this bot | $200.8M |
| Market Maker | $8.4M |
| MEV Bot | $3.7M |
| Rizzolver: Uniswap X | $49.7M |
| this bot | 70% |
| Market Maker | 67% |
| MEV Bot | 0% |
| Rizzolver: Uniswap X | 0% |
| this bot | 0 |
| Market Maker | 34 |
| MEV Bot | 441 |
| Rizzolver: Uniswap X | 581 |
Typical. Mostly V3 pools, below one gwei, mid-block. Payouts go to Binance deposit addresses.
Unusual. It holds 7× to 27× the peers' inventory. All 581 of Rizzolver's UniswapX fills moved this bot's tokens. Rizzolver holds only $39k, so it routes this bot's inventory. Others pulled 70% of its volume.
The peer numbers
| Contract | Public label | Inventory | Trades | Volume | Pulled by others | Own-tx gain at trade | UniswapX fills |
|---|---|---|---|---|---|---|---|
| 0x51C7…2A7F | this bot | $73.7M | 11,457 | $200.8M | 70% | −8.6 bp | 0 |
| 0xBEE3…A000 | Market Maker | $10.5M | 959 | $8.4M | 67% | +8.3 bp | 34 |
| 0xEFF6…A167 | MEV Bot | $2.7M | 2,341 | $3.7M | 0% | −1.6 bp | 441 |
| 0x225A…DC17 | Rizzolver: Uniswap X | $39k | 581 | $49.7M | 0% | not measurable | 581 |
4. What runs off chain
Assumed: fast prices, private bundles, a quote server, exchange accounts and an ops team. The chain shows only their traces.
The off-chain stack
Market data
Fact: its price beat Binance's 63% of the time.
Assumption: exchange order books, faster than the pools.
Need: exchange data feeds.
Pricing
Fact: own swaps gain +5.1 bp within five minutes.
Assumption: a model sets quotes and sizes.
Need: a pricing model and researchers.
Quotes and orders
Fact: one quote key, 5 listed venues, 134 operator keys.
Assumption: an always-on quote server.
Need: the server, a protected key, venue onboarding and funded hot keys.
Venues and builders
Fact: 141 contracts called it, the firm's own among them. 2 builders got its tips, Titan 88% of tipped swaps. The firm's other contracts tipped 25.3 ETH over 10,767 calls.
Assumption: private bundles.
Need: builder ties, a simulator and nodes near builders.
Settlement
Fact: every fill ends on chain, through the swap or an allowance (exits).
Need: nothing off chain.
Treasury and hedging
Fact: $123.1M in from exchange wallets. $149.2M out to deposit addresses.
Assumption: exchange accounts and hedges.
Need: those accounts and a treasury process.
Ops and risk
Fact: a 4-of-10 Safe and a brake.
Assumption: monitoring and an on-call team.
Need: signers, key custody and alerts.
More detail on the off-chain stack
| What runs off chain | Fact, seen on chain | Assumption, off chain | What you would need to run this (assumption) |
|---|---|---|---|
| Prices | Its own swaps turn positive within five minutes (where the edge comes from). | A price feed faster than the pools. Most likely that is centralized-exchange order books. | Exchange market-data feeds for the pairs it trades, and a pricing model. |
| Quotes | One quote key signs its quotes. The bot vouches for it to 5 listed callers. The key is registered with 0x and AirSwap. | An always-on quote server. It signs prices for RFQ venues, CoW solvers and UniswapX fillers. | A quote server with a protected signing key, and onboarding with each venue. |
| Keys and gas | 134 operator keys have sent 8.87 million transactions. They hold 261 ETH between them for gas. | A fleet of hot keys. Software tracks each key's nonce and tops up its gas. | Funded hot keys, a nonce manager and a gas top-up script. |
| Getting into blocks | Tips go only to 4 listed builders. A tipped swap reverts in any other builder's block. Over the whole day, 2 of 18,230 calls failed. | Bundles sent privately, straight to those builders. A dropped bundle never lands, so it leaves no failure on chain. | A bundle relay or builder relationships, a simulator, and a retry rule for dropped bundles. |
| Speed and nodes | The median own swap sits at position 100 in its block, at 0.22 gwei. | It does not bid for the top of the block. Low latency to builders still matters. Nodes and co-location leave no on-chain trace, so they are pure assumption. | Its own full nodes, placed near builders, and a monitor for lag. |
| Treasury and hedges | Funding arrives from exchange hot wallets. Payouts go to exchange deposit addresses (money in and out). | Accounts on those exchanges and a treasury process that moves inventory. Likely hedges there too. | Exchange accounts with API access, a treasury process and a hedging book. |
| Team and sign-off | A 4-of-10 Safe sets every role through a registry. Grants wait a median 29 hours. | An operations team with a sign-off process. | A multisig with several signers, key custody rules and an on-call team. |
Venues and builders seen that day
| Who called (tx sent to) | Fills | Volume |
|---|---|---|
| Swap Router | 7,501 | $72.5M |
| MEV Bot | 1,442 | $17.4M |
| unlabelled contract | 1,379 | $148.7M |
| Rizzolver: Uniswap X | 1,376 | $56.8M |
| MEV Bot | 422 | $14.0M |
| unlabelled contract | 178 | $7.8M |
| Aggregation Router V6 | 107 | $280k |
| GP V2 Settlement | 106 | $2.0M |
Top eight of 141 contracts that pulled its tokens, by transactions. Several are the firm's own (inference). Unlabelled ones stay unnamed. All 141 together: 13,441 transactions, $344.4M.
| Builder | Tipped swaps | Tips |
|---|---|---|
| Titan Builder | 14,359 | 39.0 ETH |
| BuilderNet | 2,004 | 4.7 ETH |
2 builders got its tips. Tipped swaps: 16,363. Tips: 43.8 ETH.
5. How much it made
+$41k on 14 Nov at five minutes, range −$48k to +$128k.
Gain by time after each trade, after tips and gas
The numbers in the chart
| Minutes after | After tips and gas | 95% range | Its own swaps, after tips and gas | With the trend |
|---|---|---|---|---|
| 0 | −$230k | −$342k to −$139k | −$188k | −$230k |
| 5 | +$41k | −$48k to +$128k | −$23k | +$54k |
| 15 | +$17k | −$159k to +$202k | −$46k | +$57k |
| 30 | +$17k | −$224k to +$309k | −$28k | +$97k |
| 60 | +$45k | −$373k to +$552k | −$26k | +$204k |
Daily gains by trade type
- Quote fills and other outside fills: +$51k a day. 25 of 30 days up. Range +$22k to +$87k. Without the one fill: +$39k.
- Own swaps: −$26k. 1 of 30 days up. Range −$34k to −$19k.
- The firm's other contracts: +$5k, after $18k of tips and gas a day.
Across all trades, the mean five-minute gain was about +$29k a day over 30 days, after the tips and gas we could count. Three days account for 89% of that total. The mean daily gain was −$127k at the trade and +$78k an hour later.
The gains value tokens at DefiLlama prices. Exchange gains could add to the on-chain result, while hedge losses, exchange fees, funding, slippage, servers and staff could cut it.
More limits
- Reference lag. DefiLlama's 5-minute price may lag Binance. If so, part of the five-minute gain is the reference catching up (inference).
- The day's price trend. WETH fell that day. The trend-removed figures correct for it. Before that step the total was +$54k. Its range was −$35k to +$152k.
- Trade-time price. We interpolate it between the two nearest 5-minute points. Using the last point before the trade, own swaps start at −8.5 bp (−$146k). The loss at the trade gets bigger.
- Only landed trades. Bundles that never landed are not in the gain figures.
- Price coverage. 93% of trade volume had 5-minute prices on every leg. The other 7% had 15-minute prices and is left out of the curves.
- Sibling bots. The family's contracts are counted apart from outside fills. The “MEV Bot” siblings alone moved $31.4M.
- Pool-derived prices. DefiLlama prices most tokens from DEX pools. The at-trade mark can include the trade's own impact. Binance is the independent check.
- Excluded trades. Trades without 5-minute prices are left out. So are their tips and gas.
- Tips, an upper bound. A family transaction's tip is charged whole to this bot. A sibling may also trade its own tokens.
- Gas on other days. Family gas is the studied day's mean per call. Tips are exact.
- Stable basis. USDC and USDT both count as 1 USDT in the Binance comparison.
- One hour. With the trend left in, the mean at one hour is +$78k.
- Flows dwarf the result. That day $123.1M came in and $149.2M went out. Any trading result is small beside them.
Inventory and long-run gains
Inventory grew from $8.1M in Sep 2023 to $73.2M, with growth levelling off by Dec 2024 (snapshots). The balances do not separate deposits from trading gains.
The bot was deployed on 16 Aug 2023. The study measures only the period above.
6. Under the hood
On chain
The staff: every role and who holds it Thirteen lists, replayed from every grant and checked against the bot.
We replayed every call the Safe sent the registry. That is 565 proposals and 483 executes. It also sent 43 revokes. Then we asked the bot about each account. The replay matched the bot's own getters on all 9 lists that have one. Granted and Revoked count accounts, not calls. Labels show up to four holders per list.
| List | Role id | Now | Granted | Revoked | Gates | Public labels of holders |
|---|---|---|---|---|---|---|
| operator | 9952537a… | 134 | 165 | 31 | every swap, V3 liquidity, stop | no public label |
| transferer | 6cc14d89… | 1 | 1 | 0 | transferTo, transferEthTo, stop | no public label |
| wethHandler | 9d72fc4d… | 2 | 2 | 0 | wrapEth, unwrapEth, stop | no public label |
| recipient | 0da11e33… | 31 | 44 | 13 | payout destination | Circle: Deposit; ByBit Deposit; KuCoin Deposit; Gate.io Deposit |
| spender | 18d95d9d… | 10 | 25 | 15 | ERC-20 allowance holder | Uniswap Protocol: Permit2; Aggregation Router V5; Rizzolver: Uniswap X; Swap Router |
| builder | 1058846c… | 4 | 5 | 1 | tip destination (block.coinbase) | rsync-builder; Titan Builder; MEV Builder: 0x777...C94; BuilderNet |
| v3Pool | 694f935c… | 242 | 245 | 3 | may call the V3 callbacks | no public label |
| v2Pair | a15540b8… | 103 | 103 | 0 | may be traded against | no public label |
| curvePool | 42b40d72… | 4 | 4 | 0 | may call curveSwapCallback1337 | Curve: crvCRVUSDTBTCWSTETH Pool; Curve: crvUSDETHCRV Pool; TricryptoUSDC (crvUSDCWB...); Curve: crvUSDTWBTCWETH Token |
| rfqCaller | a1939ff6… | 5 | 9 | 4 | may ask isValidSignature | Uniswap Protocol: Permit2; Aggregation Router V6; Aggregation Router V5; PMM RFQ Settlement (V1) |
| rfqSigner | fe731b89… | 1 | 2 | 1 | the key isValidSignature accepts | no public label |
| airswap | 4a835202… | 1 | 2 | 1 | AirSwap contract to authorize the signer on | no public label |
| zeroex | 3349cb1d… | 1 | 1 | 0 | 0x contract to register the signer on | Exchange Proxy |
The table names no Safe owner. Staff keys are hot keys, so we link only the few that matter. Labels come from the Blockscout metadata service. Holder counts are from block 26,417,326.
- Operators are 134 externally owned accounts (EOAs). Between them they have sent 8.87 million transactions. The busiest has sent 155,493. They hold 261 ETH between them for gas.
- The transferer is one key with 125,197 transactions sent. It is the only account that can pay out.
- Recipients: 31 addresses. 10 carry public exchange deposit labels: Binance, Coinbase, Bybit, KuCoin, Gate.io, Bitfinex and Circle. One more is labelled “Wintermute 4”.
- Builders: rsync, Titan, BuilderNet and one labelled “MEV Builder 0x777…C94”. Tips go only to these when they build the block.
- Spenders and quote callers: Permit2, the 1inch routers and Bebop's settlement contract. Also a UniswapX filler labelled “Rizzolver”, and sibling bots labelled “MEV Bot”. The quote key is one address.
The multisig A 4-of-10 Safe that mostly sets allowances.
The owner is a Safe v1.3.0: 4 of 10 owners must sign. It has executed 7,263 transactions, one per nonce. The first was on 8 Aug 2023. 1 more reverted and used no nonce.
Most of its work is allowances: 5,872 calls to the bot's approveTokens. Each one sets ERC-20 allowances from the bot to its spenders. The latest was on 13 Nov 2026.
Role changes go through the registry in two steps: propose, then execute. In the latest pair, a proposal was executed 116 hours later. The median wait across 483 execute calls is 29 hours.
The bot stores an 86,400-second delay but never enforces it. Most registry grants wait longer than that, but not all. 66 came in under 24 hours. 34 of them were a role's first grant. The fastest took 2 minutes. So any delay rule in the registry has exceptions. These counts cover all 46 role ids the Safe touched, not only this bot's. The registry's code is unverified. So the rule behind those exceptions can't be read. 69 proposals (by role and account) were never executed. One call can add several accounts. A re-proposal replaces an older one. So these counts don't subtract.
The owner set changed 15 times by adding and 13 times by removing. The Safe also restarted the bot once, in December 2023. So it had been stopped at least once before.
| Target | Call | Count | Latest example |
|---|---|---|---|
| bot | approveTokens: set ERC-20 allowances | 5,872 | 2026-11-13 |
| registry | propose a role grant (f9fcd6e1) | 565 | 2026-11-09 |
| registry | execute a grant after the delay (932469a6) | 483 | 2026-11-10 |
| registry | revoke a role (4561041a) | 43 | 2026-10-28 |
| registry | unlabelled selector ae3be77c | 83 | 2026-10-01 |
| registry | unlabelled selector b749c6b8 | 82 | 2026-10-12 |
| sibling bots | approveTokens on two sibling contracts | 79 | 2026-09-14 |
| Safe | add an owner | 15 | 2026-05-18 |
| Safe | remove an owner | 13 | 2026-10-22 |
| bot | authorizeAirswapSigner | 3 | 2024-09-30 |
| bot | registerZeroexSigner | 2 | 2023-09-12 |
| bot | unkillContract | 1 | 2023-12-13 |
What the Safe called, from all 7,263 executions. Selectors on the unverified registry are inferred from order and timing. 22 rarer calls are left out.
One day of traffic 31,737 transactions, sorted by who sent them and which way tokens moved.
In one day, 31,737 transactions moved the bot's tokens. Operators sent 18,052 swaps and 90 payouts. Outside contracts sent 13,441 by pulling its allowances. The other 154 were funding transfers in.
The window is blocks 26,409,800 to 26,416,999. It runs 14 Nov 2026 01:01 to 15 Nov 2026 01:06 UTC. It holds 63,661 ERC-20 transfers in or out of the bot. They span 90 tokens. We fetched every transaction and receipt.
Sent by its operators
| Function | Txs | Volume | Gain at trade | Tips ETH | Gas ETH | Example |
|---|---|---|---|---|---|---|
| v3Swap | 14,113 | $167.1M | −8.0 bp | 41.67 | 1.11 | tx |
| v2Swap | 1,720 | $3.6M | −20.7 bp | 1.49 | 0.10 | tx |
| curveSwap_2NX0bc | 1,175 | $1.4M | −11.3 bp | 0.45 | 0.10 | tx |
| v3SwapDL | 1,023 | $16.1M | +31.7 bp | 0.16 | 17.96 | tx |
| v2SwapDL | 21 | $66k | +14.1 bp | 0.01 | 0.06 | tx |
| transferTo (payout) | 90 | $149.2M | — | 0.00 | 0.02 | tx |
Operator-sent swaps and payouts. Gain is the value received minus the value given, at 5-minute prices. Example is the transaction of median size.
127 operator keys sent swaps. Plain v3Swap carried 89% of the volume. 16,363 swaps paid a builder tip, which is the swap's first argument.
The median transaction sat at position 100 in its block, at 0.22 gwei. Failures are rare: 2 of 18,230 calls that day. Dropped bundles never land, so they can't show up here. That fits private bundles sent straight to builders. A tipped swap reverts if an unlisted builder built the block (lines 685–686). So it only makes sense sent to listed builders. The deadline variant v3SwapDL is the exception. It pays a 1.5 gwei gas price and almost no tip. Its 1,023 swaps spent 18.0 ETH on gas.
Sent by outside contracts
| Entry contract | Kind | Txs | Volume | Gain at trade | Example |
|---|---|---|---|---|---|
| unlabelled contract | CoW-linked | 1,379 | $148.7M | −0.3 bp | tx |
| Swap Router | approved spender | 7,501 | $72.5M | −8.1 bp | tx |
| Rizzolver: Uniswap X | approved spender | 1,376 | $56.8M | +3.8 bp | tx |
| MEV Bot: 0xec6f…23db | approved spender | 1,442 | $17.4M | −14.5 bp | tx |
| MEV Bot: 0xa8c1...185 | approved spender | 422 | $14.0M | +10.0 bp | tx |
| unlabelled contract | approved spender | 33 | $13.4M | −0.1 bp | tx |
| unlabelled contract | approved spender | 178 | $7.8M | +36.4 bp | tx |
| unlabelled contract | other | 11 | $3.3M | +47.1 bp | tx |
| GP V2 Settlement | other | 106 | $2.0M | −28.1 bp | tx |
| unlabelled contract | other | 2 | $1.9M | −0.3 bp | tx |
| 131 others | 991 | $6.5M |
The ten largest entry contracts by volume. “Approved spender” means the contract is on the bot's spender list.
580 other senders moved $344.4M through the bot. They sent 13,441 transactions. In these the bot never calls out. Its tokens leave through allowances its spenders hold, Permit2 among them. Some first pass the quote check in the RFQ section.
The biggest route is an unlabelled contract. Every token it moved went to or from CoW Protocol's settlement contract. It filled $148.7M in 1,379 transactions. So the bot is a liquidity source for a CoW solver. We traced one of its fills in full (how one trade makes money). We did not trace the allowance behind every fill. Approved spenders and sibling bots moved $182.0M. The top one is a spender labelled “Swap Router”. It and the sibling bots are the firm's own contracts (inference). They pay their own gas and tip builders. Smaller routes include a UniswapX filler and the 1inch and 0x routers.
Money in and money out
| Sender (public label) | Txs | In | Example |
|---|---|---|---|
| Kraken: Hot Wallet 5 | 12 | $41.3M | tx |
| Wintermute 4 | 36 | $24.3M | tx |
| Coinbase Exchange: Hot Wallet | 12 | $15.1M | tx |
| unlabelled account | 4 | $12.7M | |
| Circle: Hot Wallet | 5 | $9.3M | tx |
| unlabelled account | 2 | $4.1M | |
| unlabelled account | 1 | $3.1M | |
| Bybit: Hot Wallet | 14 | $2.0M | tx |
| 26 others | 68 | $11.1M |
Funding by sender. Labels are public explorer tags. Unlabelled senders are not named.
$123.1M arrived in 154 plain transfers. They came from 34 senders. The largest came from an address labelled “Kraken: Hot Wallet 5”. Others carry Coinbase, Circle, Bybit, Bitstamp, KuCoin and Bitfinex hot-wallet labels, and “Wintermute 4”.
$149.2M left in 90 transferTo payouts. The median payout was $2.2M. Only the transferer sends these, and only to listed recipients. The largest share went to an address labelled “Binance Deposit”, the next to “Circle: Deposit”. Much of the rest went to unlabelled recipients.
How it makes money Three engines, then the evidence and its limits.
The bot makes markets with its own inventory. Outside fills of its quotes earn the gain. In the Binance comparison, its own swaps gained before tips and gas but lost after those costs.
Its own swaps. Operators trade against listed AMM pools. They pay builders for a place in the block. That is consistent with arbitrage between centralized exchanges and on-chain pools, or with inventory rebalancing.
Fills for others. Solvers and fillers use the bot as a quote source. They work on CoW Protocol, UniswapX and aggregators. The firm's other contracts also swap its tokens, and pay for it. They pull its tokens through allowances, or check a signed quote with EIP-1271.
Inventory cycling. Tokens arrive from exchange hot wallets and leave to exchange deposit addresses. That day $123.1M came in and $149.2M went out. That fits inventory moving between venues to stay hedged.
We priced every leg at DefiLlama 5-minute prices, at the trade's time. These day-table figures include swaps with a 15-minute price on some leg. They also keep the day's price trend. So they differ from the answers above. The bot sent 18,052 swap transactions that day. All priced operator swaps came out at −4.9 bp. That is −$92k on $188.2M. Resampling single transactions gives a 95% range. It is −$137k to −$36k. That range covers sampling noise, not error in the reference price. Pool fees alone read as a loss against a mid price. Tips and gas add $117k. All in, the swaps came to −$208k that day.
Fills for others came out at −0.3 bp on $344.4M. Their range is −$83k to +$76k. It includes the firm's other contracts. The clean split is in how much it made.
The firm's contracts pay builders for inclusion. Own swaps paid $117k that day, and the other contracts $40k more (that figure counts only trades with five-minute prices). Any exchange-side hedge is not on this chain. So this page shows costs, volume and a gain estimate, not the firm's books.
A profit and loss snapshot Its inventory since 2023, and what point reads can show.
Point reads of its balances, about once a quarter, show its size and its costs. They can't show its trading result (how much it made).
We read the bot's balance of every approved token, plus its ETH. We did so at 15 blocks, roughly quarterly. We priced each at the block's time. The peak was $74.8M in Mar 2026. The last read was on 15 Nov 2026. It held 155 of its 161 approved tokens. It also held 270.8 ETH. The top 5 tokens make up 64% of the token value. 6 tokens had no price and count as zero.
- What it shows. The scale: about $73.2M of working inventory. Own swaps run about $188.2M a day.
- What it shows. The costs of one day. Tips came to 43.8 ETH ($81k). Gas came to 19.3 ETH ($36k).
- What it can't show. A year of results. The limits list why.
| Token | Amount | Value |
|---|---|---|
| USDC | 16,133,247 | $16.1M |
| USDT | 11,067,428 | $11.1M |
| WETH | 5,428 | $9.4M |
| cbBTC | 83 | $5.2M |
| crvUSD | 4,945,157 | $4.9M |
| ETH (native) | 270.8 | $467k |
The largest holdings at block 26,417,000. ETH is priced at $1,726.
In the code
How one swap works Five steps, from an operator's call to the builder tip.
A swap runs only for an operator, on a listed pool, with the bot on. Here is the median-sized v3Swap from our day.
One Uniswap V3 swap, step by step
An operator calls
v3Swap(tip, pool, …)with an amount and a minimum.The bot checks three things. It is on. The caller is an operator. The pool is listed.
The pool sends the bought tokens, then calls
uniswapV3SwapCallbackto be paid.The bot pays, because that pool is on its list. The callback reads the token address from its data.
The bot checks it got the minimum. Then it may tip the block builder.
Curve and Uniswap V2 swaps follow the same gates (note 2). Many swap functions have a version that takes a deadline (…DL).
A tip goes only to a listed block builder. It is paid to block.coinbase, so the swap must land in a block that builder built. The bot does not check whether the tip arrived (note 3).
The minimum check and the tip
uint256 amountOut = uint256(amount0 > 0 ? -amount1 : -amount0);
require(amountOut >= minOut, "S13");
_tip(tip);
Bot.sol, lines 564–566. Full source on Blockscout
The V3 callback pays the pool
function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes memory data)
external
onlyV3Pool(msg.sender)
{
address token;
assembly {
token := mload(add(data, 20))
}
uint256 amount = amount0Delta > 0 ? uint256(amount0Delta) : uint256(amount1Delta);
token.call(abi.encodeWithSelector(IERC20.transfer.selector, msg.sender, amount));
}
Bot.sol, lines 647–657. Full source on Blockscout
The builder tip
require(_approvedCoinbaseAddresses[block.coinbase], "H17");
block.coinbase.call{value: tip, gas: 0}(""); // result ignored, as deployed
Bot.sol, lines 685–686. Full source on Blockscout
How a price quote is checked How a venue knows a quote came from the bot.
The bot acts as an RFQ maker. An off-chain key signs its price quotes. The bot answers for that key.
Two ways a venue trusts the quote key
Asked on the spot. A listed caller asks: did the key sign this hash?
The question in the second path is a standard one, called EIP-1271. Only callers on the list may ask it. Revoking the signer also withdraws it from both venues (lines 333–337).
Tokens then leave through allowances. The exits section covers those.
The signature check
function isValidSignature(bytes32 hash, bytes memory signature) external view whenActive returns (bytes4) {
require(_approvedRfqCallers_1CiVF7[msg.sender], "H19");
return _validateSignature(hash, signature);
}
Bot.sol, lines 689–692. Full source on Blockscout
Where the money can go Who can move tokens out, and through which gate.
Money leaves the bot by five exits. Each one sits behind a list.
The five exits and their gates
Payouts. Transferers send tokens or ETH to approved recipients only.
Swaps. Listed pools are paid in a transaction an operator sent. Adding Uniswap V3 liquidity pays the same way.
Allowances. Approved spenders pull tokens, up to what the multisig granted (note 4).
Tips. Listed block builders get ETH on a swap.
Wrapping. WETH handlers wrap and unwrap the bot's ETH. The value stays in the bot.
On 14 Nov 2026 the bot was on. It had 10 approved spenders. Among them were Uniswap's Permit2, the 1inch router and Bebop's settlement contract. It tracked 161 approved tokens. In all, 613 allowances were above zero.
Only the people who run it have a reason to call it. It has no deposit function and no user balances. Tokens sent to it by mistake can't be pulled back by the sender. A call to a function it lacks succeeds and does nothing.
The payout function's gates
function transferTo(IERC20[] memory tokens, uint256[] memory amounts, address[] memory to)
external
whenActive
onlyTransferer
onlyApprovedRecipients(to)
Bot.sol, lines 459–463. Full source on Blockscout
The emergency brake
Any staff key can stop the bot. Only the multisig can start it again.
What one call to killContract does
An operator, transferer, WETH handler or the multisig calls stop.
The bot switches off. New swaps, payouts and quotes are refused.
Each tracked token's allowance to each spender is set to zero.
Only the multisig can switch it back on with
unkillContract.
Pool callbacks don't check the switch. A failed zeroing is only logged. The allowance stays open. The token still drops off the bot's list (lines 416–426).
On that day, stopping it would emit 614 logs. That fits in one block (note 5).
The stop function
function killContract() external {
require(
_operators[msg.sender] || _wethHandlers_9mt4lD[msg.sender] || _transferers_3TlnxV[msg.sender]
|| msg.sender == multiSigOwner,
"H11"
);
isActive = false;
revokeAllApprovals_IXLJyu();
}
Bot.sol, lines 373–381. Full source on Blockscout Names ending in a random suffix are the source's own stand-ins. The real names are unknown.
What a reviewer would flag Design facts a code reviewer would ask about.
Five design facts stand out. None claims that anything has gone wrong.
- The registry holds the keys. It names the transferers and the recipients. Together those two lists can send out any token or ETH. The registry's own code is not verified on Sourcify or Blockscout. So its rules, including its delay, can't be read.
- The Curve payment trusts the transaction's sender. It pays any listed pool that asks. The pool names the coin and the amount. An operator must have signed the transaction. It checks tx.origin, not whether the bot started the swap. Curve pools join with no factory check (lines 285–287).
- A failed revoke drops the token anyway. The token leaves the list first. Then its allowance is zeroed. A log is the only trace of a failure (lines 416–426).
- Some results are ignored. Nothing checks that these worked. ETH payouts: line 489. Builder tips: line 686. Pool payments: lines 589, 656, 665, 669, 678.
- A stored timelock does nothing here. A one-day delay is set at deploy. It is only read back. This contract never enforces it. See lines 128, 176, 362.
The Curve payment
function curveSwapCallback1337(address sender, address receiver, address coin, uint256 dx, uint256 dy)
external
onlyCurvePool(msg.sender)
{
require(_operators[tx.origin], "H31");
coin.call(abi.encodeWithSelector(IERC20.transfer.selector, msg.sender, dx));
}
Bot.sol, lines 673–679. Full source on Blockscout Names ending in a random suffix are the source's own stand-ins. The real names are unknown.
Evidence and coverage
Checked
- Built with its exact compiler settings, the source gives the deployed code byte for byte, apart from the metadata hash. Deploy arguments match too.
- We wrote a shorter, readable copy. It has the same 63 functions, argument types and storage layout.
- Both ran one test that calls every external function. All 331 compared results matched.
- We ran both on a local copy of mainnet at block 26,415,084. They gave the same swap output. Both zeroed the same 613 allowances.
- Role holders: we replayed the Safe's registry calls. They matched the bot's getters for every account.
- The day: every transaction in the window was fetched with its receipt, none sampled.
Not checked
- The metadata hash differs. The verified file is a rebuild with stand-in names (note 6).
- Equivalence for every possible input. Tests are examples, not a proof.
- The outside contracts: the registry, the multisig's signers, the venues and the spenders.
- Who runs it. Explorer labels name a firm. We did not confirm them.
- Prices finer than 5 minutes.
- 4 of the day's 90 tokens, which had no price. Swaps with an unpriced leg are left out of the gain figures.
- Any day outside 1 Nov to 30 Nov. The day tables cover one day.
Method
Figures come from the linked sources or read-only RPC calls.
- Roles. We decoded every Safe
execTransactionto the registry. We replayed propose, execute and revoke in order. Then we called the bot's own getter for every replayed holder. - Flows. We pulled every ERC-20
Transferlog to or from the bot in the window. Then we fetched each transaction and its receipt. A transaction is a swap if the bot both sent and received tokens. It is funding if it only received, and a payout if it only sent. - Markout. For each swap: dollars in minus dollars out, at 5-minute prices. A positive value means the bot gained. In the day tables the range is a bootstrap over transactions.
- Gain over time. The answers above price each trade again at later minutes. Their ranges resample whole hours, because trades in one hour share one price move. They remove each token's day trend. So a falling market isn't read as skill.
- Tips and gas. The tip is the first argument of each swap function. Gas is gas used times the effective gas price. Outside callers pay their own gas, so it is not counted. The firm's other contracts pay theirs and tip builders, and both are counted.
- Inventory.
getAllApprovedTokensplusbalanceOfanddecimalsat each snapshot block, priced at that block's time.
Rerun it. Our scripts are private. You can follow the steps above with read-only RPC calls, Blockscout transfers and DefiLlama’s 5-minute prices.
Correction. An earlier version left out the firm's other contracts' tips and gas. It showed one day. This one counts them over 30 days, through 2026-11-30.
How to check this yourself Five steps on a block explorer, without signing anything.
Open the address on Blockscout or Etherscan.
Pick the Contract tab. A check mark means the source is verified. It was compiled and matched to the code on chain.
Read the Code view. Search it for the function names you see. The selectors in the appendix map them.
Open Read Contract to see its current state. Reading sends nothing. Open any example transaction above to see its token transfers.
Leave Write Contract alone. It asks your wallet to sign a transaction.
Appendix: selectors and storage Every selector and storage slot, for checking the code.
All 63 external functions, with the deployed selector and the name our readable copy uses
| Selector | Deployed signature | Readable name |
|---|---|---|
0xd73c2f66 | _approvedAirswapContract() | airswap |
0xd368093d | _approvedCoinbaseAddresses(address) | builders |
0xfc6594ef | _approvedRecipients_ExviWK(address) | recipients |
0xfcdd595a | _approvedRfqCallers_1CiVF7(address) | rfqCallers |
0x628bcd8b | _approvedZeroexContract() | zeroEx |
0x2a455199 | _operators(address) | operators |
0x692e3a95 | _rfqSigner() | rfqSigner |
0xecfdae1a | _transferers_3TlnxV(address) | transferers |
0xea3c986d | _wethHandlers_9mt4lD(address) | wethHandlers |
0x1ce9ae07 | accessControlRegistry() | accessControlRegistry |
0x4103f237 | approvedAirswapContractRole() | AIRSWAP_ROLE |
0xe6ac82d2 | approvedCoinbaseRole_DPVzxd() | BUILDER_ROLE |
0x3794bbc4 | approvedRecipientRole_5UAPo6() | RECIPIENT_ROLE |
0xc249597c | approvedRfqCallerRole_1Nqzj6() | RFQ_CALLER_ROLE |
0xe457acdd | approvedSpenderRole() | SPENDER_ROLE |
0x1132fb89 | approvedZeroexContractRole() | ZEROEX_ROLE |
0x3cbe46f8 | approveTokens_0IT8ik((address,address,uint256)[]) | approveTokens |
0x8b954c70 | authorizeAirswapSigner_61FxMV() | authorizeAirswapSigner |
0x10a43720 | CURVE_CALLBACK() | CURVE_CALLBACK |
0x48ea3731 | curvePoolRole_6J7kHJ() | CURVE_POOL_ROLE |
0xbb25faea | curvePools_9aaV3S(address) | curvePools |
0x0070c82a | curveSwap(uint256,address,uint256,uint256,uint256,uint256) | curveSwap |
0xfb034fb2 | curveSwap_2NX0bc(uint256,address,uint256,uint256,uint256,uint256) | curveSwapWithCallback |
0xc4da52dc | curveSwapCallback1337(address,address,address,uint256,uint256) | curveSwapCallback1337 |
0x484e39c3 | curveSwapDL(uint256,address,uint256,uint256,uint256,uint256,uint256) | curveSwapDL |
0x5afcf03d | curveSwapInt128DL_1Mf9Ea(uint256,address,int128,int128,uint256,uint256,bool,uint256) | curveStableSwapDL |
0xf7e846e9 | curveSwapInt128RetDL_433L5R(uint256,address,int128,int128,uint256,uint256,bool,uint256) | curveStableSwapWithReturnDL |
0xada00694 | getAllApprovedSpenders() | getAllApprovedSpenders |
0x09b0d50a | getAllApprovedTokens() | getAllApprovedTokens |
0x481c42a2 | getTimelockDelay() | getTimelockDelay |
0x22f3e2d4 | isActive() | isActive |
0x1626ba7e | isValidSignature(bytes32,bytes) | isValidSignature |
0x1c02708d | killContract() | killContract |
0x0329dd62 | multiSigOwner() | multiSigOwner |
0xcf1346bc | onRoleGranted_0ZqoAU(bytes32,address,bytes) | onRoleGranted |
0x59733e7f | onRoleRevoked_0LTJTx(bytes32,address,bytes) | onRoleRevoked |
0x47503b3d | operatorRole() | OPERATOR_ROLE |
0x34248ee5 | registerZeroexSigner_2o2iTq() | registerZeroExSigner |
0xb0c39a1e | revokeAirswapSigner_1kjI2K() | revokeAirswapSigner |
0xa5fd3043 | revokeAllApprovals_IXLJyu() | revokeAllApprovals |
0xf203c1b1 | revokeApprovals_2Ls0Zw(uint256) | revokeApprovals |
0xa03dc130 | rfqSignerRole() | RFQ_SIGNER_ROLE |
0xa93f9118 | transfererRole_0UBrja() | TRANSFERER_ROLE |
0x029074ce | transferEthTo(uint256[],address[]) | transferEthTo |
0x394b1de1 | transferTo(address[],uint256[],address[]) | transferTo |
0xd3487997 | uniswapV3MintCallback(uint256,uint256,bytes) | uniswapV3MintCallback |
0xfa461e33 | uniswapV3SwapCallback(int256,int256,bytes) | uniswapV3SwapCallback |
0x6b410e34 | unkillContract() | unkillContract |
0x6d66ea05 | unregisterZeroexSigner_7PkJEK() | unregisterZeroExSigner |
0x2197159c | unwrapEth(uint256) | unwrapEth |
0x3c54863c | v2PairRole_05FVW9() | V2_PAIR_ROLE |
0x6650eb1e | v2Pairs_15weza(address) | v2Pairs |
0xa1c20303 | v2Swap(uint256,address,address,uint256,uint256,uint256) | v2Swap |
0x30a28ffc | v2SwapDL(uint256,address,address,uint256,uint256,uint256,uint256) | v2SwapDL |
0xb87d3b28 | v3Burn_0wWFdL(uint256,address,int24,int24,uint128,uint256,uint256,uint256) | v3BurnAndCollect |
0xe2f48005 | v3Mint_25LOT2(address,int24,int24,uint128,uint256,uint256,uint256) | v3Mint |
0x3bb6ea1e | v3PoolRole_3JDzmm() | V3_POOL_ROLE |
0x5bc6665d | v3Pools_0DgwSe(address) | v3Pools |
0x771d503f | v3Swap(uint256,address,uint256,uint256,bool,bytes) | v3Swap |
0x122067ed | v3SwapDL(uint256,address,uint256,uint256,bool,uint256,bytes) | v3SwapDL |
0x1e6934b6 | weth_68HG9p() | weth |
0xb221bd4b | wethHandlerRole_3usJ7R() | WETH_HANDLER_ROLE |
0xae9779c6 | wrapEth(uint256) | wrapEth |
Storage layout: 17 slots
| Slot | Offset | Variable | Type |
|---|---|---|---|
| 0 | 0 | isActive | bool |
| 1 | 0 | _transferers_3TlnxV | mapping(address => bool) |
| 2 | 0 | _operators | mapping(address => bool) |
| 3 | 0 | _wethHandlers_9mt4lD | mapping(address => bool) |
| 4 | 0 | _approvedRecipients_ExviWK | mapping(address => bool) |
| 5 | 0 | _approvedCoinbaseAddresses | mapping(address => bool) |
| 6 | 0 | _approvedSpenders | struct EnumerableSet.AddressSet |
| 8 | 0 | _approvedTokens | struct EnumerableSet.AddressSet |
| 10 | 0 | v2Pairs_15weza | mapping(address => bool) |
| 11 | 0 | v3Pools_0DgwSe | mapping(address => bool) |
| 12 | 0 | curvePools_9aaV3S | mapping(address => bool) |
| 13 | 0 | _rfqSigner | address |
| 14 | 0 | _approvedAirswapContract | address |
| 15 | 0 | _approvedZeroexContract | address |
| 15 | 20 | _airswapAuthorized | bool |
| 15 | 21 | _zeroexRegistered | bool |
| 16 | 0 | _approvedRfqCallers_1CiVF7 | mapping(address => bool) |
The bot keeps no role id to list mapping in storage. Each hook compares the role id with constants and flips the matching flag. Spenders and tokens are OpenZeppelin EnumerableSets, which is how killContract walks every allowance.
Glossary
Ethereum words
- MEV. Profit from choosing which trades go in a block, and in what order. ethereum.org explains it.
- Block builder. The party that packs transactions into a block. The bot reads its address from
block.coinbase. - WETH. Wrapped ETH: ETH held as a token, so contracts can trade it like one.
- Allowance. Permission one account gives another to pull a set amount of a token. Defined in ERC-20.
- Gain. What a trade gained or lost against a reference price. Here that is DefiLlama 5-minute prices, at the trade or minutes later. One basis point (bp) is a hundredth of a percent.
Contract words
- Multisig. A wallet that needs several keys to sign. This one is a Safe.
- RFQ. Request for quote: a trader asks a market maker for a signed price.
- EIP-1271. A standard question a contract answers: did your key sign this?
- tx.origin. The account that signed the whole transaction, not the direct caller.
- Solver. A party that settles batches of user orders on CoW Protocol. UniswapX has fillers, which fill single orders. Both can use liquidity such as this bot's.
Research and explanation only. Everything here comes from the verified source and read-only calls. Nothing was sent to the contract. This is not financial advice. Do not interact with contracts you don't know.