ens-lootbox icon indicating copy to clipboard operation
ens-lootbox copied to clipboard

Bounty/Lootbox system for incentivizing donations of celebrity ENS names.

ENS Lootbox

Quick hack inspired by Mike's tweet about celebrity ENS domain donations.

Run locally

First, update ETH RPC url in hardhat.config.js and test/main.js.

# Install dependencies
npm install

# Run tests
npx hardhat test

Flow

Donator Flow

  1. Anyone can send ETH to fund the donation contract.

ENS Administrator Flow

  1. Can update the desired ENS names looking to be captured.
  2. Can attach a bounty to the desired ENS names (where bounty < balance(contract)).
  3. Can withdraw the ENS names sent to the ENSLootbox contract to their EOA.

ENS Celebrity Name Owner Flow

  1. Can check the bounty for a desired ENS name.
  2. Can send a matching ENS name to the contract and be rewarded bounty.