Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 60 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Unclaim... | 20323876 | 192 days ago | IN | 0 ETH | 0.0001992 | ||||
Claim ETH | 19438410 | 316 days ago | IN | 0 ETH | 0.0022658 | ||||
Claim ETH | 19436627 | 316 days ago | IN | 0 ETH | 0.00214809 | ||||
Claim ETH | 19436627 | 316 days ago | IN | 0 ETH | 0.00214809 | ||||
Claim ETH | 19436627 | 316 days ago | IN | 0 ETH | 0.00214809 | ||||
Claim ETH | 19435828 | 316 days ago | IN | 0 ETH | 0.00268112 | ||||
Claim ETH | 19431371 | 317 days ago | IN | 0 ETH | 0.00256884 | ||||
Claim ETH | 19431251 | 317 days ago | IN | 0 ETH | 0.00260642 | ||||
Claim ETH | 19428538 | 317 days ago | IN | 0 ETH | 0.00341529 | ||||
Claim ETH | 19419092 | 318 days ago | IN | 0 ETH | 0.0028886 | ||||
Claim ETH | 19413806 | 319 days ago | IN | 0 ETH | 0.0056936 | ||||
Claim ETH | 19413513 | 319 days ago | IN | 0 ETH | 0.00596018 | ||||
Claim ETH | 19412451 | 319 days ago | IN | 0 ETH | 0.00431694 | ||||
Claim ETH | 19411177 | 319 days ago | IN | 0 ETH | 0.00396521 | ||||
Claim ETH | 19409413 | 320 days ago | IN | 0 ETH | 0.00267613 | ||||
Claim ETH | 19408820 | 320 days ago | IN | 0 ETH | 0.00249912 | ||||
Claim ETH | 19400505 | 321 days ago | IN | 0 ETH | 0.00385449 | ||||
Claim ETH | 19400120 | 321 days ago | IN | 0 ETH | 0.00338925 | ||||
Claim ETH | 19399037 | 321 days ago | IN | 0 ETH | 0.00429756 | ||||
Claim ETH | 19398656 | 321 days ago | IN | 0 ETH | 0.00431844 | ||||
Claim ETH | 19398648 | 321 days ago | IN | 0 ETH | 0.00446972 | ||||
Claim ETH | 19398643 | 321 days ago | IN | 0 ETH | 0.00475789 | ||||
Claim ETH | 19398638 | 321 days ago | IN | 0 ETH | 0.00459602 | ||||
Claim ETH | 19398634 | 321 days ago | IN | 0 ETH | 0.00462061 | ||||
Claim ETH | 19398502 | 321 days ago | IN | 0 ETH | 0.00400189 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
20323876 | 192 days ago | 2.40781154 ETH | ||||
19438410 | 316 days ago | 0.0507491 ETH | ||||
19436627 | 316 days ago | 0.01493952 ETH | ||||
19436627 | 316 days ago | 0.01810291 ETH | ||||
19436627 | 316 days ago | 0.07210061 ETH | ||||
19435828 | 316 days ago | 0.09437215 ETH | ||||
19431371 | 317 days ago | 0.01463897 ETH | ||||
19431251 | 317 days ago | 0.05692404 ETH | ||||
19428538 | 317 days ago | 0.00915857 ETH | ||||
19419092 | 318 days ago | 0.05550472 ETH | ||||
19413806 | 319 days ago | 0.00997678 ETH | ||||
19413513 | 319 days ago | 0.0555961 ETH | ||||
19412451 | 319 days ago | 0.00663442 ETH | ||||
19411177 | 319 days ago | 0.01027 ETH | ||||
19409413 | 320 days ago | 0.03886076 ETH | ||||
19408820 | 320 days ago | 0.00555413 ETH | ||||
19400505 | 321 days ago | 0.03825777 ETH | ||||
19400120 | 321 days ago | 0.11303286 ETH | ||||
19399037 | 321 days ago | 0.00725495 ETH | ||||
19398656 | 321 days ago | 0.2220542 ETH | ||||
19398648 | 321 days ago | 0.05549462 ETH | ||||
19398643 | 321 days ago | 0.11099235 ETH | ||||
19398638 | 321 days ago | 0.11102682 ETH | ||||
19398634 | 321 days ago | 0.04996219 ETH | ||||
19398502 | 321 days ago | 0.09010743 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
AxeCapProfitShare8
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 500 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract AxeCapProfitShare8 { uint256 immutable public REVENUE_AMOUNT; address public owner; uint256 public totalSnapshotTokens; uint256 public snapshotTime; bool public isSnapshotLocked; bool public isFreezed; mapping(address => uint256) public snapshotBalances; mapping(address => bool) public hasClaimed; event AxeSnapshotLock(); event AxeSnapshotUnlock(); event EthClaim(address indexed claimer, uint256 amount); event AdminWithdraw(uint256 amount); constructor () payable { owner = msg.sender; REVENUE_AMOUNT = msg.value; } modifier onlyOwner() { require(msg.sender == owner, "Caller is not the owner"); _; } // modifier after3Days() { require(block.timestamp > snapshotTime + 3 days , "Can only call after 3 days of snapshot"); _; } function uploadSnapshot(address[] calldata users, uint256[] calldata balances) external onlyOwner { require(users.length == balances.length, "Arrays must be of equal length"); // require(users.length <= 125, "Can only upload up to 125 addresses at a time"); // note: should not have more than one user value for (uint256 i = 0; i < users.length; i++) { snapshotBalances[users[i]] += balances[i]; totalSnapshotTokens += balances[i]; } } function lockSnapshot() external onlyOwner { require(!isSnapshotLocked, "snapshot already locked"); snapshotTime = block.timestamp; isSnapshotLocked = true; emit AxeSnapshotLock(); } function freeze() external onlyOwner { require(!isFreezed, "Contract is already frozen"); isFreezed = true; emit AxeSnapshotUnlock(); } function claimETH() external { require(!isFreezed, "Contract is frozen"); require(isSnapshotLocked, "Snapshot not yet locked"); require(!hasClaimed[msg.sender], "You have already claimed your ETH"); require(snapshotBalances[msg.sender] > 0, "You do not have any AXE tokens in the snapshot"); uint256 claimableAmount = (REVENUE_AMOUNT * snapshotBalances[msg.sender]) / totalSnapshotTokens; // prevent reentrancy hasClaimed[msg.sender] = true; // see https://ethereum.stackexchange.com/questions/78124/is-transfer-still-safe-after-the-istanbul-update (bool isSuccess,) = msg.sender.call{value: claimableAmount}(""); require(isSuccess, "Claim amount tranfer failed"); emit EthClaim(msg.sender, claimableAmount); } // Function to withdraw unclaimed ETH after 7 days function withdrawUnclaimedETH() public onlyOwner after3Days { uint256 amount = address(this).balance; (bool success, ) = msg.sender.call{value: amount}(""); require(success, "Withdraw failed"); emit AdminWithdraw(amount); } receive() external payable {} }
{ "optimizer": { "enabled": true, "runs": 500 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminWithdraw","type":"event"},{"anonymous":false,"inputs":[],"name":"AxeSnapshotLock","type":"event"},{"anonymous":false,"inputs":[],"name":"AxeSnapshotUnlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EthClaim","type":"event"},{"inputs":[],"name":"REVENUE_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFreezed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSnapshotLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockSnapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"snapshotBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"snapshotTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSnapshotTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"name":"uploadSnapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawUnclaimedETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0604052600080546001600160a01b0319163317905534608052608051610bf761003c6000396000818161019301526108480152610bf76000f3fe6080604052600436106100d65760003560e01c8063672729991161007f5780638da5cb5b116100595780638da5cb5b14610227578063b9469e1a1461025f578063c552712c1461027e578063dd0248ad1461029357600080fd5b806367272999146101b557806373b2e80e146101ca57806374d83be5146101fa57600080fd5b8063504b0371116100b0578063504b03711461015757806362a5af3b1461016c578063671247181461018157600080fd5b80632a671bdf146100e257806337748c0f146101115780634c6d767b1461013357600080fd5b366100dd57005b600080fd5b3480156100ee57600080fd5b506003546100fc9060ff1681565b60405190151581526020015b60405180910390f35b34801561011d57600080fd5b5061013161012c366004610a8e565b6102a9565b005b34801561013f57600080fd5b5061014960025481565b604051908152602001610108565b34801561016357600080fd5b5061013161041e565b34801561017857600080fd5b506101316105b0565b34801561018d57600080fd5b506101497f000000000000000000000000000000000000000000000000000000000000000081565b3480156101c157600080fd5b50610131610696565b3480156101d657600080fd5b506100fc6101e5366004610afa565b60056020526000908152604090205460ff1681565b34801561020657600080fd5b50610149610215366004610afa565b60046020526000908152604090205481565b34801561023357600080fd5b50600054610247906001600160a01b031681565b6040516001600160a01b039091168152602001610108565b34801561026b57600080fd5b506003546100fc90610100900460ff1681565b34801561028a57600080fd5b5061013161095f565b34801561029f57600080fd5b5061014960015481565b6000546001600160a01b031633146103025760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064015b60405180910390fd5b8281146103515760405162461bcd60e51b815260206004820152601e60248201527f417272617973206d757374206265206f6620657175616c206c656e677468000060448201526064016102f9565b60005b838110156104175782828281811061036e5761036e610b2a565b905060200201356004600087878581811061038b5761038b610b2a565b90506020020160208101906103a09190610afa565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546103cf9190610b56565b9091555083905082828181106103e7576103e7610b2a565b90506020020135600160008282546103ff9190610b56565b9091555081905061040f81610b6f565b915050610354565b5050505050565b6000546001600160a01b031633146104725760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102f9565b600254610482906203f480610b56565b42116104df5760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c792063616c6c20616674657220332064617973206f6620736e604482015265185c1cda1bdd60d21b60648201526084016102f9565b6040514790600090339083908381818185875af1925050503d8060008114610523576040519150601f19603f3d011682016040523d82523d6000602084013e610528565b606091505b50509050806105795760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c6564000000000000000000000000000000000060448201526064016102f9565b6040518281527f0c19c6325aefe1fa748b9a79e9fc092a292bb370d2a5a0d13f138bb8f46429da9060200160405180910390a15050565b6000546001600160a01b031633146106045760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102f9565b600354610100900460ff161561065c5760405162461bcd60e51b815260206004820152601a60248201527f436f6e747261637420697320616c72656164792066726f7a656e00000000000060448201526064016102f9565b6003805461ff0019166101001790556040517fe43fa10ef73adb0338d6a097005d6e71b28feb823746d0940580e8987aab293690600090a1565b600354610100900460ff16156106ee5760405162461bcd60e51b815260206004820152601260248201527f436f6e74726163742069732066726f7a656e000000000000000000000000000060448201526064016102f9565b60035460ff166107405760405162461bcd60e51b815260206004820152601760248201527f536e617073686f74206e6f7420796574206c6f636b656400000000000000000060448201526064016102f9565b3360009081526005602052604090205460ff16156107aa5760405162461bcd60e51b815260206004820152602160248201527f596f75206861766520616c726561647920636c61696d656420796f75722045546044820152600960fb1b60648201526084016102f9565b3360009081526004602052604090205461082c5760405162461bcd60e51b815260206004820152602e60248201527f596f7520646f206e6f74206861766520616e792041584520746f6b656e73206960448201527f6e2074686520736e617073686f7400000000000000000000000000000000000060648201526084016102f9565b6001543360009081526004602052604081205490919061086c907f0000000000000000000000000000000000000000000000000000000000000000610b88565b6108769190610b9f565b33600081815260056020526040808220805460ff19166001179055519293509183908381818185875af1925050503d80600081146108d0576040519150601f19603f3d011682016040523d82523d6000602084013e6108d5565b606091505b50509050806109265760405162461bcd60e51b815260206004820152601b60248201527f436c61696d20616d6f756e74207472616e666572206661696c6564000000000060448201526064016102f9565b60405182815233907fcd96ec03610fb7c370679f8da06beb3578f8e2a48bdf4e5d74715e26c4e3202f9060200160405180910390a25050565b6000546001600160a01b031633146109b35760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102f9565b60035460ff1615610a065760405162461bcd60e51b815260206004820152601760248201527f736e617073686f7420616c7265616479206c6f636b656400000000000000000060448201526064016102f9565b426002556003805460ff191660011790556040517fbf85a8612e483cf66ca60fc4ebb1678f4eb8025549a659363cc979fde4b2f0cc90600090a1565b60008083601f840112610a5457600080fd5b50813567ffffffffffffffff811115610a6c57600080fd5b6020830191508360208260051b8501011115610a8757600080fd5b9250929050565b60008060008060408587031215610aa457600080fd5b843567ffffffffffffffff80821115610abc57600080fd5b610ac888838901610a42565b90965094506020870135915080821115610ae157600080fd5b50610aee87828801610a42565b95989497509550505050565b600060208284031215610b0c57600080fd5b81356001600160a01b0381168114610b2357600080fd5b9392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610b6957610b69610b40565b92915050565b600060018201610b8157610b81610b40565b5060010190565b8082028115828204841417610b6957610b69610b40565b600082610bbc57634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122041a2ccf140e52119c139456a9cda5ec716656740c678e517d0e03ba3ab3df9f764736f6c63430008140033
Deployed Bytecode
0x6080604052600436106100d65760003560e01c8063672729991161007f5780638da5cb5b116100595780638da5cb5b14610227578063b9469e1a1461025f578063c552712c1461027e578063dd0248ad1461029357600080fd5b806367272999146101b557806373b2e80e146101ca57806374d83be5146101fa57600080fd5b8063504b0371116100b0578063504b03711461015757806362a5af3b1461016c578063671247181461018157600080fd5b80632a671bdf146100e257806337748c0f146101115780634c6d767b1461013357600080fd5b366100dd57005b600080fd5b3480156100ee57600080fd5b506003546100fc9060ff1681565b60405190151581526020015b60405180910390f35b34801561011d57600080fd5b5061013161012c366004610a8e565b6102a9565b005b34801561013f57600080fd5b5061014960025481565b604051908152602001610108565b34801561016357600080fd5b5061013161041e565b34801561017857600080fd5b506101316105b0565b34801561018d57600080fd5b506101497f0000000000000000000000000000000000000000000000004563918244f4000081565b3480156101c157600080fd5b50610131610696565b3480156101d657600080fd5b506100fc6101e5366004610afa565b60056020526000908152604090205460ff1681565b34801561020657600080fd5b50610149610215366004610afa565b60046020526000908152604090205481565b34801561023357600080fd5b50600054610247906001600160a01b031681565b6040516001600160a01b039091168152602001610108565b34801561026b57600080fd5b506003546100fc90610100900460ff1681565b34801561028a57600080fd5b5061013161095f565b34801561029f57600080fd5b5061014960015481565b6000546001600160a01b031633146103025760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064015b60405180910390fd5b8281146103515760405162461bcd60e51b815260206004820152601e60248201527f417272617973206d757374206265206f6620657175616c206c656e677468000060448201526064016102f9565b60005b838110156104175782828281811061036e5761036e610b2a565b905060200201356004600087878581811061038b5761038b610b2a565b90506020020160208101906103a09190610afa565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546103cf9190610b56565b9091555083905082828181106103e7576103e7610b2a565b90506020020135600160008282546103ff9190610b56565b9091555081905061040f81610b6f565b915050610354565b5050505050565b6000546001600160a01b031633146104725760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102f9565b600254610482906203f480610b56565b42116104df5760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c792063616c6c20616674657220332064617973206f6620736e604482015265185c1cda1bdd60d21b60648201526084016102f9565b6040514790600090339083908381818185875af1925050503d8060008114610523576040519150601f19603f3d011682016040523d82523d6000602084013e610528565b606091505b50509050806105795760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c6564000000000000000000000000000000000060448201526064016102f9565b6040518281527f0c19c6325aefe1fa748b9a79e9fc092a292bb370d2a5a0d13f138bb8f46429da9060200160405180910390a15050565b6000546001600160a01b031633146106045760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102f9565b600354610100900460ff161561065c5760405162461bcd60e51b815260206004820152601a60248201527f436f6e747261637420697320616c72656164792066726f7a656e00000000000060448201526064016102f9565b6003805461ff0019166101001790556040517fe43fa10ef73adb0338d6a097005d6e71b28feb823746d0940580e8987aab293690600090a1565b600354610100900460ff16156106ee5760405162461bcd60e51b815260206004820152601260248201527f436f6e74726163742069732066726f7a656e000000000000000000000000000060448201526064016102f9565b60035460ff166107405760405162461bcd60e51b815260206004820152601760248201527f536e617073686f74206e6f7420796574206c6f636b656400000000000000000060448201526064016102f9565b3360009081526005602052604090205460ff16156107aa5760405162461bcd60e51b815260206004820152602160248201527f596f75206861766520616c726561647920636c61696d656420796f75722045546044820152600960fb1b60648201526084016102f9565b3360009081526004602052604090205461082c5760405162461bcd60e51b815260206004820152602e60248201527f596f7520646f206e6f74206861766520616e792041584520746f6b656e73206960448201527f6e2074686520736e617073686f7400000000000000000000000000000000000060648201526084016102f9565b6001543360009081526004602052604081205490919061086c907f0000000000000000000000000000000000000000000000004563918244f40000610b88565b6108769190610b9f565b33600081815260056020526040808220805460ff19166001179055519293509183908381818185875af1925050503d80600081146108d0576040519150601f19603f3d011682016040523d82523d6000602084013e6108d5565b606091505b50509050806109265760405162461bcd60e51b815260206004820152601b60248201527f436c61696d20616d6f756e74207472616e666572206661696c6564000000000060448201526064016102f9565b60405182815233907fcd96ec03610fb7c370679f8da06beb3578f8e2a48bdf4e5d74715e26c4e3202f9060200160405180910390a25050565b6000546001600160a01b031633146109b35760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102f9565b60035460ff1615610a065760405162461bcd60e51b815260206004820152601760248201527f736e617073686f7420616c7265616479206c6f636b656400000000000000000060448201526064016102f9565b426002556003805460ff191660011790556040517fbf85a8612e483cf66ca60fc4ebb1678f4eb8025549a659363cc979fde4b2f0cc90600090a1565b60008083601f840112610a5457600080fd5b50813567ffffffffffffffff811115610a6c57600080fd5b6020830191508360208260051b8501011115610a8757600080fd5b9250929050565b60008060008060408587031215610aa457600080fd5b843567ffffffffffffffff80821115610abc57600080fd5b610ac888838901610a42565b90965094506020870135915080821115610ae157600080fd5b50610aee87828801610a42565b95989497509550505050565b600060208284031215610b0c57600080fd5b81356001600160a01b0381168114610b2357600080fd5b9392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610b6957610b69610b40565b92915050565b600060018201610b8157610b81610b40565b5060010190565b8082028115828204841417610b6957610b69610b40565b600082610bbc57634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122041a2ccf140e52119c139456a9cda5ec716656740c678e517d0e03ba3ab3df9f764736f6c63430008140033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.