NFT Dutch Auction

This is the Cairo adaptation (with some modifications) of the Solidity by example NFT Dutch Auction. Here’s how it works:
  • The seller of the NFT deploys this contract with a startingPrice.
  • The auction lasts for a specified duration.
  • The price decreases over time.
  • Participants can purchase NFTs at any time as long as the totalSupply has not been reached.
  • The auction ends when either the totalSupply is reached or the duration has elapsed.
// [!include ~/listings/applications/nft_dutch_auction/src/nft_dutch_auction.cairo:contract]