Contract 0xa65755a01ef7c3d6d3f76c28b30103f2073e5d35 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x93f9ba898b069b2443ba04e044d5df6d50f37b9854b0a05dc8fa45002f03f2b8Grant Role37894572022-07-21 9:29:05194 days 4 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  XY Finance: Aggregator0 CRO0.2707455494250
0xd11c44f47ab880e61bd7d110da8a63a15e70a44a2e475650086ecce905c09814Grant Role15848332022-02-21 10:01:31344 days 3 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  XY Finance: Aggregator0 CRO0.2730650
0x764f5d9e8968b7b1283c64e9d5fc5f15b7b6abe4da915194e7150dfbcf5f467cSet Swapper15845832022-02-21 9:37:13344 days 4 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  XY Finance: Aggregator0 CRO0.2688850
0x911a99947ad6fdd7ed57d4b17db27ca89ac3119968a414fbb9a633d73e47c0e80x6080604015845702022-02-21 9:36:01344 days 4 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  Create: Aggregator0 CRO6.7827050
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x18402e93a001c1ea4bcf144acdc11bd4f05b08adcc55f050c2b0613dd4b53c2a45018972022-09-06 4:01:59147 days 9 hrs ago XY Finance: Aggregator XY Finance: Multicaller190 CRO
0x18402e93a001c1ea4bcf144acdc11bd4f05b08adcc55f050c2b0613dd4b53c2a45018972022-09-06 4:01:59147 days 9 hrs ago XY Finance: X Swapper XY Finance: Aggregator190 CRO
0x59c2e524d6fb88646fe1a23ce56dd54ee0c0d1a0c5dcbc5887d5b5cc76ec8c5745011122022-09-06 2:48:03147 days 10 hrs ago XY Finance: Aggregator XY Finance: Multicaller44 CRO
0x59c2e524d6fb88646fe1a23ce56dd54ee0c0d1a0c5dcbc5887d5b5cc76ec8c5745011122022-09-06 2:48:03147 days 10 hrs ago XY Finance: X Swapper XY Finance: Aggregator44 CRO
0x4f2e45d3a117eceb00b38cd77b76960983835bb5e7676b66c917d9804bc121fa44996922022-09-06 0:33:56147 days 13 hrs ago XY Finance: Aggregator XY Finance: Multicaller550 CRO
0x4f2e45d3a117eceb00b38cd77b76960983835bb5e7676b66c917d9804bc121fa44996922022-09-06 0:33:56147 days 13 hrs ago XY Finance: X Swapper XY Finance: Aggregator550 CRO
0xfe6574e6cd8de59f646480648a63206b3f8453f615ac9fac41c6620c3f53e48b44975782022-09-05 21:14:26147 days 16 hrs ago XY Finance: Aggregator XY Finance: Multicaller350 CRO
0xfe6574e6cd8de59f646480648a63206b3f8453f615ac9fac41c6620c3f53e48b44975782022-09-05 21:14:26147 days 16 hrs ago XY Finance: X Swapper XY Finance: Aggregator350 CRO
0xc72012dc087e27b73606f1ad7053c434f7fe6c3475d21fae63b85109bde8ca1444969042022-09-05 20:10:47147 days 17 hrs ago XY Finance: Aggregator XY Finance: Multicaller850 CRO
0xc72012dc087e27b73606f1ad7053c434f7fe6c3475d21fae63b85109bde8ca1444969042022-09-05 20:10:47147 days 17 hrs ago XY Finance: X Swapper XY Finance: Aggregator850 CRO
0x5008fc4c0eb538bc0cd7940b0a0ed6d96502530b264362a4a56b3dc4688baad344966952022-09-05 19:51:00147 days 17 hrs ago XY Finance: Aggregator XY Finance: Multicaller40 CRO
0x5008fc4c0eb538bc0cd7940b0a0ed6d96502530b264362a4a56b3dc4688baad344966952022-09-05 19:51:00147 days 17 hrs ago XY Finance: X Swapper XY Finance: Aggregator40 CRO
0xc952e4ca06ceeccc2f9df4c734001318d1fa011cc63fe01e3a0267a3060f651b44963582022-09-05 19:19:14147 days 18 hrs ago XY Finance: Aggregator XY Finance: Multicaller516.9 CRO
0xc952e4ca06ceeccc2f9df4c734001318d1fa011cc63fe01e3a0267a3060f651b44963582022-09-05 19:19:14147 days 18 hrs ago XY Finance: X Swapper XY Finance: Aggregator516.9 CRO
0x171e77a6cbcdc20d5a88ebc3a6390853e7e2f1d103161a9b88261beac80d467844960682022-09-05 18:51:50147 days 18 hrs ago XY Finance: Aggregator XY Finance: Multicaller500 CRO
0x171e77a6cbcdc20d5a88ebc3a6390853e7e2f1d103161a9b88261beac80d467844960682022-09-05 18:51:50147 days 18 hrs ago XY Finance: X Swapper XY Finance: Aggregator500 CRO
0x03d9fd4aab701541e8ba033646fff3e62da1199bdd992b4ee8bc22961468a27944947072022-09-05 16:43:19147 days 20 hrs ago XY Finance: Aggregator XY Finance: Multicaller1,795.02619992812016 CRO
0x03d9fd4aab701541e8ba033646fff3e62da1199bdd992b4ee8bc22961468a27944947072022-09-05 16:43:19147 days 20 hrs ago XY Finance: X Swapper XY Finance: Aggregator1,795.02619992812016 CRO
0x7957c5f3a367f39c2e21bdce4555feee53f79a094bdad175977e873078aff7c444937352022-09-05 15:11:34147 days 22 hrs ago XY Finance: Aggregator XY Finance: Multicaller1,150 CRO
0x7957c5f3a367f39c2e21bdce4555feee53f79a094bdad175977e873078aff7c444937352022-09-05 15:11:34147 days 22 hrs ago XY Finance: X Swapper XY Finance: Aggregator1,150 CRO
0x23a339af3f161e5a139dc2fc447b4faff0d6c87c5dc71c4212b2ce41140361bf44879312022-09-05 6:03:45148 days 7 hrs ago XY Finance: Aggregator XY Finance: Multicaller1,750 CRO
0x23a339af3f161e5a139dc2fc447b4faff0d6c87c5dc71c4212b2ce41140361bf44879312022-09-05 6:03:45148 days 7 hrs ago XY Finance: X Swapper XY Finance: Aggregator1,750 CRO
0x12feefbf80451edd7993dab1eed3015f135562e2f3ac73d79747c7046b05cf2f44877772022-09-05 5:49:14148 days 7 hrs ago XY Finance: Aggregator XY Finance: Multicaller1,200 CRO
0x12feefbf80451edd7993dab1eed3015f135562e2f3ac73d79747c7046b05cf2f44877772022-09-05 5:49:14148 days 7 hrs ago XY Finance: X Swapper XY Finance: Aggregator1,200 CRO
0xfb2645ff403c61bd72e34a13aacb58a93a5e6a8a081c0022457b6e78d0ca91d244873252022-09-05 5:06:36148 days 8 hrs ago XY Finance: Aggregator XY Finance: Multicaller1,030 CRO
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Aggregator

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, None license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 15 : Aggregator.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

import { Address } from "Address.sol";
import "SafeERC20.sol";
import "ERC20.sol";
import "SafeMath.sol";
import "AccessControl.sol";
import "ReentrancyGuard.sol";
import "IAggregator.sol";


/// @title Library for unifying getting balance in one interface
/// @notice Use `uniBalanceOf` to get amount of the desired token or native token balance
library UniERC20 {

    // native token addresses
    address private constant _ETH_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
    address private constant _ZERO_ADDRESS = address(0);

    /// @notice Check if the given token address is native token
    /// @param token The token address to be checked
    /// @return `true` if native token, otherwise `false`
    function isETH(IERC20 token) internal pure returns (bool) {
        return (address(token) == _ZERO_ADDRESS || address(token) == _ETH_ADDRESS);
    }

    /// @notice Get balance of the desired account address of the given token
    /// @param token The token address to be checked
    /// @param account The address to be checked
    /// @return The token balance of the desired account address
    function uniBalanceOf(IERC20 token, address account) internal view returns (uint256) {
        if (isETH(token)) {
            return account.balance;
        } else {
            return token.balanceOf(account);
        }
    }
}

/// @title Aggregator is to help exchange assets based on swap description struct
/// @notice Users can call `swap` method to swap assets
/// Aggregator will forward the swap description to `caller` contract to perform multi-swap of assets
contract Aggregator is IAggregator, AccessControl, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using UniERC20 for IERC20;

    /* ========== STATE VARIABLES ========== */

    // ROLE_OWNER is superior to ROLE_STAFF
    bytes32 public constant ROLE_OWNER = keccak256("ROLE_OWNER");
    bytes32 public constant ROLE_STAFF = keccak256("ROLE_STAFF");
    bytes32 public constant ROLE_SWAPPER = keccak256("ROLE_SWAPPER");

    /// A contract that performs multi-swap according to given input data
    /// See Multicaller.sol for more info
    address payable public caller;

    /* ========== CONSTRUCTOR ========== */

    /// @dev Constuctor with owner / staff / caller
    /// @param owner The owner address
    /// @param staff The staff address
    /// @param _caller The caller contract address (MUST be a contract)
    constructor(address owner, address staff, address payable _caller) {
        _setRoleAdmin(ROLE_OWNER, ROLE_OWNER);
        _setRoleAdmin(ROLE_STAFF, ROLE_OWNER);
        _setRoleAdmin(ROLE_SWAPPER, ROLE_OWNER);
        _setupRole(ROLE_OWNER, owner);
        _setupRole(ROLE_STAFF, staff);

        require(Address.isContract(_caller), "ERR_MULTICALLER_NOT_CONTRACT");
        caller = _caller;
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    /// @notice Set swapper address.
    /// @param swapper The swapper address. This aggregator should only be used
    /// by `swapper`.
    function setSwapper(address swapper) external onlyRole(ROLE_STAFF) {
        require(Address.isContract(swapper), "ERR_SWAPPER_NOT_CONTRACT");
        _setupRole(ROLE_SWAPPER, swapper);
    }

    /// @notice Set caller address (could be set only by staff)
    /// @param _caller The multicaller contract address that performs multi-swap
    function setCaller(address payable _caller) external onlyRole(ROLE_STAFF) {
        require(Address.isContract(_caller), "ERR_MULTICALLER_NOT_CONTRACT");
        caller = _caller;
    }

    /* ========== WRITE FUNCTIONS ========== */

    /// @notice Swap and check if it's done correctly according to swap description `desc`
    /// This function transfers asset from sender `msg.sender` and then call multicaller contract `caller` to perform multi-swap,
    /// and checks `minReturnAmount` in `desc` to ensure enough amount of desired token `toToken` is received after the swap.
    /// Only `ROLE_SWAPPER` is allowed to access the function.
    /// @param desc The description of the swap. See IAggregator.sol for more info.
    /// @param data Bytecode to execute the swap, forwarded to `caller`
    /// @return Received amount of `toToken` after the swap
    function swap(
        SwapDescription calldata desc,
        bytes calldata data
    )
        external
        override
        payable
        onlyRole(ROLE_SWAPPER)
        nonReentrant
        returns (uint256)
    {
        require(desc.minReturnAmount > 0, "Min return should not be 0");
        require(data.length > 0, "data should be not zero");

        IERC20 fromToken = desc.fromToken;
        IERC20 toToken = desc.toToken;

        require(msg.value == (fromToken.isETH() ? desc.amount : 0), "Invalid msg.value");

        uint256 amount = desc.amount;
        if (!fromToken.isETH()) {
            amount = fromToken.balanceOf(caller);
            fromToken.safeTransferFrom(msg.sender, caller, desc.amount);
            amount = fromToken.balanceOf(caller) - amount;
        }

        require(desc.receiver != address(0), "Invalid receiver");
        address receiver = desc.receiver;
        uint256 toTokenBalance = toToken.uniBalanceOf(receiver);

        Address.functionCallWithValue(caller, data, msg.value, "Caller multiswap failed");

        uint256 returnAmount = toToken.uniBalanceOf(receiver) - toTokenBalance;
        require(returnAmount >= desc.minReturnAmount, "Return amount is not enough");

        emit Swapped(
            msg.sender,
            fromToken,
            toToken,
            receiver,
            amount,
            returnAmount
        );
        return returnAmount;
    }

    /* ========== EVENTS ========== */

    event Swapped(
        address sender,
        IERC20 fromToken,
        IERC20 toToken,
        address receiver,
        uint256 spentAmount,
        uint256 returnAmount
    );
}

File 2 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 15 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC20.sol";
import "Address.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 SafeERC20 {
    using Address for address;

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

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

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

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

    function safeDecreaseAllowance(
        IERC20 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(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

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

File 4 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 15 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC20.sol";
import "IERC20Metadata.sol";
import "Context.sol";

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

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

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

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

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

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

File 6 of 15 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC20.sol";

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

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

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

File 7 of 15 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 8 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 9 of 15 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IAccessControl.sol";
import "Context.sol";
import "Strings.sol";
import "ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 10 of 15 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 11 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 12 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 13 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

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);
}

File 14 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 15 of 15 : IAggregator.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;

import { IERC20 } from "ERC20.sol";


interface IAggregator {
    struct SwapDescription {
        IERC20 fromToken;
        IERC20 toToken;
        address receiver;
        uint256 amount;
        uint256 minReturnAmount;
    }
    function swap(SwapDescription calldata desc, bytes calldata data) external payable returns (uint256 returnAmount);
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"staff","type":"address"},{"internalType":"address payable","name":"_caller","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"contract IERC20","name":"fromToken","type":"address"},{"indexed":false,"internalType":"contract IERC20","name":"toToken","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"spentAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"returnAmount","type":"uint256"}],"name":"Swapped","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_OWNER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_STAFF","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_SWAPPER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"caller","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_caller","type":"address"}],"name":"setCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"swapper","type":"address"}],"name":"setSwapper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20","name":"fromToken","type":"address"},{"internalType":"contract IERC20","name":"toToken","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"}],"internalType":"struct IAggregator.SwapDescription","name":"desc","type":"tuple"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"}]

60806040523480156200001157600080fd5b50604051620017703803806200177083398101604081905262000034916200027f565b600180556200005360008051602062001750833981519152806200017e565b6200007d60008051602062001730833981519152600080516020620017508339815191526200017e565b620000b87fc13d37bfcf41098972f2d4627d2af2a53325662ae966c26de9b2a1fd5315ab00600080516020620017508339815191526200017e565b620000d36000805160206200175083398151915284620001c9565b620000ee6000805160206200173083398151915283620001c9565b6200010481620001d960201b62000a6d1760201c565b620001555760405162461bcd60e51b815260206004820152601c60248201527f4552525f4d554c544943414c4c45525f4e4f545f434f4e545241435400000000604482015260640160405180910390fd5b600280546001600160a01b0319166001600160a01b039290921691909117905550620002eb9050565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b620001d58282620001df565b5050565b3b151590565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001d5576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200023b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008060006060848603121562000294578283fd5b8351620002a181620002d2565b6020850151909350620002b481620002d2565b6040850151909250620002c781620002d2565b809150509250925092565b6001600160a01b0381168114620002e857600080fd5b50565b61143580620002fb6000396000f3fe6080604052600436106100dd5760003560e01c806391d148541161007f578063beb92f5511610059578063beb92f5514610267578063d547741f14610287578063f5c957a5146102a7578063fc9c8d39146102db576100dd565b806391d14854146102125780639c82f2a414610232578063a217fddf14610252576100dd565b80632f2ff15d116100bb5780632f2ff15d1461018957806336568abe146101ab5780638218b58f146101cb5780638ad682af146101de576100dd565b806301ffc9a7146100e257806322bf2e2414610117578063248a9ca314610159575b600080fd5b3480156100ee57600080fd5b506101026100fd3660046111b7565b610313565b60405190151581526020015b60405180910390f35b34801561012357600080fd5b5061014b7f358933fb1b4f9e62c7cd3651025ad8825acb20ebbb23b09160e3867d71501ddd81565b60405190815260200161010e565b34801561016557600080fd5b5061014b610174366004611170565b60009081526020819052604090206001015490565b34801561019557600080fd5b506101a96101a4366004611188565b61034a565b005b3480156101b757600080fd5b506101a96101c6366004611188565b610376565b61014b6101d93660046111df565b6103f9565b3480156101ea57600080fd5b5061014b7f9f4e1c871d5fdd0aee1cd182666698a4492b24c6832aac230d07b11046af5a8981565b34801561021e57600080fd5b5061010261022d366004611188565b6108df565b34801561023e57600080fd5b506101a961024d366004611134565b610908565b34801561025e57600080fd5b5061014b600081565b34801561027357600080fd5b506101a9610282366004611134565b6109ab565b34801561029357600080fd5b506101a96102a2366004611188565b610a47565b3480156102b357600080fd5b5061014b7fc13d37bfcf41098972f2d4627d2af2a53325662ae966c26de9b2a1fd5315ab0081565b3480156102e757600080fd5b506002546102fb906001600160a01b031681565b6040516001600160a01b03909116815260200161010e565b60006001600160e01b03198216637965db0b60e01b148061034457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60008281526020819052604090206001015461036781335b610a73565b6103718383610ad7565b505050565b6001600160a01b03811633146103eb5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6103f58282610b5b565b5050565b60007fc13d37bfcf41098972f2d4627d2af2a53325662ae966c26de9b2a1fd5315ab006104268133610362565b600260015414156104795760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103e2565b600260015560808501356104cf5760405162461bcd60e51b815260206004820152601a60248201527f4d696e2072657475726e2073686f756c64206e6f74206265203000000000000060448201526064016103e2565b8261051c5760405162461bcd60e51b815260206004820152601760248201527f646174612073686f756c64206265206e6f74207a65726f00000000000000000060448201526064016103e2565b600061052b6020870187611134565b9050600061053f6040880160208901611134565b9050610553826001600160a01b0316610bc0565b61055e576000610564565b86606001355b34146105a65760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964206d73672e76616c756560781b60448201526064016103e2565b60608701356105bd6001600160a01b038416610bc0565b6106ec576002546040516370a0823160e01b81526001600160a01b039182166004820152908416906370a082319060240160206040518083038186803b15801561060657600080fd5b505afa15801561061a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063e9190611264565b600254909150610661906001600160a01b038581169133911660608c0135610bf6565b6002546040516370a0823160e01b81526001600160a01b03918216600482015282918516906370a082319060240160206040518083038186803b1580156106a757600080fd5b505afa1580156106bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106df9190611264565b6106e99190611377565b90505b60006106fe60608a0160408b01611134565b6001600160a01b031614156107485760405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2103932b1b2b4bb32b960811b60448201526064016103e2565b600061075a60608a0160408b01611134565b905060006107716001600160a01b03851683610c56565b600254604080516020601f8d018190048102820181019092528b81529293506107f7926001600160a01b0390921691908c908c90819084018382808284376000920191909152505060408051808201909152601781527f43616c6c6572206d756c746973776170206661696c656400000000000000000060208201523492509050610cf7565b5060008161080e6001600160a01b03871685610c56565b6108189190611377565b90508a6080013581101561086e5760405162461bcd60e51b815260206004820152601b60248201527f52657475726e20616d6f756e74206973206e6f7420656e6f756768000000000060448201526064016103e2565b604080513381526001600160a01b03888116602083015287811682840152851660608201526080810186905260a0810183905290517fd6d4f5681c246c9f42c203e287975af1601f8df8035a9251f79aab5c8f09e2f89181900360c00190a1600180559a9950505050505050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b7f358933fb1b4f9e62c7cd3651025ad8825acb20ebbb23b09160e3867d71501ddd6109338133610362565b813b6109815760405162461bcd60e51b815260206004820152601860248201527f4552525f535741505045525f4e4f545f434f4e5452414354000000000000000060448201526064016103e2565b6103f57fc13d37bfcf41098972f2d4627d2af2a53325662ae966c26de9b2a1fd5315ab0083610e1f565b7f358933fb1b4f9e62c7cd3651025ad8825acb20ebbb23b09160e3867d71501ddd6109d68133610362565b813b610a245760405162461bcd60e51b815260206004820152601c60248201527f4552525f4d554c544943414c4c45525f4e4f545f434f4e54524143540000000060448201526064016103e2565b50600280546001600160a01b0319166001600160a01b0392909216919091179055565b600082815260208190526040902060010154610a638133610362565b6103718383610b5b565b3b151590565b610a7d82826108df565b6103f557610a95816001600160a01b03166014610e29565b610aa0836020610e29565b604051602001610ab1929190611298565b60408051601f198184030181529082905262461bcd60e51b82526103e29160040161130d565b610ae182826108df565b6103f5576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610b173390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610b6582826108df565b156103f5576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006001600160a01b03821615806103445750506001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610c50908590611012565b50505050565b6000610c6183610bc0565b15610c7757506001600160a01b03811631610344565b6040516370a0823160e01b81526001600160a01b0383811660048301528416906370a082319060240160206040518083038186803b158015610cb857600080fd5b505afa158015610ccc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf09190611264565b9050610344565b606082471015610d585760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103e2565b843b610da65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103e2565b600080866001600160a01b03168587604051610dc2919061127c565b60006040518083038185875af1925050503d8060008114610dff576040519150601f19603f3d011682016040523d82523d6000602084013e610e04565b606091505b5091509150610e148282866110e4565b979650505050505050565b6103f58282610ad7565b60606000610e38836002611358565b610e43906002611340565b67ffffffffffffffff811115610e6957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610e93576020820181803683370190505b509050600360fc1b81600081518110610ebc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610ef957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000610f1d846002611358565b610f28906001611340565b90505b6001811115610fbc576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610f6a57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110610f8e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93610fb5816113ba565b9050610f2b565b50831561100b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016103e2565b9392505050565b6000611067826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661111d9092919063ffffffff16565b80519091501561037157808060200190518101906110859190611150565b6103715760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103e2565b606083156110f357508161100b565b8251156111035782518084602001fd5b8160405162461bcd60e51b81526004016103e2919061130d565b606061112c8484600085610cf7565b949350505050565b600060208284031215611145578081fd5b813561100b816113e7565b600060208284031215611161578081fd5b8151801515811461100b578182fd5b600060208284031215611181578081fd5b5035919050565b6000806040838503121561119a578081fd5b8235915060208301356111ac816113e7565b809150509250929050565b6000602082840312156111c8578081fd5b81356001600160e01b03198116811461100b578182fd5b600080600083850360c08112156111f4578182fd5b60a0811215611201578182fd5b5083925060a084013567ffffffffffffffff8082111561121f578283fd5b818601915086601f830112611232578283fd5b813581811115611240578384fd5b876020828501011115611251578384fd5b6020830194508093505050509250925092565b600060208284031215611275578081fd5b5051919050565b6000825161128e81846020870161138e565b9190910192915050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516112d081601785016020880161138e565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161130181602884016020880161138e565b01602801949350505050565b600060208252825180602084015261132c81604085016020870161138e565b601f01601f19169190910160400192915050565b60008219821115611353576113536113d1565b500190565b6000816000190483118215151615611372576113726113d1565b500290565b600082821015611389576113896113d1565b500390565b60005b838110156113a9578181015183820152602001611391565b83811115610c505750506000910152565b6000816113c9576113c96113d1565b506000190190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146113fc57600080fd5b5056fea2646970667358221220eca5125e03bf4a8794583ac5d48b6ba8acc3cc7965c208dee01a167113d65ea864736f6c63430008020033358933fb1b4f9e62c7cd3651025ad8825acb20ebbb23b09160e3867d71501ddd9f4e1c871d5fdd0aee1cd182666698a4492b24c6832aac230d07b11046af5a890000000000000000000000000132613b3a1061816f4661ad301612910e3cce0b0000000000000000000000000132613b3a1061816f4661ad301612910e3cce0b0000000000000000000000003243278e0f93cd6f88fc918e0714baf7169afab8

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

0000000000000000000000000132613b3a1061816f4661ad301612910e3cce0b0000000000000000000000000132613b3a1061816f4661ad301612910e3cce0b0000000000000000000000003243278e0f93cd6f88fc918e0714baf7169afab8

-----Decoded View---------------
Arg [0] : owner (address): 0x0132613b3a1061816f4661ad301612910e3cce0b
Arg [1] : staff (address): 0x0132613b3a1061816f4661ad301612910e3cce0b
Arg [2] : _caller (address): 0x3243278e0f93cd6f88fc918e0714baf7169afab8

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000132613b3a1061816f4661ad301612910e3cce0b
Arg [1] : 0000000000000000000000000132613b3a1061816f4661ad301612910e3cce0b
Arg [2] : 0000000000000000000000003243278e0f93cd6f88fc918e0714baf7169afab8


Deployed ByteCode Sourcemap

1657:4297:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2502:202:0;;;;;;;;;;-1:-1:-1;2502:202:0;;;;;:::i;:::-;;:::i;:::-;;;5880:14:15;;5873:22;5855:41;;5843:2;5828:18;2502:202:0;;;;;;;;1953:60:2;;;;;;;;;;;;1990:23;1953:60;;;;;6053:25:15;;;6041:2;6026:18;1953:60:2;6008:76:15;3874:121:0;;;;;;;;;;-1:-1:-1;3874:121:0;;;;;:::i;:::-;3940:7;3966:12;;;;;;;;;;:22;;;;3874:121;4245:145;;;;;;;;;;-1:-1:-1;4245:145:0;;;;;:::i;:::-;;:::i;:::-;;5262:214;;;;;;;;;;-1:-1:-1;5262:214:0;;;;;:::i;:::-;;:::i;4296:1431:2:-;;;;;;:::i;:::-;;:::i;1887:60::-;;;;;;;;;;;;1924:23;1887:60;;2791:137:0;;;;;;;;;;-1:-1:-1;2791:137:0;;;;;:::i;:::-;;:::i;3088:191:2:-;;;;;;;;;;-1:-1:-1;3088:191:2;;;;;:::i;:::-;;:::i;1909:49:0:-;;;;;;;;;;-1:-1:-1;1909:49:0;1954:4;1909:49;;3430:185:2;;;;;;;;;;-1:-1:-1;3430:185:2;;;;;:::i;:::-;;:::i;4624:147:0:-;;;;;;;;;;-1:-1:-1;4624:147:0;;;;;:::i;:::-;;:::i;2019:64:2:-;;;;;;;;;;;;2058:25;2019:64;;2206:29;;;;;;;;;;-1:-1:-1;2206:29:2;;;;-1:-1:-1;;;;;2206:29:2;;;;;;-1:-1:-1;;;;;4207:32:15;;;4189:51;;4177:2;4162:18;2206:29:2;4144:102:15;2502:202:0;2587:4;-1:-1:-1;;;;;;2610:47:0;;-1:-1:-1;;;2610:47:0;;:87;;-1:-1:-1;;;;;;;;;;869:40:4;;;2661:36:0;2603:94;2502:202;-1:-1:-1;;2502:202:0:o;4245:145::-;3940:7;3966:12;;;;;;;;;;:22;;;2387:30;2398:4;666:10:3;2404:12:0;2387:10;:30::i;:::-;4358:25:::1;4369:4;4375:7;4358:10;:25::i;:::-;4245:145:::0;;;:::o;5262:214::-;-1:-1:-1;;;;;5357:23:0;;666:10:3;5357:23:0;5349:83;;;;-1:-1:-1;;;5349:83:0;;11040:2:15;5349:83:0;;;11022:21:15;11079:2;11059:18;;;11052:30;11118:34;11098:18;;;11091:62;-1:-1:-1;;;11169:18:15;;;11162:45;11224:19;;5349:83:0;;;;;;;;;5443:26;5455:4;5461:7;5443:11;:26::i;:::-;5262:214;;:::o;4296:1431:2:-;4503:7;2058:25;2387:30:0;2058:25:2;666:10:3;2404:12:0;587:96:3;2387:30:0;1680:1:11::1;2259:7;;:19;;2251:63;;;::::0;-1:-1:-1;;;2251:63:11;;10680:2:15;2251:63:11::1;::::0;::::1;10662:21:15::0;10719:2;10699:18;;;10692:30;10758:33;10738:18;;;10731:61;10809:18;;2251:63:11::1;10652:181:15::0;2251:63:11::1;1680:1;2389:7;:18:::0;4534:20:2::2;::::0;::::2;;4526:63;;;::::0;-1:-1:-1;;;4526:63:2;;8494:2:15;4526:63:2::2;::::0;::::2;8476:21:15::0;8533:2;8513:18;;;8506:30;8572:28;8552:18;;;8545:56;8618:18;;4526:63:2::2;8466:176:15::0;4526:63:2::2;4607:15:::0;4599:51:::2;;;::::0;-1:-1:-1;;;4599:51:2;;8849:2:15;4599:51:2::2;::::0;::::2;8831:21:15::0;8888:2;8868:18;;;8861:30;8927:25;8907:18;;;8900:53;8970:18;;4599:51:2::2;8821:173:15::0;4599:51:2::2;4661:16;4680:14;;::::0;::::2;:4:::0;:14:::2;:::i;:::-;4661:33:::0;-1:-1:-1;4704:14:2::2;4721:12;::::0;;;::::2;::::0;::::2;;:::i;:::-;4704:29;;4766:17;:9;-1:-1:-1::0;;;;;4766:15:2::2;;:17::i;:::-;:35;;4800:1;4766:35;;;4786:4;:11;;;4766:35;4752:9;:50;4744:80;;;::::0;-1:-1:-1;;;4744:80:2;;7040:2:15;4744:80:2::2;::::0;::::2;7022:21:15::0;7079:2;7059:18;;;7052:30;-1:-1:-1;;;7098:18:15;;;7091:47;7155:18;;4744:80:2::2;7012:167:15::0;4744:80:2::2;4852:11;::::0;::::2;;4878:17;-1:-1:-1::0;;;;;4878:15:2;::::2;;:17::i;:::-;4873:217;;4940:6;::::0;4920:27:::2;::::0;-1:-1:-1;;;4920:27:2;;-1:-1:-1;;;;;4940:6:2;;::::2;4920:27;::::0;::::2;4189:51:15::0;4920:19:2;;::::2;::::0;::::2;::::0;4162:18:15;;4920:27:2::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5000:6;::::0;4911:36;;-1:-1:-1;4961:59:2::2;::::0;-1:-1:-1;;;;;4961:26:2;;::::2;::::0;4988:10:::2;::::0;5000:6:::2;5008:11;::::0;::::2;;4961:26;:59::i;:::-;5063:6;::::0;5043:27:::2;::::0;-1:-1:-1;;;5043:27:2;;-1:-1:-1;;;;;5063:6:2;;::::2;5043:27;::::0;::::2;4189:51:15::0;5073:6:2;;5043:19;::::2;::::0;::::2;::::0;4162:18:15;;5043:27:2::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:36;;;;:::i;:::-;5034:45;;4873:217;5133:1;5108:13;::::0;;;::::2;::::0;::::2;;:::i;:::-;-1:-1:-1::0;;;;;5108:27:2::2;;;5100:56;;;::::0;-1:-1:-1;;;5100:56:2;;7793:2:15;5100:56:2::2;::::0;::::2;7775:21:15::0;7832:2;7812:18;;;7805:30;-1:-1:-1;;;7851:18:15;;;7844:46;7907:18;;5100:56:2::2;7765:166:15::0;5100:56:2::2;5166:16;5185:13;::::0;;;::::2;::::0;::::2;;:::i;:::-;5166:32:::0;-1:-1:-1;5208:22:2::2;5233:30;-1:-1:-1::0;;;;;5233:20:2;::::2;5166:32:::0;5233:20:::2;:30::i;:::-;5304:6;::::0;5274:81:::2;::::0;;::::2;;::::0;::::2;::::0;;::::2;::::0;::::2;::::0;;;;;;;;;;5208:55;;-1:-1:-1;5274:81:2::2;::::0;-1:-1:-1;;;;;5304:6:2;;::::2;::::0;5274:81;5312:4;;;;;;5274:81;::::2;5312:4:::0;;;;5274:81;::::2;;::::0;::::2;::::0;;;;-1:-1:-1;;5274:81:2::2;::::0;;;;::::2;::::0;;;::::2;::::0;;::::2;;::::0;::::2;::::0;5318:9:::2;::::0;-1:-1:-1;5274:81:2;-1:-1:-1;5274:29:2::2;:81::i;:::-;-1:-1:-1::0;5366:20:2::2;5422:14:::0;5389:30:::2;-1:-1:-1::0;;;;;5389:20:2;::::2;5410:8:::0;5389:20:::2;:30::i;:::-;:47;;;;:::i;:::-;5366:70;;5470:4;:20;;;5454:12;:36;;5446:76;;;::::0;-1:-1:-1;;;5446:76:2;;8138:2:15;5446:76:2::2;::::0;::::2;8120:21:15::0;8177:2;8157:18;;;8150:30;8216:29;8196:18;;;8189:57;8263:18;;5446:76:2::2;8110:177:15::0;5446:76:2::2;5538:153;::::0;;5559:10:::2;5426:34:15::0;;-1:-1:-1;;;;;5496:15:15;;;5491:2;5476:18;;5469:43;5548:15;;;5528:18;;;5521:43;5600:15;;5595:2;5580:18;;5573:43;5647:3;5632:19;;5625:35;;;5406:3;5676:19;;5669:35;;;5538:153:2;;::::2;::::0;;;;5375:3:15;5538:153:2;;::::2;1637:1:11::1;2562:22:::0;;5708:12:2;4296:1431;-1:-1:-1;;;;;;;;;;4296:1431:2:o;2791:137:0:-;2869:4;2892:12;;;;;;;;;;;-1:-1:-1;;;;;2892:29:0;;;;;;;;;;;;;;;2791:137::o;3088:191:2:-;1990:23;2387:30:0;1990:23:2;666:10:3;2404:12:0;587:96:3;2387:30:0;1034:20:1;;3165:64:2::1;;;::::0;-1:-1:-1;;;3165:64:2;;9916:2:15;3165:64:2::1;::::0;::::1;9898:21:15::0;9955:2;9935:18;;;9928:30;9994:26;9974:18;;;9967:54;10038:18;;3165:64:2::1;9888:174:15::0;3165:64:2::1;3239:33;2058:25;3264:7;3239:10;:33::i;3430:185::-:0;1990:23;2387:30:0;1990:23:2;666:10:3;2404:12:0;587:96:3;2387:30:0;1034:20:1;;3514:68:2::1;;;::::0;-1:-1:-1;;;3514:68:2;;9201:2:15;3514:68:2::1;::::0;::::1;9183:21:15::0;9240:2;9220:18;;;9213:30;9279;9259:18;;;9252:58;9327:18;;3514:68:2::1;9173:178:15::0;3514:68:2::1;-1:-1:-1::0;3592:6:2::1;:16:::0;;-1:-1:-1;;;;;;3592:16:2::1;-1:-1:-1::0;;;;;3592:16:2;;;::::1;::::0;;;::::1;::::0;;3430:185::o;4624:147:0:-;3940:7;3966:12;;;;;;;;;;:22;;;2387:30;2398:4;666:10:3;2404:12:0;587:96:3;2387:30:0;4738:26:::1;4750:4;4756:7;4738:11;:26::i;718:377:1:-:0;1034:20;1080:8;;;718:377::o;3209:484:0:-;3289:22;3297:4;3303:7;3289;:22::i;:::-;3284:403;;3472:41;3500:7;-1:-1:-1;;;;;3472:41:0;3510:2;3472:19;:41::i;:::-;3584:38;3612:4;3619:2;3584:19;:38::i;:::-;3379:265;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;3379:265:0;;;;;;;;;;-1:-1:-1;;;3327:349:0;;;;;;;:::i;6529:224::-;6603:22;6611:4;6617:7;6603;:22::i;:::-;6598:149;;6641:6;:12;;;;;;;;;;;-1:-1:-1;;;;;6641:29:0;;;;;;;;;:36;;-1:-1:-1;;6641:36:0;6673:4;6641:36;;;6723:12;666:10:3;587:96;;6723:12:0;-1:-1:-1;;;;;6696:40:0;6714:7;-1:-1:-1;;;;;6696:40:0;6708:4;6696:40;;;;;;;;;;6529:224;;:::o;6759:225::-;6833:22;6841:4;6847:7;6833;:22::i;:::-;6829:149;;;6903:5;6871:12;;;;;;;;;;;-1:-1:-1;;;;;6871:29:0;;;;;;;;;;:37;;-1:-1:-1;;6871:37:0;;;6927:40;666:10:3;;6871:12:0;;6927:40;;6903:5;6927:40;6759:225;;:::o;785:149:2:-;837:4;-1:-1:-1;;;;;861:31:2;;;;:65;;-1:-1:-1;;;;;;;896:30:2;503:42;896:30;;785:149::o;827:241:12:-;992:68;;;-1:-1:-1;;;;;4949:15:15;;;992:68:12;;;4931:34:15;5001:15;;4981:18;;;4974:43;5033:18;;;;5026:34;;;992:68:12;;;;;;;;;;4866:18:15;;;;992:68:12;;;;;;;;-1:-1:-1;;;;;992:68:12;-1:-1:-1;;;992:68:12;;;965:96;;985:5;;965:19;:96::i;:::-;827:241;;;;:::o;1185:228:2:-;1261:7;1284:12;1290:5;1284;:12::i;:::-;1280:127;;;-1:-1:-1;;;;;;1319:15:2;;;1312:22;;1280:127;1372:24;;-1:-1:-1;;;1372:24:2;;-1:-1:-1;;;;;4207:32:15;;;1372:24:2;;;4189:51:15;1372:15:2;;;;;4162:18:15;;1372:24:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1365:31;;;;4548:499:1;4713:12;4770:5;4745:21;:30;;4737:81;;;;-1:-1:-1;;;4737:81:1;;7386:2:15;4737:81:1;;;7368:21:15;7425:2;7405:18;;;7398:30;7464:34;7444:18;;;7437:62;-1:-1:-1;;;7515:18:15;;;7508:36;7561:19;;4737:81:1;7358:228:15;4737:81:1;1034:20;;4828:60;;;;-1:-1:-1;;;4828:60:1;;9558:2:15;4828:60:1;;;9540:21:15;9597:2;9577:18;;;9570:30;9636:31;9616:18;;;9609:59;9685:18;;4828:60:1;9530:179:15;4828:60:1;4900:12;4914:23;4941:6;-1:-1:-1;;;;;4941:11:1;4960:5;4967:4;4941:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4899:73;;;;4989:51;5006:7;5015:10;5027:12;4989:16;:51::i;:::-;4982:58;4548:499;-1:-1:-1;;;;;;;4548:499:1:o;6041:110:0:-;6119:25;6130:4;6136:7;6119:10;:25::i;1535:441:14:-;1610:13;1635:19;1667:10;1671:6;1667:1;:10;:::i;:::-;:14;;1680:1;1667:14;:::i;:::-;1657:25;;;;;;-1:-1:-1;;;1657:25:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1657:25:14;;1635:47;;-1:-1:-1;;;1692:6:14;1699:1;1692:9;;;;;;-1:-1:-1;;;1692:9:14;;;;;;;;;;;;:15;-1:-1:-1;;;;;1692:15:14;;;;;;;;;-1:-1:-1;;;1717:6:14;1724:1;1717:9;;;;;;-1:-1:-1;;;1717:9:14;;;;;;;;;;;;:15;-1:-1:-1;;;;;1717:15:14;;;;;;;;-1:-1:-1;1747:9:14;1759:10;1763:6;1759:1;:10;:::i;:::-;:14;;1772:1;1759:14;:::i;:::-;1747:26;;1742:132;1779:1;1775;:5;1742:132;;;-1:-1:-1;;;1826:5:14;1834:3;1826:11;1813:25;;;;;-1:-1:-1;;;1813:25:14;;;;;;;;;;;;1801:6;1808:1;1801:9;;;;;;-1:-1:-1;;;1801:9:14;;;;;;;;;;;;:37;-1:-1:-1;;;;;1801:37:14;;;;;;;;-1:-1:-1;1862:1:14;1852:11;;;;;1782:3;;;:::i;:::-;;;1742:132;;;-1:-1:-1;1891:10:14;;1883:55;;;;-1:-1:-1;;;1883:55:14;;6679:2:15;1883:55:14;;;6661:21:15;;;6698:18;;;6691:30;6757:34;6737:18;;;6730:62;6809:18;;1883:55:14;6651:182:15;1883:55:14;1962:6;1535:441;-1:-1:-1;;;1535:441:14:o;3122:706:12:-;3541:23;3567:69;3595:4;3567:69;;;;;;;;;;;;;;;;;3575:5;-1:-1:-1;;;;;3567:27:12;;;:69;;;;;:::i;:::-;3650:17;;3541:95;;-1:-1:-1;3650:21:12;3646:176;;3745:10;3734:30;;;;;;;;;;;;:::i;:::-;3726:85;;;;-1:-1:-1;;;3726:85:12;;10269:2:15;3726:85:12;;;10251:21:15;10308:2;10288:18;;;10281:30;10347:34;10327:18;;;10320:62;-1:-1:-1;;;10398:18:15;;;10391:40;10448:19;;3726:85:12;10241:232:15;7161:692:1;7307:12;7335:7;7331:516;;;-1:-1:-1;7365:10:1;7358:17;;7331:516;7476:17;;:21;7472:365;;7670:10;7664:17;7730:15;7717:10;7713:2;7709:19;7702:44;7619:145;7809:12;7802:20;;-1:-1:-1;;;7802:20:1;;;;;;;;:::i;3461:223::-;3594:12;3625:52;3647:6;3655:4;3661:1;3664:12;3625:21;:52::i;:::-;3618:59;3461:223;-1:-1:-1;;;;3461:223:1:o;14:257:15:-;;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:31;235:5;210:31;:::i;546:297::-;;666:2;654:9;645:7;641:23;637:32;634:2;;;687:6;679;672:22;634:2;724:9;718:16;777:5;770:13;763:21;756:5;753:32;743:2;;804:6;796;789:22;848:190;;960:2;948:9;939:7;935:23;931:32;928:2;;;981:6;973;966:22;928:2;-1:-1:-1;1009:23:15;;918:120;-1:-1:-1;918:120:15:o;1043:325::-;;;1172:2;1160:9;1151:7;1147:23;1143:32;1140:2;;;1193:6;1185;1178:22;1140:2;1234:9;1221:23;1211:33;;1294:2;1283:9;1279:18;1266:32;1307:31;1332:5;1307:31;:::i;:::-;1357:5;1347:15;;;1130:238;;;;;:::o;1373:306::-;;1484:2;1472:9;1463:7;1459:23;1455:32;1452:2;;;1505:6;1497;1490:22;1452:2;1536:23;;-1:-1:-1;;;;;;1588:32:15;;1578:43;;1568:2;;1640:6;1632;1625:22;1961:808;;;;2135:9;2126:7;2122:23;2165:3;2161:2;2157:12;2154:2;;;2187:6;2179;2172:22;2154:2;2216:3;2212:2;2208:12;2205:2;;;2238:6;2230;2223:22;2205:2;;2266:9;2256:19;;2326:3;2315:9;2311:19;2298:33;2350:18;2391:2;2383:6;2380:14;2377:2;;;2412:6;2404;2397:22;2377:2;2455:6;2444:9;2440:22;2430:32;;2500:7;2493:4;2489:2;2485:13;2481:27;2471:2;;2527:6;2519;2512:22;2471:2;2572;2559:16;2598:2;2590:6;2587:14;2584:2;;;2619:6;2611;2604:22;2584:2;2671:7;2664:4;2655:6;2651:2;2647:15;2643:26;2640:39;2637:2;;;2697:6;2689;2682:22;2637:2;2733:4;2729:2;2725:13;2715:23;;2757:6;2747:16;;;;;2102:667;;;;;:::o;2774:194::-;;2897:2;2885:9;2876:7;2872:23;2868:32;2865:2;;;2918:6;2910;2903:22;2865:2;-1:-1:-1;2946:16:15;;2855:113;-1:-1:-1;2855:113:15:o;2973:274::-;;3140:6;3134:13;3156:53;3202:6;3197:3;3190:4;3182:6;3178:17;3156:53;:::i;:::-;3225:16;;;;;3110:137;-1:-1:-1;;3110:137:15:o;3252:786::-;;3663:25;3658:3;3651:38;3718:6;3712:13;3734:62;3789:6;3784:2;3779:3;3775:12;3768:4;3760:6;3756:17;3734:62;:::i;:::-;-1:-1:-1;;;3855:2:15;3815:16;;;3847:11;;;3840:40;3905:13;;3927:63;3905:13;3976:2;3968:11;;3961:4;3949:17;;3927:63;:::i;:::-;4010:17;4029:2;4006:26;;3641:397;-1:-1:-1;;;;3641:397:15:o;6089:383::-;;6238:2;6227:9;6220:21;6270:6;6264:13;6313:6;6308:2;6297:9;6293:18;6286:34;6329:66;6388:6;6383:2;6372:9;6368:18;6363:2;6355:6;6351:15;6329:66;:::i;:::-;6456:2;6435:15;-1:-1:-1;;6431:29:15;6416:45;;;;6463:2;6412:54;;6210:262;-1:-1:-1;;6210:262:15:o;11436:128::-;;11507:1;11503:6;11500:1;11497:13;11494:2;;;11513:18;;:::i;:::-;-1:-1:-1;11549:9:15;;11484:80::o;11569:168::-;;11675:1;11671;11667:6;11663:14;11660:1;11657:21;11652:1;11645:9;11638:17;11634:45;11631:2;;;11682:18;;:::i;:::-;-1:-1:-1;11722:9:15;;11621:116::o;11742:125::-;;11810:1;11807;11804:8;11801:2;;;11815:18;;:::i;:::-;-1:-1:-1;11852:9:15;;11791:76::o;11872:258::-;11944:1;11954:113;11968:6;11965:1;11962:13;11954:113;;;12044:11;;;12038:18;12025:11;;;12018:39;11990:2;11983:10;11954:113;;;12085:6;12082:1;12079:13;12076:2;;;-1:-1:-1;;12120:1:15;12102:16;;12095:27;11925:205::o;12135:136::-;;12202:5;12192:2;;12211:18;;:::i;:::-;-1:-1:-1;;;12247:18:15;;12182:89::o;12276:127::-;12337:10;12332:3;12328:20;12325:1;12318:31;12368:4;12365:1;12358:15;12392:4;12389:1;12382:15;12408:131;-1:-1:-1;;;;;12483:31:15;;12473:42;;12463:2;;12529:1;12526;12519:12;12463:2;12453:86;:::o

Swarm Source

ipfs://eca5125e03bf4a8794583ac5d48b6ba8acc3cc7965c208dee01a167113d65ea8
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.