Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x4Fe3777047B1Ab1D19d31e255Be926481B062d2f
Balance 0.000000000 ETH
Nonce 1
Code Size 3420 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

3420 bytes
0x6080604052600436106100dd5760003560e01c8063d72b62921161007f578063e938a8c711610059578063e938a8c714610245578063f2fde38b14610270578063fb75b2c714610299578063fce69f98146102c4576100dd565b8063d72b6292146101f9578063db2e21bc14610224578063dbc938d81461023b576100dd565b806384449629116100bb578063844496291461014f5780638da5cb5b146101785780638ea5220f146101a3578063c41eaddf146101ce576100dd565b806312065fe0146100e2578063599270441461010d578063715018a614610138575b600080fd5b3480156100ee57600080fd5b506100f76102ed565b60405161010491906108cb565b60405180910390f35b34801561011957600080fd5b506101226102f5565b60405161012f9190610927565b60405180910390f35b34801561014457600080fd5b5061014d61031b565b005b34801561015b57600080fd5b5061017660048036038101906101719190610973565b61032f565b005b34801561018457600080fd5b5061018d6103ff565b60405161019a91906109e7565b60405180910390f35b3480156101af57600080fd5b506101b8610428565b6040516101c59190610927565b60405180910390f35b3480156101da57600080fd5b506101e361044e565b6040516101f091906108cb565b60405180910390f35b34801561020557600080fd5b5061020e610454565b60405161021b91906108cb565b60405180910390f35b34801561023057600080fd5b5061023961045a565b005b6102436104b2565b005b34801561025157600080fd5b5061025a610697565b60405161026791906108cb565b60405180910390f35b34801561027c57600080fd5b5061029760048036038101906102929190610a2e565b61069d565b005b3480156102a557600080fd5b506102ae610720565b6040516102bb9190610927565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e69190610a87565b610746565b005b600047905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610323610768565b61032d60006107e6565b565b610337610768565b82600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b60055481565b610462610768565b3373ffffffffffffffffffffffffffffffffffffffff166108fc6104846102ed565b9081150290604051600060405180830381858888f193505050501580156104af573d6000803e3d6000fd5b50565b6104ba610768565b600034116104fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f490610b37565b60405180910390fd5b600060646004543461050f9190610b86565b6105199190610bf7565b9050600060646005543461052d9190610b86565b6105379190610bf7565b9050600060646006543461054b9190610b86565b6105559190610bf7565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050501580156105bf573d6000803e3d6000fd5b50600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610628573d6000803e3d6000fd5b50600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610691573d6000803e3d6000fd5b50505050565b60065481565b6106a5610768565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070b90610c9a565b60405180910390fd5b61071d816107e6565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61074e610768565b826004819055508160058190555080600681905550505050565b6107706108aa565b73ffffffffffffffffffffffffffffffffffffffff1661078e6103ff565b73ffffffffffffffffffffffffffffffffffffffff16146107e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107db90610d06565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000819050919050565b6108c5816108b2565b82525050565b60006020820190506108e060008301846108bc565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610911826108e6565b9050919050565b61092181610906565b82525050565b600060208201905061093c6000830184610918565b92915050565b600080fd5b61095081610906565b811461095b57600080fd5b50565b60008135905061096d81610947565b92915050565b60008060006060848603121561098c5761098b610942565b5b600061099a8682870161095e565b93505060206109ab8682870161095e565b92505060406109bc8682870161095e565b9150509250925092565b60006109d1826108e6565b9050919050565b6109e1816109c6565b82525050565b60006020820190506109fc60008301846109d8565b92915050565b610a0b816109c6565b8114610a1657600080fd5b50565b600081359050610a2881610a02565b92915050565b600060208284031215610a4457610a43610942565b5b6000610a5284828501610a19565b91505092915050565b610a64816108b2565b8114610a6f57600080fd5b50565b600081359050610a8181610a5b565b92915050565b600080600060608486031215610aa057610a9f610942565b5b6000610aae86828701610a72565b9350506020610abf86828701610a72565b9250506040610ad086828701610a72565b9150509250925092565b600082825260208201905092915050565b7f4d7573742073656e642045544820746f20646973747269627574650000000000600082015250565b6000610b21601b83610ada565b9150610b2c82610aeb565b602082019050919050565b60006020820190508181036000830152610b5081610b14565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610b91826108b2565b9150610b9c836108b2565b9250828202610baa816108b2565b91508282048414831517610bc157610bc0610b57565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000610c02826108b2565b9150610c0d836108b2565b925082610c1d57610c1c610bc8565b5b828204905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610c84602683610ada565b9150610c8f82610c28565b604082019050919050565b60006020820190508181036000830152610cb381610c77565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610cf0602083610ada565b9150610cfb82610cba565b602082019050919050565b60006020820190508181036000830152610d1f81610ce3565b905091905056fea26469706673582212206acb849b9a9a42f3444a6bc1fd92db910b76807c992e829db5195877698cd0a564736f6c63430008120033

Verified Source Code Partial Match

Compiler: v0.8.18+commit.87f61d96 EVM: paris Optimization: No
EthDistributor.sol 167 lines
// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: contracts/EthDistribution.sol



pragma solidity ^0.8.18;


contract EthDistributor is Ownable {
    address payable public rewardWallet;
    address payable public devWallet;
    address payable public teamWallet;

    uint256 public rewardWalletPercentage = 40;
    uint256 public devWalletPercentage = 45;
    uint256 public teamWalletPercentage = 15;

    constructor(address payable _rewardWallet, address payable _devWallet, address payable _teamWallet, address owner) {
        rewardWallet = _rewardWallet;
        devWallet = _devWallet;
        teamWallet = _teamWallet;
        transferOwnership(owner);
    }

    function distributeEth() external payable onlyOwner {
        require(msg.value > 0, "Must send ETH to distribute");

        uint256 rewardAmount = (msg.value * rewardWalletPercentage) / 100;
        uint256 devAmount = (msg.value * devWalletPercentage) / 100;
        uint256 teamAmount = (msg.value * teamWalletPercentage) / 100;

        rewardWallet.transfer(rewardAmount);
        devWallet.transfer(devAmount);
        teamWallet.transfer(teamAmount);
    }

    function setPercentage(uint256 reward, uint256 dev, uint256 team) external onlyOwner {
        rewardWalletPercentage = reward;
        devWalletPercentage = dev;
        teamWalletPercentage = team;
    }

    function setWallet(address payable _rewardWallet, address payable _devWallet, address payable _teamWallet) external onlyOwner {
        rewardWallet = _rewardWallet;
        devWallet = _devWallet;
        teamWallet = _teamWallet;
    }

    function getBalance() public view returns (uint256) {
        return address(this).balance;
    }

    function emergencyWithdraw() external onlyOwner {
        payable(msg.sender).transfer(getBalance());
    }
}

Read Contract

devWallet 0x8ea5220f → address
devWalletPercentage 0xd72b6292 → uint256
getBalance 0x12065fe0 → uint256
owner 0x8da5cb5b → address
rewardWallet 0xfb75b2c7 → address
rewardWalletPercentage 0xc41eaddf → uint256
teamWallet 0x59927044 → address
teamWalletPercentage 0xe938a8c7 → uint256

Write Contract 6 functions

These functions modify contract state and require a wallet transaction to execute.

distributeEth 0xdbc938d8
No parameters
emergencyWithdraw 0xdb2e21bc
No parameters
renounceOwnership 0x715018a6
No parameters
setPercentage 0xfce69f98
uint256 reward
uint256 dev
uint256 team
setWallet 0x84449629
address _rewardWallet
address _devWallet
address _teamWallet
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address