ens-lootbox
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
- Anyone can send ETH to fund the donation contract.
ENS Administrator Flow
- Can update the desired ENS names looking to be captured.
- Can attach a
bounty
to the desired ENS names (wherebounty < balance(contract)
). - Can withdraw the ENS names sent to the
ENSLootbox
contract to their EOA.
ENS Celebrity Name Owner Flow
- Can check the
bounty
for a desired ENS name. - Can send a matching ENS name to the contract and be rewarded
bounty
.