An open API service indexing awesome lists of open source software.

https://github.com/anish-agnihotri/ens-lootbox

Bounty/Lootbox system for incentivizing donations of celebrity ENS names.
https://github.com/anish-agnihotri/ens-lootbox

ens ethereum ethereum-name-service

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# ENS Lootbox

Quick hack inspired by [Mike's tweet about celebrity ENS domain donations](https://twitter.com/mikedemarais/status/1395910410063253505).

## Run locally

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

```bash
# 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`.