ETH Price: $3,350.21 (-1.00%)

Contract

0x6677b24e25207243604a023795a1d49A9F82334b
 

Overview

ETH Balance

0.065475600000040001 ETH

Eth Value

$219.36 (@ $3,350.21/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw All149445572022-06-11 13:38:08952 days ago1654954688IN
0x6677b24e...A9F82334b
0 ETH0.0023783328.25499117
Transfer149111062022-06-05 20:45:48958 days ago1654461948IN
0x6677b24e...A9F82334b
0.06670153 ETH0.00236694105.6435129
Transfer148441582022-05-25 21:27:03969 days ago1653514023IN
0x6677b24e...A9F82334b
0.030884 ETH0.0008829139.40703777
Transfer147926132022-05-17 12:50:43977 days ago1652791843IN
0x6677b24e...A9F82334b
0.043192 ETH0.000953442.5531991
Transfer147438602022-05-09 18:16:05985 days ago1652120165IN
0x6677b24e...A9F82334b
0.031632 ETH0.00285212127.29860408
Transfer146960512022-05-02 3:52:31992 days ago1651463551IN
0x6677b24e...A9F82334b
0.335508 ETH0.0020302990.61791418
Transfer146483352022-04-24 15:50:081000 days ago1650815408IN
0x6677b24e...A9F82334b
0.042336 ETH0.0006345828.32339161
Transfer146125762022-04-19 1:12:191006 days ago1650330739IN
0x6677b24e...A9F82334b
0.052472 ETH0.0007495633.45512293
Transfer145704282022-04-12 11:27:571012 days ago1649762877IN
0x6677b24e...A9F82334b
0.038556 ETH0.0010111845.13225678
Transfer145446882022-04-08 10:52:361016 days ago1649415156IN
0x6677b24e...A9F82334b
0.056832 ETH0.0009058840.43218488
Transfer145171012022-04-04 3:24:001020 days ago1649042640IN
0x6677b24e...A9F82334b
0.044876 ETH0.0013602460.71156207
Transfer144826432022-03-29 18:07:541026 days ago1648577274IN
0x6677b24e...A9F82334b
0.19235297 ETH0.0012020953.65293113
Transfer144072462022-03-18 0:39:141038 days ago1647563954IN
0x6677b24e...A9F82334b
0.0698916 ETH0.0014163363.21527621
Transfer143766442022-03-13 6:09:241042 days ago1647151764IN
0x6677b24e...A9F82334b
0.0688 ETH0.0003783816.88857939
Transfer143373952022-03-07 3:42:101048 days ago1646624530IN
0x6677b24e...A9F82334b
0.064856 ETH0.0008244236.79644591
Withdraw All143290382022-03-05 20:27:151050 days ago1646512035IN
0x6677b24e...A9F82334b
0 ETH0.0049268358.5315478
Transfer143139532022-03-03 12:20:071052 days ago1646310007IN
0x6677b24e...A9F82334b
0.44338519 ETH0.0007973835.58967141
Transfer142608062022-02-23 6:44:241060 days ago1645598664IN
0x6677b24e...A9F82334b
0.26483736 ETH0.000961442.91049944
Transfer142233142022-02-17 11:13:271066 days ago1645096407IN
0x6677b24e...A9F82334b
0.13524 ETH0.0007114431.75383059
Transfer142200342022-02-16 23:06:401067 days ago1645052800IN
0x6677b24e...A9F82334b
0.18566888 ETH0.0021403995.53185822
Withdraw All141869802022-02-11 20:40:431072 days ago1644612043IN
0x6677b24e...A9F82334b
0 ETH0.00852102102.95691568
Transfer141864672022-02-11 18:49:211072 days ago1644605361IN
0x6677b24e...A9F82334b
0.13823599 ETH0.0021128494.30238781
Transfer141539762022-02-06 17:48:091077 days ago1644169689IN
0x6677b24e...A9F82334b
0.31267424 ETH0.0017339877.39278472
Transfer141157712022-01-31 20:17:481083 days ago1643660268IN
0x6677b24e...A9F82334b
0.7597724 ETH0.003885173.39916273
Transfer140396822022-01-20 2:06:461095 days ago1642644406IN
0x6677b24e...A9F82334b
0.71801116 ETH0.00228911102.16975902
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
150483202022-06-30 3:18:54933 days ago1656559134
0x6677b24e...A9F82334b
0.0032 ETH
150474992022-06-29 23:32:22934 days ago1656545542
0x6677b24e...A9F82334b
0.016 ETH
150472892022-06-29 22:41:31934 days ago1656542491
0x6677b24e...A9F82334b
0.002 ETH
150471222022-06-29 21:59:17934 days ago1656539957
0x6677b24e...A9F82334b
0.002 ETH
150470642022-06-29 21:43:38934 days ago1656539018
0x6677b24e...A9F82334b
0.0032 ETH
150099802022-06-22 23:00:35941 days ago1655938835
0x6677b24e...A9F82334b
0.0016 ETH
150078832022-06-22 13:41:01941 days ago1655905261
0x6677b24e...A9F82334b
0.001 ETH
150078762022-06-22 13:38:50941 days ago1655905130
0x6677b24e...A9F82334b
0.00072 ETH
150075162022-06-22 12:00:41941 days ago1655899241
0x6677b24e...A9F82334b
0.0007196 ETH
150075162022-06-22 12:00:41941 days ago1655899241
0x6677b24e...A9F82334b
0.001 ETH
150054592022-06-22 2:45:12942 days ago1655865912
0x6677b24e...A9F82334b
0.002 ETH
150053062022-06-22 2:07:40942 days ago1655863660
0x6677b24e...A9F82334b
0.0007196 ETH
150001322022-06-21 3:04:18943 days ago1655780658
0x6677b24e...A9F82334b
0.0012 ETH
149953172022-06-20 7:27:23943 days ago1655710043
0x6677b24e...A9F82334b
0.0008 ETH
149952042022-06-20 6:54:51943 days ago1655708091
0x6677b24e...A9F82334b
0.000716 ETH
149858362022-06-18 15:59:06945 days ago1655567946
0x6677b24e...A9F82334b
0 ETH
149858322022-06-18 15:58:11945 days ago1655567891
0x6677b24e...A9F82334b
0.0000004 ETH
149853052022-06-18 13:49:23945 days ago1655560163
0x6677b24e...A9F82334b
0.0092 ETH
149814892022-06-17 21:55:40946 days ago1655502940
0x6677b24e...A9F82334b
0.006 ETH
149814102022-06-17 21:32:02946 days ago1655501522
0x6677b24e...A9F82334b
0.012 ETH
149778042022-06-17 6:51:31946 days ago1655448691
0x6677b24e...A9F82334b
0.0008 ETH
149637132022-06-14 20:35:55949 days ago1655238955
0x6677b24e...A9F82334b
0.0006 ETH
149445572022-06-11 13:38:08952 days ago1654954688
0x6677b24e...A9F82334b
0.56944505 ETH
149445572022-06-11 13:38:08952 days ago1654954688
0x6677b24e...A9F82334b
0.56944505 ETH
143290382022-03-05 20:27:151050 days ago1646512035
0x6677b24e...A9F82334b
0.51456572 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OpenSeaSplitter

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : OpenSeaSplitter.sol
// SPDX-License-Identifier: LGPL-3.0-or-later

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";


contract OpenSeaSplitter is PaymentSplitter, Ownable { 

    using SafeMath for uint256;
    
    address[] private _team = [
	0x510861CFa70D98f0f9013A700c18AC1eD5408D26, // Community
    0x254a6Eda7F8F0EA0251fE0c9f06096630AEE27E3 // craftbrain
    ];

    uint256[] private _team_shares = [50,50];

    constructor()
        PaymentSplitter(_team, _team_shares)
    {
    }

    function PartialWithdraw() public payable onlyOwner {
        require(payable(msg.sender).send(address(this).balance));
    }

   function withdrawAll() public onlyOwner {
        for (uint256 i = 0; i < _team.length; i++) {
            address payable wallet = payable(_team[i]);
            release(wallet);
        }
    }

}

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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 3 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. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * 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;
        }
    }
}

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

pragma solidity ^0.8.0;

import "../utils/Address.sol";
import "../utils/Context.sol";
import "../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);
    event PaymentReceived(address from, 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 {
        // solhint-disable-next-line max-line-length
        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 The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive () external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

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

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @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 5 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 6 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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","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":"PartialWithdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","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":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","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":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c060405273510861cfa70d98f0f9013a700c18ac1ed5408d26608090815273254a6eda7f8f0ea0251fe0c9f06096630aee27e360a05262000046906006906002620004cc565b5060408051808201909152603280825260208201526200006b90600790600262000536565b503480156200007957600080fd5b506006805480602002602001604051908101604052809291908181526020018280548015620000d257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311620000b3575b505050505060078054806020026020016040519081016040528092919081815260200182805480156200012557602002820191906000526020600020905b81548152602001906001019080831162000110575b505050505080518251146200019c5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001ef5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000193565b60005b825181101562000273576200025e8382815181106200022157634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200024a57634e487b7160e01b600052603260045260246000fd5b6020026020010151620002dc60201b60201c565b806200026a81620005ab565b915050620001f2565b505050600062000288620004c860201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620005df565b6001600160a01b038216620003495760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000193565b600081116200039b5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000193565b6001600160a01b03821660009081526002602052604090205415620004175760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000193565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200047f90829062000590565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b3390565b82805482825590600052602060002090810192821562000524579160200282015b828111156200052457825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620004ed565b506200053292915062000579565b5090565b82805482825590600052602060002090810192821562000524579160200282015b8281111562000524578251829060ff1690559160200191906001019062000557565b5b808211156200053257600081556001016200057a565b60008219821115620005a657620005a6620005c9565b500190565b6000600019821415620005c257620005c2620005c9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b61092780620005ef6000396000f3fe6080604052600436106100a05760003560e01c80638da5cb5b116100645780638da5cb5b146101965780639852595c146101b4578063ce7c2ac2146101ea578063e33b7de314610220578063f2fde38b14610235578063f6c757ec1461025557600080fd5b806319165587146100ee5780633a98ef3914610110578063715018a614610134578063853828b6146101495780638b83209b1461015e57600080fd5b366100e9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100fa57600080fd5b5061010e6101093660046107cd565b61025d565b005b34801561011c57600080fd5b506000545b6040519081526020015b60405180910390f35b34801561014057600080fd5b5061010e610432565b34801561015557600080fd5b5061010e6104a6565b34801561016a57600080fd5b5061017e6101793660046107f0565b610536565b6040516001600160a01b03909116815260200161012b565b3480156101a257600080fd5b506005546001600160a01b031661017e565b3480156101c057600080fd5b506101216101cf3660046107cd565b6001600160a01b031660009081526003602052604090205490565b3480156101f657600080fd5b506101216102053660046107cd565b6001600160a01b031660009081526002602052604090205490565b34801561022c57600080fd5b50600154610121565b34801561024157600080fd5b5061010e6102503660046107cd565b610574565b61010e61065f565b6001600160a01b0381166000908152600260205260409020546102d65760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084015b60405180910390fd5b6000600154476102e6919061083d565b6001600160a01b0383166000908152600360209081526040808320548354600290935290832054939450919261031c9085610875565b6103269190610855565b6103309190610894565b9050806103935760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016102cd565b6001600160a01b0383166000908152600360205260409020546103b790829061083d565b6001600160a01b0384166000908152600360205260409020556001546103de90829061083d565b6001556103eb83826106af565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6005546001600160a01b0316331461045c5760405162461bcd60e51b81526004016102cd90610808565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b031633146104d05760405162461bcd60e51b81526004016102cd90610808565b60005b6006548110156105335760006006828154811061050057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031690506105208161025d565b508061052b816108ab565b9150506104d3565b50565b60006004828154811061055957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6005546001600160a01b0316331461059e5760405162461bcd60e51b81526004016102cd90610808565b6001600160a01b0381166106035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102cd565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146106895760405162461bcd60e51b81526004016102cd90610808565b60405133904780156108fc02916000818181858888f193505050506106ad57600080fd5b565b804710156106ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102cd565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461074c576040519150601f19603f3d011682016040523d82523d6000602084013e610751565b606091505b50509050806107c85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102cd565b505050565b6000602082840312156107de578081fd5b81356107e9816108dc565b9392505050565b600060208284031215610801578081fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610850576108506108c6565b500190565b60008261087057634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561088f5761088f6108c6565b500290565b6000828210156108a6576108a66108c6565b500390565b60006000198214156108bf576108bf6108c6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461053357600080fdfea26469706673582212206cb95c629c66042926121a6aa62fd811a46676d19f7f7b0b86ecc01bf2684f8364736f6c63430008040033

Deployed Bytecode

0x6080604052600436106100a05760003560e01c80638da5cb5b116100645780638da5cb5b146101965780639852595c146101b4578063ce7c2ac2146101ea578063e33b7de314610220578063f2fde38b14610235578063f6c757ec1461025557600080fd5b806319165587146100ee5780633a98ef3914610110578063715018a614610134578063853828b6146101495780638b83209b1461015e57600080fd5b366100e9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100fa57600080fd5b5061010e6101093660046107cd565b61025d565b005b34801561011c57600080fd5b506000545b6040519081526020015b60405180910390f35b34801561014057600080fd5b5061010e610432565b34801561015557600080fd5b5061010e6104a6565b34801561016a57600080fd5b5061017e6101793660046107f0565b610536565b6040516001600160a01b03909116815260200161012b565b3480156101a257600080fd5b506005546001600160a01b031661017e565b3480156101c057600080fd5b506101216101cf3660046107cd565b6001600160a01b031660009081526003602052604090205490565b3480156101f657600080fd5b506101216102053660046107cd565b6001600160a01b031660009081526002602052604090205490565b34801561022c57600080fd5b50600154610121565b34801561024157600080fd5b5061010e6102503660046107cd565b610574565b61010e61065f565b6001600160a01b0381166000908152600260205260409020546102d65760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084015b60405180910390fd5b6000600154476102e6919061083d565b6001600160a01b0383166000908152600360209081526040808320548354600290935290832054939450919261031c9085610875565b6103269190610855565b6103309190610894565b9050806103935760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016102cd565b6001600160a01b0383166000908152600360205260409020546103b790829061083d565b6001600160a01b0384166000908152600360205260409020556001546103de90829061083d565b6001556103eb83826106af565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6005546001600160a01b0316331461045c5760405162461bcd60e51b81526004016102cd90610808565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b031633146104d05760405162461bcd60e51b81526004016102cd90610808565b60005b6006548110156105335760006006828154811061050057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031690506105208161025d565b508061052b816108ab565b9150506104d3565b50565b60006004828154811061055957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6005546001600160a01b0316331461059e5760405162461bcd60e51b81526004016102cd90610808565b6001600160a01b0381166106035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102cd565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146106895760405162461bcd60e51b81526004016102cd90610808565b60405133904780156108fc02916000818181858888f193505050506106ad57600080fd5b565b804710156106ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102cd565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461074c576040519150601f19603f3d011682016040523d82523d6000602084013e610751565b606091505b50509050806107c85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102cd565b505050565b6000602082840312156107de578081fd5b81356107e9816108dc565b9392505050565b600060208284031215610801578081fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610850576108506108c6565b500190565b60008261087057634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561088f5761088f6108c6565b500290565b6000828210156108a6576108a66108c6565b500390565b60006000198214156108bf576108bf6108c6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461053357600080fdfea26469706673582212206cb95c629c66042926121a6aa62fd811a46676d19f7f7b0b86ecc01bf2684f8364736f6c63430008040033

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.