MEV Bots can bid at each block to get the right to swap on MEVSwap pools. Bids are simple, do not require a signature.
Bids are made using nonce commitment. When swapping on the pool, your bot must commit to a nonce. Is it important to limit MEVSwap swaps to one per arbitrage.
We make simulation easy, setting the from address to the zero address will bypass any nonce or signature requirements. Alternatively, one can call the authorizeNonce method on the hook contract when simulating.
Steps
Commit a Nonce:
Pick a unique nonce for your bid (e.g., 12345).
No API key required.
Build HookData:
/// @notice Struct containing authorization data for hook
struct HookData {
// -------- FOR MEV AUCTIONS --------
/// @notice nonce committed by MEV bot
uint256 nonce;
// --------- FOR SWAPS --------
// ---- parmaeters for retail swaps ---- NOT NEEDED FOR MEV BIDS
}