ETH Price: $3,470.55 (+1.51%)
Gas: 13 Gwei

Contract

0xed6089B29Df98D28825aFCeA4bae71812326ef0F
 

Overview

ETH Balance

8 wei

Eth Value

Less Than $0.01 (@ $3,470.55/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Release141343102022-02-03 17:16:02879 days ago1643908562IN
0xed6089B2...12326ef0F
0 ETH0.013462200
Release141343092022-02-03 17:15:47879 days ago1643908547IN
0xed6089B2...12326ef0F
0 ETH0.013462200
Release141343082022-02-03 17:15:38879 days ago1643908538IN
0xed6089B2...12326ef0F
0 ETH0.013462200
Release141343072022-02-03 17:15:33879 days ago1643908533IN
0xed6089B2...12326ef0F
0 ETH0.013462200
Release141343052022-02-03 17:14:59879 days ago1643908499IN
0xed6089B2...12326ef0F
0 ETH0.013462200
Release141343042022-02-03 17:14:41879 days ago1643908481IN
0xed6089B2...12326ef0F
0 ETH0.013462200
Release141342972022-02-03 17:12:38879 days ago1643908358IN
0xed6089B2...12326ef0F
0 ETH0.013462200
Release141342962022-02-03 17:11:48879 days ago1643908308IN
0xed6089B2...12326ef0F
0 ETH0.013462200
Release141342942022-02-03 17:11:32879 days ago1643908292IN
0xed6089B2...12326ef0F
0 ETH0.016882200
Transfer141045922022-01-30 2:58:57883 days ago1643511537IN
0xed6089B2...12326ef0F
13.03228251 ETH0.0012686760.2554157
Transfer140232062022-01-17 13:06:42896 days ago1642424802IN
0xed6089B2...12326ef0F
19.13317737 ETH0.001494971
0x60806040139935032022-01-12 22:47:36900 days ago1642027656IN
 Create: SecondaryRevenueSplitter
0 ETH0.2962224300

Latest 9 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
141343102022-02-03 17:16:02879 days ago1643908562
0xed6089B2...12326ef0F
16.08272994 ETH
141343092022-02-03 17:15:47879 days ago1643908547
0xed6089B2...12326ef0F
2.01034124 ETH
141343082022-02-03 17:15:38879 days ago1643908538
0xed6089B2...12326ef0F
2.01034124 ETH
141343072022-02-03 17:15:33879 days ago1643908533
0xed6089B2...12326ef0F
2.01034124 ETH
141343052022-02-03 17:14:59879 days ago1643908499
0xed6089B2...12326ef0F
2.01034124 ETH
141343042022-02-03 17:14:41879 days ago1643908481
0xed6089B2...12326ef0F
2.01034124 ETH
141342972022-02-03 17:12:38879 days ago1643908358
0xed6089B2...12326ef0F
2.01034124 ETH
141342962022-02-03 17:11:48879 days ago1643908308
0xed6089B2...12326ef0F
2.01034124 ETH
141342942022-02-03 17:11:32879 days ago1643908292
0xed6089B2...12326ef0F
2.01034124 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SecondaryRevenueSplitter

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : SecondaryRevenueSplitter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

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

/*
* @title Contract to receive and split revenues from secondary market sales
*/
contract SecondaryRevenueSplitter is PaymentSplitter, Ownable  {

    constructor(
        address[] memory payees,
        uint256[] memory shares_
    ) PaymentSplitter(payees, shares_) {}

    receive() external payable {}

    /**
     * @notice Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     *
     * @param account the payee to release funds for
     */
    function release(address payable account) public override {
        require(msg.sender == account || msg.sender == owner(), "Release: no permission");

        super.release(account);
    }

    function withdrawEther(address payable _to, uint256 _amount) external onlyOwner {
        _to.transfer(_amount);
    }

}

File 2 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 6 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + _totalReleased;
        uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account];

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] = _released[account] + payment;
        _totalReleased = _totalReleased + payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 4 of 6 : Context.sol
// SPDX-License-Identifier: MIT

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 5 of 6 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 6 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"}],"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162000d8b38038062000d8b8339810160408190526200003491620004b0565b81818051825114620000a85760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000fb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200009f565b60005b82518110156200016757620001528382815181106200012157620001216200058e565b60200260200101518383815181106200013e576200013e6200058e565b60200260200101516200018c60201b60201c565b806200015e81620005ba565b915050620000fe565b505050620001846200017e6200037860201b60201c565b6200037c565b5050620005f3565b6001600160a01b038216620001f95760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200009f565b600081116200024b5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200009f565b6001600160a01b03821660009081526002602052604090205415620002c75760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200009f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200032f908290620005d8565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200040f576200040f620003ce565b604052919050565b60006001600160401b03821115620004335762000433620003ce565b5060051b60200190565b600082601f8301126200044f57600080fd5b8151602062000468620004628362000417565b620003e4565b82815260059290921b840181019181810190868411156200048857600080fd5b8286015b84811015620004a557805183529183019183016200048c565b509695505050505050565b60008060408385031215620004c457600080fd5b82516001600160401b0380821115620004dc57600080fd5b818501915085601f830112620004f157600080fd5b8151602062000504620004628362000417565b82815260059290921b840181019181810190898411156200052457600080fd5b948201945b838610156200055b5785516001600160a01b03811681146200054b5760008081fd5b8252948201949082019062000529565b918801519196509093505050808211156200057557600080fd5b5062000584858286016200043d565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415620005d157620005d1620005a4565b5060010190565b60008219821115620005ee57620005ee620005a4565b500190565b61078880620006036000396000f3fe6080604052600436106100595760003560e01c80631916558714610065578063522f681514610087578063715018a6146100a75780638da5cb5b146100bc578063ce7c2ac2146100e9578063f2fde38b1461012d57600080fd5b3661006057005b600080fd5b34801561007157600080fd5b50610085610080366004610647565b61014d565b005b34801561009357600080fd5b506100856100a236600461066b565b6101c4565b3480156100b357600080fd5b50610085610229565b3480156100c857600080fd5b506005546040516001600160a01b0390911681526020015b60405180910390f35b3480156100f557600080fd5b5061011f610104366004610647565b6001600160a01b031660009081526002602052604090205490565b6040519081526020016100e0565b34801561013957600080fd5b50610085610148366004610647565b61025f565b336001600160a01b038216148061016e57506005546001600160a01b031633145b6101b85760405162461bcd60e51b81526020600482015260166024820152752932b632b0b9b29d103737903832b936b4b9b9b4b7b760511b60448201526064015b60405180910390fd5b6101c1816102f7565b50565b6005546001600160a01b031633146101ee5760405162461bcd60e51b81526004016101af90610697565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610224573d6000803e3d6000fd5b505050565b6005546001600160a01b031633146102535760405162461bcd60e51b81526004016101af90610697565b61025d60006104c7565b565b6005546001600160a01b031633146102895760405162461bcd60e51b81526004016101af90610697565b6001600160a01b0381166102ee5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101af565b6101c1816104c7565b6001600160a01b03811660009081526002602052604090205461036b5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016101af565b60006001544761037b91906106e2565b6001600160a01b038316600090815260036020908152604080832054835460029093529083205493945091926103b190856106fa565b6103bb9190610719565b6103c5919061073b565b9050806104285760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016101af565b6001600160a01b03831660009081526003602052604090205461044c9082906106e2565b6001600160a01b0384166000908152600360205260409020556001546104739082906106e2565b6001556104808382610519565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b804710156105695760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016101af565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146105b6576040519150601f19603f3d011682016040523d82523d6000602084013e6105bb565b606091505b50509050806102245760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016101af565b6001600160a01b03811681146101c157600080fd5b60006020828403121561065957600080fd5b813561066481610632565b9392505050565b6000806040838503121561067e57600080fd5b823561068981610632565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156106f5576106f56106cc565b500190565b6000816000190483118215151615610714576107146106cc565b500290565b60008261073657634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561074d5761074d6106cc565b50039056fea26469706673582212202fb70e50a623ed86894aa2869bcbcee9b5708dc4aa3180ded69fe9353c50e6ec64736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000900000000000000000000000039da8fd657960cef83f1ba795c6518af45f49d90000000000000000000000000c6aa79a22b08c794b25dc58cb36f2250779cdf4f000000000000000000000000d82babcc30aa8398bcaf0a18841b5728d1a4ec03000000000000000000000000256843ea6be2f80d77bb104f74440aa74e77eaa9000000000000000000000000c1d86aa71f88ac0a3024e4318d93b87e45c5b3c2000000000000000000000000376ffeff9820826a564a1ba05a464b9923862418000000000000000000000000812b4e6e9f2899c4805ac1a1ecd8f72e2e96baab0000000000000000000000003805b28be32adb980f7b99b56df34793a45c51850000000000000000000000008c685c44facb8bf246fcb0e383cca4bd46634bf80000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000001388

Deployed Bytecode

0x6080604052600436106100595760003560e01c80631916558714610065578063522f681514610087578063715018a6146100a75780638da5cb5b146100bc578063ce7c2ac2146100e9578063f2fde38b1461012d57600080fd5b3661006057005b600080fd5b34801561007157600080fd5b50610085610080366004610647565b61014d565b005b34801561009357600080fd5b506100856100a236600461066b565b6101c4565b3480156100b357600080fd5b50610085610229565b3480156100c857600080fd5b506005546040516001600160a01b0390911681526020015b60405180910390f35b3480156100f557600080fd5b5061011f610104366004610647565b6001600160a01b031660009081526002602052604090205490565b6040519081526020016100e0565b34801561013957600080fd5b50610085610148366004610647565b61025f565b336001600160a01b038216148061016e57506005546001600160a01b031633145b6101b85760405162461bcd60e51b81526020600482015260166024820152752932b632b0b9b29d103737903832b936b4b9b9b4b7b760511b60448201526064015b60405180910390fd5b6101c1816102f7565b50565b6005546001600160a01b031633146101ee5760405162461bcd60e51b81526004016101af90610697565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610224573d6000803e3d6000fd5b505050565b6005546001600160a01b031633146102535760405162461bcd60e51b81526004016101af90610697565b61025d60006104c7565b565b6005546001600160a01b031633146102895760405162461bcd60e51b81526004016101af90610697565b6001600160a01b0381166102ee5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101af565b6101c1816104c7565b6001600160a01b03811660009081526002602052604090205461036b5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016101af565b60006001544761037b91906106e2565b6001600160a01b038316600090815260036020908152604080832054835460029093529083205493945091926103b190856106fa565b6103bb9190610719565b6103c5919061073b565b9050806104285760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016101af565b6001600160a01b03831660009081526003602052604090205461044c9082906106e2565b6001600160a01b0384166000908152600360205260409020556001546104739082906106e2565b6001556104808382610519565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b804710156105695760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016101af565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146105b6576040519150601f19603f3d011682016040523d82523d6000602084013e6105bb565b606091505b50509050806102245760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016101af565b6001600160a01b03811681146101c157600080fd5b60006020828403121561065957600080fd5b813561066481610632565b9392505050565b6000806040838503121561067e57600080fd5b823561068981610632565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156106f5576106f56106cc565b500190565b6000816000190483118215151615610714576107146106cc565b500290565b60008261073657634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561074d5761074d6106cc565b50039056fea26469706673582212202fb70e50a623ed86894aa2869bcbcee9b5708dc4aa3180ded69fe9353c50e6ec64736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000900000000000000000000000039da8fd657960cef83f1ba795c6518af45f49d90000000000000000000000000c6aa79a22b08c794b25dc58cb36f2250779cdf4f000000000000000000000000d82babcc30aa8398bcaf0a18841b5728d1a4ec03000000000000000000000000256843ea6be2f80d77bb104f74440aa74e77eaa9000000000000000000000000c1d86aa71f88ac0a3024e4318d93b87e45c5b3c2000000000000000000000000376ffeff9820826a564a1ba05a464b9923862418000000000000000000000000812b4e6e9f2899c4805ac1a1ecd8f72e2e96baab0000000000000000000000003805b28be32adb980f7b99b56df34793a45c51850000000000000000000000008c685c44facb8bf246fcb0e383cca4bd46634bf80000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000001388

-----Decoded View---------------
Arg [0] : payees (address[]): 0x39DA8Fd657960CeF83f1ba795C6518Af45F49D90,0xC6Aa79A22B08C794B25Dc58cb36F2250779CDF4f,0xd82bAbCC30Aa8398BcAF0a18841b5728d1A4ec03,0x256843ea6be2F80D77Bb104f74440Aa74e77eAA9,0xc1d86Aa71F88AC0a3024E4318d93b87E45c5b3c2,0x376FFEff9820826a564A1BA05A464b9923862418,0x812B4e6E9F2899c4805Ac1a1ECD8f72E2E96bAAB,0x3805B28BE32ADB980f7B99B56dF34793a45c5185,0x8c685C44fACB8Bf246fCb0E383CCa4Bd46634bF8
Arg [1] : shares_ (uint256[]): 625,625,625,625,625,625,625,625,5000

-----Encoded View---------------
22 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [3] : 00000000000000000000000039da8fd657960cef83f1ba795c6518af45f49d90
Arg [4] : 000000000000000000000000c6aa79a22b08c794b25dc58cb36f2250779cdf4f
Arg [5] : 000000000000000000000000d82babcc30aa8398bcaf0a18841b5728d1a4ec03
Arg [6] : 000000000000000000000000256843ea6be2f80d77bb104f74440aa74e77eaa9
Arg [7] : 000000000000000000000000c1d86aa71f88ac0a3024e4318d93b87e45c5b3c2
Arg [8] : 000000000000000000000000376ffeff9820826a564a1ba05a464b9923862418
Arg [9] : 000000000000000000000000812b4e6e9f2899c4805ac1a1ecd8f72e2e96baab
Arg [10] : 0000000000000000000000003805b28be32adb980f7b99b56df34793a45c5185
Arg [11] : 0000000000000000000000008c685c44facb8bf246fcb0e383cca4bd46634bf8
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000271
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000271
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000271
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000271
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000271
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000271
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000271
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000271
Arg [21] : 0000000000000000000000000000000000000000000000000000000000001388


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.