ETH Price: $3,282.85 (-4.01%)
 

Overview

Max Total Supply

0 NiftyKit

Holders

0

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 0 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
RevenueSplit

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : RevenueSplit.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/finance/PaymentSplitterUpgradeable.sol";
import "./interfaces/IRevenueSplit.sol";

contract RevenueSplit is
    IRevenueSplit,
    Initializable,
    PaymentSplitterUpgradeable
{
    address[] private _payees;
    string private _name;

    function initialize(
        string memory name_,
        address[] calldata payees_,
        uint256[] calldata shares_
    ) public initializer {
        _name = name_;
        _payees = payees_;
        __PaymentSplitter_init(payees_, shares_);
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function totalPayees() public view returns (uint256) {
        return _payees.length;
    }

    function payeeAt(uint256 index) public view returns (address) {
        return _payees[index];
    }
}

File 2 of 8 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 3 of 8 : PaymentSplitterUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20Upgradeable.sol";
import "../utils/AddressUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitterUpgradeable is Initializable, ContextUpgradeable {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20Upgradeable indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

    mapping(IERC20Upgradeable => uint256) private _erc20TotalReleased;
    mapping(IERC20Upgradeable => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    function __PaymentSplitter_init(address[] memory payees, uint256[] memory shares_) internal onlyInitializing {
        __PaymentSplitter_init_unchained(payees, shares_);
    }

    function __PaymentSplitter_init_unchained(address[] memory payees, uint256[] memory shares_) internal onlyInitializing {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

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

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

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

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

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20Upgradeable token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

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

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

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20Upgradeable token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[43] private __gap;
}

File 4 of 8 : IRevenueSplit.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

interface IRevenueSplit {
    function initialize(
        string memory,
        address[] calldata,
        uint256[] calldata
    ) external;
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev 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 6 of 8 : SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";
import "../../../utils/AddressUpgradeable.sol";

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20Upgradeable","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"address[]","name":"payees_","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payeeAt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20Upgradeable","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20Upgradeable","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPayees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20Upgradeable","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5061277b806100206000396000f3fe6080604052600436106100c65760003560e01c806371b5bba61161007f5780639852595c116100595780639852595c146102c5578063ce7c2ac214610302578063d79779b21461033f578063e33b7de31461037c5761010d565b806371b5bba61461022057806371e158e71461024b5780638b83209b146102885761010d565b806306fdde0314610112578063191655871461013d57806324f3ae78146101665780633a98ef391461018f578063406072a9146101ba57806348b75044146101f75761010d565b3661010d577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100f46103a7565b3460405161010392919061163b565b60405180910390a1005b600080fd5b34801561011e57600080fd5b506101276103af565b60405161013491906116fd565b60405180910390f35b34801561014957600080fd5b50610164600480360381019061015f9190611771565b610441565b005b34801561017257600080fd5b5061018d60048036038101906101889190611989565b6105ec565b005b34801561019b57600080fd5b506101a461078a565b6040516101b19190611a3a565b60405180910390f35b3480156101c657600080fd5b506101e160048036038101906101dc9190611abf565b610794565b6040516101ee9190611a3a565b60405180910390f35b34801561020357600080fd5b5061021e60048036038101906102199190611abf565b61081b565b005b34801561022c57600080fd5b50610235610ae3565b6040516102429190611a3a565b60405180910390f35b34801561025757600080fd5b50610272600480360381019061026d9190611b2b565b610af0565b60405161027f9190611b58565b60405180910390f35b34801561029457600080fd5b506102af60048036038101906102aa9190611b2b565b610b38565b6040516102bc9190611b58565b60405180910390f35b3480156102d157600080fd5b506102ec60048036038101906102e79190611b73565b610b80565b6040516102f99190611a3a565b60405180910390f35b34801561030e57600080fd5b5061032960048036038101906103249190611b73565b610bc9565b6040516103369190611a3a565b60405180910390f35b34801561034b57600080fd5b5061036660048036038101906103619190611ba0565b610c12565b6040516103739190611a3a565b60405180910390f35b34801561038857600080fd5b50610391610c5b565b60405161039e9190611a3a565b60405180910390f35b600033905090565b6060606680546103be90611bfc565b80601f01602080910402602001604051908101604052809291908181526020018280546103ea90611bfc565b80156104375780601f1061040c57610100808354040283529160200191610437565b820191906000526020600020905b81548152906001019060200180831161041a57829003601f168201915b5050505050905090565b6000603560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116104c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ba90611ca0565b60405180910390fd5b60006104cd610c5b565b476104d89190611cef565b905060006104ef83836104ea86610b80565b610c65565b90506000811415610535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052c90611db7565b60405180910390fd5b80603660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546105849190611cef565b92505081905550806034600082825461059d9190611cef565b925050819055506105ae8382610cd3565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05683826040516105df929190611e36565b60405180910390a1505050565b600060019054906101000a900460ff166106145760008054906101000a900460ff161561061d565b61061c610dc7565b5b61065c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065390611ed1565b60405180910390fd5b60008060019054906101000a900460ff1615905080156106ac576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b85606690805190602001906106c292919061149e565b508484606591906106d4929190611524565b50610761858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050610dd8565b80156107825760008060016101000a81548160ff0219169083151502179055505b505050505050565b6000603354905090565b6000603960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000603560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161089d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089490611ca0565b60405180910390fd5b60006108a883610c12565b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108e19190611b58565b60206040518083038186803b1580156108f957600080fd5b505afa15801561090d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109319190611f06565b61093b9190611cef565b90506000610953838361094e8787610794565b610c65565b90506000811415610999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099090611db7565b60405180910390fd5b80603960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a259190611cef565b9250508190555080603860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a7b9190611cef565b92505081905550610a8d848483610e35565b8373ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051610ad592919061163b565b60405180910390a250505050565b6000606580549050905090565b600060658281548110610b0657610b05611f33565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600060378281548110610b4e57610b4d611f33565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000603660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000603560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000603860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000603454905090565b600081603354603560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485610cb69190611f62565b610cc09190611feb565b610cca919061201c565b90509392505050565b80471015610d16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0d9061209c565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051610d3c906120ed565b60006040518083038185875af1925050503d8060008114610d79576040519150601f19603f3d011682016040523d82523d6000602084013e610d7e565b606091505b5050905080610dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db990612174565b60405180910390fd5b505050565b6000610dd230610ebb565b15905090565b600060019054906101000a900460ff16610e27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1e90612206565b60405180910390fd5b610e318282610ede565b5050565b610eb68363a9059cbb60e01b8484604051602401610e5492919061163b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611017565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16610f2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2490612206565b60405180910390fd5b8051825114610f71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6890612298565b60405180910390fd5b6000825111610fb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fac90612304565b60405180910390fd5b60005b825181101561101257610fff838281518110610fd757610fd6611f33565b5b6020026020010151838381518110610ff257610ff1611f33565b5b60200260200101516110de565b808061100a90612324565b915050610fb8565b505050565b6000611079826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661130b9092919063ffffffff16565b90506000815111156110d9578080602001905181019061109991906123a5565b6110d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cf90612444565b60405180910390fd5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561114e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611145906124d6565b60405180910390fd5b60008111611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118890612542565b60405180910390fd5b6000603560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120a906125d4565b60405180910390fd5b6037829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080603560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550806033546112c89190611cef565b6033819055507f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac82826040516112ff92919061163b565b60405180910390a15050565b606061131a8484600085611323565b90509392505050565b606082471015611368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135f90612666565b60405180910390fd5b61137185610ebb565b6113b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a7906126d2565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516113d9919061272e565b60006040518083038185875af1925050503d8060008114611416576040519150601f19603f3d011682016040523d82523d6000602084013e61141b565b606091505b509150915061142b828286611437565b92505050949350505050565b6060831561144757829050611497565b60008351111561145a5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148e91906116fd565b60405180910390fd5b9392505050565b8280546114aa90611bfc565b90600052602060002090601f0160209004810192826114cc5760008555611513565b82601f106114e557805160ff1916838001178555611513565b82800160010185558215611513579182015b828111156115125782518255916020019190600101906114f7565b5b50905061152091906115c4565b5090565b8280548282559060005260206000209081019282156115b3579160200282015b828111156115b257823573ffffffffffffffffffffffffffffffffffffffff168260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190611544565b5b5090506115c091906115c4565b5090565b5b808211156115dd5760008160009055506001016115c5565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061160c826115e1565b9050919050565b61161c81611601565b82525050565b6000819050919050565b61163581611622565b82525050565b60006040820190506116506000830185611613565b61165d602083018461162c565b9392505050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561169e578082015181840152602081019050611683565b838111156116ad576000848401525b50505050565b6000601f19601f8301169050919050565b60006116cf82611664565b6116d9818561166f565b93506116e9818560208601611680565b6116f2816116b3565b840191505092915050565b6000602082019050818103600083015261171781846116c4565b905092915050565b6000604051905090565b600080fd5b600080fd5b600061173e826115e1565b9050919050565b61174e81611733565b811461175957600080fd5b50565b60008135905061176b81611745565b92915050565b60006020828403121561178757611786611729565b5b60006117958482850161175c565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6117e0826116b3565b810181811067ffffffffffffffff821117156117ff576117fe6117a8565b5b80604052505050565b600061181261171f565b905061181e82826117d7565b919050565b600067ffffffffffffffff82111561183e5761183d6117a8565b5b611847826116b3565b9050602081019050919050565b82818337600083830152505050565b600061187661187184611823565b611808565b905082815260208101848484011115611892576118916117a3565b5b61189d848285611854565b509392505050565b600082601f8301126118ba576118b961179e565b5b81356118ca848260208601611863565b91505092915050565b600080fd5b600080fd5b60008083601f8401126118f3576118f261179e565b5b8235905067ffffffffffffffff8111156119105761190f6118d3565b5b60208301915083602082028301111561192c5761192b6118d8565b5b9250929050565b60008083601f8401126119495761194861179e565b5b8235905067ffffffffffffffff811115611966576119656118d3565b5b602083019150836020820283011115611982576119816118d8565b5b9250929050565b6000806000806000606086880312156119a5576119a4611729565b5b600086013567ffffffffffffffff8111156119c3576119c261172e565b5b6119cf888289016118a5565b955050602086013567ffffffffffffffff8111156119f0576119ef61172e565b5b6119fc888289016118dd565b9450945050604086013567ffffffffffffffff811115611a1f57611a1e61172e565b5b611a2b88828901611933565b92509250509295509295909350565b6000602082019050611a4f600083018461162c565b92915050565b6000611a6082611601565b9050919050565b611a7081611a55565b8114611a7b57600080fd5b50565b600081359050611a8d81611a67565b92915050565b611a9c81611601565b8114611aa757600080fd5b50565b600081359050611ab981611a93565b92915050565b60008060408385031215611ad657611ad5611729565b5b6000611ae485828601611a7e565b9250506020611af585828601611aaa565b9150509250929050565b611b0881611622565b8114611b1357600080fd5b50565b600081359050611b2581611aff565b92915050565b600060208284031215611b4157611b40611729565b5b6000611b4f84828501611b16565b91505092915050565b6000602082019050611b6d6000830184611613565b92915050565b600060208284031215611b8957611b88611729565b5b6000611b9784828501611aaa565b91505092915050565b600060208284031215611bb657611bb5611729565b5b6000611bc484828501611a7e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611c1457607f821691505b60208210811415611c2857611c27611bcd565b5b50919050565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b6000611c8a60268361166f565b9150611c9582611c2e565b604082019050919050565b60006020820190508181036000830152611cb981611c7d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611cfa82611622565b9150611d0583611622565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611d3a57611d39611cc0565b5b828201905092915050565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b6000611da1602b8361166f565b9150611dac82611d45565b604082019050919050565b60006020820190508181036000830152611dd081611d94565b9050919050565b6000819050919050565b6000611dfc611df7611df2846115e1565b611dd7565b6115e1565b9050919050565b6000611e0e82611de1565b9050919050565b6000611e2082611e03565b9050919050565b611e3081611e15565b82525050565b6000604082019050611e4b6000830185611e27565b611e58602083018461162c565b9392505050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000611ebb602e8361166f565b9150611ec682611e5f565b604082019050919050565b60006020820190508181036000830152611eea81611eae565b9050919050565b600081519050611f0081611aff565b92915050565b600060208284031215611f1c57611f1b611729565b5b6000611f2a84828501611ef1565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000611f6d82611622565b9150611f7883611622565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611fb157611fb0611cc0565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611ff682611622565b915061200183611622565b92508261201157612010611fbc565b5b828204905092915050565b600061202782611622565b915061203283611622565b92508282101561204557612044611cc0565b5b828203905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000612086601d8361166f565b915061209182612050565b602082019050919050565b600060208201905081810360008301526120b581612079565b9050919050565b600081905092915050565b50565b60006120d76000836120bc565b91506120e2826120c7565b600082019050919050565b60006120f8826120ca565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061215e603a8361166f565b915061216982612102565b604082019050919050565b6000602082019050818103600083015261218d81612151565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006121f0602b8361166f565b91506121fb82612194565b604082019050919050565b6000602082019050818103600083015261221f816121e3565b9050919050565b7f5061796d656e7453706c69747465723a2070617965657320616e64207368617260008201527f6573206c656e677468206d69736d617463680000000000000000000000000000602082015250565b600061228260328361166f565b915061228d82612226565b604082019050919050565b600060208201905081810360008301526122b181612275565b9050919050565b7f5061796d656e7453706c69747465723a206e6f20706179656573000000000000600082015250565b60006122ee601a8361166f565b91506122f9826122b8565b602082019050919050565b6000602082019050818103600083015261231d816122e1565b9050919050565b600061232f82611622565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561236257612361611cc0565b5b600182019050919050565b60008115159050919050565b6123828161236d565b811461238d57600080fd5b50565b60008151905061239f81612379565b92915050565b6000602082840312156123bb576123ba611729565b5b60006123c984828501612390565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061242e602a8361166f565b9150612439826123d2565b604082019050919050565b6000602082019050818103600083015261245d81612421565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b60006124c0602c8361166f565b91506124cb82612464565b604082019050919050565b600060208201905081810360008301526124ef816124b3565b9050919050565b7f5061796d656e7453706c69747465723a20736861726573206172652030000000600082015250565b600061252c601d8361166f565b9150612537826124f6565b602082019050919050565b6000602082019050818103600083015261255b8161251f565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960008201527f2068617320736861726573000000000000000000000000000000000000000000602082015250565b60006125be602b8361166f565b91506125c982612562565b604082019050919050565b600060208201905081810360008301526125ed816125b1565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061265060268361166f565b915061265b826125f4565b604082019050919050565b6000602082019050818103600083015261267f81612643565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006126bc601d8361166f565b91506126c782612686565b602082019050919050565b600060208201905081810360008301526126eb816126af565b9050919050565b600081519050919050565b6000612708826126f2565b61271281856120bc565b9350612722818560208601611680565b80840191505092915050565b600061273a82846126fd565b91508190509291505056fea2646970667358221220f31bd4007d9332bfb266f82432b88e70a33dd5b1c1f44e676fcc7e7a6cf1568e64736f6c63430008090033

Deployed Bytecode

0x6080604052600436106100c65760003560e01c806371b5bba61161007f5780639852595c116100595780639852595c146102c5578063ce7c2ac214610302578063d79779b21461033f578063e33b7de31461037c5761010d565b806371b5bba61461022057806371e158e71461024b5780638b83209b146102885761010d565b806306fdde0314610112578063191655871461013d57806324f3ae78146101665780633a98ef391461018f578063406072a9146101ba57806348b75044146101f75761010d565b3661010d577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100f46103a7565b3460405161010392919061163b565b60405180910390a1005b600080fd5b34801561011e57600080fd5b506101276103af565b60405161013491906116fd565b60405180910390f35b34801561014957600080fd5b50610164600480360381019061015f9190611771565b610441565b005b34801561017257600080fd5b5061018d60048036038101906101889190611989565b6105ec565b005b34801561019b57600080fd5b506101a461078a565b6040516101b19190611a3a565b60405180910390f35b3480156101c657600080fd5b506101e160048036038101906101dc9190611abf565b610794565b6040516101ee9190611a3a565b60405180910390f35b34801561020357600080fd5b5061021e60048036038101906102199190611abf565b61081b565b005b34801561022c57600080fd5b50610235610ae3565b6040516102429190611a3a565b60405180910390f35b34801561025757600080fd5b50610272600480360381019061026d9190611b2b565b610af0565b60405161027f9190611b58565b60405180910390f35b34801561029457600080fd5b506102af60048036038101906102aa9190611b2b565b610b38565b6040516102bc9190611b58565b60405180910390f35b3480156102d157600080fd5b506102ec60048036038101906102e79190611b73565b610b80565b6040516102f99190611a3a565b60405180910390f35b34801561030e57600080fd5b5061032960048036038101906103249190611b73565b610bc9565b6040516103369190611a3a565b60405180910390f35b34801561034b57600080fd5b5061036660048036038101906103619190611ba0565b610c12565b6040516103739190611a3a565b60405180910390f35b34801561038857600080fd5b50610391610c5b565b60405161039e9190611a3a565b60405180910390f35b600033905090565b6060606680546103be90611bfc565b80601f01602080910402602001604051908101604052809291908181526020018280546103ea90611bfc565b80156104375780601f1061040c57610100808354040283529160200191610437565b820191906000526020600020905b81548152906001019060200180831161041a57829003601f168201915b5050505050905090565b6000603560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116104c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ba90611ca0565b60405180910390fd5b60006104cd610c5b565b476104d89190611cef565b905060006104ef83836104ea86610b80565b610c65565b90506000811415610535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052c90611db7565b60405180910390fd5b80603660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546105849190611cef565b92505081905550806034600082825461059d9190611cef565b925050819055506105ae8382610cd3565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05683826040516105df929190611e36565b60405180910390a1505050565b600060019054906101000a900460ff166106145760008054906101000a900460ff161561061d565b61061c610dc7565b5b61065c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065390611ed1565b60405180910390fd5b60008060019054906101000a900460ff1615905080156106ac576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b85606690805190602001906106c292919061149e565b508484606591906106d4929190611524565b50610761858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050610dd8565b80156107825760008060016101000a81548160ff0219169083151502179055505b505050505050565b6000603354905090565b6000603960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000603560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161089d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089490611ca0565b60405180910390fd5b60006108a883610c12565b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108e19190611b58565b60206040518083038186803b1580156108f957600080fd5b505afa15801561090d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109319190611f06565b61093b9190611cef565b90506000610953838361094e8787610794565b610c65565b90506000811415610999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099090611db7565b60405180910390fd5b80603960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a259190611cef565b9250508190555080603860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a7b9190611cef565b92505081905550610a8d848483610e35565b8373ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051610ad592919061163b565b60405180910390a250505050565b6000606580549050905090565b600060658281548110610b0657610b05611f33565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600060378281548110610b4e57610b4d611f33565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000603660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000603560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000603860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000603454905090565b600081603354603560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485610cb69190611f62565b610cc09190611feb565b610cca919061201c565b90509392505050565b80471015610d16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0d9061209c565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051610d3c906120ed565b60006040518083038185875af1925050503d8060008114610d79576040519150601f19603f3d011682016040523d82523d6000602084013e610d7e565b606091505b5050905080610dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db990612174565b60405180910390fd5b505050565b6000610dd230610ebb565b15905090565b600060019054906101000a900460ff16610e27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1e90612206565b60405180910390fd5b610e318282610ede565b5050565b610eb68363a9059cbb60e01b8484604051602401610e5492919061163b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611017565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16610f2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2490612206565b60405180910390fd5b8051825114610f71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6890612298565b60405180910390fd5b6000825111610fb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fac90612304565b60405180910390fd5b60005b825181101561101257610fff838281518110610fd757610fd6611f33565b5b6020026020010151838381518110610ff257610ff1611f33565b5b60200260200101516110de565b808061100a90612324565b915050610fb8565b505050565b6000611079826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661130b9092919063ffffffff16565b90506000815111156110d9578080602001905181019061109991906123a5565b6110d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cf90612444565b60405180910390fd5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561114e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611145906124d6565b60405180910390fd5b60008111611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118890612542565b60405180910390fd5b6000603560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120a906125d4565b60405180910390fd5b6037829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080603560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550806033546112c89190611cef565b6033819055507f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac82826040516112ff92919061163b565b60405180910390a15050565b606061131a8484600085611323565b90509392505050565b606082471015611368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135f90612666565b60405180910390fd5b61137185610ebb565b6113b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a7906126d2565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516113d9919061272e565b60006040518083038185875af1925050503d8060008114611416576040519150601f19603f3d011682016040523d82523d6000602084013e61141b565b606091505b509150915061142b828286611437565b92505050949350505050565b6060831561144757829050611497565b60008351111561145a5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148e91906116fd565b60405180910390fd5b9392505050565b8280546114aa90611bfc565b90600052602060002090601f0160209004810192826114cc5760008555611513565b82601f106114e557805160ff1916838001178555611513565b82800160010185558215611513579182015b828111156115125782518255916020019190600101906114f7565b5b50905061152091906115c4565b5090565b8280548282559060005260206000209081019282156115b3579160200282015b828111156115b257823573ffffffffffffffffffffffffffffffffffffffff168260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190611544565b5b5090506115c091906115c4565b5090565b5b808211156115dd5760008160009055506001016115c5565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061160c826115e1565b9050919050565b61161c81611601565b82525050565b6000819050919050565b61163581611622565b82525050565b60006040820190506116506000830185611613565b61165d602083018461162c565b9392505050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561169e578082015181840152602081019050611683565b838111156116ad576000848401525b50505050565b6000601f19601f8301169050919050565b60006116cf82611664565b6116d9818561166f565b93506116e9818560208601611680565b6116f2816116b3565b840191505092915050565b6000602082019050818103600083015261171781846116c4565b905092915050565b6000604051905090565b600080fd5b600080fd5b600061173e826115e1565b9050919050565b61174e81611733565b811461175957600080fd5b50565b60008135905061176b81611745565b92915050565b60006020828403121561178757611786611729565b5b60006117958482850161175c565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6117e0826116b3565b810181811067ffffffffffffffff821117156117ff576117fe6117a8565b5b80604052505050565b600061181261171f565b905061181e82826117d7565b919050565b600067ffffffffffffffff82111561183e5761183d6117a8565b5b611847826116b3565b9050602081019050919050565b82818337600083830152505050565b600061187661187184611823565b611808565b905082815260208101848484011115611892576118916117a3565b5b61189d848285611854565b509392505050565b600082601f8301126118ba576118b961179e565b5b81356118ca848260208601611863565b91505092915050565b600080fd5b600080fd5b60008083601f8401126118f3576118f261179e565b5b8235905067ffffffffffffffff8111156119105761190f6118d3565b5b60208301915083602082028301111561192c5761192b6118d8565b5b9250929050565b60008083601f8401126119495761194861179e565b5b8235905067ffffffffffffffff811115611966576119656118d3565b5b602083019150836020820283011115611982576119816118d8565b5b9250929050565b6000806000806000606086880312156119a5576119a4611729565b5b600086013567ffffffffffffffff8111156119c3576119c261172e565b5b6119cf888289016118a5565b955050602086013567ffffffffffffffff8111156119f0576119ef61172e565b5b6119fc888289016118dd565b9450945050604086013567ffffffffffffffff811115611a1f57611a1e61172e565b5b611a2b88828901611933565b92509250509295509295909350565b6000602082019050611a4f600083018461162c565b92915050565b6000611a6082611601565b9050919050565b611a7081611a55565b8114611a7b57600080fd5b50565b600081359050611a8d81611a67565b92915050565b611a9c81611601565b8114611aa757600080fd5b50565b600081359050611ab981611a93565b92915050565b60008060408385031215611ad657611ad5611729565b5b6000611ae485828601611a7e565b9250506020611af585828601611aaa565b9150509250929050565b611b0881611622565b8114611b1357600080fd5b50565b600081359050611b2581611aff565b92915050565b600060208284031215611b4157611b40611729565b5b6000611b4f84828501611b16565b91505092915050565b6000602082019050611b6d6000830184611613565b92915050565b600060208284031215611b8957611b88611729565b5b6000611b9784828501611aaa565b91505092915050565b600060208284031215611bb657611bb5611729565b5b6000611bc484828501611a7e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611c1457607f821691505b60208210811415611c2857611c27611bcd565b5b50919050565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b6000611c8a60268361166f565b9150611c9582611c2e565b604082019050919050565b60006020820190508181036000830152611cb981611c7d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611cfa82611622565b9150611d0583611622565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611d3a57611d39611cc0565b5b828201905092915050565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b6000611da1602b8361166f565b9150611dac82611d45565b604082019050919050565b60006020820190508181036000830152611dd081611d94565b9050919050565b6000819050919050565b6000611dfc611df7611df2846115e1565b611dd7565b6115e1565b9050919050565b6000611e0e82611de1565b9050919050565b6000611e2082611e03565b9050919050565b611e3081611e15565b82525050565b6000604082019050611e4b6000830185611e27565b611e58602083018461162c565b9392505050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000611ebb602e8361166f565b9150611ec682611e5f565b604082019050919050565b60006020820190508181036000830152611eea81611eae565b9050919050565b600081519050611f0081611aff565b92915050565b600060208284031215611f1c57611f1b611729565b5b6000611f2a84828501611ef1565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000611f6d82611622565b9150611f7883611622565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611fb157611fb0611cc0565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611ff682611622565b915061200183611622565b92508261201157612010611fbc565b5b828204905092915050565b600061202782611622565b915061203283611622565b92508282101561204557612044611cc0565b5b828203905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000612086601d8361166f565b915061209182612050565b602082019050919050565b600060208201905081810360008301526120b581612079565b9050919050565b600081905092915050565b50565b60006120d76000836120bc565b91506120e2826120c7565b600082019050919050565b60006120f8826120ca565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061215e603a8361166f565b915061216982612102565b604082019050919050565b6000602082019050818103600083015261218d81612151565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006121f0602b8361166f565b91506121fb82612194565b604082019050919050565b6000602082019050818103600083015261221f816121e3565b9050919050565b7f5061796d656e7453706c69747465723a2070617965657320616e64207368617260008201527f6573206c656e677468206d69736d617463680000000000000000000000000000602082015250565b600061228260328361166f565b915061228d82612226565b604082019050919050565b600060208201905081810360008301526122b181612275565b9050919050565b7f5061796d656e7453706c69747465723a206e6f20706179656573000000000000600082015250565b60006122ee601a8361166f565b91506122f9826122b8565b602082019050919050565b6000602082019050818103600083015261231d816122e1565b9050919050565b600061232f82611622565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561236257612361611cc0565b5b600182019050919050565b60008115159050919050565b6123828161236d565b811461238d57600080fd5b50565b60008151905061239f81612379565b92915050565b6000602082840312156123bb576123ba611729565b5b60006123c984828501612390565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061242e602a8361166f565b9150612439826123d2565b604082019050919050565b6000602082019050818103600083015261245d81612421565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b60006124c0602c8361166f565b91506124cb82612464565b604082019050919050565b600060208201905081810360008301526124ef816124b3565b9050919050565b7f5061796d656e7453706c69747465723a20736861726573206172652030000000600082015250565b600061252c601d8361166f565b9150612537826124f6565b602082019050919050565b6000602082019050818103600083015261255b8161251f565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960008201527f2068617320736861726573000000000000000000000000000000000000000000602082015250565b60006125be602b8361166f565b91506125c982612562565b604082019050919050565b600060208201905081810360008301526125ed816125b1565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061265060268361166f565b915061265b826125f4565b604082019050919050565b6000602082019050818103600083015261267f81612643565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006126bc601d8361166f565b91506126c782612686565b602082019050919050565b600060208201905081810360008301526126eb816126af565b9050919050565b600081519050919050565b6000612708826126f2565b61271281856120bc565b9350612722818560208601611680565b80840191505092915050565b600061273a82846126fd565b91508190509291505056fea2646970667358221220f31bd4007d9332bfb266f82432b88e70a33dd5b1c1f44e676fcc7e7a6cf1568e64736f6c63430008090033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.