ETH Price: $3,475.88 (-1.19%)
Gas: 3 Gwei

Contract

0xd808CF7B86272aa3e12Dce6A4E6F1d0e4b636456
 

Overview

ETH Balance

1.887383155072554332 ETH

Eth Value

$6,560.31 (@ $3,475.88/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Release179582562023-08-20 20:11:11337 days ago1692562271IN
0xd808CF7B...e4b636456
0 ETH0.0008888816.90351952
Release173391962023-05-25 22:43:11424 days ago1685054591IN
0xd808CF7B...e4b636456
0 ETH0.0013888526.41106055
Release167996822023-03-10 19:04:47500 days ago1678475087IN
0xd808CF7B...e4b636456
0 ETH0.001718532.679897
Release166720392023-02-20 20:09:35518 days ago1676923775IN
0xd808CF7B...e4b636456
0 ETH0.0030688835.36156884
0x60806040156625822022-10-02 19:33:59659 days ago1664739239IN
 Create: PaymentSplitterConfigurable
0 ETH0.020165210

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
203573332024-07-21 20:35:2330 hrs ago1721594123
0xd808CF7B...e4b636456
0.0002835 ETH
201454022024-06-22 6:17:3530 days ago1719037055
0xd808CF7B...e4b636456
0.00000008 ETH
201452762024-06-22 5:51:5930 days ago1719035519
0xd808CF7B...e4b636456
0 ETH
201450712024-06-22 5:10:2330 days ago1719033023
0xd808CF7B...e4b636456
0.00000003 ETH
198316512024-05-09 9:40:3574 days ago1715247635
0xd808CF7B...e4b636456
0.0000162 ETH
198315892024-05-09 9:28:1174 days ago1715246891
0xd808CF7B...e4b636456
0.0000081 ETH
198315262024-05-09 9:15:3574 days ago1715246135
0xd808CF7B...e4b636456
0.0000081 ETH
194346012024-03-14 17:04:23130 days ago1710435863
0xd808CF7B...e4b636456
0.0011178 ETH
192228812024-02-14 1:16:11160 days ago1707873371
0xd808CF7B...e4b636456
0.001215 ETH
190086942024-01-15 0:26:11190 days ago1705278371
0xd808CF7B...e4b636456
0.00009199 ETH
190086942024-01-15 0:26:11190 days ago1705278371
0xd808CF7B...e4b636456
0.003969 ETH
190086942024-01-15 0:26:11190 days ago1705278371
0xd808CF7B...e4b636456
0.00000091 ETH
190086882024-01-15 0:24:59190 days ago1705278299
0xd808CF7B...e4b636456
0.0008343 ETH
190086252024-01-15 0:12:23190 days ago1705277543
0xd808CF7B...e4b636456
0.0015876 ETH
188847562023-12-28 14:39:23207 days ago1703774363
0xd808CF7B...e4b636456
0.00000092 ETH
188507692023-12-23 20:03:23212 days ago1703361803
0xd808CF7B...e4b636456
0.000243 ETH
188481632023-12-23 11:17:35212 days ago1703330255
0xd808CF7B...e4b636456
0.0029808 ETH
188481632023-12-23 11:17:35212 days ago1703330255
0xd808CF7B...e4b636456
0.0000496 ETH
187674012023-12-12 3:22:59224 days ago1702351379
0xd808CF7B...e4b636456
0.000081 ETH
187657412023-12-11 21:48:35224 days ago1702331315
0xd808CF7B...e4b636456
0.000081 ETH
187288422023-12-06 17:43:47229 days ago1701884627
0xd808CF7B...e4b636456
0.0000405 ETH
187101072023-12-04 2:45:23232 days ago1701657923
0xd808CF7B...e4b636456
0.00001399 ETH
185191412023-11-07 9:19:59258 days ago1699348799
0xd808CF7B...e4b636456
0.0002754 ETH
185146152023-11-06 18:06:35259 days ago1699293995
0xd808CF7B...e4b636456
0.000045 ETH
180649632023-09-04 18:39:59322 days ago1693852799
0xd808CF7B...e4b636456
0.0002 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PaymentSplitterConfigurable

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion
File 1 of 5 : PaymentSplitterConfigurable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether and ERC20 payments among a group of accounts. The sender does not need to be aware
 * that the Ether or token 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.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitterConfigurable is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(
        IERC20 indexed token,
        address to,
        uint256 amount
    );
    event PaymentReceived(address from, uint256 amount);
    event AccountProposed(
        address indexed currentAccount,
        address indexed proposedAccount,
        bytes32 proposalId
    );
    event AccountApproved(
        address indexed currentAccount,
        address indexed proposedAccount,
        bytes32 indexed proposalId
    );
    event AccountReplaced(
        address indexed previousAccount,
        address indexed currentAccount,
        bytes32 indexed proposalId
    );

    struct Proposal {
        address proposerAccount;
        address currentAccount;
        address proposedAccount;
        address[] approvals;
        uint256 deadline;
    }

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(uint256 => uint256)) private _erc20Released;

    mapping(address => uint256) private _addressIndex;

    mapping(bytes32 => Proposal) private _proposals;

    mapping(uint256 => uint256) private noncesUsed;

    /**
     * @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 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 total amount of `token` already released. `token` should be the address of an IERC20
     * contract. The `account` address can change over time, but the released amount wil be cumulative over the index.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        uint256 index = _addressIndex[account];
        if (index == 0 && _payees[index] != account) {
            return 0;
        }
        return _shares[index];
    }

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

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract. The `account` address can change over time, but the released amount wil be cumulative over the index.
     */
    function released(IERC20 token, address account)
        public
        view
        returns (uint256)
    {
        uint256 index = _addressIndex[account];
        if (index == 0 && _payees[index] != account) {
            return 0;
        }
        return _erc20Released[token][index];
    }

    /**
     * @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 {
        uint256 index = _addressIndex[account];
        require(
            _payees[index] == account && _shares[index] > 0,
            "PaymentSplitter: account has no shares"
        );

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(
            account,
            totalReceived,
            released(account)
        );

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

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

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

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        uint256 index = _addressIndex[account];
        require(
            _payees[index] == account && _shares[index] > 0,
            "PaymentSplitter: account has no shares"
        );

        uint256 totalReceived = token.balanceOf(address(this)) +
            totalReleased(token);
        uint256 payment = _pendingPayment(
            account,
            totalReceived,
            released(token, account)
        );

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

        _erc20Released[token][index] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev Views a pending transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function pendingRelease(address account)
        public
        view
        virtual
        returns (uint256)
    {
        require(shares(account) > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(
            account,
            totalReceived,
            released(account)
        );
        return payment;
    }

    /**
     * @dev Views a pending transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function pendingRelease(IERC20 token, address account)
        public
        view
        virtual
        returns (uint256)
    {
        require(shares(account) > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) +
            totalReleased(token);
        uint256 payment = _pendingPayment(
            account,
            totalReceived,
            released(token, account)
        );
        return payment;
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        uint256 index = _addressIndex[account];
        return
            (totalReceived * _shares[index]) / _totalShares - alreadyReleased;
    }

    /**
     * @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");
        uint256 index = _payees.length;
        require(
            _shares[index] == 0,
            "PaymentSplitter: account already has shares"
        );
        _addressIndex[account] = index;
        _payees.push(account);
        _shares[index] = shares_;
        _totalShares = _totalShares + shares_;

        emit PayeeAdded(account, shares_);
    }

    function proposePayeeReplacement(
        address currentAccount,
        address proposedAccount
    ) public {
        require(
            shares(_msgSender()) > 0,
            "PaymentSplitter: caller is not a payee"
        );
        require(
            proposedAccount != address(0),
            "PaymentSplitter: account is the zero address"
        );
        uint256 index = _addressIndex[currentAccount];
        require(
            currentAccount == _payees[index],
            "PaymentSplitter: current account does not match"
        );
        require(
            shares(proposedAccount) == 0,
            "PaymentSplitter: proposed account has shares"
        );
        uint256 proposerIndex = _addressIndex[_msgSender()];
        uint256 nonce = noncesUsed[proposerIndex];
        noncesUsed[proposerIndex] += 1;
        bytes32 proposalId = keccak256(
            abi.encodePacked(
                _msgSender(),
                currentAccount,
                proposedAccount,
                nonce
            )
        );
        _proposals[proposalId] = Proposal({
            proposerAccount: _msgSender(),
            currentAccount: currentAccount,
            proposedAccount: proposedAccount,
            approvals: new address[](0),
            deadline: block.timestamp + 3 days
        });
        emit AccountProposed(currentAccount, proposedAccount, proposalId);
    }

    function approvePayeeReplacement(bytes32 proposalId) public {
        require(
            shares(_msgSender()) > 0,
            "PaymentSplitter: caller is not a payee"
        );
        Proposal storage proposal = _proposals[proposalId];
        require(
            proposal.deadline > block.timestamp,
            "PaymentSplitter: proposal deadline has passed"
        );
        require(
            proposal.proposerAccount != _msgSender(),
            "PaymentSplitter: caller cannot be proposer account"
        );
        for (uint256 i; i < proposal.approvals.length; i++) {
            require(
                proposal.approvals[i] != _msgSender(),
                "PaymentSplitter: caller already approved"
            );
        }
        proposal.approvals.push(_msgSender());
        emit AccountApproved(
            proposal.currentAccount,
            proposal.proposedAccount,
            proposalId
        );
    }

    function executePayeeReplacement(bytes32 proposalId) public {
        require(
            shares(_msgSender()) > 0,
            "PaymentSplitter: caller is not a payee"
        );
        Proposal storage proposal = _proposals[proposalId];
        uint256 index = _addressIndex[proposal.currentAccount];
        require(
            proposal.currentAccount == _payees[index],
            "PaymentSplitter: invalid proposal"
        );
        require(
            proposal.approvals.length >= 2,
            "PaymentSplitter: insufficient approvals"
        );
        _payees[index] = proposal.proposedAccount;
        _addressIndex[proposal.proposedAccount] = index;
        delete _addressIndex[proposal.currentAccount];

        emit AccountReplaced(
            proposal.currentAccount,
            proposal.proposedAccount,
            proposalId
        );
    }

    function viewProposal(bytes32 proposalId)
        public
        view
        returns (Proposal memory proposal)
    {
        proposal = _proposals[proposalId];
    }
}

File 2 of 5 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 3 of 5 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 4 of 5 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 5 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 500
  },
  "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":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"currentAccount","type":"address"},{"indexed":true,"internalType":"address","name":"proposedAccount","type":"address"},{"indexed":true,"internalType":"bytes32","name":"proposalId","type":"bytes32"}],"name":"AccountApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"currentAccount","type":"address"},{"indexed":true,"internalType":"address","name":"proposedAccount","type":"address"},{"indexed":false,"internalType":"bytes32","name":"proposalId","type":"bytes32"}],"name":"AccountProposed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousAccount","type":"address"},{"indexed":true,"internalType":"address","name":"currentAccount","type":"address"},{"indexed":true,"internalType":"bytes32","name":"proposalId","type":"bytes32"}],"name":"AccountReplaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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":[{"internalType":"bytes32","name":"proposalId","type":"bytes32"}],"name":"approvePayeeReplacement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"proposalId","type":"bytes32"}],"name":"executePayeeReplacement","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":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"pendingRelease","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"pendingRelease","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"currentAccount","type":"address"},{"internalType":"address","name":"proposedAccount","type":"address"}],"name":"proposePayeeReplacement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"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":"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":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","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":"bytes32","name":"proposalId","type":"bytes32"}],"name":"viewProposal","outputs":[{"components":[{"internalType":"address","name":"proposerAccount","type":"address"},{"internalType":"address","name":"currentAccount","type":"address"},{"internalType":"address","name":"proposedAccount","type":"address"},{"internalType":"address[]","name":"approvals","type":"address[]"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct PaymentSplitterConfigurable.Proposal","name":"proposal","type":"tuple"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052604051620020a9380380620020a9833981016040819052620000269162000438565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b825181101562000157576200014283828151811062000111576200011162000516565b60200260200101518383815181106200012e576200012e62000516565b60200260200101516200016060201b60201c565b806200014e8162000542565b915050620000ee565b5050506200057a565b6001600160a01b038216620001cd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b600081116200021f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b60045460008181526002602052604090205415620002945760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b6001600160a01b038316600081815260076020908152604080832085905560048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b03191690941790935583825260029052908120839055546200030c9083906200055e565b600055604080516001600160a01b0385168152602081018490527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a1505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000397576200039762000356565b604052919050565b60006001600160401b03821115620003bb57620003bb62000356565b5060051b60200190565b600082601f830112620003d757600080fd5b81516020620003f0620003ea836200039f565b6200036c565b82815260059290921b840181019181810190868411156200041057600080fd5b8286015b848110156200042d578051835291830191830162000414565b509695505050505050565b600080604083850312156200044c57600080fd5b82516001600160401b03808211156200046457600080fd5b818501915085601f8301126200047957600080fd5b815160206200048c620003ea836200039f565b82815260059290921b84018101918181019089841115620004ac57600080fd5b948201945b83861015620004e35785516001600160a01b0381168114620004d35760008081fd5b82529482019490820190620004b1565b91880151919650909350505080821115620004fd57600080fd5b506200050c85828601620003c5565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016200055757620005576200052c565b5060010190565b808201808211156200057457620005746200052c565b92915050565b611b1f806200058a6000396000f3fe6080604052600436106100eb5760003560e01c80634bee57c81161008a578063ce7c2ac211610059578063ce7c2ac2146102c8578063d79779b2146102e8578063e33b7de31461031e578063f85092841461033357600080fd5b80634bee57c814610223578063616b617a146102435780638b83209b146102705780639852595c146102a857600080fd5b806332efbaf2116100c657806332efbaf21461019b5780633a98ef39146101ce578063406072a9146101e357806348b750441461020357600080fd5b8062fc088e146101395780631581272b1461015b578063191655871461017b57600080fd5b36610134577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561014557600080fd5b50610159610154366004611899565b610353565b005b34801561016757600080fd5b506101596101763660046118d2565b61071e565b34801561018757600080fd5b506101596101963660046118eb565b61094b565b3480156101a757600080fd5b506101bb6101b6366004611899565b610b26565b6040519081526020015b60405180910390f35b3480156101da57600080fd5b506000546101bb565b3480156101ef57600080fd5b506101bb6101fe366004611899565b610c37565b34801561020f57600080fd5b5061015961021e366004611899565b610cc8565b34801561022f57600080fd5b506101bb61023e3660046118eb565b610f44565b34801561024f57600080fd5b5061026361025e3660046118d2565b610fdb565b6040516101c59190611908565b34801561027c57600080fd5b5061029061028b3660046118d2565b6110b6565b6040516001600160a01b0390911681526020016101c5565b3480156102b457600080fd5b506101bb6102c33660046118eb565b6110e6565b3480156102d457600080fd5b506101bb6102e33660046118eb565b611160565b3480156102f457600080fd5b506101bb6103033660046118eb565b6001600160a01b031660009081526005602052604090205490565b34801561032a57600080fd5b506001546101bb565b34801561033f57600080fd5b5061015961034e3660046118d2565b6111da565b600061035e33611160565b116103bf5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a2063616c6c6572206973206e6f74206160448201526520706179656560d01b60648201526084015b60405180910390fd5b6001600160a01b03811661042a5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016103b6565b6001600160a01b038216600090815260076020526040902054600480548290811061045757610457611997565b6000918252602090912001546001600160a01b038481169116146104e35760405162461bcd60e51b815260206004820152602f60248201527f5061796d656e7453706c69747465723a2063757272656e74206163636f756e7460448201527f20646f6573206e6f74206d61746368000000000000000000000000000000000060648201526084016103b6565b6104ec82611160565b1561054e5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a2070726f706f736564206163636f756e60448201526b74206861732073686172657360a01b60648201526084016103b6565b3360009081526007602090815260408083205480845260099092528220805491926001919061057d83856119c3565b9091555060009050336040516bffffffffffffffffffffffff19606092831b8116602083015288831b811660348301529187901b9091166048820152605c8101839052607c016040516020818303038152906040528051906020012090506040518060a001604052806105ed3390565b6001600160a01b0390811682528881166020830152871660408201526060016000604051908082528060200260200182016040528015610637578160200160208202803683370190505b50815260200161064a426203f4806119c3565b9052600082815260086020908152604091829020835181546001600160a01b03199081166001600160a01b0392831617835585840151600184018054831691841691909117905593850151600283018054909516911617909255606083015180516106bb9260038501920190611807565b5060808201518160040155905050846001600160a01b0316866001600160a01b03167fc5fe24a82d2802fbedf7b30a1443223f620457f1656522863c19d586d7474f9b8360405161070e91815260200190565b60405180910390a3505050505050565b600061072933611160565b116107855760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a2063616c6c6572206973206e6f74206160448201526520706179656560d01b60648201526084016103b6565b600081815260086020908152604080832060018101546001600160a01b0316845260079092529091205460048054829081106107c3576107c3611997565b60009182526020909120015460018301546001600160a01b039081169116146108385760405162461bcd60e51b815260206004820152602160248201527f5061796d656e7453706c69747465723a20696e76616c69642070726f706f73616044820152601b60fa1b60648201526084016103b6565b60038201546002111561089d5760405162461bcd60e51b815260206004820152602760248201527f5061796d656e7453706c69747465723a20696e73756666696369656e7420617060448201526670726f76616c7360c81b60648201526084016103b6565b6002820154600480546001600160a01b0390921691839081106108c2576108c2611997565b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905560028501805484168352600790915260408083208590556001860180548516845281842084905591549154905187949283169391909216917ff74f5b1d2238714a6db733a2701bfa703916ceb8f1da2c35ef8fb2ceb5c85f5f9190a4505050565b6001600160a01b038116600081815260076020526040902054600480549192918390811061097b5761097b611997565b6000918252602090912001546001600160a01b03161480156109aa575060008181526002602052604090205415155b610a055760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016103b6565b6000610a1060015490565b610a1a90476119c3565b90506000610a318483610a2c876110e6565b61145c565b905080600003610a975760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016103b6565b60008381526003602052604081208054839290610ab59084906119c3565b925050819055508060016000828254610ace91906119c3565b90915550610ade905084826114b3565b604080516001600160a01b0386168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a150505050565b600080610b3283611160565b11610b8e5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016103b6565b6001600160a01b0383166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015610beb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0f91906119d6565b610c1991906119c3565b90506000610c2c8483610a2c8888610c37565b925050505b92915050565b6001600160a01b03811660009081526007602052604081205480158015610c8e5750826001600160a01b031660048281548110610c7657610c76611997565b6000918252602090912001546001600160a01b031614155b15610c9d576000915050610c31565b6001600160a01b03841660009081526006602090815260408083209383529290522054905092915050565b6001600160a01b0381166000818152600760205260409020546004805491929183908110610cf857610cf8611997565b6000918252602090912001546001600160a01b0316148015610d27575060008181526002602052604090205415155b610d825760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016103b6565b6001600160a01b0383166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015610ddf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0391906119d6565b610e0d91906119c3565b90506000610e208483610a2c8888610c37565b905080600003610e865760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016103b6565b6001600160a01b038516600090815260066020908152604080832086845290915281208054839290610eb99084906119c3565b90915550506001600160a01b03851660009081526005602052604081208054839290610ee69084906119c3565b90915550610ef790508585836115d1565b604080516001600160a01b038681168252602082018490528716917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a25050505050565b600080610f5083611160565b11610fac5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016103b6565b6000610fb760015490565b610fc190476119c3565b90506000610fd38483610a2c876110e6565b949350505050565b6040805160a0810182526000808252602082018190529181018290526060808201526080810191909152600082815260086020908152604091829020825160a08101845281546001600160a01b039081168252600183015481168285015260028301541681850152600382018054855181860281018601909652808652919492936060860193929083018282801561109c57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161107e575b505050505081526020016004820154815250509050919050565b6000600482815481106110cb576110cb611997565b6000918252602090912001546001600160a01b031692915050565b6001600160a01b0381166000908152600760205260408120548015801561113d5750826001600160a01b03166004828154811061112557611125611997565b6000918252602090912001546001600160a01b031614155b1561114b5750600092915050565b60009081526003602052604090205492915050565b6001600160a01b038116600090815260076020526040812054801580156111b75750826001600160a01b03166004828154811061119f5761119f611997565b6000918252602090912001546001600160a01b031614155b156111c55750600092915050565b60009081526002602052604090205492915050565b60006111e533611160565b116112415760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a2063616c6c6572206973206e6f74206160448201526520706179656560d01b60648201526084016103b6565b6000818152600860205260409020600481015442106112b85760405162461bcd60e51b815260206004820152602d60248201527f5061796d656e7453706c69747465723a2070726f706f73616c20646561646c6960448201526c1b99481a185cc81c185cdcd959609a1b60648201526084016103b6565b8054336001600160a01b03909116036113395760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2063616c6c65722063616e6e6f74206260448201527f652070726f706f736572206163636f756e74000000000000000000000000000060648201526084016103b6565b60005b60038201548110156113ec57336001600160a01b031682600301828154811061136757611367611997565b6000918252602090912001546001600160a01b0316036113da5760405162461bcd60e51b815260206004820152602860248201527f5061796d656e7453706c69747465723a2063616c6c657220616c726561647920604482015267185c1c1c9bdd995960c21b60648201526084016103b6565b806113e4816119ef565b91505061133c565b506003810180546001808201835560009283526020832090910180546001600160a01b0319163317905560028301549083015460405185936001600160a01b039384169392909216917fd48d302507de5112c21f5f387d0356d5554d046ff145e7aeaaf470f154b1f4f691a45050565b6001600160a01b0383166000908152600760209081526040808320548354818552600290935290832054909184916114949087611a08565b61149e9190611a1f565b6114a89190611a41565b9150505b9392505050565b804710156115035760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016103b6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611550576040519150601f19603f3d011682016040523d82523d6000602084013e611555565b606091505b50509050806115cc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016103b6565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564908401526115cc928692916000916116769185169084906116f3565b8051909150156115cc57808060200190518101906116949190611a54565b6115cc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103b6565b6060610fd38484600085856001600160a01b0385163b6117555760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103b6565b600080866001600160a01b031685876040516117719190611a9a565b60006040518083038185875af1925050503d80600081146117ae576040519150601f19603f3d011682016040523d82523d6000602084013e6117b3565b606091505b50915091506117c38282866117ce565b979650505050505050565b606083156117dd5750816114ac565b8251156117ed5782518084602001fd5b8160405162461bcd60e51b81526004016103b69190611ab6565b82805482825590600052602060002090810192821561185c579160200282015b8281111561185c57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611827565b5061186892915061186c565b5090565b5b80821115611868576000815560010161186d565b6001600160a01b038116811461189657600080fd5b50565b600080604083850312156118ac57600080fd5b82356118b781611881565b915060208301356118c781611881565b809150509250929050565b6000602082840312156118e457600080fd5b5035919050565b6000602082840312156118fd57600080fd5b81356114ac81611881565b6000602080835260c083016001600160a01b0380865116838601528083870151166040860152806040870151166060860152606086015160a0608087015282815180855260e0880191508583019450600092505b8083101561197e5784518416825293850193600192909201919085019061195c565b50608088015160a0880152809550505050505092915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610c3157610c316119ad565b6000602082840312156119e857600080fd5b5051919050565b600060018201611a0157611a016119ad565b5060010190565b8082028115828204841417610c3157610c316119ad565b600082611a3c57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610c3157610c316119ad565b600060208284031215611a6657600080fd5b815180151581146114ac57600080fd5b60005b83811015611a91578181015183820152602001611a79565b50506000910152565b60008251611aac818460208701611a76565b9190910192915050565b6020815260008251806020840152611ad5816040850160208701611a76565b601f01601f1916919091016040019291505056fea26469706673582212204b80beb13888c9a7b7de139d6bf562955735f5d5ec2e62338e52b55e9bb70b5d64736f6c634300081100330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000060000000000000000000000002278de986e7f4d3cd31463e3f5cb3a10f985b511000000000000000000000000361ed1c2a8bbde0f8b3c96202fbc03e81a3ae3d7000000000000000000000000feedbf87479e80f344900818ce191322df8a23a00000000000000000000000002d44b137534c8d4ba71635fc8a0e941fece9e30200000000000000000000000026f2314b26693ef585e95954240ccf2b4500477a0000000000000000000000006f1f02415ff9cb3c39ecddf03b79d724897e597d0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000073a000000000000000000000000000000000000000000000000000000000000073a000000000000000000000000000000000000000000000000000000000000303e000000000000000000000000000000000000000000000000000000000000303e000000000000000000000000000000000000000000000000000000000000268e000000000000000000000000000000000000000000000000000000000000f122

Deployed Bytecode

0x6080604052600436106100eb5760003560e01c80634bee57c81161008a578063ce7c2ac211610059578063ce7c2ac2146102c8578063d79779b2146102e8578063e33b7de31461031e578063f85092841461033357600080fd5b80634bee57c814610223578063616b617a146102435780638b83209b146102705780639852595c146102a857600080fd5b806332efbaf2116100c657806332efbaf21461019b5780633a98ef39146101ce578063406072a9146101e357806348b750441461020357600080fd5b8062fc088e146101395780631581272b1461015b578063191655871461017b57600080fd5b36610134577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561014557600080fd5b50610159610154366004611899565b610353565b005b34801561016757600080fd5b506101596101763660046118d2565b61071e565b34801561018757600080fd5b506101596101963660046118eb565b61094b565b3480156101a757600080fd5b506101bb6101b6366004611899565b610b26565b6040519081526020015b60405180910390f35b3480156101da57600080fd5b506000546101bb565b3480156101ef57600080fd5b506101bb6101fe366004611899565b610c37565b34801561020f57600080fd5b5061015961021e366004611899565b610cc8565b34801561022f57600080fd5b506101bb61023e3660046118eb565b610f44565b34801561024f57600080fd5b5061026361025e3660046118d2565b610fdb565b6040516101c59190611908565b34801561027c57600080fd5b5061029061028b3660046118d2565b6110b6565b6040516001600160a01b0390911681526020016101c5565b3480156102b457600080fd5b506101bb6102c33660046118eb565b6110e6565b3480156102d457600080fd5b506101bb6102e33660046118eb565b611160565b3480156102f457600080fd5b506101bb6103033660046118eb565b6001600160a01b031660009081526005602052604090205490565b34801561032a57600080fd5b506001546101bb565b34801561033f57600080fd5b5061015961034e3660046118d2565b6111da565b600061035e33611160565b116103bf5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a2063616c6c6572206973206e6f74206160448201526520706179656560d01b60648201526084015b60405180910390fd5b6001600160a01b03811661042a5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016103b6565b6001600160a01b038216600090815260076020526040902054600480548290811061045757610457611997565b6000918252602090912001546001600160a01b038481169116146104e35760405162461bcd60e51b815260206004820152602f60248201527f5061796d656e7453706c69747465723a2063757272656e74206163636f756e7460448201527f20646f6573206e6f74206d61746368000000000000000000000000000000000060648201526084016103b6565b6104ec82611160565b1561054e5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a2070726f706f736564206163636f756e60448201526b74206861732073686172657360a01b60648201526084016103b6565b3360009081526007602090815260408083205480845260099092528220805491926001919061057d83856119c3565b9091555060009050336040516bffffffffffffffffffffffff19606092831b8116602083015288831b811660348301529187901b9091166048820152605c8101839052607c016040516020818303038152906040528051906020012090506040518060a001604052806105ed3390565b6001600160a01b0390811682528881166020830152871660408201526060016000604051908082528060200260200182016040528015610637578160200160208202803683370190505b50815260200161064a426203f4806119c3565b9052600082815260086020908152604091829020835181546001600160a01b03199081166001600160a01b0392831617835585840151600184018054831691841691909117905593850151600283018054909516911617909255606083015180516106bb9260038501920190611807565b5060808201518160040155905050846001600160a01b0316866001600160a01b03167fc5fe24a82d2802fbedf7b30a1443223f620457f1656522863c19d586d7474f9b8360405161070e91815260200190565b60405180910390a3505050505050565b600061072933611160565b116107855760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a2063616c6c6572206973206e6f74206160448201526520706179656560d01b60648201526084016103b6565b600081815260086020908152604080832060018101546001600160a01b0316845260079092529091205460048054829081106107c3576107c3611997565b60009182526020909120015460018301546001600160a01b039081169116146108385760405162461bcd60e51b815260206004820152602160248201527f5061796d656e7453706c69747465723a20696e76616c69642070726f706f73616044820152601b60fa1b60648201526084016103b6565b60038201546002111561089d5760405162461bcd60e51b815260206004820152602760248201527f5061796d656e7453706c69747465723a20696e73756666696369656e7420617060448201526670726f76616c7360c81b60648201526084016103b6565b6002820154600480546001600160a01b0390921691839081106108c2576108c2611997565b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905560028501805484168352600790915260408083208590556001860180548516845281842084905591549154905187949283169391909216917ff74f5b1d2238714a6db733a2701bfa703916ceb8f1da2c35ef8fb2ceb5c85f5f9190a4505050565b6001600160a01b038116600081815260076020526040902054600480549192918390811061097b5761097b611997565b6000918252602090912001546001600160a01b03161480156109aa575060008181526002602052604090205415155b610a055760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016103b6565b6000610a1060015490565b610a1a90476119c3565b90506000610a318483610a2c876110e6565b61145c565b905080600003610a975760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016103b6565b60008381526003602052604081208054839290610ab59084906119c3565b925050819055508060016000828254610ace91906119c3565b90915550610ade905084826114b3565b604080516001600160a01b0386168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a150505050565b600080610b3283611160565b11610b8e5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016103b6565b6001600160a01b0383166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015610beb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0f91906119d6565b610c1991906119c3565b90506000610c2c8483610a2c8888610c37565b925050505b92915050565b6001600160a01b03811660009081526007602052604081205480158015610c8e5750826001600160a01b031660048281548110610c7657610c76611997565b6000918252602090912001546001600160a01b031614155b15610c9d576000915050610c31565b6001600160a01b03841660009081526006602090815260408083209383529290522054905092915050565b6001600160a01b0381166000818152600760205260409020546004805491929183908110610cf857610cf8611997565b6000918252602090912001546001600160a01b0316148015610d27575060008181526002602052604090205415155b610d825760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016103b6565b6001600160a01b0383166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015610ddf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0391906119d6565b610e0d91906119c3565b90506000610e208483610a2c8888610c37565b905080600003610e865760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016103b6565b6001600160a01b038516600090815260066020908152604080832086845290915281208054839290610eb99084906119c3565b90915550506001600160a01b03851660009081526005602052604081208054839290610ee69084906119c3565b90915550610ef790508585836115d1565b604080516001600160a01b038681168252602082018490528716917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a25050505050565b600080610f5083611160565b11610fac5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016103b6565b6000610fb760015490565b610fc190476119c3565b90506000610fd38483610a2c876110e6565b949350505050565b6040805160a0810182526000808252602082018190529181018290526060808201526080810191909152600082815260086020908152604091829020825160a08101845281546001600160a01b039081168252600183015481168285015260028301541681850152600382018054855181860281018601909652808652919492936060860193929083018282801561109c57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161107e575b505050505081526020016004820154815250509050919050565b6000600482815481106110cb576110cb611997565b6000918252602090912001546001600160a01b031692915050565b6001600160a01b0381166000908152600760205260408120548015801561113d5750826001600160a01b03166004828154811061112557611125611997565b6000918252602090912001546001600160a01b031614155b1561114b5750600092915050565b60009081526003602052604090205492915050565b6001600160a01b038116600090815260076020526040812054801580156111b75750826001600160a01b03166004828154811061119f5761119f611997565b6000918252602090912001546001600160a01b031614155b156111c55750600092915050565b60009081526002602052604090205492915050565b60006111e533611160565b116112415760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a2063616c6c6572206973206e6f74206160448201526520706179656560d01b60648201526084016103b6565b6000818152600860205260409020600481015442106112b85760405162461bcd60e51b815260206004820152602d60248201527f5061796d656e7453706c69747465723a2070726f706f73616c20646561646c6960448201526c1b99481a185cc81c185cdcd959609a1b60648201526084016103b6565b8054336001600160a01b03909116036113395760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2063616c6c65722063616e6e6f74206260448201527f652070726f706f736572206163636f756e74000000000000000000000000000060648201526084016103b6565b60005b60038201548110156113ec57336001600160a01b031682600301828154811061136757611367611997565b6000918252602090912001546001600160a01b0316036113da5760405162461bcd60e51b815260206004820152602860248201527f5061796d656e7453706c69747465723a2063616c6c657220616c726561647920604482015267185c1c1c9bdd995960c21b60648201526084016103b6565b806113e4816119ef565b91505061133c565b506003810180546001808201835560009283526020832090910180546001600160a01b0319163317905560028301549083015460405185936001600160a01b039384169392909216917fd48d302507de5112c21f5f387d0356d5554d046ff145e7aeaaf470f154b1f4f691a45050565b6001600160a01b0383166000908152600760209081526040808320548354818552600290935290832054909184916114949087611a08565b61149e9190611a1f565b6114a89190611a41565b9150505b9392505050565b804710156115035760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016103b6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611550576040519150601f19603f3d011682016040523d82523d6000602084013e611555565b606091505b50509050806115cc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016103b6565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564908401526115cc928692916000916116769185169084906116f3565b8051909150156115cc57808060200190518101906116949190611a54565b6115cc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103b6565b6060610fd38484600085856001600160a01b0385163b6117555760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103b6565b600080866001600160a01b031685876040516117719190611a9a565b60006040518083038185875af1925050503d80600081146117ae576040519150601f19603f3d011682016040523d82523d6000602084013e6117b3565b606091505b50915091506117c38282866117ce565b979650505050505050565b606083156117dd5750816114ac565b8251156117ed5782518084602001fd5b8160405162461bcd60e51b81526004016103b69190611ab6565b82805482825590600052602060002090810192821561185c579160200282015b8281111561185c57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611827565b5061186892915061186c565b5090565b5b80821115611868576000815560010161186d565b6001600160a01b038116811461189657600080fd5b50565b600080604083850312156118ac57600080fd5b82356118b781611881565b915060208301356118c781611881565b809150509250929050565b6000602082840312156118e457600080fd5b5035919050565b6000602082840312156118fd57600080fd5b81356114ac81611881565b6000602080835260c083016001600160a01b0380865116838601528083870151166040860152806040870151166060860152606086015160a0608087015282815180855260e0880191508583019450600092505b8083101561197e5784518416825293850193600192909201919085019061195c565b50608088015160a0880152809550505050505092915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610c3157610c316119ad565b6000602082840312156119e857600080fd5b5051919050565b600060018201611a0157611a016119ad565b5060010190565b8082028115828204841417610c3157610c316119ad565b600082611a3c57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610c3157610c316119ad565b600060208284031215611a6657600080fd5b815180151581146114ac57600080fd5b60005b83811015611a91578181015183820152602001611a79565b50506000910152565b60008251611aac818460208701611a76565b9190910192915050565b6020815260008251806020840152611ad5816040850160208701611a76565b601f01601f1916919091016040019291505056fea26469706673582212204b80beb13888c9a7b7de139d6bf562955735f5d5ec2e62338e52b55e9bb70b5d64736f6c63430008110033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000060000000000000000000000002278de986e7f4d3cd31463e3f5cb3a10f985b511000000000000000000000000361ed1c2a8bbde0f8b3c96202fbc03e81a3ae3d7000000000000000000000000feedbf87479e80f344900818ce191322df8a23a00000000000000000000000002d44b137534c8d4ba71635fc8a0e941fece9e30200000000000000000000000026f2314b26693ef585e95954240ccf2b4500477a0000000000000000000000006f1f02415ff9cb3c39ecddf03b79d724897e597d0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000073a000000000000000000000000000000000000000000000000000000000000073a000000000000000000000000000000000000000000000000000000000000303e000000000000000000000000000000000000000000000000000000000000303e000000000000000000000000000000000000000000000000000000000000268e000000000000000000000000000000000000000000000000000000000000f122

-----Decoded View---------------
Arg [0] : payees (address[]): 0x2278de986e7F4d3cD31463e3f5cb3A10f985B511,0x361eD1C2a8BBde0f8b3C96202fbC03E81A3Ae3d7,0xfEEdBF87479E80f344900818CE191322DF8A23a0,0x2d44b137534c8D4BA71635fc8A0E941fECE9E302,0x26F2314b26693Ef585e95954240CCf2b4500477a,0x6F1f02415Ff9CB3C39Ecddf03b79D724897e597d
Arg [1] : shares_ (uint256[]): 1850,1850,12350,12350,9870,61730

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [3] : 0000000000000000000000002278de986e7f4d3cd31463e3f5cb3a10f985b511
Arg [4] : 000000000000000000000000361ed1c2a8bbde0f8b3c96202fbc03e81a3ae3d7
Arg [5] : 000000000000000000000000feedbf87479e80f344900818ce191322df8a23a0
Arg [6] : 0000000000000000000000002d44b137534c8d4ba71635fc8a0e941fece9e302
Arg [7] : 00000000000000000000000026f2314b26693ef585e95954240ccf2b4500477a
Arg [8] : 0000000000000000000000006f1f02415ff9cb3c39ecddf03b79d724897e597d
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [10] : 000000000000000000000000000000000000000000000000000000000000073a
Arg [11] : 000000000000000000000000000000000000000000000000000000000000073a
Arg [12] : 000000000000000000000000000000000000000000000000000000000000303e
Arg [13] : 000000000000000000000000000000000000000000000000000000000000303e
Arg [14] : 000000000000000000000000000000000000000000000000000000000000268e
Arg [15] : 000000000000000000000000000000000000000000000000000000000000f122


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.