ETH Price: $2,618.80 (+0.76%)

Contract

0xFcfD26569bE92B1cf46811bca2D45b0BFc3664C3
 

Overview

ETH Balance

0.057599600500000001 ETH

Eth Value

$150.84 (@ $2,618.80/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Release167195772023-02-27 12:38:23599 days ago1677501503IN
0xFcfD2656...BFc3664C3
0 ETH0.0009655620.58298975
Release167195702023-02-27 12:36:59599 days ago1677501419IN
0xFcfD2656...BFc3664C3
0 ETH0.0011009922.28230229
Transfer151166942022-07-10 19:11:47830 days ago1657480307IN
0xFcfD2656...BFc3664C3
0.05844 ETH0.0016412272.34217393
Transfer149199472022-06-07 8:57:22864 days ago1654592242IN
0xFcfD2656...BFc3664C3
0.060825 ETH0.000862138
Transfer147733882022-05-14 11:35:55888 days ago1652528155IN
0xFcfD2656...BFc3664C3
0.03199 ETH0.0011404650.26947636
Transfer146657562022-04-27 9:43:42905 days ago1651052622IN
0xFcfD2656...BFc3664C3
0.032 ETH0.000652228.74806952
Transfer145604092022-04-10 21:38:49921 days ago1649626729IN
0xFcfD2656...BFc3664C3
0.0253 ETH0.001269755.9663454
Transfer145252052022-04-05 9:52:13927 days ago1649152333IN
0xFcfD2656...BFc3664C3
0.01705 ETH0.0011988252.84199957
Transfer144745432022-03-28 11:58:35935 days ago1648468715IN
0xFcfD2656...BFc3664C3
0.035425 ETH0.0007215331.80408905
Transfer144146582022-03-19 4:18:16944 days ago1647663496IN
0xFcfD2656...BFc3664C3
0.0225 ETH0.0006352328
Transfer143583342022-03-10 9:36:48953 days ago1646905008IN
0xFcfD2656...BFc3664C3
0.03725 ETH0.0005717425.20158796
Transfer143126092022-03-03 7:17:20960 days ago1646291840IN
0xFcfD2656...BFc3664C3
0.082525 ETH0.0008533237.61304069
Transfer142568832022-02-22 16:18:00968 days ago1645546680IN
0xFcfD2656...BFc3664C3
0.03965 ETH0.00258659114.01236086
Transfer141855702022-02-11 15:31:42979 days ago1644593502IN
0xFcfD2656...BFc3664C3
0.024995 ETH0.0016171471.28082159
Release141841612022-02-11 10:20:26980 days ago1644574826IN
0xFcfD2656...BFc3664C3
0 ETH0.0018708937.86402239
Release141841562022-02-11 10:18:42980 days ago1644574722IN
0xFcfD2656...BFc3664C3
0 ETH0.0016383834.92537291
Transfer141539812022-02-06 17:48:55984 days ago1644169735IN
0xFcfD2656...BFc3664C3
0.319 ETH0.0017600477.57949091
Transfer141131202022-01-31 10:33:37991 days ago1643625217IN
0xFcfD2656...BFc3664C3
0.67990495 ETH0.0014263262.86976114
Transfer140393422022-01-20 0:53:371002 days ago1642640017IN
0xFcfD2656...BFc3664C3
0.346575 ETH0.00234353103.29845184
Transfer139810082022-01-11 0:32:461011 days ago1641861166IN
0xFcfD2656...BFc3664C3
0.144695 ETH0.00407123179.45244335
Transfer139304472022-01-03 4:43:441019 days ago1641185024IN
0xFcfD2656...BFc3664C3
0.1021755 ETH0.0021180893.36115482
Transfer138997422021-12-29 10:44:391024 days ago1640774679IN
0xFcfD2656...BFc3664C3
0.027545 ETH0.0019244484.82591068
Transfer138687322021-12-24 15:35:451028 days ago1640360145IN
0xFcfD2656...BFc3664C3
0.0334 ETH0.001351559.57175689
Transfer138420342021-12-20 12:34:581033 days ago1640003698IN
0xFcfD2656...BFc3664C3
0.0555005 ETH0.0013605659.97115075
Transfer138018402021-12-14 7:07:391039 days ago1639465659IN
0xFcfD2656...BFc3664C3
0.04755 ETH0.0018249580.44054242
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
204668022024-08-06 3:19:5973 days ago1722914399
0xFcfD2656...BFc3664C3
0 ETH
193121382024-02-26 13:48:23234 days ago1708955303
0xFcfD2656...BFc3664C3
0.000235 ETH
188665022023-12-26 1:09:35297 days ago1703552975
0xFcfD2656...BFc3664C3
0.0025 ETH
187774172023-12-13 13:01:59310 days ago1702472519
0xFcfD2656...BFc3664C3
0.0002376 ETH
187151882023-12-04 19:48:47318 days ago1701719327
0xFcfD2656...BFc3664C3
0.00025 ETH
186948412023-12-01 23:27:59321 days ago1701473279
0xFcfD2656...BFc3664C3
0.00025 ETH
186948012023-12-01 23:19:59321 days ago1701472799
0xFcfD2656...BFc3664C3
0.00025 ETH
186272462023-11-22 12:22:23331 days ago1700655743
0xFcfD2656...BFc3664C3
0.00025 ETH
186272192023-11-22 12:16:59331 days ago1700655419
0xFcfD2656...BFc3664C3
0.00025 ETH
184028962023-10-22 2:35:47362 days ago1697942147
0xFcfD2656...BFc3664C3
0.00025 ETH
181024472023-09-10 0:37:35404 days ago1694306255
0xFcfD2656...BFc3664C3
0.000385 ETH
181024472023-09-10 0:37:35404 days ago1694306255
0xFcfD2656...BFc3664C3
0.000385 ETH
181024472023-09-10 0:37:35404 days ago1694306255
0xFcfD2656...BFc3664C3
0.000385 ETH
179499832023-08-19 16:23:11425 days ago1692462191
0xFcfD2656...BFc3664C3
0.000535 ETH
179195232023-08-15 10:03:23430 days ago1692093803
0xFcfD2656...BFc3664C3
0.000385 ETH
174369002023-06-08 16:57:35497 days ago1686243455
0xFcfD2656...BFc3664C3
0.000095 ETH
173131942023-05-22 6:55:59515 days ago1684738559
0xFcfD2656...BFc3664C3
0.000077 ETH
172998012023-05-20 9:38:47517 days ago1684575527
0xFcfD2656...BFc3664C3
0.000078 ETH
172997922023-05-20 9:36:59517 days ago1684575419
0xFcfD2656...BFc3664C3
0.000077 ETH
172529692023-05-13 18:56:47523 days ago1684004207
0xFcfD2656...BFc3664C3
0.00039 ETH
171494762023-04-29 4:47:59538 days ago1682743679
0xFcfD2656...BFc3664C3
0.000098 ETH
171419292023-04-28 3:22:47539 days ago1682652167
0xFcfD2656...BFc3664C3
0.000385 ETH
171419292023-04-28 3:22:47539 days ago1682652167
0xFcfD2656...BFc3664C3
0.000385 ETH
171419292023-04-28 3:22:47539 days ago1682652167
0xFcfD2656...BFc3664C3
0.000385 ETH
171419292023-04-28 3:22:47539 days ago1682652167
0xFcfD2656...BFc3664C3
0.000385 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Shareholders

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : shareholders.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;

import "@openzeppelin/contracts/finance/PaymentSplitter.sol";

contract Shareholders is PaymentSplitter {
    constructor(address[] memory holders, uint256[] memory shares)
        PaymentSplitter(holders, shares)
    {}
}

File 2 of 5 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Address.sol";
import "../utils/Context.sol";
import "../utils/math/SafeMath.sol";

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

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

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

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

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 5 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 5 of 5 : 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": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"holders","type":"address[]"},{"internalType":"uint256[]","name":"shares","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":"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"}]

60806040523480156200001157600080fd5b50604051620016fb380380620016fb833981810160405281019062000037919062000535565b8181805182511462000080576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200007790620007d5565b60405180910390fd5b6000825111620000c7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000be9062000819565b60405180910390fd5b60005b82518110156200017e576200016883828151811062000112577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015183838151811062000154577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516200018960201b60201c565b808062000175906200099b565b915050620000ca565b505050505062000a7b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620001fc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001f390620007b3565b60405180910390fd5b6000811162000242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000239906200083b565b60405180910390fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414620002c7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002be90620007f7565b60405180910390fd5b6004829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550806000546200037e919062000900565b6000819055507f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac8282604051620003b792919062000786565b60405180910390a15050565b6000620003da620003d48462000891565b6200085d565b90508083825260208201905082856020860282011115620003fa57600080fd5b60005b858110156200042e5781620004138882620004ad565b845260208401935060208301925050600181019050620003fd565b5050509392505050565b60006200044f6200044984620008c0565b6200085d565b905080838252602082019050828560208602820111156200046f57600080fd5b60005b85811015620004a357816200048888826200051e565b84526020840193506020830192505060018101905062000472565b5050509392505050565b600081519050620004be8162000a47565b92915050565b600082601f830112620004d657600080fd5b8151620004e8848260208601620003c3565b91505092915050565b600082601f8301126200050357600080fd5b81516200051584826020860162000438565b91505092915050565b6000815190506200052f8162000a61565b92915050565b600080604083850312156200054957600080fd5b600083015167ffffffffffffffff8111156200056457600080fd5b6200057285828601620004c4565b925050602083015167ffffffffffffffff8111156200059057600080fd5b6200059e85828601620004f1565b9150509250929050565b620005b3816200095d565b82525050565b6000620005c8602c83620008ef565b91507f5061796d656e7453706c69747465723a206163636f756e74206973207468652060008301527f7a65726f206164647265737300000000000000000000000000000000000000006020830152604082019050919050565b600062000630603283620008ef565b91507f5061796d656e7453706c69747465723a2070617965657320616e64207368617260008301527f6573206c656e677468206d69736d6174636800000000000000000000000000006020830152604082019050919050565b600062000698602b83620008ef565b91507f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960008301527f20686173207368617265730000000000000000000000000000000000000000006020830152604082019050919050565b600062000700601a83620008ef565b91507f5061796d656e7453706c69747465723a206e6f207061796565730000000000006000830152602082019050919050565b600062000742601d83620008ef565b91507f5061796d656e7453706c69747465723a207368617265732061726520300000006000830152602082019050919050565b620007808162000991565b82525050565b60006040820190506200079d6000830185620005a8565b620007ac602083018462000775565b9392505050565b60006020820190508181036000830152620007ce81620005b9565b9050919050565b60006020820190508181036000830152620007f08162000621565b9050919050565b60006020820190508181036000830152620008128162000689565b9050919050565b600060208201905081810360008301526200083481620006f1565b9050919050565b60006020820190508181036000830152620008568162000733565b9050919050565b6000604051905081810181811067ffffffffffffffff8211171562000887576200088662000a18565b5b8060405250919050565b600067ffffffffffffffff821115620008af57620008ae62000a18565b5b602082029050602081019050919050565b600067ffffffffffffffff821115620008de57620008dd62000a18565b5b602082029050602081019050919050565b600082825260208201905092915050565b60006200090d8262000991565b91506200091a8362000991565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620009525762000951620009e9565b5b828201905092915050565b60006200096a8262000971565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000620009a88262000991565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415620009de57620009dd620009e9565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000a52816200095d565b811462000a5e57600080fd5b50565b62000a6c8162000991565b811462000a7857600080fd5b50565b610c708062000a8b6000396000f3fe6080604052600436106100595760003560e01c806319165587146100a55780633a98ef39146100ce5780638b83209b146100f95780639852595c14610136578063ce7c2ac214610173578063e33b7de3146101b0576100a0565b366100a0577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100876101db565b3460405161009692919061091e565b60405180910390a1005b600080fd5b3480156100b157600080fd5b506100cc60048036038101906100c791906106ba565b6101e3565b005b3480156100da57600080fd5b506100e361044b565b6040516100f091906109c7565b60405180910390f35b34801561010557600080fd5b50610120600480360381019061011b91906106e3565b610454565b60405161012d91906108da565b60405180910390f35b34801561014257600080fd5b5061015d60048036038101906101589190610691565b6104c2565b60405161016a91906109c7565b60405180910390f35b34801561017f57600080fd5b5061019a60048036038101906101959190610691565b61050b565b6040516101a791906109c7565b60405180910390f35b3480156101bc57600080fd5b506101c5610554565b6040516101d291906109c7565b60405180910390f35b600033905090565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025c90610947565b60405180910390fd5b60006001544761027591906109fe565b90506000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600054600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054846103079190610a85565b6103119190610a54565b61031b9190610adf565b90506000811415610361576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610358906109a7565b60405180910390fd5b80600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546103ac91906109fe565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550806001546103fd91906109fe565b60018190555061040d838261055e565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056838260405161043e9291906108f5565b60405180910390a1505050565b60008054905090565b600060048281548110610490577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600154905090565b804710156105a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059890610987565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516105c7906108c5565b60006040518083038185875af1925050503d8060008114610604576040519150601f19603f3d011682016040523d82523d6000602084013e610609565b606091505b505090508061064d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064490610967565b60405180910390fd5b505050565b60008135905061066181610bf5565b92915050565b60008135905061067681610c0c565b92915050565b60008135905061068b81610c23565b92915050565b6000602082840312156106a357600080fd5b60006106b184828501610652565b91505092915050565b6000602082840312156106cc57600080fd5b60006106da84828501610667565b91505092915050565b6000602082840312156106f557600080fd5b60006107038482850161067c565b91505092915050565b61071581610b61565b82525050565b61072481610b13565b82525050565b60006107376026836109ed565b91507f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008301527f73686172657300000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061079d603a836109ed565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b6000610803601d836109ed565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b6000610843602b836109ed565b91507f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008301527f647565207061796d656e740000000000000000000000000000000000000000006020830152604082019050919050565b60006108a96000836109e2565b9150600082019050919050565b6108bf81610b57565b82525050565b60006108d08261089c565b9150819050919050565b60006020820190506108ef600083018461071b565b92915050565b600060408201905061090a600083018561070c565b61091760208301846108b6565b9392505050565b6000604082019050610933600083018561071b565b61094060208301846108b6565b9392505050565b600060208201905081810360008301526109608161072a565b9050919050565b6000602082019050818103600083015261098081610790565b9050919050565b600060208201905081810360008301526109a0816107f6565b9050919050565b600060208201905081810360008301526109c081610836565b9050919050565b60006020820190506109dc60008301846108b6565b92915050565b600081905092915050565b600082825260208201905092915050565b6000610a0982610b57565b9150610a1483610b57565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610a4957610a48610b97565b5b828201905092915050565b6000610a5f82610b57565b9150610a6a83610b57565b925082610a7a57610a79610bc6565b5b828204905092915050565b6000610a9082610b57565b9150610a9b83610b57565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610ad457610ad3610b97565b5b828202905092915050565b6000610aea82610b57565b9150610af583610b57565b925082821015610b0857610b07610b97565b5b828203905092915050565b6000610b1e82610b37565b9050919050565b6000610b3082610b37565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610b6c82610b73565b9050919050565b6000610b7e82610b85565b9050919050565b6000610b9082610b37565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b610bfe81610b13565b8114610c0957600080fd5b50565b610c1581610b25565b8114610c2057600080fd5b50565b610c2c81610b57565b8114610c3757600080fd5b5056fea2646970667358221220fd0926dd72a905d1faf9deb5f5eef61ddea0eb4557553227199782ced51a6fac64736f6c63430008000033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006027b4c9ad98ad5dc9ee984ed699a2079d40141600000000000000000000000085696c8684f13e4ac9399eec92604c03d708f7f200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000005f

Deployed Bytecode

0x6080604052600436106100595760003560e01c806319165587146100a55780633a98ef39146100ce5780638b83209b146100f95780639852595c14610136578063ce7c2ac214610173578063e33b7de3146101b0576100a0565b366100a0577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100876101db565b3460405161009692919061091e565b60405180910390a1005b600080fd5b3480156100b157600080fd5b506100cc60048036038101906100c791906106ba565b6101e3565b005b3480156100da57600080fd5b506100e361044b565b6040516100f091906109c7565b60405180910390f35b34801561010557600080fd5b50610120600480360381019061011b91906106e3565b610454565b60405161012d91906108da565b60405180910390f35b34801561014257600080fd5b5061015d60048036038101906101589190610691565b6104c2565b60405161016a91906109c7565b60405180910390f35b34801561017f57600080fd5b5061019a60048036038101906101959190610691565b61050b565b6040516101a791906109c7565b60405180910390f35b3480156101bc57600080fd5b506101c5610554565b6040516101d291906109c7565b60405180910390f35b600033905090565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025c90610947565b60405180910390fd5b60006001544761027591906109fe565b90506000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600054600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054846103079190610a85565b6103119190610a54565b61031b9190610adf565b90506000811415610361576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610358906109a7565b60405180910390fd5b80600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546103ac91906109fe565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550806001546103fd91906109fe565b60018190555061040d838261055e565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056838260405161043e9291906108f5565b60405180910390a1505050565b60008054905090565b600060048281548110610490577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600154905090565b804710156105a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059890610987565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516105c7906108c5565b60006040518083038185875af1925050503d8060008114610604576040519150601f19603f3d011682016040523d82523d6000602084013e610609565b606091505b505090508061064d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064490610967565b60405180910390fd5b505050565b60008135905061066181610bf5565b92915050565b60008135905061067681610c0c565b92915050565b60008135905061068b81610c23565b92915050565b6000602082840312156106a357600080fd5b60006106b184828501610652565b91505092915050565b6000602082840312156106cc57600080fd5b60006106da84828501610667565b91505092915050565b6000602082840312156106f557600080fd5b60006107038482850161067c565b91505092915050565b61071581610b61565b82525050565b61072481610b13565b82525050565b60006107376026836109ed565b91507f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008301527f73686172657300000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061079d603a836109ed565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b6000610803601d836109ed565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b6000610843602b836109ed565b91507f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008301527f647565207061796d656e740000000000000000000000000000000000000000006020830152604082019050919050565b60006108a96000836109e2565b9150600082019050919050565b6108bf81610b57565b82525050565b60006108d08261089c565b9150819050919050565b60006020820190506108ef600083018461071b565b92915050565b600060408201905061090a600083018561070c565b61091760208301846108b6565b9392505050565b6000604082019050610933600083018561071b565b61094060208301846108b6565b9392505050565b600060208201905081810360008301526109608161072a565b9050919050565b6000602082019050818103600083015261098081610790565b9050919050565b600060208201905081810360008301526109a0816107f6565b9050919050565b600060208201905081810360008301526109c081610836565b9050919050565b60006020820190506109dc60008301846108b6565b92915050565b600081905092915050565b600082825260208201905092915050565b6000610a0982610b57565b9150610a1483610b57565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610a4957610a48610b97565b5b828201905092915050565b6000610a5f82610b57565b9150610a6a83610b57565b925082610a7a57610a79610bc6565b5b828204905092915050565b6000610a9082610b57565b9150610a9b83610b57565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610ad457610ad3610b97565b5b828202905092915050565b6000610aea82610b57565b9150610af583610b57565b925082821015610b0857610b07610b97565b5b828203905092915050565b6000610b1e82610b37565b9050919050565b6000610b3082610b37565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610b6c82610b73565b9050919050565b6000610b7e82610b85565b9050919050565b6000610b9082610b37565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b610bfe81610b13565b8114610c0957600080fd5b50565b610c1581610b25565b8114610c2057600080fd5b50565b610c2c81610b57565b8114610c3757600080fd5b5056fea2646970667358221220fd0926dd72a905d1faf9deb5f5eef61ddea0eb4557553227199782ced51a6fac64736f6c63430008000033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006027b4c9ad98ad5dc9ee984ed699a2079d40141600000000000000000000000085696c8684f13e4ac9399eec92604c03d708f7f200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000005f

-----Decoded View---------------
Arg [0] : holders (address[]): 0x6027B4c9Ad98ad5Dc9Ee984Ed699a2079d401416,0x85696c8684f13E4AC9399eEC92604C03D708F7F2
Arg [1] : shares (uint256[]): 5,95

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 0000000000000000000000006027b4c9ad98ad5dc9ee984ed699a2079d401416
Arg [4] : 00000000000000000000000085696c8684f13e4ac9399eec92604c03d708f7f2
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 000000000000000000000000000000000000000000000000000000000000005f


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.