MATIC Price: $0.607622 (+1.13%)
Gas: 30 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
Transfer Ownersh...331478102022-09-15 19:03:32639 days ago1663268612IN
0x6b4831e2...6c104A774
0 MATIC0.0008576730.00000001
0x60806040331477572022-09-15 19:01:42639 days ago1663268502IN
 Create: ContributionRules
0 MATIC0.0638592930.00000001

Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ContributionRules

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 2000 runs

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

pragma solidity 0.8.2;

import {Ownable} from "@openzeppelin/contracts-0.8/access/Ownable.sol";
import {Address} from "@openzeppelin/contracts-0.8/utils/Address.sol";
import {SafeMathWithRequire} from "../../common/Libraries/SafeMathWithRequire.sol";
import {IERC721} from "@openzeppelin/contracts-0.8/token/ERC721/IERC721.sol";
import {IERC1155} from "@openzeppelin/contracts-0.8/token/ERC1155/IERC1155.sol";
import {IContributionRules} from "../interfaces/IContributionRules.sol";

contract ContributionRules is Ownable, IContributionRules {
    using Address for address;

    // LIMITS
    // we limited the number of Ids and contracts that we can have in the lists
    // to avoid the risk of DoS caused by gas limits being exceeded during the iterations
    uint256 public constant idsLimit = 64;
    uint256 public constant contractsLimit = 4;
    uint256 public constant maxMultiplier = 1000;
    uint256 public multiplierLimitERC721 = 1000;
    uint256 public multiplierLimitERC1155 = 1000;

    uint256 internal constant DECIMALS_7 = 10_000_000;
    uint256 internal constant MIDPOINT_9 = 500_000_000;
    uint256 internal constant NFT_FACTOR_6 = 10000;
    uint256 internal constant NFT_CONSTANT_3 = 9000;
    uint256 internal constant ROOT3_FACTOR = 697;

    struct MultiplierRule {
        uint256[] ids;
        uint256[] multipliers;
        bool balanceOf;
        uint256 index;
    }

    mapping(IERC721 => MultiplierRule) internal _listERC721;
    mapping(IERC1155 => MultiplierRule) internal _listERC1155;
    IERC721[] internal _listERC721Index;
    IERC1155[] internal _listERC1155Index;

    event ERC1155MultiplierListSet(address indexed contractERC1155, uint256[] multipliers, uint256[] ids);
    event ERC721MultiplierListSet(address indexed contractERC721, uint256[] multipliers, uint256[] ids, bool balanceOf);
    event ERC1155MultiplierListDeleted(address indexed contractERC1155);
    event ERC721MultiplierListDeleted(address indexed contractERC721);
    event ERC721MultiplierLimitSet(uint256 newERC721MultiplierLimit);
    event ERC1155MultiplierLimitSet(uint256 newERC1155MultiplierLimit);

    modifier isContract(address account) {
        require(account.isContract(), "ContributionRules: is not contract");

        _;
    }

    modifier isERC721MemberList(address contractERC721) {
        require(
            isERC721MemberMultiplierList(IERC721(contractERC721)),
            "ContributionRules: contract is not in the list"
        );
        _;
    }

    modifier isERC1155MemberList(address contractERC1155) {
        require(
            isERC1155MemberMultiplierList(IERC1155(contractERC1155)),
            "ContributionRules: contract is not in the list"
        );
        _;
    }

    function computeMultiplier(address account, uint256 amountStaked) external view override returns (uint256) {
        uint256 multiplierERC721 = multiplierBalanceOfERC721(account);
        uint256 multiplierERC1155 = multiplierBalanceOfERC1155(account);

        // check if the calculated multipliers exceeds the limit
        if (multiplierLimitERC721 < multiplierERC721) {
            multiplierERC721 = multiplierLimitERC721;
        }

        if (multiplierLimitERC1155 < multiplierERC1155) {
            multiplierERC1155 = multiplierLimitERC1155;
        }

        return amountStaked + ((amountStaked * (multiplierERC721 + multiplierERC1155)) / 100);
    }

    function setERC721MultiplierLimit(uint256 _newLimit) external onlyOwner {
        require(_newLimit <= maxMultiplier, "ContributionRules: invalid newLimit");

        multiplierLimitERC721 = _newLimit;

        emit ERC721MultiplierLimitSet(_newLimit);
    }

    function setERC1155MultiplierLimit(uint256 _newLimit) external onlyOwner {
        require(_newLimit <= maxMultiplier, "ContributionRules: invalid newLimit");

        multiplierLimitERC1155 = _newLimit;

        emit ERC1155MultiplierLimitSet(_newLimit);
    }

    function setERC1155MultiplierList(
        address contractERC1155,
        uint256[] memory ids,
        uint256[] memory multipliers
    ) external onlyOwner isContract(contractERC1155) {
        require(ids.length > 0 && ids.length <= idsLimit, "ContributionRules: invalid array of ids");
        require(multipliers.length > 0, "ContributionRules: invalid array of multipliers");

        IERC1155 multContract = IERC1155(contractERC1155);

        // if it's a new member create a new registry, instead, only update
        if (isERC1155MemberMultiplierList(multContract) == false) {
            // Limiting the size of the array (interations) to avoid the risk of DoS.
            require(contractsLimit > _listERC1155Index.length, "ContributionRules: contractsLimit exceeded");
            _listERC1155Index.push(multContract);
            _listERC1155[multContract].index = _listERC1155Index.length - 1;
        }

        _listERC1155[multContract].ids = ids;
        _listERC1155[multContract].multipliers = multipliers;
        _listERC1155[multContract].balanceOf = false;

        emit ERC1155MultiplierListSet(contractERC1155, multipliers, ids);
    }

    function setERC721MultiplierList(
        address contractERC721,
        uint256[] memory ids,
        uint256[] memory multipliers,
        bool balanceOf
    ) external onlyOwner isContract(contractERC721) {
        require(
            balanceOf == true || (ids.length > 0 && multipliers.length == ids.length),
            "ContributionRules: invalid list"
        );
        require(ids.length <= idsLimit, "ContributionRules: invalid array of ids");

        IERC721 multContract = IERC721(contractERC721);

        // if it's a new member create a new registry, instead, only update
        if (isERC721MemberMultiplierList(multContract) == false) {
            // Limiting the size of the array (interations) to avoid the risk of DoS.
            require(contractsLimit > _listERC721Index.length, "ContributionRules: contractsLimit exceeded");
            _listERC721Index.push(multContract);
            _listERC721[multContract].index = _listERC721Index.length - 1;
        }

        _listERC721[multContract].multipliers = multipliers;
        _listERC721[multContract].balanceOf = balanceOf;
        _listERC721[multContract].ids = ids;

        emit ERC721MultiplierListSet(contractERC721, multipliers, ids, balanceOf);
    }

    function getMaxGlobalMultiplier(address account) external view returns (uint256) {
        return multiplierBalanceOfERC721(account) + multiplierBalanceOfERC1155(account);
    }

    function getERC721MultiplierList(address reqContract)
        external
        view
        isContract(reqContract)
        isERC721MemberList(reqContract)
        returns (MultiplierRule memory)
    {
        return _listERC721[IERC721(reqContract)];
    }

    function getERC1155MultiplierList(address reqContract)
        external
        view
        isContract(reqContract)
        isERC1155MemberList(reqContract)
        returns (MultiplierRule memory)
    {
        return _listERC1155[IERC1155(reqContract)];
    }

    function deleteERC721MultiplierList(address contractERC721)
        external
        isContract(contractERC721)
        isERC721MemberList(contractERC721)
        onlyOwner
    {
        IERC721 reqContract = IERC721(contractERC721);
        uint256 indexToDelete = _listERC721[reqContract].index;
        IERC721 addrToMove = _listERC721Index[_listERC721Index.length - 1];
        _listERC721Index[indexToDelete] = addrToMove;
        _listERC721[addrToMove].index = indexToDelete;
        _listERC721Index.pop();

        emit ERC721MultiplierListDeleted(address(reqContract));
    }

    function deleteERC1155MultiplierList(address contractERC1155)
        external
        isContract(contractERC1155)
        isERC1155MemberList(contractERC1155)
        onlyOwner
    {
        IERC1155 reqContract = IERC1155(contractERC1155);
        uint256 indexToDelete = _listERC1155[reqContract].index;
        IERC1155 addrToMove = _listERC1155Index[_listERC1155Index.length - 1];
        _listERC1155Index[indexToDelete] = addrToMove;
        _listERC1155[addrToMove].index = indexToDelete;
        _listERC1155Index.pop();

        emit ERC1155MultiplierListDeleted(address(reqContract));
    }

    function isERC721MemberMultiplierList(IERC721 reqContract) public view returns (bool) {
        return !(_listERC721Index.length == 0) && (_listERC721Index[_listERC721[reqContract].index] == reqContract);
    }

    function isERC1155MemberMultiplierList(IERC1155 reqContract) public view returns (bool) {
        return !(_listERC1155Index.length == 0) && (_listERC1155Index[_listERC1155[reqContract].index] == reqContract);
    }

    function multiplierBalanceOfERC721(address account) public view returns (uint256) {
        uint256 _multiplier = 0;

        for (uint256 i = 0; i < _listERC721Index.length; i++) {
            IERC721 reqContract = _listERC721Index[i];

            if (_listERC721[reqContract].balanceOf == true) {
                _multiplier = _multiplier + multiplierLogarithm(account, reqContract);
            } else {
                for (uint256 j = 0; j < _listERC721[reqContract].ids.length; j++) {
                    address owner = reqContract.ownerOf(_listERC721[reqContract].ids[j]);
                    if (owner == account) {
                        _multiplier = _multiplier + _listERC721[reqContract].multipliers[j];
                    }
                }
            }
        }

        return _multiplier;
    }

    function multiplierBalanceOfERC1155(address account) public view returns (uint256) {
        uint256 _multiplier = 0;
        for (uint256 i = 0; i < _listERC1155Index.length; i++) {
            IERC1155 reqContract = _listERC1155Index[i];

            for (uint256 j = 0; j < _listERC1155[reqContract].ids.length; j++) {
                uint256 _bal = reqContract.balanceOf(account, _listERC1155[reqContract].ids[j]);

                if (_bal > 0) {
                    _multiplier = _multiplier + _listERC1155[reqContract].multipliers[j];
                }
            }
        }

        return _multiplier;
    }

    function multiplierLogarithm(address account, IERC721 contractERC721) public view returns (uint256) {
        uint256 balERC721 = contractERC721.balanceOf(account);

        if (balERC721 == 0) {
            return 0;
        }

        uint256 _multiplierERC721 =
            NFT_FACTOR_6 * (NFT_CONSTANT_3 + SafeMathWithRequire.cbrt3((((balERC721 - 1) * ROOT3_FACTOR) + 1)));
        if (_multiplierERC721 > MIDPOINT_9) {
            _multiplierERC721 = MIDPOINT_9 + (_multiplierERC721 - MIDPOINT_9) / 10;
        }

        return _multiplierERC721 / DECIMALS_7;
    }

    function renounceOwnership() public view override onlyOwner {
        revert("ContributionRules: can't renounceOwnership");
    }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

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 : SafeMathWithRequire.sol
//SPDX-License-Identifier: MIT
pragma solidity 0.8.2;

/**
 * @title SafeMath
 * @dev Math operations with safety checks that revert
 */
library SafeMathWithRequire {
    uint256 private constant DECIMALS_18 = 1000000000000000000;
    uint256 private constant DECIMALS_12 = 1000000000000;
    uint256 private constant DECIMALS_9 = 1000000000;
    uint256 private constant DECIMALS_6 = 1000000;

    function sqrt6(uint256 a) internal pure returns (uint256 c) {
        a = a * DECIMALS_12;
        uint256 tmp = (a + 1) / 2;
        c = a;
        // tmp cannot be zero unless a = 0 which skip the loop
        while (tmp < c) {
            c = tmp;
            tmp = ((a / tmp) + tmp) / 2;
        }
    }

    function sqrt3(uint256 a) internal pure returns (uint256 c) {
        a = a * DECIMALS_6;
        uint256 tmp = (a + 1) / 2;
        c = a;
        // tmp cannot be zero unless a = 0 which skip the loop
        while (tmp < c) {
            c = tmp;
            tmp = ((a / tmp) + tmp) / 2;
        }
    }

    function cbrt6(uint256 a) internal pure returns (uint256 c) {
        a = a * DECIMALS_18;
        uint256 tmp = (a + 2) / 3;
        c = a;
        // tmp cannot be zero unless a = 0 which skip the loop
        while (tmp < c) {
            c = tmp;
            uint256 tmpSquare = tmp**2;
            require(tmpSquare > tmp, "overflow");
            tmp = ((a / tmpSquare) + (tmp * 2)) / 3;
        }
        return c;
    }

    function cbrt3(uint256 a) internal pure returns (uint256 c) {
        a = a * DECIMALS_9;
        uint256 tmp = (a + 2) / 3;
        c = a;
        // tmp cannot be zero unless a = 0 which skip the loop
        while (tmp < c) {
            c = tmp;
            uint256 tmpSquare = tmp**2;
            require(tmpSquare > tmp, "overflow");
            tmp = ((a / tmpSquare) + (tmp * 2)) / 3;
        }
        return c;
    }
}

File 5 of 9 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 6 of 9 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 7 of 9 : IContributionRules.sol
//SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

interface IContributionRules {
    function computeMultiplier(address account, uint256 amountStaked) external returns (uint256);
}

File 8 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 9 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newERC1155MultiplierLimit","type":"uint256"}],"name":"ERC1155MultiplierLimitSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractERC1155","type":"address"}],"name":"ERC1155MultiplierListDeleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractERC1155","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"multipliers","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"ERC1155MultiplierListSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newERC721MultiplierLimit","type":"uint256"}],"name":"ERC721MultiplierLimitSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractERC721","type":"address"}],"name":"ERC721MultiplierListDeleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractERC721","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"multipliers","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"bool","name":"balanceOf","type":"bool"}],"name":"ERC721MultiplierListSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amountStaked","type":"uint256"}],"name":"computeMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractsLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractERC1155","type":"address"}],"name":"deleteERC1155MultiplierList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractERC721","type":"address"}],"name":"deleteERC721MultiplierList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"reqContract","type":"address"}],"name":"getERC1155MultiplierList","outputs":[{"components":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"multipliers","type":"uint256[]"},{"internalType":"bool","name":"balanceOf","type":"bool"},{"internalType":"uint256","name":"index","type":"uint256"}],"internalType":"struct ContributionRules.MultiplierRule","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"reqContract","type":"address"}],"name":"getERC721MultiplierList","outputs":[{"components":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"multipliers","type":"uint256[]"},{"internalType":"bool","name":"balanceOf","type":"bool"},{"internalType":"uint256","name":"index","type":"uint256"}],"internalType":"struct ContributionRules.MultiplierRule","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getMaxGlobalMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"idsLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"reqContract","type":"address"}],"name":"isERC1155MemberMultiplierList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"reqContract","type":"address"}],"name":"isERC721MemberMultiplierList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"multiplierBalanceOfERC1155","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"multiplierBalanceOfERC721","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiplierLimitERC1155","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiplierLimitERC721","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"contract IERC721","name":"contractERC721","type":"address"}],"name":"multiplierLogarithm","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setERC1155MultiplierLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractERC1155","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"multipliers","type":"uint256[]"}],"name":"setERC1155MultiplierList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setERC721MultiplierLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractERC721","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"multipliers","type":"uint256[]"},{"internalType":"bool","name":"balanceOf","type":"bool"}],"name":"setERC721MultiplierList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526103e86001556103e860025534801561001c57600080fd5b506100263361002b565b61007b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61245a8061008a6000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c8063bb04b749116100e3578063dfe8d78b1161008c578063f0f4985611610066578063f0f4985614610314578063f2fde38b1461031c578063f47398661461032f5761018d565b8063dfe8d78b146102f0578063e255911214610303578063e5604c561461030b5761018d565b8063c6ee034c116100bd578063c6ee034c146102b7578063ccf144b0146102ca578063d71df33b146102dd5761018d565b8063bb04b7491461026e578063bd53c87614610291578063c51520d7146102a45761018d565b80633f6f66f511610145578063715018a61161011f578063715018a61461023857806383d8a49b146102405780638da5cb5b146102535761018d565b80633f6f66f5146102095780634eb2a85f1461021c57806360423854146102255761018d565b8063254c77a411610176578063254c77a4146101c35780632dbbf782146101d657806337490e5b146101e95761018d565b80630187aea01461019257806311b2dc16146101ae575b600080fd5b61019b6103e881565b6040519081526020015b60405180910390f35b6101c16101bc366004612120565b610342565b005b61019b6101d1366004611f81565b610455565b6101c16101e4366004611f81565b610479565b6101fc6101f7366004611f81565b610710565b6040516101a591906121e7565b61019b6102173660046120f5565b610909565b61019b60015481565b6101c1610233366004612120565b610976565b6101c1610a7d565b61019b61024e366004611f81565b610b45565b6000546040516001600160a01b0390911681526020016101a5565b61028161027c366004611f81565b610d47565b60405190151581526020016101a5565b6101fc61029f366004611f81565b610db2565b61019b6102b23660046120bd565b610fa7565b6101c16102c5366004611fc0565b6110da565b61019b6102d8366004611f81565b61145f565b6101c16102eb366004611f81565b61162e565b6102816102fe366004611f81565b6118c4565b61019b604081565b61019b60025481565b61019b600481565b6101c161032a366004611f81565b611912565b6101c161033d366004612033565b6119f4565b6000546001600160a01b031633146103a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6103e88111156104195760405162461bcd60e51b815260206004820152602360248201527f436f6e747269627574696f6e52756c65733a20696e76616c6964206e65774c6960448201527f6d697400000000000000000000000000000000000000000000000000000000006064820152608401610398565b60018190556040518181527fa8a94b42c787336b81afae8b2a2f11f8eb5f176aca98cfeb0e67f99aac0ae76a906020015b60405180910390a150565b60006104608261145f565b61046983610b45565b6104739190612243565b92915050565b806001600160a01b0381163b6104dc5760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b816104e6816118c4565b6105585760405162461bcd60e51b815260206004820152602e60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374206973206e60448201527f6f7420696e20746865206c6973740000000000000000000000000000000000006064820152608401610398565b6000546001600160a01b031633146105b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b6001600160a01b03831660009081526004602052604081206003015460068054869391906105e2906001906123b1565b8154811061060057634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600680546001600160a01b03909216925082918490811061063d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832091909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03948516179055918316815260049091526040902060030182905560068054806106a557634e487b7160e01b600052603160045260246000fd5b6000828152602081208201600019908101805473ffffffffffffffffffffffffffffffffffffffff191690559091019091556040516001600160a01b038516917fee22cfa3793184abd6ebfbb6c11480b34c2cef4faf388b801e80660ee64b579f91a2505050505050565b61073d60405180608001604052806060815260200160608152602001600015158152602001600081525090565b816001600160a01b0381163b6107a05760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b826107aa816118c4565b61081c5760405162461bcd60e51b815260206004820152602e60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374206973206e60448201527f6f7420696e20746865206c6973740000000000000000000000000000000000006064820152608401610398565b6001600160a01b0384166000908152600460209081526040918290208251815460a09381028201840190945260808101848152909391928492849184018282801561088657602002820191906000526020600020905b815481526020019060010190808311610872575b50505050508152602001600182018054806020026020016040519081016040528092919081815260200182805480156108de57602002820191906000526020600020905b8154815260200190600101908083116108ca575b5050509183525050600282015460ff1615156020820152600390910154604090910152949350505050565b60008061091584610b45565b905060006109228561145f565b90508160015410156109345760015491505b80600254101561094357506002545b606461094f8284612243565b6109599086612392565b610963919061225b565b61096d9085612243565b95945050505050565b6000546001600160a01b031633146109d05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b6103e8811115610a485760405162461bcd60e51b815260206004820152602360248201527f436f6e747269627574696f6e52756c65733a20696e76616c6964206e65774c6960448201527f6d697400000000000000000000000000000000000000000000000000000000006064820152608401610398565b60028190556040518181527fb3b5f59f1f2b30b5f1c0e5c569c9737f2557713e082b60b911ce49a28a17e1f79060200161044a565b6000546001600160a01b03163314610ad75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b60405162461bcd60e51b815260206004820152602a60248201527f436f6e747269627574696f6e52756c65733a2063616e27742072656e6f756e6360448201527f654f776e657273686970000000000000000000000000000000000000000000006064820152608401610398565b600080805b600554811015610d4057600060058281548110610b7757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316808352600390915260409091206002015490915060ff16151560011415610bca57610bb98582610fa7565b610bc39084612243565b9250610d2d565b60005b6001600160a01b038216600090815260036020526040902054811015610d2b576001600160a01b03821660008181526003602052604081208054919291636352211e919085908110610c2f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518263ffffffff1660e01b8152600401610c5891815260200190565b60206040518083038186803b158015610c7057600080fd5b505afa158015610c84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca89190611fa4565b9050866001600160a01b0316816001600160a01b03161415610d18576001600160a01b0383166000908152600360205260409020600101805483908110610cff57634e487b7160e01b600052603260045260246000fd5b906000526020600020015485610d159190612243565b94505b5080610d23816123c8565b915050610bcd565b505b5080610d38816123c8565b915050610b4a565b5092915050565b6005546000901580159061047357506001600160a01b03821660008181526003602081905260409091200154600580549091908110610d9657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161492915050565b610ddf60405180608001604052806060815260200160608152602001600015158152602001600081525090565b816001600160a01b0381163b610e425760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b82610e4c81610d47565b610ebe5760405162461bcd60e51b815260206004820152602e60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374206973206e60448201527f6f7420696e20746865206c6973740000000000000000000000000000000000006064820152608401610398565b6001600160a01b0384166000908152600360209081526040918290208251815460a09381028201840190945260808101848152909391928492849184018282801561088657602002820191906000526020600020908154815260200190600101908083116108725750505050508152602001600182018054806020026020016040519081016040528092919081815260200182805480156108de57602002820191906000526020600020908154815260200190600101908083116108ca575050509183525050600282015460ff1615156020820152600390910154604090910152949350505050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015260009182918416906370a082319060240160206040518083038186803b15801561100657600080fd5b505afa15801561101a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103e9190612138565b90508061104f576000915050610473565b600061107c6102b96110626001856123b1565b61106c9190612392565b611077906001612243565b611d54565b61108890612328612243565b61109490612710612392565b9050631dcd65008111156110cd57600a6110b2631dcd6500836123b1565b6110bc919061225b565b6110ca90631dcd6500612243565b90505b61096d629896808261225b565b6000546001600160a01b031633146111345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b826001600160a01b0381163b6111975760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b600083511180156111aa57506040835111155b61121c5760405162461bcd60e51b815260206004820152602760248201527f436f6e747269627574696f6e52756c65733a20696e76616c696420617272617960448201527f206f6620696473000000000000000000000000000000000000000000000000006064820152608401610398565b60008251116112935760405162461bcd60e51b815260206004820152602f60248201527f436f6e747269627574696f6e52756c65733a20696e76616c696420617272617960448201527f206f66206d756c7469706c6965727300000000000000000000000000000000006064820152608401610398565b8361129d816118c4565b61139c576006546004116113195760405162461bcd60e51b815260206004820152602a60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374734c696d6960448201527f74206578636565646564000000000000000000000000000000000000000000006064820152608401610398565b600680546001808201835560008390527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038516179055905461137f91906123b1565b6001600160a01b0382166000908152600460205260409020600301555b6001600160a01b038116600090815260046020908152604090912085516113c592870190611e84565b506001600160a01b038116600090815260046020908152604090912084516113f592600190920191860190611e84565b506001600160a01b0380821660009081526004602052604090819020600201805460ff1916905551908616907f7b486d93ca562a4cdffc23976220456f031607475580f6ffafae799291624ab290611450908690889061218a565b60405180910390a25050505050565b600080805b600654811015610d405760006006828154811061149157634e487b7160e01b600052603260045260246000fd5b60009182526020822001546001600160a01b031691505b6001600160a01b038216600090815260046020526040902054811015611619576001600160a01b0382166000818152600460205260408120805491929162fdd58e918a918690811061150a57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b15801561157257600080fd5b505afa158015611586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115aa9190612138565b90508015611606576001600160a01b03831660009081526004602052604090206001018054839081106115ed57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154856116039190612243565b94505b5080611611816123c8565b9150506114a8565b50508080611626906123c8565b915050611464565b806001600160a01b0381163b6116915760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b8161169b81610d47565b61170d5760405162461bcd60e51b815260206004820152602e60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374206973206e60448201527f6f7420696e20746865206c6973740000000000000000000000000000000000006064820152608401610398565b6000546001600160a01b031633146117675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b6001600160a01b0383166000908152600360208190526040822001546005805486939190611797906001906123b1565b815481106117b557634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600580546001600160a01b0390921692508291849081106117f257634e487b7160e01b600052603260045260246000fd5b6000918252602080832091909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0394851617905591831681526003918290526040902001829055600580548061185957634e487b7160e01b600052603160045260246000fd5b6000828152602081208201600019908101805473ffffffffffffffffffffffffffffffffffffffff191690559091019091556040516001600160a01b038516917fd48581b30704212f3e5a542f84e0a344663c83bfad12110bcca49d4861f5952b91a2505050505050565b6006546000901580159061047357506001600160a01b038216600081815260046020526040902060030154600680549091908110610d9657634e487b7160e01b600052603260045260246000fd5b6000546001600160a01b0316331461196c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b6001600160a01b0381166119e85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610398565b6119f181611e27565b50565b6000546001600160a01b03163314611a4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b836001600160a01b0381163b611ab15760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b60018215151480611acf575060008451118015611acf575083518351145b611b1b5760405162461bcd60e51b815260206004820152601f60248201527f436f6e747269627574696f6e52756c65733a20696e76616c6964206c697374006044820152606401610398565b604084511115611b935760405162461bcd60e51b815260206004820152602760248201527f436f6e747269627574696f6e52756c65733a20696e76616c696420617272617960448201527f206f6620696473000000000000000000000000000000000000000000000000006064820152608401610398565b84611b9d81610d47565b611c9d57600554600411611c195760405162461bcd60e51b815260206004820152602a60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374734c696d6960448201527f74206578636565646564000000000000000000000000000000000000000000006064820152608401610398565b600580546001808201835560008390527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385161790559054611c7f91906123b1565b6001600160a01b038216600090815260036020819052604090912001555b6001600160a01b03811660009081526003602090815260409091208551611ccc92600190920191870190611e84565b506001600160a01b038116600090815260036020908152604090912060028101805460ff19168615151790558651611d0692880190611e84565b50856001600160a01b03167fc899474e882f1c85ac4f9de43336e3796e75a275390fdec75969fa031e23b7f5858786604051611d44939291906121af565b60405180910390a2505050505050565b6000611d64633b9aca0083612392565b915060006003611d75846002612243565b611d7f919061225b565b90508291505b81811015611e21579050806000611d9d6002836122c1565b9050818111611dee5760405162461bcd60e51b815260206004820152600860248201527f6f766572666c6f770000000000000000000000000000000000000000000000006044820152606401610398565b6003611dfb836002612392565b611e05838761225b565b611e0f9190612243565b611e19919061225b565b915050611d85565b50919050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215611ebf579160200282015b82811115611ebf578251825591602001919060010190611ea4565b50611ecb929150611ecf565b5090565b5b80821115611ecb5760008155600101611ed0565b600082601f830112611ef4578081fd5b8135602067ffffffffffffffff80831115611f1157611f116123f9565b818302604051601f19603f83011681018181108482111715611f3557611f356123f9565b60405284815283810192508684018288018501891015611f53578687fd5b8692505b85831015611f75578035845292840192600192909201918401611f57565b50979650505050505050565b600060208284031215611f92578081fd5b8135611f9d8161240f565b9392505050565b600060208284031215611fb5578081fd5b8151611f9d8161240f565b600080600060608486031215611fd4578182fd5b8335611fdf8161240f565b9250602084013567ffffffffffffffff80821115611ffb578384fd5b61200787838801611ee4565b9350604086013591508082111561201c578283fd5b5061202986828701611ee4565b9150509250925092565b60008060008060808587031215612048578081fd5b84356120538161240f565b9350602085013567ffffffffffffffff8082111561206f578283fd5b61207b88838901611ee4565b94506040870135915080821115612090578283fd5b5061209d87828801611ee4565b925050606085013580151581146120b2578182fd5b939692955090935050565b600080604083850312156120cf578182fd5b82356120da8161240f565b915060208301356120ea8161240f565b809150509250929050565b60008060408385031215612107578182fd5b82356121128161240f565b946020939093013593505050565b600060208284031215612131578081fd5b5035919050565b600060208284031215612149578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561217f57815187529582019590820190600101612163565b509495945050505050565b60006040825261219d6040830185612150565b828103602084015261096d8185612150565b6000606082526121c26060830186612150565b82810360208401526121d48186612150565b9150508215156040830152949350505050565b60006020825282516080602084015261220360a0840182612150565b90506020840151601f198483030160408501526122208282612150565b915050604084015115156060840152606084015160808401528091505092915050565b60008219821115612256576122566123e3565b500190565b60008261227657634e487b7160e01b81526012600452602481fd5b500490565b80825b600180861161228d57506122b8565b81870482111561229f5761229f6123e3565b808616156122ac57918102915b9490941c93800261227e565b94509492505050565b6000611f9d60001960ff8516846000826122dd57506001611f9d565b816122ea57506000611f9d565b8160018114612300576002811461230a57612337565b6001915050611f9d565b60ff84111561231b5761231b6123e3565b6001841b915084821115612331576123316123e3565b50611f9d565b5060208310610133831016604e8410600b841016171561236a575081810a83811115612365576123656123e3565b611f9d565b612377848484600161227b565b808604821115612389576123896123e3565b02949350505050565b60008160001904831182151516156123ac576123ac6123e3565b500290565b6000828210156123c3576123c36123e3565b500390565b60006000198214156123dc576123dc6123e3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146119f157600080fdfea264697066735822122052b466d64eb34550e9efe92c2e8c0cde42898ef230e41845005cbadd1b631fbb64736f6c63430008020033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018d5760003560e01c8063bb04b749116100e3578063dfe8d78b1161008c578063f0f4985611610066578063f0f4985614610314578063f2fde38b1461031c578063f47398661461032f5761018d565b8063dfe8d78b146102f0578063e255911214610303578063e5604c561461030b5761018d565b8063c6ee034c116100bd578063c6ee034c146102b7578063ccf144b0146102ca578063d71df33b146102dd5761018d565b8063bb04b7491461026e578063bd53c87614610291578063c51520d7146102a45761018d565b80633f6f66f511610145578063715018a61161011f578063715018a61461023857806383d8a49b146102405780638da5cb5b146102535761018d565b80633f6f66f5146102095780634eb2a85f1461021c57806360423854146102255761018d565b8063254c77a411610176578063254c77a4146101c35780632dbbf782146101d657806337490e5b146101e95761018d565b80630187aea01461019257806311b2dc16146101ae575b600080fd5b61019b6103e881565b6040519081526020015b60405180910390f35b6101c16101bc366004612120565b610342565b005b61019b6101d1366004611f81565b610455565b6101c16101e4366004611f81565b610479565b6101fc6101f7366004611f81565b610710565b6040516101a591906121e7565b61019b6102173660046120f5565b610909565b61019b60015481565b6101c1610233366004612120565b610976565b6101c1610a7d565b61019b61024e366004611f81565b610b45565b6000546040516001600160a01b0390911681526020016101a5565b61028161027c366004611f81565b610d47565b60405190151581526020016101a5565b6101fc61029f366004611f81565b610db2565b61019b6102b23660046120bd565b610fa7565b6101c16102c5366004611fc0565b6110da565b61019b6102d8366004611f81565b61145f565b6101c16102eb366004611f81565b61162e565b6102816102fe366004611f81565b6118c4565b61019b604081565b61019b60025481565b61019b600481565b6101c161032a366004611f81565b611912565b6101c161033d366004612033565b6119f4565b6000546001600160a01b031633146103a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6103e88111156104195760405162461bcd60e51b815260206004820152602360248201527f436f6e747269627574696f6e52756c65733a20696e76616c6964206e65774c6960448201527f6d697400000000000000000000000000000000000000000000000000000000006064820152608401610398565b60018190556040518181527fa8a94b42c787336b81afae8b2a2f11f8eb5f176aca98cfeb0e67f99aac0ae76a906020015b60405180910390a150565b60006104608261145f565b61046983610b45565b6104739190612243565b92915050565b806001600160a01b0381163b6104dc5760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b816104e6816118c4565b6105585760405162461bcd60e51b815260206004820152602e60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374206973206e60448201527f6f7420696e20746865206c6973740000000000000000000000000000000000006064820152608401610398565b6000546001600160a01b031633146105b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b6001600160a01b03831660009081526004602052604081206003015460068054869391906105e2906001906123b1565b8154811061060057634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600680546001600160a01b03909216925082918490811061063d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832091909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03948516179055918316815260049091526040902060030182905560068054806106a557634e487b7160e01b600052603160045260246000fd5b6000828152602081208201600019908101805473ffffffffffffffffffffffffffffffffffffffff191690559091019091556040516001600160a01b038516917fee22cfa3793184abd6ebfbb6c11480b34c2cef4faf388b801e80660ee64b579f91a2505050505050565b61073d60405180608001604052806060815260200160608152602001600015158152602001600081525090565b816001600160a01b0381163b6107a05760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b826107aa816118c4565b61081c5760405162461bcd60e51b815260206004820152602e60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374206973206e60448201527f6f7420696e20746865206c6973740000000000000000000000000000000000006064820152608401610398565b6001600160a01b0384166000908152600460209081526040918290208251815460a09381028201840190945260808101848152909391928492849184018282801561088657602002820191906000526020600020905b815481526020019060010190808311610872575b50505050508152602001600182018054806020026020016040519081016040528092919081815260200182805480156108de57602002820191906000526020600020905b8154815260200190600101908083116108ca575b5050509183525050600282015460ff1615156020820152600390910154604090910152949350505050565b60008061091584610b45565b905060006109228561145f565b90508160015410156109345760015491505b80600254101561094357506002545b606461094f8284612243565b6109599086612392565b610963919061225b565b61096d9085612243565b95945050505050565b6000546001600160a01b031633146109d05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b6103e8811115610a485760405162461bcd60e51b815260206004820152602360248201527f436f6e747269627574696f6e52756c65733a20696e76616c6964206e65774c6960448201527f6d697400000000000000000000000000000000000000000000000000000000006064820152608401610398565b60028190556040518181527fb3b5f59f1f2b30b5f1c0e5c569c9737f2557713e082b60b911ce49a28a17e1f79060200161044a565b6000546001600160a01b03163314610ad75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b60405162461bcd60e51b815260206004820152602a60248201527f436f6e747269627574696f6e52756c65733a2063616e27742072656e6f756e6360448201527f654f776e657273686970000000000000000000000000000000000000000000006064820152608401610398565b600080805b600554811015610d4057600060058281548110610b7757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316808352600390915260409091206002015490915060ff16151560011415610bca57610bb98582610fa7565b610bc39084612243565b9250610d2d565b60005b6001600160a01b038216600090815260036020526040902054811015610d2b576001600160a01b03821660008181526003602052604081208054919291636352211e919085908110610c2f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518263ffffffff1660e01b8152600401610c5891815260200190565b60206040518083038186803b158015610c7057600080fd5b505afa158015610c84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca89190611fa4565b9050866001600160a01b0316816001600160a01b03161415610d18576001600160a01b0383166000908152600360205260409020600101805483908110610cff57634e487b7160e01b600052603260045260246000fd5b906000526020600020015485610d159190612243565b94505b5080610d23816123c8565b915050610bcd565b505b5080610d38816123c8565b915050610b4a565b5092915050565b6005546000901580159061047357506001600160a01b03821660008181526003602081905260409091200154600580549091908110610d9657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161492915050565b610ddf60405180608001604052806060815260200160608152602001600015158152602001600081525090565b816001600160a01b0381163b610e425760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b82610e4c81610d47565b610ebe5760405162461bcd60e51b815260206004820152602e60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374206973206e60448201527f6f7420696e20746865206c6973740000000000000000000000000000000000006064820152608401610398565b6001600160a01b0384166000908152600360209081526040918290208251815460a09381028201840190945260808101848152909391928492849184018282801561088657602002820191906000526020600020908154815260200190600101908083116108725750505050508152602001600182018054806020026020016040519081016040528092919081815260200182805480156108de57602002820191906000526020600020908154815260200190600101908083116108ca575050509183525050600282015460ff1615156020820152600390910154604090910152949350505050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015260009182918416906370a082319060240160206040518083038186803b15801561100657600080fd5b505afa15801561101a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103e9190612138565b90508061104f576000915050610473565b600061107c6102b96110626001856123b1565b61106c9190612392565b611077906001612243565b611d54565b61108890612328612243565b61109490612710612392565b9050631dcd65008111156110cd57600a6110b2631dcd6500836123b1565b6110bc919061225b565b6110ca90631dcd6500612243565b90505b61096d629896808261225b565b6000546001600160a01b031633146111345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b826001600160a01b0381163b6111975760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b600083511180156111aa57506040835111155b61121c5760405162461bcd60e51b815260206004820152602760248201527f436f6e747269627574696f6e52756c65733a20696e76616c696420617272617960448201527f206f6620696473000000000000000000000000000000000000000000000000006064820152608401610398565b60008251116112935760405162461bcd60e51b815260206004820152602f60248201527f436f6e747269627574696f6e52756c65733a20696e76616c696420617272617960448201527f206f66206d756c7469706c6965727300000000000000000000000000000000006064820152608401610398565b8361129d816118c4565b61139c576006546004116113195760405162461bcd60e51b815260206004820152602a60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374734c696d6960448201527f74206578636565646564000000000000000000000000000000000000000000006064820152608401610398565b600680546001808201835560008390527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038516179055905461137f91906123b1565b6001600160a01b0382166000908152600460205260409020600301555b6001600160a01b038116600090815260046020908152604090912085516113c592870190611e84565b506001600160a01b038116600090815260046020908152604090912084516113f592600190920191860190611e84565b506001600160a01b0380821660009081526004602052604090819020600201805460ff1916905551908616907f7b486d93ca562a4cdffc23976220456f031607475580f6ffafae799291624ab290611450908690889061218a565b60405180910390a25050505050565b600080805b600654811015610d405760006006828154811061149157634e487b7160e01b600052603260045260246000fd5b60009182526020822001546001600160a01b031691505b6001600160a01b038216600090815260046020526040902054811015611619576001600160a01b0382166000818152600460205260408120805491929162fdd58e918a918690811061150a57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b15801561157257600080fd5b505afa158015611586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115aa9190612138565b90508015611606576001600160a01b03831660009081526004602052604090206001018054839081106115ed57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154856116039190612243565b94505b5080611611816123c8565b9150506114a8565b50508080611626906123c8565b915050611464565b806001600160a01b0381163b6116915760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b8161169b81610d47565b61170d5760405162461bcd60e51b815260206004820152602e60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374206973206e60448201527f6f7420696e20746865206c6973740000000000000000000000000000000000006064820152608401610398565b6000546001600160a01b031633146117675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b6001600160a01b0383166000908152600360208190526040822001546005805486939190611797906001906123b1565b815481106117b557634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600580546001600160a01b0390921692508291849081106117f257634e487b7160e01b600052603260045260246000fd5b6000918252602080832091909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0394851617905591831681526003918290526040902001829055600580548061185957634e487b7160e01b600052603160045260246000fd5b6000828152602081208201600019908101805473ffffffffffffffffffffffffffffffffffffffff191690559091019091556040516001600160a01b038516917fd48581b30704212f3e5a542f84e0a344663c83bfad12110bcca49d4861f5952b91a2505050505050565b6006546000901580159061047357506001600160a01b038216600081815260046020526040902060030154600680549091908110610d9657634e487b7160e01b600052603260045260246000fd5b6000546001600160a01b0316331461196c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b6001600160a01b0381166119e85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610398565b6119f181611e27565b50565b6000546001600160a01b03163314611a4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b836001600160a01b0381163b611ab15760405162461bcd60e51b815260206004820152602260248201527f436f6e747269627574696f6e52756c65733a206973206e6f7420636f6e74726160448201526118dd60f21b6064820152608401610398565b60018215151480611acf575060008451118015611acf575083518351145b611b1b5760405162461bcd60e51b815260206004820152601f60248201527f436f6e747269627574696f6e52756c65733a20696e76616c6964206c697374006044820152606401610398565b604084511115611b935760405162461bcd60e51b815260206004820152602760248201527f436f6e747269627574696f6e52756c65733a20696e76616c696420617272617960448201527f206f6620696473000000000000000000000000000000000000000000000000006064820152608401610398565b84611b9d81610d47565b611c9d57600554600411611c195760405162461bcd60e51b815260206004820152602a60248201527f436f6e747269627574696f6e52756c65733a20636f6e7472616374734c696d6960448201527f74206578636565646564000000000000000000000000000000000000000000006064820152608401610398565b600580546001808201835560008390527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385161790559054611c7f91906123b1565b6001600160a01b038216600090815260036020819052604090912001555b6001600160a01b03811660009081526003602090815260409091208551611ccc92600190920191870190611e84565b506001600160a01b038116600090815260036020908152604090912060028101805460ff19168615151790558651611d0692880190611e84565b50856001600160a01b03167fc899474e882f1c85ac4f9de43336e3796e75a275390fdec75969fa031e23b7f5858786604051611d44939291906121af565b60405180910390a2505050505050565b6000611d64633b9aca0083612392565b915060006003611d75846002612243565b611d7f919061225b565b90508291505b81811015611e21579050806000611d9d6002836122c1565b9050818111611dee5760405162461bcd60e51b815260206004820152600860248201527f6f766572666c6f770000000000000000000000000000000000000000000000006044820152606401610398565b6003611dfb836002612392565b611e05838761225b565b611e0f9190612243565b611e19919061225b565b915050611d85565b50919050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215611ebf579160200282015b82811115611ebf578251825591602001919060010190611ea4565b50611ecb929150611ecf565b5090565b5b80821115611ecb5760008155600101611ed0565b600082601f830112611ef4578081fd5b8135602067ffffffffffffffff80831115611f1157611f116123f9565b818302604051601f19603f83011681018181108482111715611f3557611f356123f9565b60405284815283810192508684018288018501891015611f53578687fd5b8692505b85831015611f75578035845292840192600192909201918401611f57565b50979650505050505050565b600060208284031215611f92578081fd5b8135611f9d8161240f565b9392505050565b600060208284031215611fb5578081fd5b8151611f9d8161240f565b600080600060608486031215611fd4578182fd5b8335611fdf8161240f565b9250602084013567ffffffffffffffff80821115611ffb578384fd5b61200787838801611ee4565b9350604086013591508082111561201c578283fd5b5061202986828701611ee4565b9150509250925092565b60008060008060808587031215612048578081fd5b84356120538161240f565b9350602085013567ffffffffffffffff8082111561206f578283fd5b61207b88838901611ee4565b94506040870135915080821115612090578283fd5b5061209d87828801611ee4565b925050606085013580151581146120b2578182fd5b939692955090935050565b600080604083850312156120cf578182fd5b82356120da8161240f565b915060208301356120ea8161240f565b809150509250929050565b60008060408385031215612107578182fd5b82356121128161240f565b946020939093013593505050565b600060208284031215612131578081fd5b5035919050565b600060208284031215612149578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561217f57815187529582019590820190600101612163565b509495945050505050565b60006040825261219d6040830185612150565b828103602084015261096d8185612150565b6000606082526121c26060830186612150565b82810360208401526121d48186612150565b9150508215156040830152949350505050565b60006020825282516080602084015261220360a0840182612150565b90506020840151601f198483030160408501526122208282612150565b915050604084015115156060840152606084015160808401528091505092915050565b60008219821115612256576122566123e3565b500190565b60008261227657634e487b7160e01b81526012600452602481fd5b500490565b80825b600180861161228d57506122b8565b81870482111561229f5761229f6123e3565b808616156122ac57918102915b9490941c93800261227e565b94509492505050565b6000611f9d60001960ff8516846000826122dd57506001611f9d565b816122ea57506000611f9d565b8160018114612300576002811461230a57612337565b6001915050611f9d565b60ff84111561231b5761231b6123e3565b6001841b915084821115612331576123316123e3565b50611f9d565b5060208310610133831016604e8410600b841016171561236a575081810a83811115612365576123656123e3565b611f9d565b612377848484600161227b565b808604821115612389576123896123e3565b02949350505050565b60008160001904831182151516156123ac576123ac6123e3565b500290565b6000828210156123c3576123c36123e3565b500390565b60006000198214156123dc576123dc6123e3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146119f157600080fdfea264697066735822122052b466d64eb34550e9efe92c2e8c0cde42898ef230e41845005cbadd1b631fbb64736f6c63430008020033

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.