More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 245 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 14281694 | 1065 days ago | IN | 0 ETH | 0.00504232 | ||||
Harvest | 14217667 | 1075 days ago | IN | 0 ETH | 0.00172818 | ||||
Harvest | 14200766 | 1077 days ago | IN | 0 ETH | 0.00667841 | ||||
Harvest | 14190408 | 1079 days ago | IN | 0 ETH | 0.00615416 | ||||
Harvest | 14073212 | 1097 days ago | IN | 0 ETH | 0.01539006 | ||||
Harvest | 14073150 | 1097 days ago | IN | 0 ETH | 0.00162586 | ||||
Harvest | 14016391 | 1106 days ago | IN | 0 ETH | 0.01816896 | ||||
Harvest | 13878056 | 1127 days ago | IN | 0 ETH | 0.01432964 | ||||
Harvest | 13869579 | 1128 days ago | IN | 0 ETH | 0.01668886 | ||||
Harvest | 13820973 | 1136 days ago | IN | 0 ETH | 0.01122651 | ||||
Harvest | 13794845 | 1140 days ago | IN | 0 ETH | 0.01117765 | ||||
Harvest | 13794169 | 1140 days ago | IN | 0 ETH | 0.01804318 | ||||
Harvest | 13782075 | 1142 days ago | IN | 0 ETH | 0.00929098 | ||||
Harvest | 13777610 | 1143 days ago | IN | 0 ETH | 0.00917265 | ||||
Harvest | 13777201 | 1143 days ago | IN | 0 ETH | 0.00784024 | ||||
Harvest | 13776266 | 1143 days ago | IN | 0 ETH | 0.01021309 | ||||
Harvest | 13773821 | 1143 days ago | IN | 0 ETH | 0.00953539 | ||||
Harvest | 13730685 | 1150 days ago | IN | 0 ETH | 0.02338826 | ||||
Harvest | 13726900 | 1151 days ago | IN | 0 ETH | 0.0021829 | ||||
Harvest | 13726741 | 1151 days ago | IN | 0 ETH | 0.01621934 | ||||
Harvest | 13726582 | 1151 days ago | IN | 0 ETH | 0.00688635 | ||||
Harvest | 13725674 | 1151 days ago | IN | 0 ETH | 0.01651997 | ||||
Harvest | 13719910 | 1152 days ago | IN | 0 ETH | 0.02449251 | ||||
Harvest | 13718864 | 1152 days ago | IN | 0 ETH | 0.01351063 | ||||
Harvest | 13707311 | 1154 days ago | IN | 0 ETH | 0.01491742 |
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
Contract Source Code (Solidity Standard Json-Input format)
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); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
608060405234801561001057600080fd5b506103d7806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80634641257d14610030575b600080fd5b61003861003a565b005b3360009081526020819052604090205460ff161561005757600080fd5b336000818152602081905260408120805460ff191660011790559061007b90610156565b60405163a9059cbb60e01b8152909150738765b1a0eb57ca49be7eacd35b24a574d02036569063a9059cbb906100b7903390859060040161035b565b602060405180830381600087803b1580156100d157600080fd5b505af11580156100e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101099190610308565b61011257600080fd5b336001600160a01b03167fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba8260405161014b9190610374565b60405180910390a250565b604051630a5a4edb60e31b815260009073cf4bc9ca41064e7b47bce84fec4e1bcd59fbe3c7906352d276d890610190908590600401610347565b60206040518083038186803b1580156101a857600080fd5b505afa1580156101bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101e0919061032f565b604051630a5a4edb60e31b8152731f3972f87581c0ea59e0483e14253ee3afc0889c906352d276d890610217908690600401610347565b60206040518083038186803b15801561022f57600080fd5b505afa158015610243573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610267919061032f565b604051630a5a4edb60e31b81527314d9178cdf1cb3f156da2acc5b0f2b8d9828028a906352d276d89061029e908790600401610347565b60206040518083038186803b1580156102b657600080fd5b505afa1580156102ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ee919061032f565b6102f8919061037d565b610302919061037d565b92915050565b600060208284031215610319578081fd5b81518015158114610328578182fd5b9392505050565b600060208284031215610340578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b6000821982111561039c57634e487b7160e01b81526011600452602481fd5b50019056fea2646970667358221220f942749aeb4cd76ffb3c007e11c167a3118d8430c84210cde5f8ce6b8b6456cc64736f6c63430008000033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80634641257d14610030575b600080fd5b61003861003a565b005b3360009081526020819052604090205460ff161561005757600080fd5b336000818152602081905260408120805460ff191660011790559061007b90610156565b60405163a9059cbb60e01b8152909150738765b1a0eb57ca49be7eacd35b24a574d02036569063a9059cbb906100b7903390859060040161035b565b602060405180830381600087803b1580156100d157600080fd5b505af11580156100e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101099190610308565b61011257600080fd5b336001600160a01b03167fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba8260405161014b9190610374565b60405180910390a250565b604051630a5a4edb60e31b815260009073cf4bc9ca41064e7b47bce84fec4e1bcd59fbe3c7906352d276d890610190908590600401610347565b60206040518083038186803b1580156101a857600080fd5b505afa1580156101bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101e0919061032f565b604051630a5a4edb60e31b8152731f3972f87581c0ea59e0483e14253ee3afc0889c906352d276d890610217908690600401610347565b60206040518083038186803b15801561022f57600080fd5b505afa158015610243573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610267919061032f565b604051630a5a4edb60e31b81527314d9178cdf1cb3f156da2acc5b0f2b8d9828028a906352d276d89061029e908790600401610347565b60206040518083038186803b1580156102b657600080fd5b505afa1580156102ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ee919061032f565b6102f8919061037d565b610302919061037d565b92915050565b600060208284031215610319578081fd5b81518015158114610328578182fd5b9392505050565b600060208284031215610340578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b6000821982111561039c57634e487b7160e01b81526011600452602481fd5b50019056fea2646970667358221220f942749aeb4cd76ffb3c007e11c167a3118d8430c84210cde5f8ce6b8b6456cc64736f6c63430008000033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.