Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 90 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Unclaim... | 20312355 | 166 days ago | IN | 0 ETH | 0.00024681 | ||||
Claim ETH | 19386252 | 296 days ago | IN | 0 ETH | 0.00331762 | ||||
Claim ETH | 19384903 | 296 days ago | IN | 0 ETH | 0.00658903 | ||||
Claim ETH | 19375711 | 297 days ago | IN | 0 ETH | 0.00431537 | ||||
Claim ETH | 19351729 | 301 days ago | IN | 0 ETH | 0.00203015 | ||||
Claim ETH | 19351682 | 301 days ago | IN | 0 ETH | 0.00220668 | ||||
Claim ETH | 19351680 | 301 days ago | IN | 0 ETH | 0.00220668 | ||||
Claim ETH | 19351300 | 301 days ago | IN | 0 ETH | 0.00205957 | ||||
Claim ETH | 19351300 | 301 days ago | IN | 0 ETH | 0.00205957 | ||||
Claim ETH | 19351300 | 301 days ago | IN | 0 ETH | 0.00205957 | ||||
Claim ETH | 19345974 | 302 days ago | IN | 0 ETH | 0.00254746 | ||||
Claim ETH | 19345960 | 302 days ago | IN | 0 ETH | 0.00257224 | ||||
Claim ETH | 19345957 | 302 days ago | IN | 0 ETH | 0.00256655 | ||||
Claim ETH | 19329135 | 304 days ago | IN | 0 ETH | 0.00264726 | ||||
Claim ETH | 19328857 | 304 days ago | IN | 0 ETH | 0.00329576 | ||||
Claim ETH | 19328746 | 304 days ago | IN | 0 ETH | 0.00388532 | ||||
Claim ETH | 19300314 | 308 days ago | IN | 0 ETH | 0.00162254 | ||||
Claim ETH | 19294815 | 309 days ago | IN | 0 ETH | 0.00119201 | ||||
Claim ETH | 19279170 | 311 days ago | IN | 0 ETH | 0.00218694 | ||||
Claim ETH | 19278522 | 311 days ago | IN | 0 ETH | 0.00193109 | ||||
Claim ETH | 19276453 | 311 days ago | IN | 0 ETH | 0.00248555 | ||||
Claim ETH | 19272127 | 312 days ago | IN | 0 ETH | 0.0034834 | ||||
Claim ETH | 19261575 | 313 days ago | IN | 0 ETH | 0.001723 | ||||
Claim ETH | 19248225 | 315 days ago | IN | 0 ETH | 0.00174418 | ||||
Claim ETH | 19248211 | 315 days ago | IN | 0 ETH | 0.00150325 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
20312355 | 166 days ago | 2.19875123 ETH | ||||
19386252 | 296 days ago | 0.00860063 ETH | ||||
19384903 | 296 days ago | 0.03620092 ETH | ||||
19375711 | 297 days ago | 0.08144006 ETH | ||||
19351729 | 301 days ago | 0.01296438 ETH | ||||
19351682 | 301 days ago | 0.03416444 ETH | ||||
19351680 | 301 days ago | 0.11829894 ETH | ||||
19351300 | 301 days ago | 0.02651809 ETH | ||||
19351300 | 301 days ago | 0.10561673 ETH | ||||
19351300 | 301 days ago | 0.0218842 ETH | ||||
19345974 | 302 days ago | 0.07741232 ETH | ||||
19345960 | 302 days ago | 0.07940741 ETH | ||||
19345957 | 302 days ago | 0.08103631 ETH | ||||
19329135 | 304 days ago | 0.04536835 ETH | ||||
19328857 | 304 days ago | 0.03252765 ETH | ||||
19328746 | 304 days ago | 0.0392164 ETH | ||||
19300314 | 308 days ago | 0.01187649 ETH | ||||
19294815 | 309 days ago | 0.01085187 ETH | ||||
19279170 | 311 days ago | 0.02293809 ETH | ||||
19278522 | 311 days ago | 0.00780433 ETH | ||||
19276453 | 311 days ago | 0.01570134 ETH | ||||
19272127 | 312 days ago | 0.13199406 ETH | ||||
19261575 | 313 days ago | 0.00820786 ETH | ||||
19248225 | 315 days ago | 0.01470778 ETH | ||||
19248211 | 315 days ago | 0.04139803 ETH |
Loading...
Loading
Contract Name:
AxeCapProfitShare7
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract AxeCapProfitShare7 { 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 }, "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
60a06040525f80546001600160a01b0319163317905534608052608051610bb96100385f395f818161018701526108230152610bb95ff3fe6080604052600436106100d1575f3560e01c8063672729991161007c5780638da5cb5b116100575780638da5cb5b14610216578063b9469e1a1461024c578063c552712c1461026a578063dd0248ad1461027e575f80fd5b806367272999146101a957806373b2e80e146101bd57806374d83be5146101eb575f80fd5b8063504b0371116100ac578063504b03711461014e57806362a5af3b146101625780636712471814610176575f80fd5b80632a671bdf146100dc57806337748c0f1461010a5780634c6d767b1461012b575f80fd5b366100d857005b5f80fd5b3480156100e7575f80fd5b506003546100f59060ff1681565b60405190151581526020015b60405180910390f35b348015610115575f80fd5b50610129610124366004610a60565b610293565b005b348015610136575f80fd5b5061014060025481565b604051908152602001610101565b348015610159575f80fd5b50610129610402565b34801561016d575f80fd5b50610129610590565b348015610181575f80fd5b506101407f000000000000000000000000000000000000000000000000000000000000000081565b3480156101b4575f80fd5b50610129610674565b3480156101c8575f80fd5b506100f56101d7366004610ac7565b60056020525f908152604090205460ff1681565b3480156101f6575f80fd5b50610140610205366004610ac7565b60046020525f908152604090205481565b348015610221575f80fd5b505f54610234906001600160a01b031681565b6040516001600160a01b039091168152602001610101565b348015610257575f80fd5b506003546100f590610100900460ff1681565b348015610275575f80fd5b50610129610937565b348015610289575f80fd5b5061014060015481565b5f546001600160a01b031633146102eb5760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064015b60405180910390fd5b82811461033a5760405162461bcd60e51b815260206004820152601e60248201527f417272617973206d757374206265206f6620657175616c206c656e677468000060448201526064016102e2565b5f5b838110156103fb5782828281811061035657610356610af4565b9050602002013560045f87878581811061037257610372610af4565b90506020020160208101906103879190610ac7565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8282546103b49190610b1c565b9091555083905082828181106103cc576103cc610af4565b9050602002013560015f8282546103e39190610b1c565b909155508190506103f381610b35565b91505061033c565b5050505050565b5f546001600160a01b031633146104555760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b600254610465906203f480610b1c565b42116104c25760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c792063616c6c20616674657220332064617973206f6620736e604482015265185c1cda1bdd60d21b60648201526084016102e2565b60405147905f90339083908381818185875af1925050503d805f8114610503576040519150601f19603f3d011682016040523d82523d5f602084013e610508565b606091505b50509050806105595760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c6564000000000000000000000000000000000060448201526064016102e2565b6040518281527f0c19c6325aefe1fa748b9a79e9fc092a292bb370d2a5a0d13f138bb8f46429da9060200160405180910390a15050565b5f546001600160a01b031633146105e35760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b600354610100900460ff161561063b5760405162461bcd60e51b815260206004820152601a60248201527f436f6e747261637420697320616c72656164792066726f7a656e00000000000060448201526064016102e2565b6003805461ff0019166101001790556040517fe43fa10ef73adb0338d6a097005d6e71b28feb823746d0940580e8987aab2936905f90a1565b600354610100900460ff16156106cc5760405162461bcd60e51b815260206004820152601260248201527f436f6e74726163742069732066726f7a656e000000000000000000000000000060448201526064016102e2565b60035460ff1661071e5760405162461bcd60e51b815260206004820152601760248201527f536e617073686f74206e6f7420796574206c6f636b656400000000000000000060448201526064016102e2565b335f9081526005602052604090205460ff16156107875760405162461bcd60e51b815260206004820152602160248201527f596f75206861766520616c726561647920636c61696d656420796f75722045546044820152600960fb1b60648201526084016102e2565b335f908152600460205260409020546108085760405162461bcd60e51b815260206004820152602e60248201527f596f7520646f206e6f74206861766520616e792041584520746f6b656e73206960448201527f6e2074686520736e617073686f7400000000000000000000000000000000000060648201526084016102e2565b600154335f90815260046020526040812054909190610847907f0000000000000000000000000000000000000000000000000000000000000000610b4d565b6108519190610b64565b335f81815260056020526040808220805460ff19166001179055519293509183908381818185875af1925050503d805f81146108a8576040519150601f19603f3d011682016040523d82523d5f602084013e6108ad565b606091505b50509050806108fe5760405162461bcd60e51b815260206004820152601b60248201527f436c61696d20616d6f756e74207472616e666572206661696c6564000000000060448201526064016102e2565b60405182815233907fcd96ec03610fb7c370679f8da06beb3578f8e2a48bdf4e5d74715e26c4e3202f9060200160405180910390a25050565b5f546001600160a01b0316331461098a5760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b60035460ff16156109dd5760405162461bcd60e51b815260206004820152601760248201527f736e617073686f7420616c7265616479206c6f636b656400000000000000000060448201526064016102e2565b426002556003805460ff191660011790556040517fbf85a8612e483cf66ca60fc4ebb1678f4eb8025549a659363cc979fde4b2f0cc905f90a1565b5f8083601f840112610a28575f80fd5b50813567ffffffffffffffff811115610a3f575f80fd5b6020830191508360208260051b8501011115610a59575f80fd5b9250929050565b5f805f8060408587031215610a73575f80fd5b843567ffffffffffffffff80821115610a8a575f80fd5b610a9688838901610a18565b90965094506020870135915080821115610aae575f80fd5b50610abb87828801610a18565b95989497509550505050565b5f60208284031215610ad7575f80fd5b81356001600160a01b0381168114610aed575f80fd5b9392505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610b2f57610b2f610b08565b92915050565b5f60018201610b4657610b46610b08565b5060010190565b8082028115828204841417610b2f57610b2f610b08565b5f82610b7e57634e487b7160e01b5f52601260045260245ffd5b50049056fea26469706673582212202915e68938b8a109e2d4fa7c5dad5a36d0444a59c9b01f2030a4ae6e456a7ae164736f6c63430008140033
Deployed Bytecode
0x6080604052600436106100d1575f3560e01c8063672729991161007c5780638da5cb5b116100575780638da5cb5b14610216578063b9469e1a1461024c578063c552712c1461026a578063dd0248ad1461027e575f80fd5b806367272999146101a957806373b2e80e146101bd57806374d83be5146101eb575f80fd5b8063504b0371116100ac578063504b03711461014e57806362a5af3b146101625780636712471814610176575f80fd5b80632a671bdf146100dc57806337748c0f1461010a5780634c6d767b1461012b575f80fd5b366100d857005b5f80fd5b3480156100e7575f80fd5b506003546100f59060ff1681565b60405190151581526020015b60405180910390f35b348015610115575f80fd5b50610129610124366004610a60565b610293565b005b348015610136575f80fd5b5061014060025481565b604051908152602001610101565b348015610159575f80fd5b50610129610402565b34801561016d575f80fd5b50610129610590565b348015610181575f80fd5b506101407f0000000000000000000000000000000000000000000000006124fee993bc000081565b3480156101b4575f80fd5b50610129610674565b3480156101c8575f80fd5b506100f56101d7366004610ac7565b60056020525f908152604090205460ff1681565b3480156101f6575f80fd5b50610140610205366004610ac7565b60046020525f908152604090205481565b348015610221575f80fd5b505f54610234906001600160a01b031681565b6040516001600160a01b039091168152602001610101565b348015610257575f80fd5b506003546100f590610100900460ff1681565b348015610275575f80fd5b50610129610937565b348015610289575f80fd5b5061014060015481565b5f546001600160a01b031633146102eb5760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064015b60405180910390fd5b82811461033a5760405162461bcd60e51b815260206004820152601e60248201527f417272617973206d757374206265206f6620657175616c206c656e677468000060448201526064016102e2565b5f5b838110156103fb5782828281811061035657610356610af4565b9050602002013560045f87878581811061037257610372610af4565b90506020020160208101906103879190610ac7565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8282546103b49190610b1c565b9091555083905082828181106103cc576103cc610af4565b9050602002013560015f8282546103e39190610b1c565b909155508190506103f381610b35565b91505061033c565b5050505050565b5f546001600160a01b031633146104555760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b600254610465906203f480610b1c565b42116104c25760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c792063616c6c20616674657220332064617973206f6620736e604482015265185c1cda1bdd60d21b60648201526084016102e2565b60405147905f90339083908381818185875af1925050503d805f8114610503576040519150601f19603f3d011682016040523d82523d5f602084013e610508565b606091505b50509050806105595760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c6564000000000000000000000000000000000060448201526064016102e2565b6040518281527f0c19c6325aefe1fa748b9a79e9fc092a292bb370d2a5a0d13f138bb8f46429da9060200160405180910390a15050565b5f546001600160a01b031633146105e35760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b600354610100900460ff161561063b5760405162461bcd60e51b815260206004820152601a60248201527f436f6e747261637420697320616c72656164792066726f7a656e00000000000060448201526064016102e2565b6003805461ff0019166101001790556040517fe43fa10ef73adb0338d6a097005d6e71b28feb823746d0940580e8987aab2936905f90a1565b600354610100900460ff16156106cc5760405162461bcd60e51b815260206004820152601260248201527f436f6e74726163742069732066726f7a656e000000000000000000000000000060448201526064016102e2565b60035460ff1661071e5760405162461bcd60e51b815260206004820152601760248201527f536e617073686f74206e6f7420796574206c6f636b656400000000000000000060448201526064016102e2565b335f9081526005602052604090205460ff16156107875760405162461bcd60e51b815260206004820152602160248201527f596f75206861766520616c726561647920636c61696d656420796f75722045546044820152600960fb1b60648201526084016102e2565b335f908152600460205260409020546108085760405162461bcd60e51b815260206004820152602e60248201527f596f7520646f206e6f74206861766520616e792041584520746f6b656e73206960448201527f6e2074686520736e617073686f7400000000000000000000000000000000000060648201526084016102e2565b600154335f90815260046020526040812054909190610847907f0000000000000000000000000000000000000000000000006124fee993bc0000610b4d565b6108519190610b64565b335f81815260056020526040808220805460ff19166001179055519293509183908381818185875af1925050503d805f81146108a8576040519150601f19603f3d011682016040523d82523d5f602084013e6108ad565b606091505b50509050806108fe5760405162461bcd60e51b815260206004820152601b60248201527f436c61696d20616d6f756e74207472616e666572206661696c6564000000000060448201526064016102e2565b60405182815233907fcd96ec03610fb7c370679f8da06beb3578f8e2a48bdf4e5d74715e26c4e3202f9060200160405180910390a25050565b5f546001600160a01b0316331461098a5760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b60035460ff16156109dd5760405162461bcd60e51b815260206004820152601760248201527f736e617073686f7420616c7265616479206c6f636b656400000000000000000060448201526064016102e2565b426002556003805460ff191660011790556040517fbf85a8612e483cf66ca60fc4ebb1678f4eb8025549a659363cc979fde4b2f0cc905f90a1565b5f8083601f840112610a28575f80fd5b50813567ffffffffffffffff811115610a3f575f80fd5b6020830191508360208260051b8501011115610a59575f80fd5b9250929050565b5f805f8060408587031215610a73575f80fd5b843567ffffffffffffffff80821115610a8a575f80fd5b610a9688838901610a18565b90965094506020870135915080821115610aae575f80fd5b50610abb87828801610a18565b95989497509550505050565b5f60208284031215610ad7575f80fd5b81356001600160a01b0381168114610aed575f80fd5b9392505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610b2f57610b2f610b08565b92915050565b5f60018201610b4657610b46610b08565b5060010190565b8082028115828204841417610b2f57610b2f610b08565b5f82610b7e57634e487b7160e01b5f52601260045260245ffd5b50049056fea26469706673582212202915e68938b8a109e2d4fa7c5dad5a36d0444a59c9b01f2030a4ae6e456a7ae164736f6c63430008140033
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.