W3

Smart Contract Demo Lab

web3.nasirovpe.com

Projects/Solidity Auction V2

Simulated demo

Solidity Auction V2

Secure Ethereum auction smart contract with reserve pricing, second-price bidding, reentrancy protection, and Hardhat tests.

SolidityReentrancy GuardSecond-PriceTests

What this demonstrates

Sealed-bid-style auction flow with reserve price, bid updates, and second-price settlement after the auction ends.

Key Solidity concepts

  • Bid tracking and refund of outbid amounts
  • Reserve price checks
  • Reentrancy guards on fund transfers
  • Time or state-based auction phases

Demo scope

Interactive UI mimics placing bids and settling an auction locally. Funds and winners are simulated, not sent on-chain.

Repository code is for learning; not audited. Production auctions need careful fund escrow, timing, and front-running considerations.

Auction item (mock)

Genesis NFT #042

Reserve price: 0.5000 ETH

Highest bidder

0xBob...41c8 · 0.6200 ETH

  • 0xAlice...9f2a0.5500 ETH
  • 0xBob...41c80.6200 ETH

Key features

  • Reserve price enforcement
  • Second-price auction settlement logic
  • Reentrancy-safe fund handling
  • Comprehensive Hardhat test suite