ETH Price: $3,357.66 (+0.30%)

Contract

0x223809E09ec28C28219769C3FF05c790c213152C
 
Transaction Hash
Method
Block
From
To
Release135287182021-11-01 3:09:561118 days ago1635736196IN
0x223809E0...0c213152C
0 ETH0.00880195117.52703799
Release135287182021-11-01 3:09:561118 days ago1635736196IN
0x223809E0...0c213152C
0 ETH0.01137579117.52703799
Release135106872021-10-29 7:02:051121 days ago1635490925IN
0x223809E0...0c213152C
0 ETH0.01796638102.1867969
Release135106872021-10-29 7:02:051121 days ago1635490925IN
0x223809E0...0c213152C
0 ETH0.02085826102.1867969
Release128173022021-07-13 6:54:131229 days ago1626159253IN
0x223809E0...0c213152C
0 ETH0.0026736822
Release128173022021-07-13 6:54:131229 days ago1626159253IN
0x223809E0...0c213152C
0 ETH0.0013947322
Release128173022021-07-13 6:54:131229 days ago1626159253IN
0x223809E0...0c213152C
0 ETH0.0027365322
Release128173022021-07-13 6:54:131229 days ago1626159253IN
0x223809E0...0c213152C
0 ETH0.0027365322
Release128173022021-07-13 6:54:131229 days ago1626159253IN
0x223809E0...0c213152C
0 ETH0.0027365322
Release128173022021-07-13 6:54:131229 days ago1626159253IN
0x223809E0...0c213152C
0 ETH0.0028489821
Release128173022021-07-13 6:54:131229 days ago1626159253IN
0x223809E0...0c213152C
0 ETH0.0013313321
Release128173022021-07-13 6:54:131229 days ago1626159253IN
0x223809E0...0c213152C
0 ETH0.0028492321
Release128173022021-07-13 6:54:131229 days ago1626159253IN
0x223809E0...0c213152C
0 ETH0.0031485921
Release128173022021-07-13 6:54:131229 days ago1626159253IN
0x223809E0...0c213152C
0 ETH0.0028492321
Release127926702021-07-09 10:31:221233 days ago1625826682IN
0x223809E0...0c213152C
0 ETH0.0014583712
Release127926702021-07-09 10:31:221233 days ago1625826682IN
0x223809E0...0c213152C
0 ETH0.0014926512
Release127926702021-07-09 10:31:221233 days ago1625826682IN
0x223809E0...0c213152C
0 ETH0.0014926512
Release127926702021-07-09 10:31:221233 days ago1625826682IN
0x223809E0...0c213152C
0 ETH0.0014926512
Release127926702021-07-09 10:31:221233 days ago1625826682IN
0x223809E0...0c213152C
0 ETH0.0014227912
Release127926702021-07-09 10:31:221233 days ago1625826682IN
0x223809E0...0c213152C
0 ETH0.0014229312
Release127926702021-07-09 10:31:221233 days ago1625826682IN
0x223809E0...0c213152C
0 ETH0.0014229312
Release127926702021-07-09 10:31:221233 days ago1625826682IN
0x223809E0...0c213152C
0 ETH0.0014229312
Release127734162021-07-06 10:41:421236 days ago1625568102IN
0x223809E0...0c213152C
0 ETH0.0078364359
Release127734162021-07-06 10:41:421236 days ago1625568102IN
0x223809E0...0c213152C
0 ETH0.00800559
Release127733642021-07-06 10:30:321236 days ago1625567432IN
0x223809E0...0c213152C
0 ETH0.0099044973
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PaymentSplitter

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-02-18
*/

// SPDX-License-Identifier: MIT

// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/utils/Address.sol



pragma solidity ^0.6.2;

/**
 * @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 in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

// File: @openzeppelin/contracts/math/SafeMath.sol



pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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 sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol



pragma solidity ^0.6.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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, 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);
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol



pragma solidity ^0.6.0;





/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol



pragma solidity ^0.6.0;




/**
 * @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 SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/strategies/PaymentSplitter.sol



pragma solidity 0.6.12;






/**
 * @title PaymentSplitter
 * @dev This contract allows to split ERC20 and Ether tokens among a group of accounts. The sender does not need to be aware
 * that the token(s) (payment) 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 payment(s) 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} or {releaseEther}
 * function.
 */
contract PaymentSplitter is Context {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    event PayeeAdded(address indexed payee, uint256 share);
    event PaymentReleased(address indexed payee, address indexed asset, uint256 tokens);

    // Total share.
    uint256 public totalShare;
    // Total released for an asset.
    mapping(address => uint256) public totalReleased;
    // Payee's share
    mapping(address => uint256) public share;
    // Payee's share released for an asset
    mapping(address => mapping(address => uint256)) public released;
    // list of payees
    address[] public payees;
    address private constant ETHER_ASSET = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `_payees` is assigned token(s) at
     * the matching position in the `_share` 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`.
     * @param _payees -  address(es) of payees eligible to receive token(s)
     * @param _share - list of shares, transferred to payee in provided ratio.
     */
    constructor(address[] memory _payees, uint256[] memory _share) public {
        // solhint-disable-next-line max-line-length
        require(_payees.length == _share.length, "payees-and-share-length-mismatch");
        require(_payees.length > 0, "no-payees");

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

    receive() external payable {}

    /**
     * @dev Transfer of ERC20 token(s) to `payee` based on share and their previous withdrawals.
     * @param _payee - payee's address to receive token(s)
     * @param _asset - ERC20 token's address
     */
    function release(address _payee, address _asset) external {
        require(share[_payee] > 0, "payee-dont-have-share");
        // find total received token(s)
        uint256 totalReceived = IERC20(_asset).balanceOf(address(this)).add(totalReleased[_asset]);

        uint256 tokens = _calculateAndUpdateReleasedTokens(_payee, _asset, totalReceived);
        // Transfer ERC20 token(s) to Payee.
        IERC20(_asset).safeTransfer(_payee, tokens);
        emit PaymentReleased(_payee, _asset, tokens);
    }

    /**
     * @dev Transfer of ether to `payee` based on share and their previous withdrawals.
     * @param _payee - payee's address to receive ether
     */
    function releaseEther(address payable _payee) external {
        require(share[_payee] > 0, "payee-dont-have-share");
        uint256 totalReceived = address(this).balance.add(totalReleased[ETHER_ASSET]);
        // find total received amount
        uint256 amount = _calculateAndUpdateReleasedTokens(_payee, ETHER_ASSET, totalReceived);
        // Transfer Ether to Payee.
        Address.sendValue(_payee, amount);
        emit PaymentReleased(_payee, ETHER_ASSET, amount);
    }

    /**
     * @dev Calculate token(s) for `payee` based on share and their previous withdrawals.
     * @param _payee - payee's address
     * @param _asset - token's address
     * return token(s)/ ether to be released
     */
    function _calculateAndUpdateReleasedTokens(
        address _payee,
        address _asset,
        uint256 _totalReceived
    ) private returns (uint256 tokens) {
        // find eligible token(s)/ether for a payee
        uint256 releasedTokens = released[_payee][_asset];
        tokens = _totalReceived.mul(share[_payee]).div(totalShare).sub(releasedTokens);
        require(tokens != 0, "payee-is-not-due-for-tokens");
        // update released token(s)
        released[_payee][_asset] = releasedTokens.add(tokens);
        totalReleased[_asset] = totalReleased[_asset].add(tokens);
    }

    /**
     * @dev Add a new payee to the contract.
     * @param _payee - payee address
     * @param _share -  payee's share
     */
    function _addPayee(address _payee, uint256 _share) private {
        require(_payee != address(0), "payee-is-zero-address");
        require(_share > 0, "payee-with-zero-share");
        require(share[_payee] == 0, "payee-exists-with-share");
        payees.push(_payee);
        share[_payee] = _share;
        totalShare = totalShare.add(_share);
        emit PayeeAdded(_payee, _share);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_share","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"share","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payees","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_payee","type":"address"},{"internalType":"address","name":"_asset","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_payee","type":"address"}],"name":"releaseEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"share","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b506040516200112038038062001120833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82518660208202830111640100000000821117156200008c57600080fd5b82525081516020918201928201910280838360005b83811015620000bb578181015183820152602001620000a1565b5050505090500160405260200180516040519392919084640100000000821115620000e557600080fd5b908301906020820185811115620000fb57600080fd5b82518660208202830111640100000000821117156200011957600080fd5b82525081516020918201928201910280838360005b83811015620001485781810151838201526020016200012e565b505050509050016040525050508051825114620001ac576040805162461bcd60e51b815260206004820181905260248201527f7061796565732d616e642d73686172652d6c656e6774682d6d69736d61746368604482015290519081900360640190fd5b6000825111620001ef576040805162461bcd60e51b81526020600482015260096024820152686e6f2d70617965657360b81b604482015290519081900360640190fd5b60005b82518110156200023f57620002368382815181106200020d57fe5b60200260200101518383815181106200022257fe5b60200260200101516200024860201b60201c565b600101620001f2565b50505062000482565b6001600160a01b038216620002a4576040805162461bcd60e51b815260206004820152601560248201527f70617965652d69732d7a65726f2d616464726573730000000000000000000000604482015290519081900360640190fd5b60008111620002fa576040805162461bcd60e51b815260206004820152601560248201527f70617965652d776974682d7a65726f2d73686172650000000000000000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600260205260409020541562000366576040805162461bcd60e51b815260206004820152601760248201527f70617965652d6578697374732d776974682d7368617265000000000000000000604482015290519081900360640190fd5b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b038416908117909155600090815260026020908152604082208390559054620003da91839062000420811b6200050717901c565b6000556040805182815290516001600160a01b038416917f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac919081900360200190a25050565b6000828201838110156200047b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b610c8e80620004926000396000f3fe6080604052600436106100745760003560e01c806348b750441161004e57806348b750441461011557806363037b0c14610152578063c200114814610198578063d79779b2146101cb5761007b565b8063026c4207146100805780631877bb5c146100a7578063406072a9146100da5761007b565b3661007b57005b600080fd5b34801561008c57600080fd5b506100956101fe565b60408051918252519081900360200190f35b3480156100b357600080fd5b50610095600480360360208110156100ca57600080fd5b50356001600160a01b0316610204565b3480156100e657600080fd5b50610095600480360360408110156100fd57600080fd5b506001600160a01b0381358116916020013516610216565b34801561012157600080fd5b506101506004803603604081101561013857600080fd5b506001600160a01b0381358116916020013516610233565b005b34801561015e57600080fd5b5061017c6004803603602081101561017557600080fd5b5035610398565b604080516001600160a01b039092168252519081900360200190f35b3480156101a457600080fd5b50610150600480360360208110156101bb57600080fd5b50356001600160a01b03166103bf565b3480156101d757600080fd5b50610095600480360360208110156101ee57600080fd5b50356001600160a01b03166104f5565b60005481565b60026020526000908152604090205481565b600360209081526000928352604080842090915290825290205481565b6001600160a01b038216600090815260026020526040902054610295576040805162461bcd60e51b815260206004820152601560248201527470617965652d646f6e742d686176652d736861726560581b604482015290519081900360640190fd5b6001600160a01b03811660008181526001602090815260408083205481516370a0823160e01b81523060048201529151939461032294919390926370a082319260248083019392829003018186803b1580156102f057600080fd5b505afa158015610304573d6000803e3d6000fd5b505050506040513d602081101561031a57600080fd5b505190610507565b9050600061033184848461056a565b90506103476001600160a01b0384168583610683565b826001600160a01b0316846001600160a01b03167f8ac5b3c2902b21b6bbb4d99ec195e28a242cb6a1777804db10b84d91e2006429836040518082815260200191505060405180910390a350505050565b600481815481106103a557fe5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b038116600090815260026020526040902054610421576040805162461bcd60e51b815260206004820152601560248201527470617965652d646f6e742d686176652d736861726560581b604482015290519081900360640190fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee600090815260016020527fde3e59ea0eeb6a65f16dd826b7bdfb53723c09ad80c81d458bbf2e138d9185235461046d904790610507565b905060006104908373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8461056a565b905061049c83826106da565b60408051828152905173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee916001600160a01b038616917f8ac5b3c2902b21b6bbb4d99ec195e28a242cb6a1777804db10b84d91e20064299181900360200190a3505050565b60016020526000908152604090205481565b600082820183811015610561576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6001600160a01b03808416600081815260036020908152604080832094871683529381528382205482549383526002909152928120549092916105c49183916105be916105b89088906107bf565b90610818565b9061085a565b915081610618576040805162461bcd60e51b815260206004820152601b60248201527f70617965652d69732d6e6f742d6475652d666f722d746f6b656e730000000000604482015290519081900360640190fd5b6106228183610507565b6001600160a01b038087166000908152600360209081526040808320938916835292815282822093909355600190925290205461065f9083610507565b6001600160a01b039094166000908152600160205260409020939093559392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526106d590849061089c565b505050565b8047101561072f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d806000811461077a576040519150601f19603f3d011682016040523d82523d6000602084013e61077f565b606091505b50509050806106d55760405162461bcd60e51b815260040180806020018281038252603a815260200180610bd4603a913960400191505060405180910390fd5b6000826107ce57506000610564565b828202828482816107db57fe5b04146105615760405162461bcd60e51b8152600401808060200182810382526021815260200180610c0e6021913960400191505060405180910390fd5b600061056183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061094d565b600061056183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506109ef565b60606108f1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a499092919063ffffffff16565b8051909150156106d55780806020019051602081101561091057600080fd5b50516106d55760405162461bcd60e51b815260040180806020018281038252602a815260200180610c2f602a913960400191505060405180910390fd5b600081836109d95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561099e578181015183820152602001610986565b50505050905090810190601f1680156109cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816109e557fe5b0495945050505050565b60008184841115610a415760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561099e578181015183820152602001610986565b505050900390565b6060610a588484600085610a60565b949350505050565b6060610a6b85610bcd565b610abc576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610afb5780518252601f199092019160209182019101610adc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610b5d576040519150601f19603f3d011682016040523d82523d6000602084013e610b62565b606091505b50915091508115610b76579150610a589050565b805115610b865780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561099e578181015183820152602001610986565b3b15159056fe416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220ae0ac4bb929409b5129c6129e99afa92d8dfc66d79392147aeb85faa7fac549464736f6c634300060c0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ba4cfe5741b357fa371b506e5db0774abfecf8fc000000000000000000000000f4087b7ab24bde9c445ddd0bc4df257f812772140000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000005f0000000000000000000000000000000000000000000000000000000000000005

Deployed Bytecode

0x6080604052600436106100745760003560e01c806348b750441161004e57806348b750441461011557806363037b0c14610152578063c200114814610198578063d79779b2146101cb5761007b565b8063026c4207146100805780631877bb5c146100a7578063406072a9146100da5761007b565b3661007b57005b600080fd5b34801561008c57600080fd5b506100956101fe565b60408051918252519081900360200190f35b3480156100b357600080fd5b50610095600480360360208110156100ca57600080fd5b50356001600160a01b0316610204565b3480156100e657600080fd5b50610095600480360360408110156100fd57600080fd5b506001600160a01b0381358116916020013516610216565b34801561012157600080fd5b506101506004803603604081101561013857600080fd5b506001600160a01b0381358116916020013516610233565b005b34801561015e57600080fd5b5061017c6004803603602081101561017557600080fd5b5035610398565b604080516001600160a01b039092168252519081900360200190f35b3480156101a457600080fd5b50610150600480360360208110156101bb57600080fd5b50356001600160a01b03166103bf565b3480156101d757600080fd5b50610095600480360360208110156101ee57600080fd5b50356001600160a01b03166104f5565b60005481565b60026020526000908152604090205481565b600360209081526000928352604080842090915290825290205481565b6001600160a01b038216600090815260026020526040902054610295576040805162461bcd60e51b815260206004820152601560248201527470617965652d646f6e742d686176652d736861726560581b604482015290519081900360640190fd5b6001600160a01b03811660008181526001602090815260408083205481516370a0823160e01b81523060048201529151939461032294919390926370a082319260248083019392829003018186803b1580156102f057600080fd5b505afa158015610304573d6000803e3d6000fd5b505050506040513d602081101561031a57600080fd5b505190610507565b9050600061033184848461056a565b90506103476001600160a01b0384168583610683565b826001600160a01b0316846001600160a01b03167f8ac5b3c2902b21b6bbb4d99ec195e28a242cb6a1777804db10b84d91e2006429836040518082815260200191505060405180910390a350505050565b600481815481106103a557fe5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b038116600090815260026020526040902054610421576040805162461bcd60e51b815260206004820152601560248201527470617965652d646f6e742d686176652d736861726560581b604482015290519081900360640190fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee600090815260016020527fde3e59ea0eeb6a65f16dd826b7bdfb53723c09ad80c81d458bbf2e138d9185235461046d904790610507565b905060006104908373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8461056a565b905061049c83826106da565b60408051828152905173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee916001600160a01b038616917f8ac5b3c2902b21b6bbb4d99ec195e28a242cb6a1777804db10b84d91e20064299181900360200190a3505050565b60016020526000908152604090205481565b600082820183811015610561576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6001600160a01b03808416600081815260036020908152604080832094871683529381528382205482549383526002909152928120549092916105c49183916105be916105b89088906107bf565b90610818565b9061085a565b915081610618576040805162461bcd60e51b815260206004820152601b60248201527f70617965652d69732d6e6f742d6475652d666f722d746f6b656e730000000000604482015290519081900360640190fd5b6106228183610507565b6001600160a01b038087166000908152600360209081526040808320938916835292815282822093909355600190925290205461065f9083610507565b6001600160a01b039094166000908152600160205260409020939093559392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526106d590849061089c565b505050565b8047101561072f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d806000811461077a576040519150601f19603f3d011682016040523d82523d6000602084013e61077f565b606091505b50509050806106d55760405162461bcd60e51b815260040180806020018281038252603a815260200180610bd4603a913960400191505060405180910390fd5b6000826107ce57506000610564565b828202828482816107db57fe5b04146105615760405162461bcd60e51b8152600401808060200182810382526021815260200180610c0e6021913960400191505060405180910390fd5b600061056183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061094d565b600061056183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506109ef565b60606108f1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a499092919063ffffffff16565b8051909150156106d55780806020019051602081101561091057600080fd5b50516106d55760405162461bcd60e51b815260040180806020018281038252602a815260200180610c2f602a913960400191505060405180910390fd5b600081836109d95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561099e578181015183820152602001610986565b50505050905090810190601f1680156109cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816109e557fe5b0495945050505050565b60008184841115610a415760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561099e578181015183820152602001610986565b505050900390565b6060610a588484600085610a60565b949350505050565b6060610a6b85610bcd565b610abc576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610afb5780518252601f199092019160209182019101610adc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610b5d576040519150601f19603f3d011682016040523d82523d6000602084013e610b62565b606091505b50915091508115610b76579150610a589050565b805115610b865780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561099e578181015183820152602001610986565b3b15159056fe416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220ae0ac4bb929409b5129c6129e99afa92d8dfc66d79392147aeb85faa7fac549464736f6c634300060c0033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ba4cfe5741b357fa371b506e5db0774abfecf8fc000000000000000000000000f4087b7ab24bde9c445ddd0bc4df257f812772140000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000005f0000000000000000000000000000000000000000000000000000000000000005

-----Decoded View---------------
Arg [0] : _payees (address[]): 0xbA4cFE5741b357FA371b506e5db0774aBFeCf8Fc,0xf4087b7AB24Bde9c445ddD0bc4DF257F81277214
Arg [1] : _share (uint256[]): 95,5

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 000000000000000000000000ba4cfe5741b357fa371b506e5db0774abfecf8fc
Arg [4] : 000000000000000000000000f4087b7ab24bde9c445ddd0bc4df257f81277214
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 000000000000000000000000000000000000000000000000000000000000005f
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005


Deployed Bytecode Sourcemap

30956:4471:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31239:25;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;31385:40;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31385:40:0;-1:-1:-1;;;;;31385:40:0;;:::i;31476:63::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;31476:63:0;;;;;;;;;;:::i;32841:519::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;32841:519:0;;;;;;;;;;:::i;:::-;;31569:23;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31569:23:0;;:::i;:::-;;;;-1:-1:-1;;;;;31569:23:0;;;;;;;;;;;;;;33532:490;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33532:490:0;-1:-1:-1;;;;;33532:490:0;;:::i;31308:48::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31308:48:0;-1:-1:-1;;;;;31308:48:0;;:::i;31239:25::-;;;;:::o;31385:40::-;;;;;;;;;;;;;:::o;31476:63::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;32841:519::-;-1:-1:-1;;;;;32918:13:0;;32934:1;32918:13;;;:5;:13;;;;;;32910:51;;;;;-1:-1:-1;;;32910:51:0;;;;;;;;;;;;-1:-1:-1;;;32910:51:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;33081:21:0;;33013;33081;;;:13;:21;;;;;;;;;33037:39;;-1:-1:-1;;;33037:39:0;;33070:4;33037:39;;;;;;33013:21;;33037:66;;33081:21;;;;33037:24;;:39;;;;;33081:21;33037:39;;;;;33081:21;33037:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33037:39:0;;:43;:66::i;:::-;33013:90;;33116:14;33133:64;33167:6;33175;33183:13;33133:33;:64::i;:::-;33116:81;-1:-1:-1;33254:43:0;-1:-1:-1;;;;;33254:27:0;;33282:6;33116:81;33254:27;:43::i;:::-;33337:6;-1:-1:-1;;;;;33313:39:0;33329:6;-1:-1:-1;;;;;33313:39:0;;33345:6;33313:39;;;;;;;;;;;;;;;;;;32841:519;;;;:::o;31569:23::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31569:23:0;;-1:-1:-1;31569:23:0;:::o;33532:490::-;-1:-1:-1;;;;;33606:13:0;;33622:1;33606:13;;;:5;:13;;;;;;33598:51;;;;;-1:-1:-1;;;33598:51:0;;;;;;;;;;;;-1:-1:-1;;;33598:51:0;;;;;;;;;;;;;;;31638:42;33660:21;33710:26;;;:13;:26;;;;33684:53;;:21;;:25;:53::i;:::-;33660:77;;33787:14;33804:69;33838:6;31638:42;33859:13;33804:33;:69::i;:::-;33787:86;;33921:33;33939:6;33947;33921:17;:33::i;:::-;33970:44;;;;;;;;31638:42;;-1:-1:-1;;;;;33970:44:0;;;;;;;;;;;;33532:490;;;:::o;31308:48::-;;;;;;;;;;;;;:::o;7983:181::-;8041:7;8073:5;;;8097:6;;;;8089:46;;;;;-1:-1:-1;;;8089:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;8155:1;-1:-1:-1;7983:181:0;;;;;:::o;34265:607::-;-1:-1:-1;;;;;34520:16:0;;;34415:14;34520:16;;;:8;:16;;;;;;;;:24;;;;;;;;;;;;34602:10;;34583:13;;;:5;:13;;;;;;;34415:14;;34520:24;34564:69;;34520:24;;34564:49;;:33;;:14;;:18;:33::i;:::-;:37;;:49::i;:::-;:53;;:69::i;:::-;34555:78;-1:-1:-1;34652:11:0;34644:51;;;;;-1:-1:-1;;;34644:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;34770:26;:14;34789:6;34770:18;:26::i;:::-;-1:-1:-1;;;;;34743:16:0;;;;;;;:8;:16;;;;;;;;:24;;;;;;;;;;;:53;;;;34831:13;:21;;;;;;:33;;34857:6;34831:25;:33::i;:::-;-1:-1:-1;;;;;34807:21:0;;;;;;;:13;:21;;;;;:57;;;;34265:607;;-1:-1:-1;;;34265:607:0:o;26909:177::-;27019:58;;;-1:-1:-1;;;;;27019:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27019:58:0;-1:-1:-1;;;27019:58:0;;;26992:86;;27012:5;;26992:19;:86::i;:::-;26909:177;;;:::o;3134:397::-;3249:6;3224:21;:31;;3216:73;;;;;-1:-1:-1;;;3216:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3399:35;;3381:12;;-1:-1:-1;;;;;3399:14:0;;;3422:6;;3381:12;3399:35;3381:12;3399:35;3422:6;3399:14;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3380:54;;;3453:7;3445:78;;;;-1:-1:-1;;;3445:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9337:471;9395:7;9640:6;9636:47;;-1:-1:-1;9670:1:0;9663:8;;9636:47;9707:5;;;9711:1;9707;:5;:1;9731:5;;;;;:10;9723:56;;;;-1:-1:-1;;;9723:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10284:132;10342:7;10369:39;10373:1;10376;10369:39;;;;;;;;;;;;;;;;;:3;:39::i;8447:136::-;8505:7;8532:43;8536:1;8539;8532:43;;;;;;;;;;;;;;;;;:3;:43::i;29214:761::-;29638:23;29664:69;29692:4;29664:69;;;;;;;;;;;;;;;;;29672:5;-1:-1:-1;;;;;29664:27:0;;;:69;;;;;:::i;:::-;29748:17;;29638:95;;-1:-1:-1;29748:21:0;29744:224;;29890:10;29879:30;;;;;;;;;;;;;;;-1:-1:-1;29879:30:0;29871:85;;;;-1:-1:-1;;;29871:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10912:278;10998:7;11033:12;11026:5;11018:28;;;;-1:-1:-1;;;11018:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11057:9;11073:1;11069;:5;;;;;;;10912:278;-1:-1:-1;;;;;10912:278:0:o;8886:192::-;8972:7;9008:12;9000:6;;;;8992:29;;;;-1:-1:-1;;;8992:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9044:5:0;;;8886:192::o;4695:196::-;4798:12;4830:53;4853:6;4861:4;4867:1;4870:12;4830:22;:53::i;:::-;4823:60;4695:196;-1:-1:-1;;;;4695:196:0:o;6072:979::-;6202:12;6235:18;6246:6;6235:10;:18::i;:::-;6227:60;;;;;-1:-1:-1;;;6227:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6361:12;6375:23;6402:6;-1:-1:-1;;;;;6402:11:0;6422:8;6433:4;6402:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6402:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6360:78;;;;6453:7;6449:595;;;6484:10;-1:-1:-1;6477:17:0;;-1:-1:-1;6477:17:0;6449:595;6598:17;;:21;6594:439;;6861:10;6855:17;6922:15;6909:10;6905:2;6901:19;6894:44;6809:148;6997:20;;-1:-1:-1;;;6997:20:0;;;;;;;;;;;;;;;;;7004:12;;6997:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1777:422;2144:20;2183:8;;;1777:422::o

Swarm Source

ipfs://ae0ac4bb929409b5129c6129e99afa92d8dfc66d79392147aeb85faa7fac5494

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  ]

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.