About
depositoor is a non-custodial deposit sweeper that lets users pay with any ERC-20 token or native ETH on any supported chain (Ethereum, Arbitrum, Base, Optimism, Polygon) and automatically converts it to USDC delivered to any address on any chain. It solves a fundamental pain point in crypto payments: the user wants to pay with whatever they have, the merchant wants USDC on one chain.
The core mechanism uses EIP-7702 account delegation. For each deposit session, a fresh EOA keypair is generated client-side. The user's browser signs an EIP-7702 authorization delegating that EOA to our DepositoorDelegate contract (built on Solady's ERC-7821). The user then sends any token to this plain Ethereum address — no smart wallet deployment, no counterfactual addresses, no setup transaction. A backend relayer detects the deposit, sets the delegation, and executes batched calls (approve, swap, bridge) through the delegated account in a single EIP-7702 type 4 transaction. The user never signs anything beyond the initial token transfer.
Token conversions route through the Uniswap Trading API using the proxy approval flow (x-permit2-disabled header). This gives us a simple approve+call pattern that works natively inside ERC-7821 batches — no Permit2 signatures, no off-chain EIP-712 signing from the burner. We discovered that setting the swapper field to the destination address in the Uniswap quote encodes the output recipient directly in the calldata, while the proxy contract still pulls input tokens from msg.sender (the burner). This lets us deliver swap output directly to the destination in a single transaction for same-chain deposits.
Cross-chain settlements use Uniswap's BRIDGE routing, which is powered by Across Protocol under the hood. For cross-chain deposits where the input token isn't USDC, the sweeper executes two transactions: first a swap to USDC on the source chain, then a bridge call that delivers USDC to the destination on the target chain. The executor polls balanceOf between transactions to get the exact post-slippage amount.
The indexer follows chain heads via WebSocket subscription (newHeads) and fetches Transfer logs per block via HTTP RPC. This hybrid approach is more reliable than pure WebSocket log subscriptions, which silently drop under high event volume on chains like Base. The indexer also polls eth_getBalance for pending burner addresses to detect native ETH deposits. When ETH is detected, the sweeper prepends a WETH.deposit() call to the batch before swapping.
The DepositoorDelegate contract is approximately 50 lines of Solidity. It implements ERC-7821 batch execution authorized by an immutable keeper address, a sweep() function that transfers the entire balance of any token to a recipient (solving the problem of not knowing exact post-swap amounts at batch construction time), and a receive() function that auto-wraps incoming ETH to WETH. The contract is deployed at the same address (0x33333393A5EdE0c5E257b836034b8ab48078f53c) across all five supported chains via CREATE3.
The project ships as a React SDK (@depositoor/react) with two exports: DepositoorProvider and DepositWidget. Developers wrap their app with the provider, drop in the widget with a destination address and chain ID, and the entire flow — burner generation, EIP-7702 auth signing, session registration, QR code display, real-time status via SSE, swap execution, cross-chain bridging — is handled internally. The frontend also supports wallet connectivity via Reown AppKit across EVM chains and Solana, with adapters for Porto, Coinbase Smart Wallet, and WalletConnect QR code sessions for mobile wallets.
The backend is written in Rust using Axum and Alloy, with PostgreSQL for session persistence and advisory locks for safe multi-instance coordination. It runs as three process types — API server, indexer (one per chain), and sweeper (one per chain) — totaling 11 processes in production across 5 chains. A refund endpoint allows returning tokens to users when swaps fail due to unsupported tokens or insufficient liquidity.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






