Search projects, hackathons, sponsors and tech

    ← All projects

    Half Lyfe Token

    Lottery system where half of all tokens are burned until 1 remains

    About

    This is a novel lottery system that brings in a market for lottery tickets. As "halving events" occur, tickets are expected to become more valuable. First, all tokens must be purchased. After all available tokens are purchased, everything is locked up. Only trading over Uniswap is possible. Once all tokens are purchased, "halving events" begin on a week long timer. Every week, half of all tokens in people's wallets are burned (1 token at a time, selected randomly). After 14 weeks, all tokens except for 1 will be burned. Whoever owns the final remaining token can redeem the liquidity from the pool.

    How it's made

    Front end uses wagmi and rainbow kit to let people connect wallets and make transactions. The contract is a modified ERC20. When it needs to burn tokens, it will request a random number from a VRF to "seed" it's random number generator. This generator is then used to burn 1 token from a random wallet. It has to burn tokens in small batches to avoid looping over too many users. * deployed on Base