About
Hodlock is an on-chain Certificate of Deposit (CD) protocol deployed on Base (Ethereum L2) that solves DeFi's sustainability problem by creating a zero-sum reward mechanism where patient holders profit from impatient ones. Core Mechanism: Users deposit ERC20 tokens into individual Hodlock contracts (one per token type) for customizable lock periods (minimum 5 minutes, typically 30-365 days). Each deposit becomes a separate "certificate" with its own unlock time and penalty rate (5%-100%). The protocol uses a sophisticated share-based reward distribution system where longer locks receive exponentially higher shares (calculated as t²/(t+365 days)), ensuring long-term holders capture more rewards. Sustainable Yield Model: Unlike Ponzi-like yield farms that rely on constant new deposits, Hodlock generates rewards purely from early withdrawal penalties. When users withdraw before maturity, they forfeit a percentage of their principal (based on their chosen penalty rate) plus any accumulated rewards. These penalties are distributed proportionally to all remaining holders based on their shares. The protocol also includes a 10% developer fee and optional 30% referrer commission from penalties. Principal Protection: Your deposited tokens are always returned in full at maturity—no impermanent loss, no rug pulls, no dependency on external price feeds or liquidity pools. The smart contracts are non-upgradeable and fully auditable. NFT Certificates: Each deposit can mint a soulbound NFT (ERC-721) that serves as proof of your diamond-hand status. These NFTs are non-transferable during the lock period but become tradeable after maturity, creating a secondary market for matured positions. Referral System: Users can invite others with unique referral links. Referrers earn 30% of all early withdrawal penalties from their referees—permanently, with no expiration. This creates a sustainable passive income stream aligned with protocol growth. Technical Architecture: The system consists of four main contracts: HodlockFactory (deploys new token pools), Hodlock (core deposit/withdrawal logic with reentrancy guards and fee-on-transfer token support), HodlockNFT (soulbound certificates), and HodlockNFTRenderer (on-chain SVG metadata). The factory includes a blacklist to prevent incompatible tokens (like rebase tokens) from being added.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






