ETH Price: $3,309.10 (-0.76%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Harvest142816942022-02-26 12:22:111065 days ago1645878131IN
0xB8368Cef...bD00e0169
0 ETH0.0050423225.72538413
Harvest142176672022-02-16 14:25:541075 days ago1645021554IN
0xB8368Cef...bD00e0169
0 ETH0.0017281873.92040962
Harvest142007662022-02-13 23:32:321077 days ago1644795152IN
0xB8368Cef...bD00e0169
0 ETH0.0066784134.07250809
Harvest141904082022-02-12 9:26:421079 days ago1644658002IN
0xB8368Cef...bD00e0169
0 ETH0.0061541631.39781937
Harvest140732122022-01-25 6:39:171097 days ago1643092757IN
0xB8368Cef...bD00e0169
0 ETH0.0153900678.51831923
Harvest140731502022-01-25 6:26:111097 days ago1643091971IN
0xB8368Cef...bD00e0169
0 ETH0.0016258677.18700473
Harvest140163912022-01-16 11:59:121106 days ago1642334352IN
0xB8368Cef...bD00e0169
0 ETH0.0181689692.69594446
Harvest138780562021-12-26 2:14:351127 days ago1640484875IN
0xB8368Cef...bD00e0169
0 ETH0.0143296473.10818672
Harvest138695792021-12-24 18:44:351128 days ago1640371475IN
0xB8368Cef...bD00e0169
0 ETH0.0166888685.14468863
Harvest138209732021-12-17 6:22:371136 days ago1639722157IN
0xB8368Cef...bD00e0169
0 ETH0.0112265161.81593946
Harvest137948452021-12-13 5:08:111140 days ago1639372091IN
0xB8368Cef...bD00e0169
0 ETH0.0111776557.0271065
Harvest137941692021-12-13 2:31:491140 days ago1639362709IN
0xB8368Cef...bD00e0169
0 ETH0.0180431892.05427328
Harvest137820752021-12-11 5:44:401142 days ago1639201480IN
0xB8368Cef...bD00e0169
0 ETH0.0092909847.40153538
Harvest137776102021-12-10 13:15:521143 days ago1639142152IN
0xB8368Cef...bD00e0169
0 ETH0.0091726546.79781221
Harvest137772012021-12-10 11:46:221143 days ago1639136782IN
0xB8368Cef...bD00e0169
0 ETH0.0078402440
Harvest137762662021-12-10 8:25:371143 days ago1639124737IN
0xB8368Cef...bD00e0169
0 ETH0.0102130952.10602909
Harvest137738212021-12-09 23:02:151143 days ago1639090935IN
0xB8368Cef...bD00e0169
0 ETH0.00953539126.59
Harvest137306852021-12-03 1:25:071150 days ago1638494707IN
0xB8368Cef...bD00e0169
0 ETH0.02338826119.32425016
Harvest137269002021-12-02 10:44:081151 days ago1638441848IN
0xB8368Cef...bD00e0169
0 ETH0.002182993.37018571
Harvest137267412021-12-02 10:08:411151 days ago1638439721IN
0xB8368Cef...bD00e0169
0 ETH0.0162193482.74924099
Harvest137265822021-12-02 9:28:151151 days ago1638437295IN
0xB8368Cef...bD00e0169
0 ETH0.0068863591.42196913
Harvest137256742021-12-02 5:59:011151 days ago1638424741IN
0xB8368Cef...bD00e0169
0 ETH0.0165199784.28302292
Harvest137199102021-12-01 8:01:581152 days ago1638345718IN
0xB8368Cef...bD00e0169
0 ETH0.02449251124.95800964
Harvest137188642021-12-01 3:59:111152 days ago1638331151IN
0xB8368Cef...bD00e0169
0 ETH0.01351063179.36459624
Harvest137073112021-11-29 7:33:401154 days ago1638171220IN
0xB8368Cef...bD00e0169
0 ETH0.0149174276.10699687
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ClaimAggregator

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : ClaimAggregator.sol
pragma solidity 0.8.0;

interface Sale {
    function viewUserOfferingAmount(address _account) view external returns(uint256);
}

interface Token {
    function transfer(address _to, uint256 _amount) external returns(bool);
}

contract ClaimAggregator {

    Token constant MGH = Token(0x8765b1A0eb57ca49bE7EACD35b24A574D0203656);
    Sale constant add1 = Sale(0x14d9178cdf1cB3F156Da2AcC5b0F2b8D9828028a);
    Sale constant add2 = Sale(0x1F3972f87581C0ea59E0483e14253Ee3afC0889C);
    Sale constant add3 = Sale(0xcF4BC9cA41064E7B47Bce84fec4E1BCD59fbe3C7);

    mapping(address => bool) private hasHarvested;

    event Harvest(address indexed account, uint256 amount);

    function harvest() public {
        require(hasHarvested[msg.sender] == false);
        hasHarvested[msg.sender] = true;
        uint256 amount = calculateAmount(msg.sender);
        require(MGH.transfer(msg.sender, amount));
        emit Harvest(msg.sender, amount);
    }

    function calculateAmount(address _account) private view returns(uint256) {
        return add1.viewUserOfferingAmount(_account) +
               add2.viewUserOfferingAmount(_account) +
               add3.viewUserOfferingAmount(_account);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506103d7806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80634641257d14610030575b600080fd5b61003861003a565b005b3360009081526020819052604090205460ff161561005757600080fd5b336000818152602081905260408120805460ff191660011790559061007b90610156565b60405163a9059cbb60e01b8152909150738765b1a0eb57ca49be7eacd35b24a574d02036569063a9059cbb906100b7903390859060040161035b565b602060405180830381600087803b1580156100d157600080fd5b505af11580156100e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101099190610308565b61011257600080fd5b336001600160a01b03167fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba8260405161014b9190610374565b60405180910390a250565b604051630a5a4edb60e31b815260009073cf4bc9ca41064e7b47bce84fec4e1bcd59fbe3c7906352d276d890610190908590600401610347565b60206040518083038186803b1580156101a857600080fd5b505afa1580156101bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101e0919061032f565b604051630a5a4edb60e31b8152731f3972f87581c0ea59e0483e14253ee3afc0889c906352d276d890610217908690600401610347565b60206040518083038186803b15801561022f57600080fd5b505afa158015610243573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610267919061032f565b604051630a5a4edb60e31b81527314d9178cdf1cb3f156da2acc5b0f2b8d9828028a906352d276d89061029e908790600401610347565b60206040518083038186803b1580156102b657600080fd5b505afa1580156102ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ee919061032f565b6102f8919061037d565b610302919061037d565b92915050565b600060208284031215610319578081fd5b81518015158114610328578182fd5b9392505050565b600060208284031215610340578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b6000821982111561039c57634e487b7160e01b81526011600452602481fd5b50019056fea2646970667358221220f942749aeb4cd76ffb3c007e11c167a3118d8430c84210cde5f8ce6b8b6456cc64736f6c63430008000033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80634641257d14610030575b600080fd5b61003861003a565b005b3360009081526020819052604090205460ff161561005757600080fd5b336000818152602081905260408120805460ff191660011790559061007b90610156565b60405163a9059cbb60e01b8152909150738765b1a0eb57ca49be7eacd35b24a574d02036569063a9059cbb906100b7903390859060040161035b565b602060405180830381600087803b1580156100d157600080fd5b505af11580156100e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101099190610308565b61011257600080fd5b336001600160a01b03167fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba8260405161014b9190610374565b60405180910390a250565b604051630a5a4edb60e31b815260009073cf4bc9ca41064e7b47bce84fec4e1bcd59fbe3c7906352d276d890610190908590600401610347565b60206040518083038186803b1580156101a857600080fd5b505afa1580156101bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101e0919061032f565b604051630a5a4edb60e31b8152731f3972f87581c0ea59e0483e14253ee3afc0889c906352d276d890610217908690600401610347565b60206040518083038186803b15801561022f57600080fd5b505afa158015610243573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610267919061032f565b604051630a5a4edb60e31b81527314d9178cdf1cb3f156da2acc5b0f2b8d9828028a906352d276d89061029e908790600401610347565b60206040518083038186803b1580156102b657600080fd5b505afa1580156102ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ee919061032f565b6102f8919061037d565b610302919061037d565b92915050565b600060208284031215610319578081fd5b81518015158114610328578182fd5b9392505050565b600060208284031215610340578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b6000821982111561039c57634e487b7160e01b81526011600452602481fd5b50019056fea2646970667358221220f942749aeb4cd76ffb3c007e11c167a3118d8430c84210cde5f8ce6b8b6456cc64736f6c63430008000033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.