This repository contains a smart contract for a decentralized auction system written in Solidity. It was developed as the final project of Module 2 in the smart contracts course.
The contract manages a transparent and fair auction where multiple users can place bids on an item. It ensures fair competition, secure fund handling, and dynamic time management.
- Automatic auction initialization upon deployment.
- Bid reception with a required minimum increase of 5% over the current highest bid.
- Automatic refunds (with a 2% fee) to non-winning bidders when the auction ends.
- Partial refund claims for previous bids during the ongoing auction.
- Automatic auction time extension if a valid bid is placed within the last 10 minutes.
- Display of the current highest bidder and a full list of all bids.
| Feature | Status |
|---|---|
| Constructor initializes the auction | β |
| Bidding function enforces +5% minimum increase | β |
| Winner and winning bid display | β |
| Retrieval of all submitted bids | β |
| Refunds to non-winners with 2% fee | β |
| Deposit tracking by address | β |
| Events for new bids and auction end | β |
| Partial refunds allowed during the auction | β |
| Auto-extension of auction time | β |
| Use of modifiers for time and access control | β |
| Deployed and verified on Sepolia testnet | β |
- Network: Sepolia tesnet
- Contract Address: 0xd4B2431cc892303F4f069C6Ab3303185Cec48a66
- Verification: β Code verified on Etherscan