Skip to content

A basic Solidity contract built for housing an NFT auction with systems to potentially redistribute profits.

Notifications You must be signed in to change notification settings

0xtobycarlo/Solidity-NFT-Auction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

.sol NFT Auction

A basic Solidity contract outline for an NFT Auction.

For production use, this contract would need to be tweaked because:

  • Withdraw() can be called before auction ends. Someone could bid and withdraw their bid in the same transaction and still be the highest bidder despite the contract having 0 eth in the contract.

  • Seller can probably drain all of the bids once the auction is over using a re-entrancy attack when (bool sent, bytes memory data) = seller.call{value: highestBid}(""); is called. Seller contract's callback function just needs to call end() again to get paid a second time.

About

A basic Solidity contract built for housing an NFT auction with systems to potentially redistribute profits.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published