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 176 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Unclaim... | 18306965 | 434 days ago | IN | 0 ETH | 0.00030496 | ||||
Claim ETH | 18284698 | 437 days ago | IN | 0 ETH | 0.00058083 | ||||
Claim ETH | 18228112 | 445 days ago | IN | 0 ETH | 0.00102876 | ||||
Claim ETH | 18135823 | 458 days ago | IN | 0 ETH | 0.0009838 | ||||
Claim ETH | 18120775 | 460 days ago | IN | 0 ETH | 0.00157032 | ||||
Claim ETH | 18116521 | 461 days ago | IN | 0 ETH | 0.00063232 | ||||
Claim ETH | 18095427 | 464 days ago | IN | 0 ETH | 0.00059199 | ||||
Claim ETH | 18094661 | 464 days ago | IN | 0 ETH | 0.00059731 | ||||
Claim ETH | 18093230 | 464 days ago | IN | 0 ETH | 0.00481391 | ||||
Claim ETH | 18092553 | 464 days ago | IN | 0 ETH | 0.00086305 | ||||
Claim ETH | 18080098 | 466 days ago | IN | 0 ETH | 0.00143582 | ||||
Claim ETH | 18080094 | 466 days ago | IN | 0 ETH | 0.00155627 | ||||
Claim ETH | 18080090 | 466 days ago | IN | 0 ETH | 0.00147222 | ||||
Claim ETH | 18078182 | 466 days ago | IN | 0 ETH | 0.00235537 | ||||
Claim ETH | 18074297 | 467 days ago | IN | 0 ETH | 0.00075094 | ||||
Claim ETH | 18074197 | 467 days ago | IN | 0 ETH | 0.00087798 | ||||
Claim ETH | 18074175 | 467 days ago | IN | 0 ETH | 0.00095593 | ||||
Claim ETH | 18073345 | 467 days ago | IN | 0 ETH | 0.00189224 | ||||
Claim ETH | 18072898 | 467 days ago | IN | 0 ETH | 0.00230883 | ||||
Claim ETH | 18071983 | 467 days ago | IN | 0 ETH | 0.00186444 | ||||
Claim ETH | 18071563 | 467 days ago | IN | 0 ETH | 0.00124255 | ||||
Claim ETH | 18071543 | 467 days ago | IN | 0 ETH | 0.00129555 | ||||
Claim ETH | 18070601 | 467 days ago | IN | 0 ETH | 0.00097826 | ||||
Claim ETH | 18070598 | 467 days ago | IN | 0 ETH | 0.00102214 | ||||
Claim ETH | 18066653 | 468 days ago | IN | 0 ETH | 0.00058749 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
18306965 | 434 days ago | 18.79360484 ETH | ||||
18284698 | 437 days ago | 1.43964429 ETH | ||||
18228112 | 445 days ago | 0.15009382 ETH | ||||
18135823 | 458 days ago | 0.18341826 ETH | ||||
18120775 | 460 days ago | 0.29137925 ETH | ||||
18116521 | 461 days ago | 0.41990509 ETH | ||||
18095427 | 464 days ago | 0.72708323 ETH | ||||
18094661 | 464 days ago | 0.17060634 ETH | ||||
18093230 | 464 days ago | 0.22368537 ETH | ||||
18092553 | 464 days ago | 0.14951526 ETH | ||||
18080098 | 466 days ago | 0.18042533 ETH | ||||
18080094 | 466 days ago | 0.41604059 ETH | ||||
18080090 | 466 days ago | 0.29955078 ETH | ||||
18078182 | 466 days ago | 1.17446743 ETH | ||||
18074297 | 467 days ago | 0.15338425 ETH | ||||
18074197 | 467 days ago | 0.87082042 ETH | ||||
18074175 | 467 days ago | 0.5658982 ETH | ||||
18073345 | 467 days ago | 0.15500181 ETH | ||||
18072898 | 467 days ago | 0.74748662 ETH | ||||
18071983 | 467 days ago | 0.65065571 ETH | ||||
18071563 | 467 days ago | 0.38223326 ETH | ||||
18071543 | 467 days ago | 1.56256997 ETH | ||||
18070601 | 467 days ago | 0.33279599 ETH | ||||
18070598 | 467 days ago | 0.3809132 ETH | ||||
18066653 | 468 days ago | 0.21185565 ETH |
Loading...
Loading
Contract Name:
HouseMoneyRevShareContract
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 HouseMoneyRevShareContract { uint256 immutable public HOUSE_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 HouseMoneySnapshotLock(); event Freeze(); event EthClaim(address indexed claimer, uint256 amount); event AdminWithdraw(uint256 amount); constructor () payable { owner = msg.sender; HOUSE_REVENUE_AMOUNT = msg.value; } modifier onlyOwner() { require(msg.sender == owner, "Caller is not the owner"); _; } // modifier after3Days() { require(block.timestamp > snapshotTime + 3 days, "Can withdraw unclaimed ETH after 3 days"); _; } function uploadSnapshot(address[] calldata users, uint256[] calldata balances) external onlyOwner { require(users.length == balances.length, "Addresses and balances length must be equal"); // 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 HouseMoneySnapshotLock(); } function freeze() external onlyOwner { require(!isFreezed, "Contract is already frozen"); isFreezed = true; emit Freeze(); } 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're not eligible to claim with 0 House"); uint256 claimableAmount = (HOUSE_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":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EthClaim","type":"event"},{"anonymous":false,"inputs":[],"name":"Freeze","type":"event"},{"anonymous":false,"inputs":[],"name":"HouseMoneySnapshotLock","type":"event"},{"inputs":[],"name":"HOUSE_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
60a06040525f80546001600160a01b0319163317905534608052608051610bba6100385f395f818161027101526108240152610bba5ff3fe6080604052600436106100d1575f3560e01c806373b2e80e1161007c578063b9469e1a11610057578063b9469e1a14610219578063c552712c14610237578063dd0248ad1461024b578063fcaffb3414610260575f80fd5b806373b2e80e1461018a57806374d83be5146101b85780638da5cb5b146101e3575f80fd5b8063504b0371116100ac578063504b03711461014e57806362a5af3b146101625780636727299914610176575f80fd5b80632a671bdf146100dc57806337748c0f1461010a5780634c6d767b1461012b575f80fd5b366100d857005b5f80fd5b3480156100e7575f80fd5b506003546100f59060ff1681565b60405190151581526020015b60405180910390f35b348015610115575f80fd5b50610129610124366004610a61565b610293565b005b348015610136575f80fd5b5061014060025481565b604051908152602001610101565b348015610159575f80fd5b50610129610416565b34801561016d575f80fd5b506101296105a5565b348015610181575f80fd5b50610129610689565b348015610195575f80fd5b506100f56101a4366004610ac8565b60056020525f908152604090205460ff1681565b3480156101c3575f80fd5b506101406101d2366004610ac8565b60046020525f908152604090205481565b3480156101ee575f80fd5b505f54610201906001600160a01b031681565b6040516001600160a01b039091168152602001610101565b348015610224575f80fd5b506003546100f590610100900460ff1681565b348015610242575f80fd5b50610129610938565b348015610256575f80fd5b5061014060015481565b34801561026b575f80fd5b506101407f000000000000000000000000000000000000000000000000000000000000000081565b5f546001600160a01b031633146102eb5760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064015b60405180910390fd5b82811461034e5760405162461bcd60e51b815260206004820152602b60248201527f41646472657373657320616e642062616c616e636573206c656e677468206d7560448201526a1cdd08189948195c5d585b60aa1b60648201526084016102e2565b5f5b8381101561040f5782828281811061036a5761036a610af5565b9050602002013560045f87878581811061038657610386610af5565b905060200201602081019061039b9190610ac8565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8282546103c89190610b1d565b9091555083905082828181106103e0576103e0610af5565b9050602002013560015f8282546103f79190610b1d565b9091555081905061040781610b36565b915050610350565b5050505050565b5f546001600160a01b031633146104695760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b600254610479906203f480610b1d565b42116104d75760405162461bcd60e51b815260206004820152602760248201527f43616e20776974686472617720756e636c61696d6564204554482061667465726044820152662033206461797360c81b60648201526084016102e2565b60405147905f90339083908381818185875af1925050503d805f8114610518576040519150601f19603f3d011682016040523d82523d5f602084013e61051d565b606091505b505090508061056e5760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c6564000000000000000000000000000000000060448201526064016102e2565b6040518281527f0c19c6325aefe1fa748b9a79e9fc092a292bb370d2a5a0d13f138bb8f46429da9060200160405180910390a15050565b5f546001600160a01b031633146105f85760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b600354610100900460ff16156106505760405162461bcd60e51b815260206004820152601a60248201527f436f6e747261637420697320616c72656164792066726f7a656e00000000000060448201526064016102e2565b6003805461ff0019166101001790556040517f615acbaede366d76a8b8cb2a9ada6a71495f0786513d71aa97aaf0c3910b78de905f90a1565b600354610100900460ff16156106e15760405162461bcd60e51b815260206004820152601260248201527f436f6e74726163742069732066726f7a656e000000000000000000000000000060448201526064016102e2565b60035460ff166107335760405162461bcd60e51b815260206004820152601760248201527f536e617073686f74206e6f7420796574206c6f636b656400000000000000000060448201526064016102e2565b335f9081526005602052604090205460ff161561079c5760405162461bcd60e51b815260206004820152602160248201527f596f75206861766520616c726561647920636c61696d656420796f75722045546044820152600960fb1b60648201526084016102e2565b335f908152600460205260409020546108095760405162461bcd60e51b815260206004820152602960248201527f596f75277265206e6f7420656c696769626c6520746f20636c61696d2077697460448201526868203020486f75736560b81b60648201526084016102e2565b600154335f90815260046020526040812054909190610848907f0000000000000000000000000000000000000000000000000000000000000000610b4e565b6108529190610b65565b335f81815260056020526040808220805460ff19166001179055519293509183908381818185875af1925050503d805f81146108a9576040519150601f19603f3d011682016040523d82523d5f602084013e6108ae565b606091505b50509050806108ff5760405162461bcd60e51b815260206004820152601b60248201527f436c61696d20616d6f756e74207472616e666572206661696c6564000000000060448201526064016102e2565b60405182815233907fcd96ec03610fb7c370679f8da06beb3578f8e2a48bdf4e5d74715e26c4e3202f9060200160405180910390a25050565b5f546001600160a01b0316331461098b5760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b60035460ff16156109de5760405162461bcd60e51b815260206004820152601760248201527f736e617073686f7420616c7265616479206c6f636b656400000000000000000060448201526064016102e2565b426002556003805460ff191660011790556040517f9972164ab47f29b8f39bf22f148b07aa263ba2a41e116ef5904bbe9a8356a28d905f90a1565b5f8083601f840112610a29575f80fd5b50813567ffffffffffffffff811115610a40575f80fd5b6020830191508360208260051b8501011115610a5a575f80fd5b9250929050565b5f805f8060408587031215610a74575f80fd5b843567ffffffffffffffff80821115610a8b575f80fd5b610a9788838901610a19565b90965094506020870135915080821115610aaf575f80fd5b50610abc87828801610a19565b95989497509550505050565b5f60208284031215610ad8575f80fd5b81356001600160a01b0381168114610aee575f80fd5b9392505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610b3057610b30610b09565b92915050565b5f60018201610b4757610b47610b09565b5060010190565b8082028115828204841417610b3057610b30610b09565b5f82610b7f57634e487b7160e01b5f52601260045260245ffd5b50049056fea26469706673582212206fdc771b0d44805c221f57d23cb0f665289105113bc233c8da0a6b8e8b60470764736f6c63430008140033
Deployed Bytecode
0x6080604052600436106100d1575f3560e01c806373b2e80e1161007c578063b9469e1a11610057578063b9469e1a14610219578063c552712c14610237578063dd0248ad1461024b578063fcaffb3414610260575f80fd5b806373b2e80e1461018a57806374d83be5146101b85780638da5cb5b146101e3575f80fd5b8063504b0371116100ac578063504b03711461014e57806362a5af3b146101625780636727299914610176575f80fd5b80632a671bdf146100dc57806337748c0f1461010a5780634c6d767b1461012b575f80fd5b366100d857005b5f80fd5b3480156100e7575f80fd5b506003546100f59060ff1681565b60405190151581526020015b60405180910390f35b348015610115575f80fd5b50610129610124366004610a61565b610293565b005b348015610136575f80fd5b5061014060025481565b604051908152602001610101565b348015610159575f80fd5b50610129610416565b34801561016d575f80fd5b506101296105a5565b348015610181575f80fd5b50610129610689565b348015610195575f80fd5b506100f56101a4366004610ac8565b60056020525f908152604090205460ff1681565b3480156101c3575f80fd5b506101406101d2366004610ac8565b60046020525f908152604090205481565b3480156101ee575f80fd5b505f54610201906001600160a01b031681565b6040516001600160a01b039091168152602001610101565b348015610224575f80fd5b506003546100f590610100900460ff1681565b348015610242575f80fd5b50610129610938565b348015610256575f80fd5b5061014060015481565b34801561026b575f80fd5b506101407f000000000000000000000000000000000000000000000006d499ec6c6338000081565b5f546001600160a01b031633146102eb5760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064015b60405180910390fd5b82811461034e5760405162461bcd60e51b815260206004820152602b60248201527f41646472657373657320616e642062616c616e636573206c656e677468206d7560448201526a1cdd08189948195c5d585b60aa1b60648201526084016102e2565b5f5b8381101561040f5782828281811061036a5761036a610af5565b9050602002013560045f87878581811061038657610386610af5565b905060200201602081019061039b9190610ac8565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8282546103c89190610b1d565b9091555083905082828181106103e0576103e0610af5565b9050602002013560015f8282546103f79190610b1d565b9091555081905061040781610b36565b915050610350565b5050505050565b5f546001600160a01b031633146104695760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b600254610479906203f480610b1d565b42116104d75760405162461bcd60e51b815260206004820152602760248201527f43616e20776974686472617720756e636c61696d6564204554482061667465726044820152662033206461797360c81b60648201526084016102e2565b60405147905f90339083908381818185875af1925050503d805f8114610518576040519150601f19603f3d011682016040523d82523d5f602084013e61051d565b606091505b505090508061056e5760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c6564000000000000000000000000000000000060448201526064016102e2565b6040518281527f0c19c6325aefe1fa748b9a79e9fc092a292bb370d2a5a0d13f138bb8f46429da9060200160405180910390a15050565b5f546001600160a01b031633146105f85760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b600354610100900460ff16156106505760405162461bcd60e51b815260206004820152601a60248201527f436f6e747261637420697320616c72656164792066726f7a656e00000000000060448201526064016102e2565b6003805461ff0019166101001790556040517f615acbaede366d76a8b8cb2a9ada6a71495f0786513d71aa97aaf0c3910b78de905f90a1565b600354610100900460ff16156106e15760405162461bcd60e51b815260206004820152601260248201527f436f6e74726163742069732066726f7a656e000000000000000000000000000060448201526064016102e2565b60035460ff166107335760405162461bcd60e51b815260206004820152601760248201527f536e617073686f74206e6f7420796574206c6f636b656400000000000000000060448201526064016102e2565b335f9081526005602052604090205460ff161561079c5760405162461bcd60e51b815260206004820152602160248201527f596f75206861766520616c726561647920636c61696d656420796f75722045546044820152600960fb1b60648201526084016102e2565b335f908152600460205260409020546108095760405162461bcd60e51b815260206004820152602960248201527f596f75277265206e6f7420656c696769626c6520746f20636c61696d2077697460448201526868203020486f75736560b81b60648201526084016102e2565b600154335f90815260046020526040812054909190610848907f000000000000000000000000000000000000000000000006d499ec6c63380000610b4e565b6108529190610b65565b335f81815260056020526040808220805460ff19166001179055519293509183908381818185875af1925050503d805f81146108a9576040519150601f19603f3d011682016040523d82523d5f602084013e6108ae565b606091505b50509050806108ff5760405162461bcd60e51b815260206004820152601b60248201527f436c61696d20616d6f756e74207472616e666572206661696c6564000000000060448201526064016102e2565b60405182815233907fcd96ec03610fb7c370679f8da06beb3578f8e2a48bdf4e5d74715e26c4e3202f9060200160405180910390a25050565b5f546001600160a01b0316331461098b5760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b60448201526064016102e2565b60035460ff16156109de5760405162461bcd60e51b815260206004820152601760248201527f736e617073686f7420616c7265616479206c6f636b656400000000000000000060448201526064016102e2565b426002556003805460ff191660011790556040517f9972164ab47f29b8f39bf22f148b07aa263ba2a41e116ef5904bbe9a8356a28d905f90a1565b5f8083601f840112610a29575f80fd5b50813567ffffffffffffffff811115610a40575f80fd5b6020830191508360208260051b8501011115610a5a575f80fd5b9250929050565b5f805f8060408587031215610a74575f80fd5b843567ffffffffffffffff80821115610a8b575f80fd5b610a9788838901610a19565b90965094506020870135915080821115610aaf575f80fd5b50610abc87828801610a19565b95989497509550505050565b5f60208284031215610ad8575f80fd5b81356001600160a01b0381168114610aee575f80fd5b9392505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610b3057610b30610b09565b92915050565b5f60018201610b4757610b47610b09565b5060010190565b8082028115828204841417610b3057610b30610b09565b5f82610b7f57634e487b7160e01b5f52601260045260245ffd5b50049056fea26469706673582212206fdc771b0d44805c221f57d23cb0f665289105113bc233c8da0a6b8e8b60470764736f6c63430008140033
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.