ETH Price: $2,419.22 (+0.00%)

Contract

0x4150eb2e2ff6b3c9ca76B9bE595A9f6F8a379889
 

Overview

ETH Balance

0.238 ETH

Eth Value

$575.77 (@ $2,419.22/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Release133989322021-10-11 18:39:091090 days ago1633977549IN
0x4150eb2e...F8a379889
0 ETH0.00826163127.58293996
Release132731152021-09-22 3:19:571110 days ago1632280797IN
0x4150eb2e...F8a379889
0 ETH0.0029645662.20892295
Release132377752021-09-16 16:08:231115 days ago1631808503IN
0x4150eb2e...F8a379889
0 ETH0.0041929262.3437353
Release131921652021-09-09 14:55:351122 days ago1631199335IN
0x4150eb2e...F8a379889
0 ETH0.00589307123.66119879
Release131800082021-09-07 17:31:381124 days ago1631035898IN
0x4150eb2e...F8a379889
0 ETH0.0103143159.28191991
Release131538002021-09-03 16:21:181128 days ago1630686078IN
0x4150eb2e...F8a379889
0 ETH0.00882396136.26688855
Release131528772021-09-03 13:02:581128 days ago1630674178IN
0x4150eb2e...F8a379889
0 ETH0.01109003164.89527862
Release131418472021-09-01 20:11:511130 days ago1630527111IN
0x4150eb2e...F8a379889
0 ETH0.01873395171.3132079
Release131282162021-08-30 17:22:251132 days ago1630344145IN
0x4150eb2e...F8a379889
0 ETH0.00325351103.31245432
0x60806040131203492021-08-29 12:20:571133 days ago1630239657IN
 Create: PaymentSplitter
0 ETH0.040548946.37780559

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
133989322021-10-11 18:39:091090 days ago1633977549
0x4150eb2e...F8a379889
0.92625 ETH
132906232021-09-24 20:25:371107 days ago1632515137
0x4150eb2e...F8a379889
0.07 ETH
132731152021-09-22 3:19:571110 days ago1632280797
0x4150eb2e...F8a379889
0.0105 ETH
132377752021-09-16 16:08:231115 days ago1631808503
0x4150eb2e...F8a379889
0.913125 ETH
132056702021-09-11 16:57:431120 days ago1631379463
0x4150eb2e...F8a379889
0.07 ETH
131921652021-09-09 14:55:351122 days ago1631199335
0x4150eb2e...F8a379889
0.091875 ETH
131800082021-09-07 17:31:381124 days ago1631035898
0x4150eb2e...F8a379889
0.72 ETH
131757482021-09-07 1:39:511125 days ago1630978791
0x4150eb2e...F8a379889
0.07 ETH
131628672021-09-05 1:55:301127 days ago1630806930
0x4150eb2e...F8a379889
0.14 ETH
131626802021-09-05 1:12:551127 days ago1630804375
0x4150eb2e...F8a379889
0.07 ETH
131626792021-09-05 1:12:341127 days ago1630804354
0x4150eb2e...F8a379889
0.07 ETH
131556552021-09-03 23:11:271128 days ago1630710687
0x4150eb2e...F8a379889
0.07 ETH
131556392021-09-03 23:07:371128 days ago1630710457
0x4150eb2e...F8a379889
0.07 ETH
131538002021-09-03 16:21:181128 days ago1630686078
0x4150eb2e...F8a379889
0.808125 ETH
131528772021-09-03 13:02:581128 days ago1630674178
0x4150eb2e...F8a379889
0.808125 ETH
131498942021-09-03 1:49:331129 days ago1630633773
0x4150eb2e...F8a379889
0.07 ETH
131418472021-09-01 20:11:511130 days ago1630527111
0x4150eb2e...F8a379889
0.424 ETH
131368332021-09-01 1:31:121131 days ago1630459872
0x4150eb2e...F8a379889
0.21 ETH
131317572021-08-31 6:30:531132 days ago1630391453
0x4150eb2e...F8a379889
0.07 ETH
131303542021-08-31 1:24:581132 days ago1630373098
0x4150eb2e...F8a379889
0.35 ETH
131296992021-08-30 22:53:231132 days ago1630364003
0x4150eb2e...F8a379889
0.14 ETH
131296612021-08-30 22:45:351132 days ago1630363535
0x4150eb2e...F8a379889
0.07 ETH
131296442021-08-30 22:42:351132 days ago1630363355
0x4150eb2e...F8a379889
0.07 ETH
131291342021-08-30 20:56:251132 days ago1630356985
0x4150eb2e...F8a379889
0.07 ETH
131282162021-08-30 17:22:251132 days ago1630344145
0x4150eb2e...F8a379889
5 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PaymentSplitter

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : 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";

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;
    uint256 private _initRelease;
    address private _initAddress;

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

    modifier onlyOwner {
        require(_msgSender() == _owner);
        _;
    }

    /**
     * @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_, address initAddress_, uint256 initRelease_) {
        // 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]);
        }
        _initRelease = initRelease_;
        _initAddress = initAddress_;
        _owner = _msgSender();
    }

    /**
     * @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 {
        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) external {
      if (_initRelease > 0) {
        uint256 totalReceived = address(this).balance;
        uint256 payment = _initRelease > totalReceived ? totalReceived : _initRelease;
        require(payment != 0, "No payment");
        _initRelease = _initRelease - payment;
        (bool success, ) = _initAddress.call{value: payment}("");
        require(success);
      } else {
        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;
        (bool success, ) = account.call{value: payment}("");
        require(success);
        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_);
    }

    function emergencyWithdraw(address to) external onlyOwner {
        uint256 payment = address(this).balance;
        (bool success, ) = to.call{value: payment}("");
        require(success);
    }
}

File 2 of 4 : 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);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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 3 of 4 : 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 4 of 4 : 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",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"},{"internalType":"address","name":"initAddress_","type":"address"},{"internalType":"uint256","name":"initRelease_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":[{"internalType":"address","name":"to","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","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":[{"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"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162000d8138038062000d81833981016040819052620000349162000324565b8251845114620000615760405162461bcd60e51b8152600401620000589062000471565b60405180910390fd5b6000845111620000855760405162461bcd60e51b815260040162000058906200050e565b60005b84518110156200010957620000f4858281518110620000b757634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110620000e057634e487b7160e01b600052603260045260246000fd5b60200260200101516200015f60201b60201c565b806200010081620005e9565b91505062000088565b506002819055600380546001600160a01b0319166001600160a01b038416179055620001346200028f565b600780546001600160a01b0319166001600160a01b0392909216919091179055506200063392505050565b6001600160a01b038216620001885760405162461bcd60e51b8152600401620000589062000425565b60008111620001ab5760405162461bcd60e51b8152600401620000589062000545565b6001600160a01b03821660009081526004602052604090205415620001e45760405162461bcd60e51b81526004016200005890620004c3565b60068054600181019091557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b0384169081179091556000908152600460205260408120829055546200024c908290620005ce565b6000556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac906200028390849084906200040c565b60405180910390a15050565b3390565b80516001600160a01b0381168114620002ab57600080fd5b919050565b600082601f830112620002c1578081fd5b81516020620002da620002d483620005a8565b6200057c565b8281528181019085830183850287018401881015620002f7578586fd5b855b858110156200031757815184529284019290840190600101620002f9565b5090979650505050505050565b600080600080608085870312156200033a578384fd5b84516001600160401b038082111562000351578586fd5b818701915087601f83011262000365578586fd5b8151602062000378620002d483620005a8565b82815281810190858301838502870184018d101562000395578a8bfd5b8a96505b84871015620003c257620003ad8162000293565b83526001969096019591830191830162000399565b50918a0151919850909350505080821115620003dc578485fd5b50620003eb87828801620002b0565b935050620003fc6040860162000293565b6060959095015193969295505050565b6001600160a01b03929092168252602082015260400190565b6020808252602c908201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060408201526b7a65726f206164647265737360a01b606082015260800190565b60208082526032908201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726040820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960408201526a206861732073686172657360a81b606082015260800190565b6020808252601a908201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604082015260600190565b6020808252601d908201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604082015260600190565b6040518181016001600160401b0381118282101715620005a057620005a06200061d565b604052919050565b60006001600160401b03821115620005c457620005c46200061d565b5060209081020190565b60008219821115620005e457620005e462000607565b500190565b600060001982141562000600576200060062000607565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61073e80620006436000396000f3fe6080604052600436106100745760003560e01c80638b83209b1161004e5780638b83209b1461012d5780639852595c1461015a578063ce7c2ac21461017a578063e33b7de31461019a576100bb565b806319165587146100c05780633a98ef39146100e25780636ff1c9bc1461010d576100bb565b366100bb577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100a26101af565b346040516100b1929190610598565b60405180910390a1005b600080fd5b3480156100cc57600080fd5b506100e06100db366004610546565b6101b3565b005b3480156100ee57600080fd5b506100f761042c565b6040516101049190610666565b60405180910390f35b34801561011957600080fd5b506100e0610128366004610546565b610432565b34801561013957600080fd5b5061014d610148366004610569565b6104cc565b6040516101049190610584565b34801561016657600080fd5b506100f7610175366004610546565b61050a565b34801561018657600080fd5b506100f7610195366004610546565b610525565b3480156101a657600080fd5b506100f7610540565b3390565b60025415610284576000479050600081600254116101d3576002546101d5565b815b9050806101fd5760405162461bcd60e51b81526004016101f490610642565b60405180910390fd5b8060025461020b91906106c6565b6002556003546040516000916001600160a01b031690839061022c90610581565b60006040518083038185875af1925050503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b505090508061027c57600080fd5b505050610429565b6001600160a01b0381166000908152600460205260409020546102b95760405162461bcd60e51b81526004016101f4906105b1565b6000600154476102c9919061066f565b6001600160a01b038316600090815260056020908152604080832054835460049093529083205493945091926102ff90856106a7565b6103099190610687565b61031391906106c6565b9050806103325760405162461bcd60e51b81526004016101f4906105f7565b6001600160a01b03831660009081526005602052604090205461035690829061066f565b6001600160a01b03841660009081526005602052604090205560015461037d90829061066f565b6001819055506000836001600160a01b03168260405161039c90610581565b60006040518083038185875af1925050503d80600081146103d9576040519150601f19603f3d011682016040523d82523d6000602084013e6103de565b606091505b50509050806103ec57600080fd5b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056848360405161041d929190610598565b60405180910390a15050505b50565b60005490565b6007546001600160a01b03166104466101af565b6001600160a01b03161461045957600080fd5b60004790506000826001600160a01b03168260405161047790610581565b60006040518083038185875af1925050503d80600081146104b4576040519150601f19603f3d011682016040523d82523d6000602084013e6104b9565b606091505b50509050806104c757600080fd5b505050565b6000600682815481106104ef57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6001600160a01b031660009081526005602052604090205490565b6001600160a01b031660009081526004602052604090205490565b60015490565b600060208284031215610557578081fd5b8135610562816106f3565b9392505050565b60006020828403121561057a578081fd5b5035919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6020808252600a9082015269139bc81c185e5b595b9d60b21b604082015260600190565b90815260200190565b60008219821115610682576106826106dd565b500190565b6000826106a257634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156106c1576106c16106dd565b500290565b6000828210156106d8576106d86106dd565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461042957600080fdfea264697066735822122090402d70a11e9f8d4ecbbad6a94ba4d3bbc392dd15eeb1cb9d0ae37f9c4c9aa064736f6c63430008000033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001600000000000000000000000008c7f849f533e3b205411d53abc4fb85b74b1c0510000000000000000000000000000000000000000000000004563918244f400000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000e9ee66d170b2a3feb0b23bc6ae7e8120b5103fb500000000000000000000000016c09897e65732df633006a93b4d9c9c43fefccf000000000000000000000000e9fa45baa787643ed7e9a228dddf9de775606038000000000000000000000000245160bc3bed2cf380f6ac819bb897ba60a3ee490000000000000000000000002785f60a149ba0cb4b29305f3e13a46f36600ba10000000000000000000000008c7f849f533e3b205411d53abc4fb85b74b1c0510000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000075300000000000000000000000000000000000000000000000000000000000007530000000000000000000000000000000000000000000000000000000000000753000000000000000000000000000000000000000000000000000000000000075300000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000005dc

Deployed Bytecode

0x6080604052600436106100745760003560e01c80638b83209b1161004e5780638b83209b1461012d5780639852595c1461015a578063ce7c2ac21461017a578063e33b7de31461019a576100bb565b806319165587146100c05780633a98ef39146100e25780636ff1c9bc1461010d576100bb565b366100bb577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100a26101af565b346040516100b1929190610598565b60405180910390a1005b600080fd5b3480156100cc57600080fd5b506100e06100db366004610546565b6101b3565b005b3480156100ee57600080fd5b506100f761042c565b6040516101049190610666565b60405180910390f35b34801561011957600080fd5b506100e0610128366004610546565b610432565b34801561013957600080fd5b5061014d610148366004610569565b6104cc565b6040516101049190610584565b34801561016657600080fd5b506100f7610175366004610546565b61050a565b34801561018657600080fd5b506100f7610195366004610546565b610525565b3480156101a657600080fd5b506100f7610540565b3390565b60025415610284576000479050600081600254116101d3576002546101d5565b815b9050806101fd5760405162461bcd60e51b81526004016101f490610642565b60405180910390fd5b8060025461020b91906106c6565b6002556003546040516000916001600160a01b031690839061022c90610581565b60006040518083038185875af1925050503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b505090508061027c57600080fd5b505050610429565b6001600160a01b0381166000908152600460205260409020546102b95760405162461bcd60e51b81526004016101f4906105b1565b6000600154476102c9919061066f565b6001600160a01b038316600090815260056020908152604080832054835460049093529083205493945091926102ff90856106a7565b6103099190610687565b61031391906106c6565b9050806103325760405162461bcd60e51b81526004016101f4906105f7565b6001600160a01b03831660009081526005602052604090205461035690829061066f565b6001600160a01b03841660009081526005602052604090205560015461037d90829061066f565b6001819055506000836001600160a01b03168260405161039c90610581565b60006040518083038185875af1925050503d80600081146103d9576040519150601f19603f3d011682016040523d82523d6000602084013e6103de565b606091505b50509050806103ec57600080fd5b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056848360405161041d929190610598565b60405180910390a15050505b50565b60005490565b6007546001600160a01b03166104466101af565b6001600160a01b03161461045957600080fd5b60004790506000826001600160a01b03168260405161047790610581565b60006040518083038185875af1925050503d80600081146104b4576040519150601f19603f3d011682016040523d82523d6000602084013e6104b9565b606091505b50509050806104c757600080fd5b505050565b6000600682815481106104ef57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6001600160a01b031660009081526005602052604090205490565b6001600160a01b031660009081526004602052604090205490565b60015490565b600060208284031215610557578081fd5b8135610562816106f3565b9392505050565b60006020828403121561057a578081fd5b5035919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6020808252600a9082015269139bc81c185e5b595b9d60b21b604082015260600190565b90815260200190565b60008219821115610682576106826106dd565b500190565b6000826106a257634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156106c1576106c16106dd565b500290565b6000828210156106d8576106d86106dd565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461042957600080fdfea264697066735822122090402d70a11e9f8d4ecbbad6a94ba4d3bbc392dd15eeb1cb9d0ae37f9c4c9aa064736f6c63430008000033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001600000000000000000000000008c7f849f533e3b205411d53abc4fb85b74b1c0510000000000000000000000000000000000000000000000004563918244f400000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000e9ee66d170b2a3feb0b23bc6ae7e8120b5103fb500000000000000000000000016c09897e65732df633006a93b4d9c9c43fefccf000000000000000000000000e9fa45baa787643ed7e9a228dddf9de775606038000000000000000000000000245160bc3bed2cf380f6ac819bb897ba60a3ee490000000000000000000000002785f60a149ba0cb4b29305f3e13a46f36600ba10000000000000000000000008c7f849f533e3b205411d53abc4fb85b74b1c0510000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000075300000000000000000000000000000000000000000000000000000000000007530000000000000000000000000000000000000000000000000000000000000753000000000000000000000000000000000000000000000000000000000000075300000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000005dc

-----Decoded View---------------
Arg [0] : payees (address[]): 0xE9eE66d170B2A3Feb0B23bc6aE7E8120B5103Fb5,0x16c09897e65732Df633006a93B4d9C9C43FeFCCF,0xE9FA45BAA787643ED7e9a228dDdF9De775606038,0x245160bc3BeD2cf380f6AC819bB897BA60a3EE49,0x2785F60A149BA0cB4b29305f3E13A46F36600Ba1,0x8C7f849f533e3b205411d53abC4fB85B74B1C051
Arg [1] : shares_ (uint256[]): 1875,1875,1875,1875,1000,1500
Arg [2] : initAddress_ (address): 0x8C7f849f533e3b205411d53abC4fB85B74B1C051
Arg [3] : initRelease_ (uint256): 5000000000000000000

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 0000000000000000000000008c7f849f533e3b205411d53abc4fb85b74b1c051
Arg [3] : 0000000000000000000000000000000000000000000000004563918244f40000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 000000000000000000000000e9ee66d170b2a3feb0b23bc6ae7e8120b5103fb5
Arg [6] : 00000000000000000000000016c09897e65732df633006a93b4d9c9c43fefccf
Arg [7] : 000000000000000000000000e9fa45baa787643ed7e9a228dddf9de775606038
Arg [8] : 000000000000000000000000245160bc3bed2cf380f6ac819bb897ba60a3ee49
Arg [9] : 0000000000000000000000002785f60a149ba0cb4b29305f3e13a46f36600ba1
Arg [10] : 0000000000000000000000008c7f849f533e3b205411d53abc4fb85b74b1c051
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000753
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000753
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000753
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000753
Arg [16] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [17] : 00000000000000000000000000000000000000000000000000000000000005dc


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.