6.9 KiB
Coordination protocol
KeeperDAO uses the power of Coordination to create more efficient markets by capturing and recycling MEV to the users and protocols that create it.
KeeperDAO is a decentralised and coordinated Keeper commonwealth making the Ethereum network more egalitarian, profitable, and secure for all the actors involved.
Coordination Game
-
First protocol that allows generalized MEV to be internalized at the application layer, protecting users and protocols from negative externalities, reducing the total MEV available at the consensus layer, and ensuring that less value overall is being extracted from markets and protocols by miners and validators.
-
Design a comprehensive system that can flexibly capture a wide variety of application-layer transaction flow, creating posiive-feedback flywheel that aggregates and re-distributes MEV among participants in a way that increases overall network and market efficiency.
Coordination lifecycle outline
- Keepers buy ROOK and stake it in the Coordinator smart contract. Keepers pend staked ROOK bidding on the right to execute transactions in the Coordination Game.
- Keepers watch incoming transactions, and search for the best way to profitably execute them.
- When an opportunity is discovered, Keepers initiate a sub-second just-in-time auction that will decide who gets the right-of-way to execute the transaction. In the auction, Keepers place bids using their staked ROOK from (1).
- The Coordinator Auction Module prevents Keepers from grim triggering each other during the auction, by balancing both upward and downward bid pressure to discover the fair value of the profit opportunity.
- The Coordinator greenlights the winner of the auction, leaving them free to broadcast the transaction and collect the profit they discovered, while fulfilling the request of the user who originated the transaction.
- Upon execution of the transaction, the bid that the winning Keeper paid to win the auction is distributed based on the image in the ROOK bid.
Hiding Book

- Off-chain orderbook that hosts virtualized orders only filable by KeeperDAO keepers: single-connection access to the entire spectrum of on-chain and off-chain liquidity.
- The hiding book can act as an order relay, or a virtual mempool.
- Integrating the hiding book offers imit orders for dapps with benefits like ROOK rewards, MEV protection, and access to KeeperDAO's keepers.
Auctions
- Keepers place a bid with the Coordinator, which is a
JSON
payload that includes: a signed bid commitment over the staked ROOK payment channel, the unique identifier of the user trade(s) being filler, the keeper's credentials, etc.
{
"bids":[
{
"auctionId":"0x1234",
....
},
{
"auctionId":"0x5678",
....
}
],
"type":"bid"
}
Auction life cycle
-
binding:
- all auctions are identified by an auctionID.
- an auction begins with the first keeper bid on an auctionID
- the auction is locked into this state where any bids received for this auctionID are competing against each other for greenlight
- last not more than a few seconds
-
greenlight:
- once a keeper is greenlit to faciliate user trade, the coordinator waits a period of blocks for the keeper to mine their transaction
- during this time, the auctionID remains locked
-
release:
- once the lock ends, a new auction can begin
Reputation
- KeeperDAO uses a proprietary reputation algorithm that's a simple scoring system based on actions performed by keepers.
- reputation values are fed to the coordinator's greenlight algorithm to help select the winnter of an auction
Greenlight algorithm
- bid quantity (the higher the better)
- reputation
- randomness
- fill quantity (larger fill quantities)
- staked ROOK quantity (the more the best)
How Market Makers benefit
-
KeeperDAO provides arbitrage as a service (using the Rook Network)
-
KeeperDAO is the most convenient, secure, and profitable network for on-chain market makers:
-
- one single integration to access all DeFi and CeFi liquidity: orders will be arbitraged against KeeperDAO users, other market makers, Uniswap, Curve, Balancer, Bancor, Binance, etc...
-
- KeeperDAO provides market makers with three different profit mechanisms: i) capture spreads or hedge fills, ii) earn arbitrage rewards in ROOK on every trade, 3) weekly pilot program rewards
-
-
Before KeeperDAO, DeFi asked market makers to execute their own trades, meaning they had to navigate gas, fees, liquidity, bridging, routing, L2s, settlements, MEV.

MM integration guide
Running a Keeper
Example keeper bot technicuqes
- DeFi arbitrage, cross the user with Uniswap or other on-chain DEX
- CeFi arbitrage, cross the user with Coinbase, etc
- Liquidation facilitation
- Front running, tailgating, etc.
- Keepers can also fill a user's order

Keeper bot architecture
- a keeper bot: integrated with the coordinator and hidingbook components
- Coordinator websocket server: keepers connect and communicate with the coordinator using this server. When they find arbitrage they place a bid via web sockets noting the specific order/liquidation. The coordinator prevents gas auctions and bad behaviors, and broadcast the winner of the auction letting the greenlit keeper know they can take the order/liquidation. The keeper can then capture the arbitrage or MEV they way they like (mempool, flashbots, eden, miningdao, etc).
- Coordinator http server: keepers provide and gather critical info from this server (must register their addresss with the coordinator)
- HidingBook http server: the orderbook containing user order only fillable by whitelisted KeeperDAO keepers.
- HidingBook websocket server: keepers listen to real time order update events using this endpoint. This ensures they get orders as soon as they are posted and know when the order is filled or expired.
Payment channels
- Keepers transact with the coordinator off-chain using payment channels.
- They will open this payment channel by staking ROOK into a contract and then pass signed commitments with the Coordinator.
- Having this payment channel off-chain reduces gas costs for keepers participating in the Cordination game.