Contract Details
Tech Stack
Solidity ^0.8.24 OpenZeppelin v5 Foundry
Chains
Ethereum Arbitrum Base
Description
Smart contract router that captures MEV-Share rebates and redistributes them to users proportionally. Integrates with any DEX router to provide automatic MEV rebating on swaps.
Features
- ✓ Proportional MEV rebate distribution to swap users
- ✓ Integration adapters for Uniswap V3 and V2
- ✓ Configurable rebate share ratios (user/protocol)
- ✓ Batch claim functionality for gas efficiency
- ✓ Epoch-based accounting for fair distribution
- ✓ Ownable2Step governance
- ✓ ReentrancyGuard on all value transfers
- ✓ Full Foundry test suite with swap simulations
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title MEV Rebate Router /// @notice Router that captures and redistributes MEV rebates to users. contract MevRebateRouter { address public immutable owner; uint256 public constant VERSION = 1; event Initialized(address indexed deployer); constructor() { owner = msg.sender; emit Initialized(msg.sender); } // ... full implementation in purchased package }