Skip to content
@2022DefenDAO

2022DefenDAO

DeFenDAO

Note: this code is not audited and should not be used in production environment.

Summary

DeFenDAO aims to provide a tool for NFT communities to boost engagement and defend collection prices by providing buy liquidity below floor prices. By doing so, it also aims to increase liquidity in the overall NFT market.

Demo

  • Website
    • Note: The website does not show any data because the contract is not deployed on the Optimism test network. We wanted to demo on the Optimism test network, but the Opensea APIs for getting orders was not working. So we instead deconstructed an already fulfilled order on Optimism mainnet and reproduced fulfilling the order on a fork of the mainnet.
  • Video
  • Project slides deck

Problem

NFT holders' perspective

As the NFT market experiences a downturn, NFT collections are experiencing a death spiral of lower floor prices -> lower bids -> lower confidence -> lower floor prices. But having more buy bids at higher prices can break this chain.

NFT buyers' perspective

Buyers may want to snipe a collection at a price lower than the current floor price. Opensea supports this through "collection offers", but they do not support making partial bids.

Solution

Create a contract that allows users to provide liquidity for collections at the price lower than the current floor price (unit for liquidity is currently mininum 1/10th of NFT price). If there is enough liquidity to buy an NFT on this contract and there is a sell order with a matching price available on Opensea, anyone can call the contract execute function, which will buy the NFT.

We also added a lottery system for selecting the recipient of the NFT. Liquidity providers will have an opportunity to win the NFT depending on the percentage of liquidity they provided. (e.g. if 10 people provided 1/10th of liquidity, they will all have equal chances of winning the NFT) This lottery system was added to make the process more fun for participants and lower the barrier to entry.

Frontend

https://github.com/2022DefenDAO/front screenshot

Contracts

Expected node version is >= 16.0.0

  1. Install and build
yarn
yarn build
  1. Run unit test
yarn workspace contracts test

Challenges

1. OpenSea API not working for Optimism network

=> Used orders that had been already executed on a fork of the Optimism network (pre-execution)

2. Seaport fulfill functions not working because of signature verification

=> Used validate function before fulfill function to bypass signature verification

3. Seaport validate functions not working for certain order types (out of BASIC_ORDER, ORDER, ADVANCED_ORDER types, only ORDER type works)

=> Converted BASIC_ORDER, ADVANCED_ORDER types to ORDER type.

Future work

  • Dynamic price units
  • Integrate floor price oracles
  • Ticket purchase and NFT claim fees
  • Executor incentives
  • Ticket reserve yields
  • Support multiple NFT marketplaces

Pinned Loading

  1. contract contract Public

    TypeScript

Repositories

Showing 2 of 2 repositories
  • contract Public
    2022DefenDAO/contract’s past year of commit activity
    TypeScript 0 MIT 0 0 0 Updated Dec 4, 2022
  • .github Public
    2022DefenDAO/.github’s past year of commit activity
    0 0 0 0 Updated Dec 4, 2022

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…