ETH Price: $3,104.95 (+1.26%)
Gas: 2 Gwei

Contract

0xc757cB1A5a98791Ad1898d0cd2ba452CdCAeFEd6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Withdraw ETH142213342022-02-17 3:59:13874 days ago1645070353IN
0xc757cB1A...CdCAeFEd6
0 ETH0.0069414669.33699788
Withdraw ETH133765202021-10-08 6:14:331006 days ago1633673673IN
0xc757cB1A...CdCAeFEd6
0 ETH0.01095309112.21057712
0x60806040133260652021-09-30 8:43:101014 days ago1632991390IN
 Create: RoyaltyDistributor
0 ETH0.0997436481.97121499

Latest 12 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
142213342022-02-17 3:59:13874 days ago1645070353
0xc757cB1A...CdCAeFEd6
0.0957 ETH
142213342022-02-17 3:59:13874 days ago1645070353
0xc757cB1A...CdCAeFEd6
0.0561 ETH
142213342022-02-17 3:59:13874 days ago1645070353
0xc757cB1A...CdCAeFEd6
0.0561 ETH
142213342022-02-17 3:59:13874 days ago1645070353
0xc757cB1A...CdCAeFEd6
0.0561 ETH
142213342022-02-17 3:59:13874 days ago1645070353
0xc757cB1A...CdCAeFEd6
0.066 ETH
142212812022-02-17 3:47:23874 days ago1645069643
0xc757cB1A...CdCAeFEd6
0.33 ETH
133765202021-10-08 6:14:331006 days ago1633673673
0xc757cB1A...CdCAeFEd6
12.7281 ETH
133765202021-10-08 6:14:331006 days ago1633673673
0xc757cB1A...CdCAeFEd6
7.4613 ETH
133765202021-10-08 6:14:331006 days ago1633673673
0xc757cB1A...CdCAeFEd6
7.4613 ETH
133765202021-10-08 6:14:331006 days ago1633673673
0xc757cB1A...CdCAeFEd6
7.4613 ETH
133765202021-10-08 6:14:331006 days ago1633673673
0xc757cB1A...CdCAeFEd6
8.778 ETH
133761812021-10-08 4:55:301006 days ago1633668930
0xc757cB1A...CdCAeFEd6
43.89 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RoyaltyDistributor

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : RoyaltyDistributor.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.8.6;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "../interface/iRoyaltyDistributor.sol";

contract RoyaltyDistributor is iRoyaltyDistributor, Ownable, ReentrancyGuard {

    address payable[] private recipients;
    uint256[] private royaltiesWithTwoDecimals;

    constructor(
        address payable[] memory _recipients,
        uint256[] memory _royaltiesWithTwoDecimals
    ) {
        _updateRoyalties(_recipients ,_royaltiesWithTwoDecimals);
    }
        
    function withdrawETH() external override nonReentrant {
        uint256 balance = address(this).balance;
        
        for (uint256 i = 0; i < recipients.length; i++) { 
            Address.sendValue(recipients[i], (balance * royaltiesWithTwoDecimals[i]) / 10000);
        }
    }

    function withdrawableETH()
    external
    view
    override
    returns (uint256[] memory)
    {
        uint256 balance = address(this).balance;
         uint256[] memory amounts = new uint256[](recipients.length);
   
        for (uint256 i = 0; i < recipients.length; i++) {
            amounts[i] = balance * royaltiesWithTwoDecimals[i] / 10000;
        }
        
        return amounts;
    }

    function withdrawERC20(address token) external override nonReentrant {
        uint256 balance = ERC20(token).balanceOf(address(this));
        
        for (uint256 i = 0; i < recipients.length; i++) {
            ERC20(token).transfer(recipients[i], balance * royaltiesWithTwoDecimals[i] / 10000);
        }
    }

    function withdrawableERC20(
        address token
    ) external view override returns (uint256[] memory) {
        uint256 balance = ERC20(token).balanceOf(address(this));
        uint256[] memory amounts = new uint256[](recipients.length);
        
        for (uint256 i = 0; i < recipients.length; i++) {
            amounts[i] = balance * royaltiesWithTwoDecimals[i] / 10000;
        }

        return amounts;
    }

    function updateRoyalties(
        address payable[] memory _recipients,
        uint256[] memory _royaltiesWithTwoDecimals
    ) external override onlyOwner {
        _updateRoyalties(_recipients, _royaltiesWithTwoDecimals);
    }

    function _updateRoyalties(
        address payable[] memory _recipients,
        uint256[] memory _royaltiesWithTwoDecimals
    ) internal {
        require(_recipients.length == _royaltiesWithTwoDecimals.length, "Invalid length");
        uint256 totalRoyalties;
        for (uint256 i = 0; i < _recipients.length; i++) { 
            require(_recipients[i] != address(0), "Invalid address");
            require(_royaltiesWithTwoDecimals[i] != 0, "Invalid value");
            
            totalRoyalties += _royaltiesWithTwoDecimals[i];
        }
        require(totalRoyalties == 10000, "Royalties must be 10000 totally");
        
        recipients = _recipients;
        royaltiesWithTwoDecimals = _royaltiesWithTwoDecimals;
    }
    
    receive() external payable {}
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 4 of 9 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @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 Contracts guidelines: functions revert
 * instead 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, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 this function is
     * overridden;
     *
     * 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 virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        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] + 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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(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:
     *
     * - `account` 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 += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(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 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 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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 5 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 9 : iRoyaltyDistributor.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.8.6;

interface iRoyaltyDistributor {

    function updateRoyalties(
        address payable[] memory _recipients,
        uint256[] memory _royaltiesWithTwoDecimals
    ) external;

    function withdrawETH() external;

    function withdrawERC20(address token) external;
    
    function withdrawableETH() external view returns(uint256[] memory amounts);

    function withdrawableERC20(address token) external view returns(uint256[] memory amounts);
}

File 7 of 9 : 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 8 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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 9 of 9 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_royaltiesWithTwoDecimals","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_royaltiesWithTwoDecimals","type":"uint256[]"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawableERC20","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawableETH","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162001479380380620014798339810160408190526200003491620003ce565b6200003f3362000057565b600180556200004f8282620000a7565b505062000586565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051825114620000ef5760405162461bcd60e51b815260206004820152600e60248201526d092dcecc2d8d2c840d8cadccee8d60931b60448201526064015b60405180910390fd5b6000805b8351811015620002105760006001600160a01b03168482815181106200011d576200011d6200055a565b60200260200101516001600160a01b03161415620001705760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401620000e6565b8281815181106200018557620001856200055a565b602002602001015160001415620001cf5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642076616c756560981b6044820152606401620000e6565b828181518110620001e457620001e46200055a565b602002602001015182620001f991906200050b565b915080620002078162000526565b915050620000f3565b508061271014620002645760405162461bcd60e51b815260206004820152601f60248201527f526f79616c74696573206d75737420626520313030303020746f74616c6c79006044820152606401620000e6565b82516200027990600290602086019062000295565b5081516200028f906003906020850190620002ff565b50505050565b828054828255906000526020600020908101928215620002ed579160200282015b82811115620002ed57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620002b6565b50620002fb9291506200033d565b5090565b828054828255906000526020600020908101928215620002ed579160200282015b82811115620002ed57825182559160200191906001019062000320565b5b80821115620002fb57600081556001016200033e565b600082601f8301126200036657600080fd5b815160206200037f6200037983620004e5565b620004b2565b80838252828201915082860187848660051b8901011115620003a057600080fd5b60005b85811015620003c157815184529284019290840190600101620003a3565b5090979650505050505050565b60008060408385031215620003e257600080fd5b82516001600160401b0380821115620003fa57600080fd5b818501915085601f8301126200040f57600080fd5b81516020620004226200037983620004e5565b8083825282820191508286018a848660051b89010111156200044357600080fd5b600096505b848710156200047e5780516001600160a01b03811681146200046957600080fd5b83526001969096019591830191830162000448565b50918801519196509093505050808211156200049957600080fd5b50620004a88582860162000354565b9150509250929050565b604051601f8201601f191681016001600160401b0381118282101715620004dd57620004dd62000570565b604052919050565b60006001600160401b0382111562000501576200050162000570565b5060051b60200190565b6000821982111562000521576200052162000544565b500190565b60006000198214156200053d576200053d62000544565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b610ee380620005966000396000f3fe60806040526004361061007f5760003560e01c80638da5cb5b1161004e5780638da5cb5b1461010d578063e086e5ec14610135578063f2fde38b1461014a578063f4f3b2001461016a57600080fd5b80632164f7cf1461008b5780636913e7cc146100ad578063715018a6146100d857806381293d5e146100ed57600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a6366004610c10565b61018a565b005b3480156100b957600080fd5b506100c26101cb565b6040516100cf9190610d14565b60405180910390f35b3480156100e457600080fd5b506100ab610293565b3480156100f957600080fd5b506100c2610108366004610bec565b6102c9565b34801561011957600080fd5b506000546040516001600160a01b0390911681526020016100cf565b34801561014157600080fd5b506100ab61040d565b34801561015657600080fd5b506100ab610165366004610bec565b6104fc565b34801561017657600080fd5b506100ab610185366004610bec565b610597565b6000546001600160a01b031633146101bd5760405162461bcd60e51b81526004016101b490610d58565b60405180910390fd5b6101c78282610788565b5050565b600254606090479060009067ffffffffffffffff8111156101ee576101ee610e82565b604051908082528060200260200182016040528015610217578160200160208202803683370190505b50905060005b60025481101561028c576127106003828154811061023d5761023d610e6c565b9060005260206000200154846102539190610e1c565b61025d9190610dfa565b82828151811061026f5761026f610e6c565b60209081029190910101528061028481610e3b565b91505061021d565b5092915050565b6000546001600160a01b031633146102bd5760405162461bcd60e51b81526004016101b490610d58565b6102c76000610957565b565b6040516370a0823160e01b81523060048201526060906000906001600160a01b038416906370a082319060240160206040518083038186803b15801561030e57600080fd5b505afa158015610322573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103469190610cfb565b60025490915060009067ffffffffffffffff81111561036757610367610e82565b604051908082528060200260200182016040528015610390578160200160208202803683370190505b50905060005b60025481101561040557612710600382815481106103b6576103b6610e6c565b9060005260206000200154846103cc9190610e1c565b6103d69190610dfa565b8282815181106103e8576103e8610e6c565b6020908102919091010152806103fd81610e3b565b915050610396565b509392505050565b600260015414156104605760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101b4565b60026001554760005b6002548110156104f4576104e26002828154811061048957610489610e6c565b9060005260206000200160009054906101000a90046001600160a01b0316612710600384815481106104bd576104bd610e6c565b9060005260206000200154856104d39190610e1c565b6104dd9190610dfa565b6109a7565b806104ec81610e3b565b915050610469565b505060018055565b6000546001600160a01b031633146105265760405162461bcd60e51b81526004016101b490610d58565b6001600160a01b03811661058b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101b4565b61059481610957565b50565b600260015414156105ea5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101b4565b60026001556040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561063157600080fd5b505afa158015610645573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106699190610cfb565b905060005b60025481101561077f57826001600160a01b031663a9059cbb6002838154811061069a5761069a610e6c565b9060005260206000200160009054906101000a90046001600160a01b0316612710600385815481106106ce576106ce610e6c565b9060005260206000200154866106e49190610e1c565b6106ee9190610dfa565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561073457600080fd5b505af1158015610748573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076c9190610cd9565b508061077781610e3b565b91505061066e565b50506001805550565b80518251146107ca5760405162461bcd60e51b815260206004820152600e60248201526d092dcecc2d8d2c840d8cadccee8d60931b60448201526064016101b4565b6000805b83518110156108d85760006001600160a01b03168482815181106107f4576107f4610e6c565b60200260200101516001600160a01b031614156108455760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016101b4565b82818151811061085757610857610e6c565b60200260200101516000141561089f5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642076616c756560981b60448201526064016101b4565b8281815181106108b1576108b1610e6c565b6020026020010151826108c49190610de2565b9150806108d081610e3b565b9150506107ce565b50806127101461092a5760405162461bcd60e51b815260206004820152601f60248201527f526f79616c74696573206d75737420626520313030303020746f74616c6c790060448201526064016101b4565b825161093d906002906020860190610ac5565b508151610951906003906020850190610b2a565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b804710156109f75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016101b4565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610a44576040519150601f19603f3d011682016040523d82523d6000602084013e610a49565b606091505b5050905080610ac05760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016101b4565b505050565b828054828255906000526020600020908101928215610b1a579160200282015b82811115610b1a57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190610ae5565b50610b26929150610b65565b5090565b828054828255906000526020600020908101928215610b1a579160200282015b82811115610b1a578251825591602001919060010190610b4a565b5b80821115610b265760008155600101610b66565b600082601f830112610b8b57600080fd5b81356020610ba0610b9b83610dbe565b610d8d565b80838252828201915082860187848660051b8901011115610bc057600080fd5b60005b85811015610bdf57813584529284019290840190600101610bc3565b5090979650505050505050565b600060208284031215610bfe57600080fd5b8135610c0981610e98565b9392505050565b60008060408385031215610c2357600080fd5b823567ffffffffffffffff80821115610c3b57600080fd5b818501915085601f830112610c4f57600080fd5b81356020610c5f610b9b83610dbe565b8083825282820191508286018a848660051b8901011115610c7f57600080fd5b600096505b84871015610cab578035610c9781610e98565b835260019690960195918301918301610c84565b5096505086013592505080821115610cc257600080fd5b50610ccf85828601610b7a565b9150509250929050565b600060208284031215610ceb57600080fd5b81518015158114610c0957600080fd5b600060208284031215610d0d57600080fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b81811015610d4c57835183529284019291840191600101610d30565b50909695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715610db657610db6610e82565b604052919050565b600067ffffffffffffffff821115610dd857610dd8610e82565b5060051b60200190565b60008219821115610df557610df5610e56565b500190565b600082610e1757634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615610e3657610e36610e56565b500290565b6000600019821415610e4f57610e4f610e56565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461059457600080fdfea2646970667358221220a96904da8cc1678962223186ef446084b194c8da3de418f39e33123be66bceb764736f6c634300080600330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000050000000000000000000000001acbf4842deb939c96d19d7f1d89186a41ad5dd2000000000000000000000000142066eeba654e744cb4089c584062e3cfb0066a0000000000000000000000006fdd8f941fe23c437f98ddbba9fbdeae574738a6000000000000000000000000b1509e40f9da838cf3290c7331eddc3bdb6acd79000000000000000000000000653264ab78107f99d0d5564965de48096f78ac73000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000006a400000000000000000000000000000000000000000000000000000000000006a400000000000000000000000000000000000000000000000000000000000006a40000000000000000000000000000000000000000000000000000000000000b54

Deployed Bytecode

0x60806040526004361061007f5760003560e01c80638da5cb5b1161004e5780638da5cb5b1461010d578063e086e5ec14610135578063f2fde38b1461014a578063f4f3b2001461016a57600080fd5b80632164f7cf1461008b5780636913e7cc146100ad578063715018a6146100d857806381293d5e146100ed57600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a6366004610c10565b61018a565b005b3480156100b957600080fd5b506100c26101cb565b6040516100cf9190610d14565b60405180910390f35b3480156100e457600080fd5b506100ab610293565b3480156100f957600080fd5b506100c2610108366004610bec565b6102c9565b34801561011957600080fd5b506000546040516001600160a01b0390911681526020016100cf565b34801561014157600080fd5b506100ab61040d565b34801561015657600080fd5b506100ab610165366004610bec565b6104fc565b34801561017657600080fd5b506100ab610185366004610bec565b610597565b6000546001600160a01b031633146101bd5760405162461bcd60e51b81526004016101b490610d58565b60405180910390fd5b6101c78282610788565b5050565b600254606090479060009067ffffffffffffffff8111156101ee576101ee610e82565b604051908082528060200260200182016040528015610217578160200160208202803683370190505b50905060005b60025481101561028c576127106003828154811061023d5761023d610e6c565b9060005260206000200154846102539190610e1c565b61025d9190610dfa565b82828151811061026f5761026f610e6c565b60209081029190910101528061028481610e3b565b91505061021d565b5092915050565b6000546001600160a01b031633146102bd5760405162461bcd60e51b81526004016101b490610d58565b6102c76000610957565b565b6040516370a0823160e01b81523060048201526060906000906001600160a01b038416906370a082319060240160206040518083038186803b15801561030e57600080fd5b505afa158015610322573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103469190610cfb565b60025490915060009067ffffffffffffffff81111561036757610367610e82565b604051908082528060200260200182016040528015610390578160200160208202803683370190505b50905060005b60025481101561040557612710600382815481106103b6576103b6610e6c565b9060005260206000200154846103cc9190610e1c565b6103d69190610dfa565b8282815181106103e8576103e8610e6c565b6020908102919091010152806103fd81610e3b565b915050610396565b509392505050565b600260015414156104605760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101b4565b60026001554760005b6002548110156104f4576104e26002828154811061048957610489610e6c565b9060005260206000200160009054906101000a90046001600160a01b0316612710600384815481106104bd576104bd610e6c565b9060005260206000200154856104d39190610e1c565b6104dd9190610dfa565b6109a7565b806104ec81610e3b565b915050610469565b505060018055565b6000546001600160a01b031633146105265760405162461bcd60e51b81526004016101b490610d58565b6001600160a01b03811661058b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101b4565b61059481610957565b50565b600260015414156105ea5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101b4565b60026001556040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561063157600080fd5b505afa158015610645573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106699190610cfb565b905060005b60025481101561077f57826001600160a01b031663a9059cbb6002838154811061069a5761069a610e6c565b9060005260206000200160009054906101000a90046001600160a01b0316612710600385815481106106ce576106ce610e6c565b9060005260206000200154866106e49190610e1c565b6106ee9190610dfa565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561073457600080fd5b505af1158015610748573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076c9190610cd9565b508061077781610e3b565b91505061066e565b50506001805550565b80518251146107ca5760405162461bcd60e51b815260206004820152600e60248201526d092dcecc2d8d2c840d8cadccee8d60931b60448201526064016101b4565b6000805b83518110156108d85760006001600160a01b03168482815181106107f4576107f4610e6c565b60200260200101516001600160a01b031614156108455760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016101b4565b82818151811061085757610857610e6c565b60200260200101516000141561089f5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642076616c756560981b60448201526064016101b4565b8281815181106108b1576108b1610e6c565b6020026020010151826108c49190610de2565b9150806108d081610e3b565b9150506107ce565b50806127101461092a5760405162461bcd60e51b815260206004820152601f60248201527f526f79616c74696573206d75737420626520313030303020746f74616c6c790060448201526064016101b4565b825161093d906002906020860190610ac5565b508151610951906003906020850190610b2a565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b804710156109f75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016101b4565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610a44576040519150601f19603f3d011682016040523d82523d6000602084013e610a49565b606091505b5050905080610ac05760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016101b4565b505050565b828054828255906000526020600020908101928215610b1a579160200282015b82811115610b1a57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190610ae5565b50610b26929150610b65565b5090565b828054828255906000526020600020908101928215610b1a579160200282015b82811115610b1a578251825591602001919060010190610b4a565b5b80821115610b265760008155600101610b66565b600082601f830112610b8b57600080fd5b81356020610ba0610b9b83610dbe565b610d8d565b80838252828201915082860187848660051b8901011115610bc057600080fd5b60005b85811015610bdf57813584529284019290840190600101610bc3565b5090979650505050505050565b600060208284031215610bfe57600080fd5b8135610c0981610e98565b9392505050565b60008060408385031215610c2357600080fd5b823567ffffffffffffffff80821115610c3b57600080fd5b818501915085601f830112610c4f57600080fd5b81356020610c5f610b9b83610dbe565b8083825282820191508286018a848660051b8901011115610c7f57600080fd5b600096505b84871015610cab578035610c9781610e98565b835260019690960195918301918301610c84565b5096505086013592505080821115610cc257600080fd5b50610ccf85828601610b7a565b9150509250929050565b600060208284031215610ceb57600080fd5b81518015158114610c0957600080fd5b600060208284031215610d0d57600080fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b81811015610d4c57835183529284019291840191600101610d30565b50909695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715610db657610db6610e82565b604052919050565b600067ffffffffffffffff821115610dd857610dd8610e82565b5060051b60200190565b60008219821115610df557610df5610e56565b500190565b600082610e1757634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615610e3657610e36610e56565b500290565b6000600019821415610e4f57610e4f610e56565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461059457600080fdfea2646970667358221220a96904da8cc1678962223186ef446084b194c8da3de418f39e33123be66bceb764736f6c63430008060033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000050000000000000000000000001acbf4842deb939c96d19d7f1d89186a41ad5dd2000000000000000000000000142066eeba654e744cb4089c584062e3cfb0066a0000000000000000000000006fdd8f941fe23c437f98ddbba9fbdeae574738a6000000000000000000000000b1509e40f9da838cf3290c7331eddc3bdb6acd79000000000000000000000000653264ab78107f99d0d5564965de48096f78ac73000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000006a400000000000000000000000000000000000000000000000000000000000006a400000000000000000000000000000000000000000000000000000000000006a40000000000000000000000000000000000000000000000000000000000000b54

-----Decoded View---------------
Arg [0] : _recipients (address[]): 0x1aCbF4842dEb939c96D19D7f1D89186a41Ad5DD2,0x142066eeba654e744Cb4089C584062E3CfB0066A,0x6fDD8f941fe23c437F98DdBBa9fBDeae574738a6,0xB1509E40F9DA838CF3290C7331eDDc3BdB6Acd79,0x653264Ab78107f99D0d5564965De48096f78AC73
Arg [1] : _royaltiesWithTwoDecimals (uint256[]): 2000,1700,1700,1700,2900

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 0000000000000000000000001acbf4842deb939c96d19d7f1d89186a41ad5dd2
Arg [4] : 000000000000000000000000142066eeba654e744cb4089c584062e3cfb0066a
Arg [5] : 0000000000000000000000006fdd8f941fe23c437f98ddbba9fbdeae574738a6
Arg [6] : 000000000000000000000000b1509e40f9da838cf3290c7331eddc3bdb6acd79
Arg [7] : 000000000000000000000000653264ab78107f99d0d5564965de48096f78ac73
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [10] : 00000000000000000000000000000000000000000000000000000000000006a4
Arg [11] : 00000000000000000000000000000000000000000000000000000000000006a4
Arg [12] : 00000000000000000000000000000000000000000000000000000000000006a4
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000b54


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.