ETH Price: $2,570.53 (-2.65%)
Gas: 12 Gwei

Contract

0xD87F2505B08A7F8fa83406f828CDA64d5154345F
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040151209962022-07-11 11:02:40760 days ago1657537360IN
 Contract Creation
0 ETH0.0161889220

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
163868392023-01-11 23:27:59575 days ago1673479679
0xD87F2505...d5154345F
0.00012503 ETH
163868392023-01-11 23:27:59575 days ago1673479679
0xD87F2505...d5154345F
0.00074121 ETH
163868392023-01-11 23:27:59575 days ago1673479679
0xD87F2505...d5154345F
0.00000875 ETH
163868392023-01-11 23:27:59575 days ago1673479679
0xD87F2505...d5154345F
0.000875 ETH
159909202022-11-17 16:25:11631 days ago1668702311
0xD87F2505...d5154345F
0.00032009 ETH
159909202022-11-17 16:25:11631 days ago1668702311
0xD87F2505...d5154345F
0.0018975 ETH
159909202022-11-17 16:25:11631 days ago1668702311
0xD87F2505...d5154345F
0.0000224 ETH
159909202022-11-17 16:25:11631 days ago1668702311
0xD87F2505...d5154345F
0.00224 ETH
159315832022-11-09 9:28:59639 days ago1667986139
0xD87F2505...d5154345F
0.00018005 ETH
159315832022-11-09 9:28:59639 days ago1667986139
0xD87F2505...d5154345F
0.00106734 ETH
159315832022-11-09 9:28:59639 days ago1667986139
0xD87F2505...d5154345F
0.0000126 ETH
159315832022-11-09 9:28:59639 days ago1667986139
0xD87F2505...d5154345F
0.00126 ETH
157631572022-10-16 20:47:23663 days ago1665953243
0xD87F2505...d5154345F
0.00060018 ETH
157631572022-10-16 20:47:23663 days ago1665953243
0xD87F2505...d5154345F
0.00355782 ETH
157631572022-10-16 20:47:23663 days ago1665953243
0xD87F2505...d5154345F
0.000042 ETH
157631572022-10-16 20:47:23663 days ago1665953243
0xD87F2505...d5154345F
0.0042 ETH
157624202022-10-16 18:19:23663 days ago1665944363
0xD87F2505...d5154345F
0.00374662 ETH
157624202022-10-16 18:19:23663 days ago1665944363
0xD87F2505...d5154345F
0.02220969 ETH
157624202022-10-16 18:19:23663 days ago1665944363
0xD87F2505...d5154345F
0.00026218 ETH
157624202022-10-16 18:19:23663 days ago1665944363
0xD87F2505...d5154345F
0.0262185 ETH
157532502022-10-15 11:35:11664 days ago1665833711
0xD87F2505...d5154345F
0.00094028 ETH
157532502022-10-15 11:35:11664 days ago1665833711
0xD87F2505...d5154345F
0.00557391 ETH
157532502022-10-15 11:35:11664 days ago1665833711
0xD87F2505...d5154345F
0.0000658 ETH
157532502022-10-15 11:35:11664 days ago1665833711
0xD87F2505...d5154345F
0.00658 ETH
157476632022-10-14 16:52:47665 days ago1665766367
0xD87F2505...d5154345F
0.00124037 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xb8307f48...E02D2DA20
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
splitter

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : splitter.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

import "@openzeppelin/contracts/access/Ownable.sol";

contract splitter is Ownable {
    address payable[] public _wallets;
    uint16[] public _shares;

    constructor(
        address payable[] memory _newWallets,
        uint16[] memory _newShares
    ) {
        UpdateWalletsAndShares(_newWallets, _newShares);
    }

    /**
     * @dev Royalties splitter
     */
    receive() external payable {
        _split(msg.value);
    }

    /**
     * @dev Internal output splitter
     */
    function _split(uint256 amount) internal {
        bool sent;
        uint256 _total;

        for (uint256 j = 0; j < _wallets.length; j++) {
            uint256 _amount = (amount * _shares[j]) / 10000;
            if (j == _wallets.length - 1) {
                _amount = amount - _total;
            } else {
                _total += _amount;
            }
            (sent,) = _wallets[j].call{value: _amount}("");
            require(sent, "PaymentSplitter:Failed to send ether");
        }
    }

    /**
     * @dev Admin: Update wallets and shares
     */
    function UpdateWalletsAndShares(
        address payable[] memory _newWallets,
        uint16[] memory _newShares
    ) public onlyOwner {
        require(_newWallets.length == _newShares.length && _newWallets.length > 0, "PaymentSplitter: Must have at least 1 output wallet");
        uint16 totalShares = 0;
        for (uint8 j = 0; j < _newShares.length; j++) {
            totalShares+= _newShares[j];
        }
        require(totalShares == 10000, "PaymentSplitter: Shares total must be 10000");
        _shares = _newShares;
        _wallets = _newWallets;
    }

}

File 2 of 3 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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 3 of 3 : Context.sol
// SPDX-License-Identifier: MIT
// 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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable[]","name":"_newWallets","type":"address[]"},{"internalType":"uint16[]","name":"_newShares","type":"uint16[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address payable[]","name":"_newWallets","type":"address[]"},{"internalType":"uint16[]","name":"_newShares","type":"uint16[]"}],"name":"UpdateWalletsAndShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_shares","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_wallets","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106100595760003560e01c806303c2f3a81461006e578063715018a6146100a6578063824701c4146100bb5780638da5cb5b146100db578063f1bc82101461010d578063f2fde38b1461012d57600080fd5b36610069576100673461014d565b005b600080fd5b34801561007a57600080fd5b5061008e6100893660046106dd565b6102c6565b60405161ffff90911681526020015b60405180910390f35b3480156100b257600080fd5b506100676102fe565b3480156100c757600080fd5b506100676100d63660046107f2565b610334565b3480156100e757600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161009d565b34801561011957600080fd5b506100f56101283660046106dd565b6104b5565b34801561013957600080fd5b506100676101483660046108b4565b6104df565b60008060005b6001548110156102c057600061271060028381548110610175576101756108d8565b6000918252602090912060108204015461019f91600f166002026101000a900461ffff1687610904565b6101a99190610923565b600180549192506101b991610945565b82036101d0576101c98386610945565b90506101dd565b6101da818461095c565b92505b600182815481106101f0576101f06108d8565b60009182526020822001546040516001600160a01b039091169183919081818185875af1925050503d8060008114610244576040519150601f19603f3d011682016040523d82523d6000602084013e610249565b606091505b505080945050836102ad5760405162461bcd60e51b8152602060048201526024808201527f5061796d656e7453706c69747465723a4661696c656420746f2073656e6420656044820152633a3432b960e11b60648201526084015b60405180910390fd5b50806102b881610974565b915050610153565b50505050565b600281815481106102d657600080fd5b9060005260206000209060109182820401919006600202915054906101000a900461ffff1681565b6000546001600160a01b031633146103285760405162461bcd60e51b81526004016102a49061098d565b610332600061057a565b565b6000546001600160a01b0316331461035e5760405162461bcd60e51b81526004016102a49061098d565b80518251148015610370575060008251115b6103d85760405162461bcd60e51b815260206004820152603360248201527f5061796d656e7453706c69747465723a204d7573742068617665206174206c65604482015272185cdd080c481bdd5d1c1d5d081dd85b1b195d606a1b60648201526084016102a4565b6000805b82518160ff16101561042457828160ff16815181106103fd576103fd6108d8565b60200260200101518261041091906109c2565b91508061041c816109e8565b9150506103dc565b508061ffff166127101461048e5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a2053686172657320746f74616c206d7560448201526a073742062652031303030360ac1b60648201526084016102a4565b81516104a19060029060208501906105ca565b5082516102c0906001906020860190610673565b600181815481106104c557600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b031633146105095760405162461bcd60e51b81526004016102a49061098d565b6001600160a01b03811661056e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102a4565b6105778161057a565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090600f016010900481019282156106635791602002820160005b8382111561063357835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026105f3565b80156106615782816101000a81549061ffff0219169055600201602081600101049283019260010302610633565b505b5061066f9291506106c8565b5090565b828054828255906000526020600020908101928215610663579160200282015b8281111561066357825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190610693565b5b8082111561066f57600081556001016106c9565b6000602082840312156106ef57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610735576107356106f6565b604052919050565b600067ffffffffffffffff821115610757576107576106f6565b5060051b60200190565b6001600160a01b038116811461057757600080fd5b600082601f83011261078757600080fd5b8135602061079c6107978361073d565b61070c565b82815260059290921b840181019181810190868411156107bb57600080fd5b8286015b848110156107e757803561ffff811681146107da5760008081fd5b83529183019183016107bf565b509695505050505050565b6000806040838503121561080557600080fd5b823567ffffffffffffffff8082111561081d57600080fd5b818501915085601f83011261083157600080fd5b813560206108416107978361073d565b82815260059290921b8401810191818101908984111561086057600080fd5b948201945b8386101561088757853561087881610761565b82529482019490820190610865565b9650508601359250508082111561089d57600080fd5b506108aa85828601610776565b9150509250929050565b6000602082840312156108c657600080fd5b81356108d181610761565b9392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561091e5761091e6108ee565b500290565b60008261094057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610957576109576108ee565b500390565b6000821982111561096f5761096f6108ee565b500190565b600060018201610986576109866108ee565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600061ffff8083168185168083038211156109df576109df6108ee565b01949350505050565b600060ff821660ff81036109fe576109fe6108ee565b6001019291505056fea26469706673582212209155c5e378e03d94bec34b728f3bdb429f04c20d0e36469ef2591721cb8e112a64736f6c634300080d0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.