Overview
ETH Balance
2.24 ETH
Eth Value
$5,249.37 (@ $2,343.47/ETH)Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 19 from a total of 19 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 20626687 | 15 days ago | IN | 0 ETH | 0.00004469 | ||||
Withdraw | 15409360 | 749 days ago | IN | 0 ETH | 0.00028162 | ||||
Withdraw | 15409250 | 749 days ago | IN | 0 ETH | 0.00028491 | ||||
Withdraw | 15409236 | 749 days ago | IN | 0 ETH | 0.00033847 | ||||
Withdraw | 15409231 | 749 days ago | IN | 0 ETH | 0.00035979 | ||||
Withdraw | 15409181 | 749 days ago | IN | 0 ETH | 0.00047968 | ||||
Withdraw | 15373567 | 755 days ago | IN | 0 ETH | 0.00043039 | ||||
Withdraw | 15373556 | 755 days ago | IN | 0 ETH | 0.00058394 | ||||
Withdraw | 15373257 | 755 days ago | IN | 0 ETH | 0.00049238 | ||||
Withdraw | 15352736 | 758 days ago | IN | 0 ETH | 0.00028861 | ||||
Withdraw | 15351734 | 758 days ago | IN | 0 ETH | 0.00017769 | ||||
Withdraw | 15328333 | 762 days ago | IN | 0 ETH | 0.0015763 | ||||
Withdraw | 15327991 | 762 days ago | IN | 0 ETH | 0.00117544 | ||||
Withdraw | 15327313 | 762 days ago | IN | 0 ETH | 0.00058587 | ||||
Withdraw | 15327300 | 762 days ago | IN | 0 ETH | 0.00047835 | ||||
Withdraw | 15324603 | 762 days ago | IN | 0 ETH | 0.0003074 | ||||
Transfer | 15324568 | 762 days ago | IN | 4.56 ETH | 0.00028906 | ||||
Load | 15324568 | 762 days ago | IN | 0 ETH | 0.01268594 | ||||
0x60806040 | 15324539 | 762 days ago | IN | 0 ETH | 0.01193613 |
Latest 16 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20626687 | 15 days ago | 0.08 ETH | ||||
15409360 | 749 days ago | 0.4 ETH | ||||
15409250 | 749 days ago | 0.24 ETH | ||||
15409236 | 749 days ago | 0.16 ETH | ||||
15409231 | 749 days ago | 0.16 ETH | ||||
15409181 | 749 days ago | 0.08 ETH | ||||
15373567 | 755 days ago | 0.08 ETH | ||||
15373556 | 755 days ago | 0.08 ETH | ||||
15373257 | 755 days ago | 0.08 ETH | ||||
15352736 | 758 days ago | 0.32 ETH | ||||
15351734 | 758 days ago | 0.16 ETH | ||||
15328333 | 762 days ago | 0.08 ETH | ||||
15327991 | 762 days ago | 0.08 ETH | ||||
15327313 | 762 days ago | 0.08 ETH | ||||
15327300 | 762 days ago | 0.08 ETH | ||||
15324603 | 762 days ago | 0.16 ETH |
Loading...
Loading
Contract Name:
RefundEntrants
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; import {Owned} from "solmate/auth/Owned.sol"; contract RefundEntrants is Owned(msg.sender) { mapping (address => uint256) public entrantBalance; uint public pot = 0; uint constant ENTRY_FEE = 0.08 ether; error ZeroBalance(); /// @notice load entrants /// @param entrants addresses who called "enter" /// @param numEntered number of times they entered function load(address[] memory entrants, uint[] memory numEntered) public onlyOwner { require(entrants.length == numEntered.length, "different length arrays"); for (uint i=0; i < entrants.length; i++) { entrantBalance[entrants[i]] = numEntered[i] * ENTRY_FEE; pot += numEntered[i] * ENTRY_FEE; } } function withdraw() public { uint amount = entrantBalance[msg.sender]; if (amount == 0){ revert ZeroBalance(); } entrantBalance[msg.sender] = 0; (bool sent, bytes memory data) = msg.sender.call{value: amount}(""); require(sent, "Failed to send Ether"); } /// @notice sweep ETH out of contract function sweepEth() public onlyOwner { (bool sent, bytes memory data) = owner.call{value: address(this).balance}(""); require(sent, "Failed to send Ether"); } receive() external payable {} fallback() external payable {} }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnerUpdated(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnerUpdated(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function setOwner(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnerUpdated(msg.sender, newOwner); } }
{ "remappings": [ "ds-test/=lib/solmate/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "solmate/=lib/solmate/src/", "src/=src/", "test/=test/", "script/=script/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"ZeroBalance","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"entrantBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"entrants","type":"address[]"},{"internalType":"uint256[]","name":"numEntered","type":"uint256[]"}],"name":"load","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pot","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sweepEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600060025534801561001557600080fd5b50600080546001600160a01b031916339081178255604051909182917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a350610784806100666000396000f3fe60806040526004361061006e5760003560e01c80638da5cb5b1161004b5780638da5cb5b146100d55780639ac844141461010d578063b2efd32f14610122578063bc4ad8031461014f57005b806313af4035146100775780633ccfd60b146100975780634ba2363a146100ac57005b3661007557005b005b34801561008357600080fd5b506100756100923660046104f4565b61016f565b3480156100a357600080fd5b506100756101ed565b3480156100b857600080fd5b506100c260025481565b6040519081526020015b60405180910390f35b3480156100e157600080fd5b506000546100f5906001600160a01b031681565b6040516001600160a01b0390911681526020016100cc565b34801561011957600080fd5b506100756102c3565b34801561012e57600080fd5b506100c261013d3660046104f4565b60016020526000908152604090205481565b34801561015b57600080fd5b5061007561016a3660046105ec565b61038c565b6000546001600160a01b031633146101a25760405162461bcd60e51b8152600401610199906106ac565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b336000908152600160205260408120549081900361021e5760405163334ab3f560e11b815260040160405180910390fd5b33600081815260016020526040808220829055519091829184908381818185875af1925050503d8060008114610270576040519150601f19603f3d011682016040523d82523d6000602084013e610275565b606091505b5091509150816102be5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610199565b505050565b6000546001600160a01b031633146102ed5760405162461bcd60e51b8152600401610199906106ac565b6000805460405182916001600160a01b03169047908381818185875af1925050503d806000811461033a576040519150601f19603f3d011682016040523d82523d6000602084013e61033f565b606091505b5091509150816103885760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610199565b5050565b6000546001600160a01b031633146103b65760405162461bcd60e51b8152600401610199906106ac565b80518251146104075760405162461bcd60e51b815260206004820152601760248201527f646966666572656e74206c656e677468206172726179730000000000000000006044820152606401610199565b60005b82518110156102be5767011c37937e08000082828151811061042e5761042e6106d2565b602002602001015161044091906106fe565b60016000858481518110610456576104566106d2565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555067011c37937e08000082828151811061049d5761049d6106d2565b60200260200101516104af91906106fe565b600260008282546104c0919061071d565b909155508190506104d081610735565b91505061040a565b80356001600160a01b03811681146104ef57600080fd5b919050565b60006020828403121561050657600080fd5b61050f826104d8565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561055557610555610516565b604052919050565b600067ffffffffffffffff82111561057757610577610516565b5060051b60200190565b600082601f83011261059257600080fd5b813560206105a76105a28361055d565b61052c565b82815260059290921b840181019181810190868411156105c657600080fd5b8286015b848110156105e157803583529183019183016105ca565b509695505050505050565b600080604083850312156105ff57600080fd5b823567ffffffffffffffff8082111561061757600080fd5b818501915085601f83011261062b57600080fd5b8135602061063b6105a28361055d565b82815260059290921b8401810191818101908984111561065a57600080fd5b948201945b8386101561067f57610670866104d8565b8252948201949082019061065f565b9650508601359250508082111561069557600080fd5b506106a285828601610581565b9150509250929050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610718576107186106e8565b500290565b60008219821115610730576107306106e8565b500190565b600060018201610747576107476106e8565b506001019056fea264697066735822122070f178b3bf207d9a53e5b39f378ed591165d72b5c1b20b449bf2c1c725ebaec564736f6c634300080f0033
Deployed Bytecode
0x60806040526004361061006e5760003560e01c80638da5cb5b1161004b5780638da5cb5b146100d55780639ac844141461010d578063b2efd32f14610122578063bc4ad8031461014f57005b806313af4035146100775780633ccfd60b146100975780634ba2363a146100ac57005b3661007557005b005b34801561008357600080fd5b506100756100923660046104f4565b61016f565b3480156100a357600080fd5b506100756101ed565b3480156100b857600080fd5b506100c260025481565b6040519081526020015b60405180910390f35b3480156100e157600080fd5b506000546100f5906001600160a01b031681565b6040516001600160a01b0390911681526020016100cc565b34801561011957600080fd5b506100756102c3565b34801561012e57600080fd5b506100c261013d3660046104f4565b60016020526000908152604090205481565b34801561015b57600080fd5b5061007561016a3660046105ec565b61038c565b6000546001600160a01b031633146101a25760405162461bcd60e51b8152600401610199906106ac565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b336000908152600160205260408120549081900361021e5760405163334ab3f560e11b815260040160405180910390fd5b33600081815260016020526040808220829055519091829184908381818185875af1925050503d8060008114610270576040519150601f19603f3d011682016040523d82523d6000602084013e610275565b606091505b5091509150816102be5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610199565b505050565b6000546001600160a01b031633146102ed5760405162461bcd60e51b8152600401610199906106ac565b6000805460405182916001600160a01b03169047908381818185875af1925050503d806000811461033a576040519150601f19603f3d011682016040523d82523d6000602084013e61033f565b606091505b5091509150816103885760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610199565b5050565b6000546001600160a01b031633146103b65760405162461bcd60e51b8152600401610199906106ac565b80518251146104075760405162461bcd60e51b815260206004820152601760248201527f646966666572656e74206c656e677468206172726179730000000000000000006044820152606401610199565b60005b82518110156102be5767011c37937e08000082828151811061042e5761042e6106d2565b602002602001015161044091906106fe565b60016000858481518110610456576104566106d2565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555067011c37937e08000082828151811061049d5761049d6106d2565b60200260200101516104af91906106fe565b600260008282546104c0919061071d565b909155508190506104d081610735565b91505061040a565b80356001600160a01b03811681146104ef57600080fd5b919050565b60006020828403121561050657600080fd5b61050f826104d8565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561055557610555610516565b604052919050565b600067ffffffffffffffff82111561057757610577610516565b5060051b60200190565b600082601f83011261059257600080fd5b813560206105a76105a28361055d565b61052c565b82815260059290921b840181019181810190868411156105c657600080fd5b8286015b848110156105e157803583529183019183016105ca565b509695505050505050565b600080604083850312156105ff57600080fd5b823567ffffffffffffffff8082111561061757600080fd5b818501915085601f83011261062b57600080fd5b8135602061063b6105a28361055d565b82815260059290921b8401810191818101908984111561065a57600080fd5b948201945b8386101561067f57610670866104d8565b8252948201949082019061065f565b9650508601359250508082111561069557600080fd5b506106a285828601610581565b9150509250929050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610718576107186106e8565b500290565b60008219821115610730576107306106e8565b500190565b600060018201610747576107476106e8565b506001019056fea264697066735822122070f178b3bf207d9a53e5b39f378ed591165d72b5c1b20b449bf2c1c725ebaec564736f6c634300080f0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,344.07 | 2.24 | $5,250.71 |
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.