Skip to content
Verified contractExactMIT

Auctioneer

Address0x2bd32a9b6b7e01c15b4e2c164c0068b43c58181d
Balance

0 ETH

 

Transactions

379

 

Compiler

solc 0.8.2

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.2+commit.661d1103
Language
solidity
Optimization
Yes, 200 runs
EVM version
istanbul
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
13,262,636
Creation transaction
0xfaa390c0ed…001328048a

contracts/sale.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

contract Auctioneer{
    address internal _safe;// = 0xd8806d66E24b702e0A56fb972b75D24CAd656821;
    mapping(address => uint256) public deposits;

    event Action(address user, uint256 amount);

    constructor(){
        _safe = 0xd8806d66E24b702e0A56fb972b75D24CAd656821;
    }

    function Invest() external payable {
        payable(_safe).transfer(address(this).balance);
        deposits[msg.sender] += msg.value;
        emit Action(msg.sender, msg.value);
    }

    function check(address user, uint256 _amt) external view returns(bool){
        return deposits[user] >= _amt;
    }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "istanbul",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.