Skip to content

Instantly share code, notes, and snippets.

View djokicx's full-sized avatar

Djokic djokicx

  • University of San Francisco
  • San Francisco
View GitHub Profile
@djokicx
djokicx / contracts...DutchAuction.sol
Created May 27, 2022 21:26
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.14+commit.80d49f37.js&optimize=false&runs=200&gist=
// Dutch auction
// Seller sets the price at the start of the auction and price goes down over time
// When the buyer decides that the price is low enough, he buys and the auction ends
pragma solidity ^0.8.13;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
interface IERC165 {
function supportsInterface(bytes4 interfaceID) external view returns (bool);