NFT Smart Batch Auction
Smart Batch Auctions are an improvement over the traditional first come first serve (FCFS) NFT drops. FCFS design has been in use for a while, but with crypto gaining popularity, the race to occupy block space has been intensifying during NFT drops. Besides leading to general loss of funds due to failed transactions, FCFS strategy is usually timezone dependent and makes it inconvenient for a majority to participate.
A recent article by Paradigm suggested the use of batch-auctions to alleviate this issue and make NFT launches more efficient and light on the chain. This repo provides a sample implementation of the same on Tezos blockchain. The implementation is inspired by a Min Priority Queue based solution given by FrankIsLost in a tweet.
How does it work?
In a fixed period of time (preferrably spanning at least 24 hours to be timezone agnostic), the participants are asked to place their bids to buy the NFT. A bid consists of two values – price per NFT & quantity. The participants have to lock up the total value of the proposed bid (i.e quantity * price) in the smart contract.
Once the bidding period is over, a clearing price is decided and an eligible batch of top bids is cleared at the that uniform price. All unused funds are returned to the bidders irrespective of whether they win or lose.
Total Supply of NFT: 100
Minimum Bid Price: 0.1 tez / NFT
|ID||Price (tez) / NFT||Quantity (NFTs)|
Clearing Price: 1.5 tez / NFT
|ID||NFTs Received||Balance Refunded (tez)|
|1||0 / 20||20|
|2||40 / 40||0|
|3||15 / 15||0|
|4||25 / 25||0|
|5||10 / 10||0|
|6||10 / 45||52.5|