Contract 0x3243278e0f93cd6f88fc918e0714baf7169afab8 2

Contract Overview

XY Finance: Multicaller
Balance:
0 CRO

CRO Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x4e9bc4246e69b09a266b832da62625d0f12dee0838f66a65f8a4009572d144c6Set Router36817382022-07-14 6:53:20148 days 6 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  XY Finance: Multicaller0 CRO0.259259478929 4,963.423803072
0x4b6bb07edff96bcf1cbe1d942c4a669acc464993270f3aefe7eb4ae13c57d162Set Router28018982022-05-17 3:43:24206 days 9 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  XY Finance: Multicaller0 CRO0.2610309065140
0x5d7d79871c74f8f13bcfb947ed468686ec0122df2bc350b57c2ad8bf6ed56ae2Set Router28018672022-05-17 3:40:25206 days 9 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  XY Finance: Multicaller0 CRO0.2610309728990
0x6bab6a70d23e91f56c6272201588fdd50083269a4a846f35b551a0036959fb3bSet Aggregator15845812022-02-21 9:37:01291 days 3 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  XY Finance: Multicaller0 CRO0.269120
0x7b5705e6e8b481eb8a1a9d649ad623810865752e6b91d972411df041f0a664baSet Router15845792022-02-21 9:36:50291 days 3 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  XY Finance: Multicaller0 CRO0.261170
0x94f7deb0658fee220e381e0c34e331a893d49462f01f18be658937baf5cbeac2Set Router15845772022-02-21 9:36:41291 days 3 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  XY Finance: Multicaller0 CRO0.248670
0x30b3b030d4496cd2761547f9338a255257d244fb6b005c21dc62b45a4575caadSet Router15845732022-02-21 9:36:18291 days 3 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  XY Finance: Multicaller0 CRO0.261170
0x0654bb39474b7d2d85ace2bb5d7dcde62437dc8870a8b1b157891143adf4abb80x6080604015845682022-02-21 9:35:49291 days 3 hrs ago0x0132613b3a1061816f4661ad301612910e3cce0b IN  Create: Multicaller0 CRO8.2598950
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xfe9bbcd8638e6951dc29e55828205f9cf14b8e36fe0acc11c4c38739b2ec8ade45025752022-09-06 5:05:5694 days 8 hrs ago XY Finance: Multicaller0xd5cfd0c25bc833bd679750c0a120c8391547eb0c13,952.943250419873696168 CRO
0xfe9bbcd8638e6951dc29e55828205f9cf14b8e36fe0acc11c4c38739b2ec8ade45025752022-09-06 5:05:5694 days 8 hrs ago VVS Finance: Router XY Finance: Multicaller13,952.943250419873696168 CRO
0x18402e93a001c1ea4bcf144acdc11bd4f05b08adcc55f050c2b0613dd4b53c2a45018972022-09-06 4:01:5994 days 9 hrs ago XY Finance: Multicaller CronaSwap: Router190 CRO
0x18402e93a001c1ea4bcf144acdc11bd4f05b08adcc55f050c2b0613dd4b53c2a45018972022-09-06 4:01:5994 days 9 hrs ago XY Finance: Aggregator XY Finance: Multicaller190 CRO
0x59c2e524d6fb88646fe1a23ce56dd54ee0c0d1a0c5dcbc5887d5b5cc76ec8c5745011122022-09-06 2:48:0394 days 10 hrs ago XY Finance: Multicaller CronaSwap: Router44 CRO
0x59c2e524d6fb88646fe1a23ce56dd54ee0c0d1a0c5dcbc5887d5b5cc76ec8c5745011122022-09-06 2:48:0394 days 10 hrs ago XY Finance: Aggregator XY Finance: Multicaller44 CRO
0x965e50297ce3337ba87dcb136d1735ae6e6ae044c63c029fdab9b01ff33195ab45002252022-09-06 1:24:1894 days 11 hrs ago XY Finance: Multicaller0xaab445f2846476a31aaed66112b0f3e2ad82c50a158.850031272529564709 CRO
0x965e50297ce3337ba87dcb136d1735ae6e6ae044c63c029fdab9b01ff33195ab45002252022-09-06 1:24:1894 days 11 hrs ago 0xec0a7a0c2439e8cb67b992b12ecd020ea943c7be XY Finance: Multicaller158.850031272529564709 CRO
0x4f2e45d3a117eceb00b38cd77b76960983835bb5e7676b66c917d9804bc121fa44996922022-09-06 0:33:5694 days 12 hrs ago XY Finance: Multicaller Mad Meerkat Finance: Master Meerkat & Router550 CRO
0x4f2e45d3a117eceb00b38cd77b76960983835bb5e7676b66c917d9804bc121fa44996922022-09-06 0:33:5694 days 12 hrs ago XY Finance: Aggregator XY Finance: Multicaller550 CRO
0x29434a14e48e7f9130ad5d5e6146b570321093c48f01a274a4259627fe75f93744981392022-09-05 22:07:2794 days 15 hrs ago XY Finance: Multicaller0x64c6391fa1eb6ce1a1804e4e494b9e985d03c7686,241.906595838698712758 CRO
0x29434a14e48e7f9130ad5d5e6146b570321093c48f01a274a4259627fe75f93744981392022-09-05 22:07:2794 days 15 hrs ago Mad Meerkat Finance: Master Meerkat & Router XY Finance: Multicaller6,241.906595838698712758 CRO
0xfe6574e6cd8de59f646480648a63206b3f8453f615ac9fac41c6620c3f53e48b44975782022-09-05 21:14:2694 days 16 hrs ago XY Finance: Multicaller VVS Finance: Router350 CRO
0xfe6574e6cd8de59f646480648a63206b3f8453f615ac9fac41c6620c3f53e48b44975782022-09-05 21:14:2694 days 16 hrs ago XY Finance: Aggregator XY Finance: Multicaller350 CRO
0xc72012dc087e27b73606f1ad7053c434f7fe6c3475d21fae63b85109bde8ca1444969042022-09-05 20:10:4794 days 17 hrs ago XY Finance: Multicaller Mad Meerkat Finance: Master Meerkat & Router850 CRO
0xc72012dc087e27b73606f1ad7053c434f7fe6c3475d21fae63b85109bde8ca1444969042022-09-05 20:10:4794 days 17 hrs ago XY Finance: Aggregator XY Finance: Multicaller850 CRO
0x5008fc4c0eb538bc0cd7940b0a0ed6d96502530b264362a4a56b3dc4688baad344966952022-09-05 19:51:0094 days 17 hrs ago XY Finance: Multicaller Mad Meerkat Finance: Master Meerkat & Router40 CRO
0x5008fc4c0eb538bc0cd7940b0a0ed6d96502530b264362a4a56b3dc4688baad344966952022-09-05 19:51:0094 days 17 hrs ago XY Finance: Aggregator XY Finance: Multicaller40 CRO
0xc952e4ca06ceeccc2f9df4c734001318d1fa011cc63fe01e3a0267a3060f651b44963582022-09-05 19:19:1494 days 18 hrs ago XY Finance: Multicaller Mad Meerkat Finance: Master Meerkat & Router516.9 CRO
0xc952e4ca06ceeccc2f9df4c734001318d1fa011cc63fe01e3a0267a3060f651b44963582022-09-05 19:19:1494 days 18 hrs ago XY Finance: Aggregator XY Finance: Multicaller516.9 CRO
0x171e77a6cbcdc20d5a88ebc3a6390853e7e2f1d103161a9b88261beac80d467844960682022-09-05 18:51:5094 days 18 hrs ago XY Finance: Multicaller 0xec0a7a0c2439e8cb67b992b12ecd020ea943c7be500 CRO
0x171e77a6cbcdc20d5a88ebc3a6390853e7e2f1d103161a9b88261beac80d467844960682022-09-05 18:51:5094 days 18 hrs ago XY Finance: Aggregator XY Finance: Multicaller500 CRO
0x03d9fd4aab701541e8ba033646fff3e62da1199bdd992b4ee8bc22961468a27944947072022-09-05 16:43:1994 days 20 hrs ago XY Finance: Multicaller VVS Finance: Router1,795.02619992812016 CRO
0x03d9fd4aab701541e8ba033646fff3e62da1199bdd992b4ee8bc22961468a27944947072022-09-05 16:43:1994 days 20 hrs ago XY Finance: Aggregator XY Finance: Multicaller1,795.02619992812016 CRO
0x7957c5f3a367f39c2e21bdce4555feee53f79a094bdad175977e873078aff7c444937352022-09-05 15:11:3494 days 22 hrs ago XY Finance: Multicaller Mad Meerkat Finance: Master Meerkat & Router1,150 CRO
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Multicaller

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 12 : Multicaller.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

import { AccessControl } from "AccessControl.sol";
import { Address } from "Address.sol";
import "Ownable.sol";
import "SafeERC20.sol";
import "ReentrancyGuard.sol";

/// @title Multicaller helps swap assets through designated routes of pools stated in calls array
/// @notice Use `multiswap` to swap assets by `calls` array and receiver address
contract Multicaller is AccessControl, ReentrancyGuard {

    using SafeERC20 for IERC20;

    /* ========== STRUCTURE ========== */

    // Call describes a swap for multicaller
    struct Call {
        // the contract to execute the swap
        address target;
        // prefix of the swap bytecode
        bytes prefix;
        // suffix of the swap bytecode
        bytes suffix;
        // from token address
        address fromToken;
        // to token address
        address toToken;
        // amount of the token to swap (optional, use non-zero value to specified amount to swap if needed)
        uint256 amountIn;
    }

    /* ========== STATE VARIABLES ========== */
    bytes32 public constant ROLE_OWNER = keccak256("ROLE_OWNER");
    bytes32 public constant ROLE_AGGREGATOR = keccak256("ROLE_AGGREGATOR");
    address public constant ETHER_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    // Store the whitelisted swap routers.
    mapping(address => bool) public routerWhitelist;


    receive() external payable {}


    /// @dev Constuctor sets deployer as owner. Also, owner is the admin of the role aggregator.
    constructor() {
        _setRoleAdmin(ROLE_OWNER, ROLE_OWNER);
        _setRoleAdmin(ROLE_AGGREGATOR, ROLE_OWNER);
        _setupRole(ROLE_OWNER, msg.sender);
    }

    /* ========== INTERNAL FUNCTIONS ========== */

    /// @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 (address(token) == ETHER_ADDRESS) {
            return account.balance;
        } else {
            return token.balanceOf(account);
        }
    }

    /// @notice Infinite approval to spender address if needed
    /// @param token the token contract address to execute `approve` method
    /// @param spender the address allowed to spend
    function approveIfNeeded(IERC20 token, address spender) internal {
        if (address(token) != ETHER_ADDRESS && token.allowance(address(this), spender) == 0) {
            token.safeApprove(spender, 2**256 - 1);
        }
    }

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

    /// @notice Set aggregator address.
    /// @param aggregator The aggregator address. This multicaller should only be used
    /// by `aggregator`.
    function setAggregator(address aggregator) external onlyRole(ROLE_OWNER) {
        require(Address.isContract(aggregator), "ERR_AGGREGATOR_NOT_CONTRACT");
        _setupRole(ROLE_AGGREGATOR, aggregator);
    }

    /// @notice Add/remove a swap router to/from the whitelist. It can only be called by the owner.
    /// @param router The swap router address.
    /// @param isAdding `True` if router is being added and `False` being removed.
    function setRouter(address router, bool isAdding) external onlyRole(ROLE_OWNER) {
        require(Address.isContract(router), "ERR_ROUTER_NOT_CONTRACT");
        routerWhitelist[router] = isAdding;
        emit SetRouter(router, isAdding);
    }

    /// @notice Multi-swap through array of calls by sequence and then transfer final swapped token to receiver
    /// @dev Since the output amount of every swap will differ based on exchange conditions, the amount to swap
    /// of next `Call` needs dynamically changed based on the output of the previous swap. In order to support this,
    /// pre-generated bytecode only contains partial call signature excluding input amount param. The complete
    /// calldata will be packed in runtime.
    /// @param calls the array of calls to swap through different pools (See definition of `Call` in this file)
    /// @param receiver the address to receive final swapped token
    function multiswap(
        Call[] memory calls,
        address payable receiver
    )
        public
        payable
        onlyRole(ROLE_AGGREGATOR)
        nonReentrant
        returns (uint256 blockNumber, bytes[] memory returnData)
    {
        blockNumber = block.number;
        returnData = new bytes[](calls.length);

        // `calls` contain only swap actions
        uint256 amountIn;
        for(uint256 i = 0; i < calls.length; i++) {
            // Checks
            // 1. The call target must be a whitelisted swap router.
            require(routerWhitelist[calls[i].target], "ERR_ROUTER_NOT_IN_WHITELIST");
            // 2. `fromToken` in a later call must correspond to the `toToken` in the previous call.
            if (i < calls.length - 1) {
                require(calls[i].toToken == calls[i + 1].fromToken, "ERR_SWAP_CALLS_TOKEN_MISMATCH");
            }

            approveIfNeeded(IERC20(calls[i].fromToken), calls[i].target);

            if (calls[i].amountIn > 0) {
                amountIn = calls[i].amountIn;
            }
            uint256 value = 0;
            bytes memory callData;
            if (calls[i].fromToken == ETHER_ADDRESS) {
                value = amountIn;
                callData = abi.encodePacked(calls[i].prefix, calls[i].suffix);
            } else {
                callData = abi.encodePacked(calls[i].prefix, amountIn, calls[i].suffix);
            }
            uint256 balance = uniBalanceOf(IERC20(calls[i].toToken), address(this));
            bytes memory ret = Address.functionCallWithValue(calls[i].target, callData, value, "Multicall multiswap: call failed");
            amountIn = uniBalanceOf(IERC20(calls[i].toToken), address(this)) - balance;
            returnData[i] = ret;
        }

        Call memory lastCall = calls[calls.length - 1];
        if (lastCall.toToken == ETHER_ADDRESS) {
            receiver.transfer(address(this).balance);
        } else {
            uint256 balance = IERC20(lastCall.toToken).balanceOf(address(this));
            IERC20(lastCall.toToken).safeTransfer(receiver, balance);
        }
    }

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

    event SetRouter(address indexed router, bool isAdding);
}

File 2 of 12 : 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 3 of 12 : 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 4 of 12 : 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 5 of 12 : 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 6 of 12 : 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 7 of 12 : 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 8 of 12 : 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 9 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "Context.sol";

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

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

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

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

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

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

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

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

File 10 of 12 : 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 11 of 12 : 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 12 of 12 : 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;
    }
}

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

Contract ABI

[{"inputs":[],"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":true,"internalType":"address","name":"router","type":"address"},{"indexed":false,"internalType":"bool","name":"isAdding","type":"bool"}],"name":"SetRouter","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETHER_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_AGGREGATOR","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":[{"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":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"prefix","type":"bytes"},{"internalType":"bytes","name":"suffix","type":"bytes"},{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"internalType":"struct Multicaller.Call[]","name":"calls","type":"tuple[]"},{"internalType":"address payable","name":"receiver","type":"address"}],"name":"multiswap","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes[]","name":"returnData","type":"bytes[]"}],"stateMutability":"payable","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","name":"","type":"address"}],"name":"routerWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"aggregator","type":"address"}],"name":"setAggregator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bool","name":"isAdding","type":"bool"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b50600180556200003160008051602062001cab833981519152806200008d565b6200006c7f78047634eb0ea25ec59dc1b0568e3280fe1d08ca41cd8b39596c8482adce9e0e60008051602062001cab8339815191526200008d565b6200008760008051602062001cab83398151915233620000d8565b62000188565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b620000e48282620000e8565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000e4576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001443390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611b1380620001986000396000f3fe6080604052600436106100e15760003560e01c806391d148541161007f578063c3c6467411610059578063c3c6467414610290578063cf1d21c0146102b0578063d547741f146102f0578063f9120af614610310576100e8565b806391d148541461023a578063969da0001461025a578063a217fddf1461027b576100e8565b806336568abe116100bb57806336568abe1461018257806363cbb145146101a25780638ad682af146101d25780638b68e64d14610206576100e8565b806301ffc9a7146100ed578063248a9ca3146101225780632f2ff15d14610160576100e8565b366100e857005b600080fd5b3480156100f957600080fd5b5061010d6101083660046117cc565b610330565b60405190151581526020015b60405180910390f35b34801561012e57600080fd5b5061015261013d366004611790565b60009081526020819052604090206001015490565b604051908152602001610119565b34801561016c57600080fd5b5061018061017b3660046117a8565b610369565b005b34801561018e57600080fd5b5061018061019d3660046117a8565b610395565b3480156101ae57600080fd5b5061010d6101bd3660046115d9565b60026020526000908152604090205460ff1681565b3480156101de57600080fd5b506101527f9f4e1c871d5fdd0aee1cd182666698a4492b24c6832aac230d07b11046af5a8981565b34801561021257600080fd5b506101527f78047634eb0ea25ec59dc1b0568e3280fe1d08ca41cd8b39596c8482adce9e0e81565b34801561024657600080fd5b5061010d6102553660046117a8565b610418565b61026d61026836600461162d565b610443565b604051610119929190611942565b34801561028757600080fd5b50610152600081565b34801561029c57600080fd5b506101806102ab3660046115f5565b610b34565b3480156102bc57600080fd5b506102d873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b6040516001600160a01b039091168152602001610119565b3480156102fc57600080fd5b5061018061030b3660046117a8565b610c0d565b34801561031c57600080fd5b5061018061032b3660046115d9565b610c33565b60006001600160e01b03198216637965db0b60e01b148061036157506301ffc9a760e01b6001600160e01b03198316145b90505b919050565b60008281526020819052604090206001015461038681335b610cd6565b6103908383610d3a565b505050565b6001600160a01b038116331461040a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6104148282610dbe565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff165b92915050565b600060607f78047634eb0ea25ec59dc1b0568e3280fe1d08ca41cd8b39596c8482adce9e0e6104728133610381565b600260015414156104c55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610401565b6002600155845143935067ffffffffffffffff8111156104f557634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561052857816020015b60608152602001906001900390816105135790505b5091506000805b86518110156109e1576002600088838151811061055c57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151516001600160a01b031682528101919091526040016000205460ff166105d05760405162461bcd60e51b815260206004820152601b60248201527f4552525f524f555445525f4e4f545f494e5f57484954454c49535400000000006044820152606401610401565b600187516105de9190611a12565b8110156106a657866105f18260016119db565b8151811061060f57634e487b7160e01b600052603260045260246000fd5b6020026020010151606001516001600160a01b031687828151811061064457634e487b7160e01b600052603260045260246000fd5b6020026020010151608001516001600160a01b0316146106a65760405162461bcd60e51b815260206004820152601d60248201527f4552525f535741505f43414c4c535f544f4b454e5f4d49534d415443480000006044820152606401610401565b6107068782815181106106c957634e487b7160e01b600052603260045260246000fd5b6020026020010151606001518883815181106106f557634e487b7160e01b600052603260045260246000fd5b602002602001015160000151610e23565b600087828151811061072857634e487b7160e01b600052603260045260246000fd5b602002602001015160a0015111156107695786818151811061075a57634e487b7160e01b600052603260045260246000fd5b602002602001015160a0015191505b6000606073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b03168984815181106107ab57634e487b7160e01b600052603260045260246000fd5b6020026020010151606001516001600160a01b03161415610848578391508883815181106107e957634e487b7160e01b600052603260045260246000fd5b60200260200101516020015189848151811061081557634e487b7160e01b600052603260045260246000fd5b602002602001015160400151604051602001610832929190611854565b60405160208183030381529060405290506108c5565b88838151811061086857634e487b7160e01b600052603260045260246000fd5b602002602001015160200151848a858151811061089557634e487b7160e01b600052603260045260246000fd5b6020026020010151604001516040516020016108b393929190611883565b60405160208183030381529060405290505b60006108fc8a85815181106108ea57634e487b7160e01b600052603260045260246000fd5b60200260200101516080015130610ee7565b9050600061096c8b868151811061092357634e487b7160e01b600052603260045260246000fd5b60200260200101516000015184866040518060400160405280602081526020017f4d756c746963616c6c206d756c7469737761703a2063616c6c206661696c6564815250610f9f565b9050816109928c87815181106108ea57634e487b7160e01b600052603260045260246000fd5b61099c9190611a12565b9550808886815181106109bf57634e487b7160e01b600052603260045260246000fd5b60200260200101819052505050505080806109d990611a70565b91505061052f565b50600086600188516109f39190611a12565b81518110610a1157634e487b7160e01b600052603260045260246000fd5b6020026020010151905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b031681608001516001600160a01b03161415610a88576040516001600160a01b038716904780156108fc02916000818181858888f19350505050158015610a82573d6000803e3d6000fd5b50610b24565b60808101516040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610ace57600080fd5b505afa158015610ae2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0691906117f4565b6080830151909150610b22906001600160a01b031688836110c7565b505b5050600180555090939092509050565b7f9f4e1c871d5fdd0aee1cd182666698a4492b24c6832aac230d07b11046af5a89610b5f8133610381565b823b610bad5760405162461bcd60e51b815260206004820152601760248201527f4552525f524f555445525f4e4f545f434f4e54524143540000000000000000006044820152606401610401565b6001600160a01b038316600081815260026020908152604091829020805460ff191686151590811790915591519182527f09b50446349d7fd45dbe59f55204a44404c2adf607c59e9420b87535ed2454b1910160405180910390a2505050565b600082815260208190526040902060010154610c298133610381565b6103908383610dbe565b7f9f4e1c871d5fdd0aee1cd182666698a4492b24c6832aac230d07b11046af5a89610c5e8133610381565b813b610cac5760405162461bcd60e51b815260206004820152601b60248201527f4552525f41474752454741544f525f4e4f545f434f4e545241435400000000006044820152606401610401565b6104147f78047634eb0ea25ec59dc1b0568e3280fe1d08ca41cd8b39596c8482adce9e0e8361112a565b610ce08282610418565b61041457610cf8816001600160a01b03166014611134565b610d03836020611134565b604051602001610d149291906118ba565b60408051601f198184030181529082905262461bcd60e51b82526104019160040161192f565b610d448282610418565b610414576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610d7a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610dc88282610418565b15610414576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14801590610ecc5750604051636eb1769f60e11b81523060048201526001600160a01b03828116602483015283169063dd62ed3e9060440160206040518083038186803b158015610e9257600080fd5b505afa158015610ea6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eca91906117f4565b155b15610414576104146001600160a01b0383168260001961131d565b60006001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610f1f57506001600160a01b0381163161043d565b6040516370a0823160e01b81526001600160a01b0383811660048301528416906370a082319060240160206040518083038186803b158015610f6057600080fd5b505afa158015610f74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9891906117f4565b905061043d565b6060824710156110005760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610401565b843b61104e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610401565b600080866001600160a01b0316858760405161106a9190611838565b60006040518083038185875af1925050503d80600081146110a7576040519150601f19603f3d011682016040523d82523d6000602084013e6110ac565b606091505b50915091506110bc828286611441565b979650505050505050565b6040516001600160a01b03831660248201526044810182905261039090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261147a565b6104148282610d3a565b606060006111438360026119f3565b61114e9060026119db565b67ffffffffffffffff81111561117457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561119e576020820181803683370190505b509050600360fc1b816000815181106111c757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061120457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006112288460026119f3565b6112339060016119db565b90505b60018111156112c7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061127557634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061129957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936112c081611a59565b9050611236565b5083156113165760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610401565b9392505050565b8015806113a65750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561136c57600080fd5b505afa158015611380573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a491906117f4565b155b6114115760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610401565b6040516001600160a01b03831660248201526044810182905261039090849063095ea7b360e01b906064016110f3565b60608315611450575081611316565b8251156114605782518084602001fd5b8160405162461bcd60e51b8152600401610401919061192f565b60006114cf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661154c9092919063ffffffff16565b80519091501561039057808060200190518101906114ed9190611774565b6103905760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610401565b606061155b8484600085610f9f565b949350505050565b803561036481611ab7565b600082601f83011261157e578081fd5b813567ffffffffffffffff81111561159857611598611aa1565b6115ab601f8201601f19166020016119aa565b8181528460208386010111156115bf578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156115ea578081fd5b813561131681611ab7565b60008060408385031215611607578081fd5b823561161281611ab7565b9150602083013561162281611acf565b809150509250929050565b6000806040838503121561163f578182fd5b823567ffffffffffffffff80821115611656578384fd5b818501915085601f830112611669578384fd5b813560208282111561167d5761167d611aa1565b61168a81828402016119aa565b82815281810190858301885b85811015611755578135880160c0818e03601f190112156116b5578a8bfd5b6116bf60c06119aa565b6116ca878301611563565b81526040820135898111156116dd578c8dfd5b6116eb8f898386010161156e565b8883015250606082013589811115611701578c8dfd5b61170f8f898386010161156e565b60408301525061172160808301611563565b606082015261173260a08301611563565b608082015260c0919091013560a082015284529284019290840190600101611696565b50508097505050611767818801611563565b9450505050509250929050565b600060208284031215611785578081fd5b815161131681611acf565b6000602082840312156117a1578081fd5b5035919050565b600080604083850312156117ba578182fd5b82359150602083013561162281611ab7565b6000602082840312156117dd578081fd5b81356001600160e01b031981168114611316578182fd5b600060208284031215611805578081fd5b5051919050565b60008151808452611824816020860160208601611a29565b601f01601f19169290920160200192915050565b6000825161184a818460208701611a29565b9190910192915050565b60008351611866818460208801611a29565b83519083019061187a818360208801611a29565b01949350505050565b60008451611895818460208901611a29565b820184815283516118ad816020808501908801611a29565b0160200195945050505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516118f2816017850160208801611a29565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611923816028840160208801611a29565b01602801949350505050565b600060208252611316602083018461180c565b600060408201848352602060408185015281855180845260608601915060608382028701019350828701855b8281101561199c57605f1988870301845261198a86835161180c565b9550928401929084019060010161196e565b509398975050505050505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156119d3576119d3611aa1565b604052919050565b600082198211156119ee576119ee611a8b565b500190565b6000816000190483118215151615611a0d57611a0d611a8b565b500290565b600082821015611a2457611a24611a8b565b500390565b60005b83811015611a44578181015183820152602001611a2c565b83811115611a53576000848401525b50505050565b600081611a6857611a68611a8b565b506000190190565b6000600019821415611a8457611a84611a8b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611acc57600080fd5b50565b8015158114611acc57600080fdfea2646970667358221220dad1d46ef3c2aaa634c7a0680575626e98c694ede508ac1dfde78ca80fb190a664736f6c634300080200339f4e1c871d5fdd0aee1cd182666698a4492b24c6832aac230d07b11046af5a89

Deployed ByteCode Sourcemap

408:6086:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2502:202:0;;;;;;;;;;-1:-1:-1;2502:202:0;;;;;:::i;:::-;;:::i;:::-;;;7834:14:12;;7827:22;7809:41;;7797:2;7782:18;2502:202:0;;;;;;;;3874:121;;;;;;;;;;-1:-1:-1;3874:121:0;;;;;:::i;:::-;3940:7;3966:12;;;;;;;;;;:22;;;;3874:121;;;;8007:25:12;;;7995:2;7980:18;3874:121:0;7962:76:12;4245:145:0;;;;;;;;;;-1:-1:-1;4245:145:0;;;;;:::i;:::-;;:::i;:::-;;5262:214;;;;;;;;;;-1:-1:-1;5262:214:0;;;;;:::i;:::-;;:::i;1372:47:7:-;;;;;;;;;;-1:-1:-1;1372:47:7;;;;;:::i;:::-;;;;;;;;;;;;;;;;1098:60;;;;;;;;;;;;1135:23;1098:60;;1164:70;;;;;;;;;;;;1206:28;1164:70;;2791:137:0;;;;;;;;;;-1:-1:-1;2791:137:0;;;;;:::i;:::-;;:::i;4278:2113:7:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;1909:49:0:-;;;;;;;;;;-1:-1:-1;1909:49:0;1954:4;1909:49;;3352:245:7;;;;;;;;;;-1:-1:-1;3352:245:7;;;;;:::i;:::-;;:::i;1240:82::-;;;;;;;;;;;;1280:42;1240:82;;;;;-1:-1:-1;;;;;7037:32:12;;;7019:51;;7007:2;6992:18;1240:82:7;6974:102:12;4624:147:0;;;;;;;;;;-1:-1:-1;4624:147:0;;;;;:::i;:::-;;:::i;2907:209:7:-;;;;;;;;;;-1:-1:-1;2907:209:7;;;;;:::i;:::-;;:::i;2502:202:0:-;2587:4;-1:-1:-1;;;;;;2610:47:0;;-1:-1:-1;;;2610:47:0;;:87;;-1:-1:-1;;;;;;;;;;869:40:3;;;2661:36:0;2603:94;;2502:202;;;;:::o;4245:145::-;3940:7;3966:12;;;;;;;;;;:22;;;2387:30;2398:4;666:10:2;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:2;5357:23:0;5349:83;;;;-1:-1:-1;;;5349:83:0;;12211:2:12;5349:83:0;;;12193:21:12;12250:2;12230:18;;;12223:30;12289:34;12269:18;;;12262:62;-1:-1:-1;;;12340:18:12;;;12333:45;12395:19;;5349:83:0;;;;;;;;;5443:26;5455:4;5461:7;5443:11;:26::i;:::-;5262:214;;:::o;2791:137::-;2869:4;2892:12;;;;;;;;;;;-1:-1:-1;;;;;2892:29:0;;;;;;;;;;;;2791:137;;;;;:::o;4278:2113:7:-;4469:19;4490:25;1206:28;2387:30:0;1206:28:7;666:10:2;2404:12:0;587:96:2;2387:30:0;1680:1:9::1;2259:7;;:19;;2251:63;;;::::0;-1:-1:-1;;;2251:63:9;;11428:2:12;2251:63:9::1;::::0;::::1;11410:21:12::0;11467:2;11447:18;;;11440:30;11506:33;11486:18;;;11479:61;11557:18;;2251:63:9::1;11400:181:12::0;2251:63:9::1;1680:1;2389:7;:18:::0;4592:12:7;;4545::::2;::::0;-1:-1:-1;4580:25:7::2;::::0;::::2;;;;-1:-1:-1::0;;;4580:25:7::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;4567:38:7;-1:-1:-1;4661:16:7::2;::::0;4687:1360:::2;4710:5;:12;4706:1;:16;4687:1360;;;4842:15;:32;4858:5;4864:1;4858:8;;;;;;-1:-1:-1::0;;;4858:8:7::2;;;;;;;;;;::::0;;::::2;::::0;;;;;;;:15;-1:-1:-1;;;;;4842:32:7::2;::::0;;;::::2;::::0;;;;;;4858:15:::2;4842:32:::0;;::::2;;4834:72;;;::::0;-1:-1:-1;;;4834:72:7;;8469:2:12;4834:72:7::2;::::0;::::2;8451:21:12::0;8508:2;8488:18;;;8481:30;8547:29;8527:18;;;8520:57;8594:18;;4834:72:7::2;8441:177:12::0;4834:72:7::2;5044:1;5029:5;:12;:16;;;;:::i;:::-;5025:1;:20;5021:143;;;5093:5:::0;5099::::2;:1:::0;5103::::2;5099:5;:::i;:::-;5093:12;;;;;;-1:-1:-1::0;;;5093:12:7::2;;;;;;;;;;;;;;;:22;;;-1:-1:-1::0;;;;;5073:42:7::2;:5;5079:1;5073:8;;;;;;-1:-1:-1::0;;;5073:8:7::2;;;;;;;;;;;;;;;:16;;;-1:-1:-1::0;;;;;5073:42:7::2;;5065:84;;;::::0;-1:-1:-1;;;5065:84:7;;9186:2:12;5065:84:7::2;::::0;::::2;9168:21:12::0;9225:2;9205:18;;;9198:30;9264:31;9244:18;;;9237:59;9313:18;;5065:84:7::2;9158:179:12::0;5065:84:7::2;5178:60;5201:5;5207:1;5201:8;;;;;;-1:-1:-1::0;;;5201:8:7::2;;;;;;;;;;;;;;;:18;;;5222:5;5228:1;5222:8;;;;;;-1:-1:-1::0;;;5222:8:7::2;;;;;;;;;;;;;;;:15;;;5178;:60::i;:::-;5277:1;5257:5;5263:1;5257:8;;;;;;-1:-1:-1::0;;;5257:8:7::2;;;;;;;;;;;;;;;:17;;;:21;5253:88;;;5309:5;5315:1;5309:8;;;;;;-1:-1:-1::0;;;5309:8:7::2;;;;;;;;;;;;;;;:17;;;5298:28;;5253:88;5354:13;5385:21;1280:42;-1:-1:-1::0;;;;;5424:35:7::2;:5;5430:1;5424:8;;;;;;-1:-1:-1::0;;;5424:8:7::2;;;;;;;;;;;;;;;:18;;;-1:-1:-1::0;;;;;5424:35:7::2;;5420:279;;;5487:8;5479:16;;5541:5;5547:1;5541:8;;;;;;-1:-1:-1::0;;;5541:8:7::2;;;;;;;;;;;;;;;:15;;;5558:5;5564:1;5558:8;;;;;;-1:-1:-1::0;;;5558:8:7::2;;;;;;;;;;;;;;;:15;;;5524:50;;;;;;;;;:::i;:::-;;;;;;;;;;;;;5513:61;;5420:279;;;5641:5;5647:1;5641:8;;;;;;-1:-1:-1::0;;;5641:8:7::2;;;;;;;;;;;;;;;:15;;;5658:8;5668:5;5674:1;5668:8;;;;;;-1:-1:-1::0;;;5668:8:7::2;;;;;;;;;;;;;;;:15;;;5624:60;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;5613:71;;5420:279;5712:15;5730:53;5750:5;5756:1;5750:8;;;;;;-1:-1:-1::0;;;5750:8:7::2;;;;;;;;;;;;;;;:16;;;5777:4;5730:12;:53::i;:::-;5712:71;;5797:16;5816:99;5846:5;5852:1;5846:8;;;;;;-1:-1:-1::0;;;5846:8:7::2;;;;;;;;;;;;;;;:15;;;5863:8;5873:5;5816:99;;;;;;;;;;;;;;;;::::0;:29:::2;:99::i;:::-;5797:118;;5996:7;5940:53;5960:5;5966:1;5960:8;;;;;;-1:-1:-1::0;;;5960:8:7::2;;;;;;;;5940:53;:63;;;;:::i;:::-;5929:74;;6033:3;6017:10;6028:1;6017:13;;;;;;-1:-1:-1::0;;;6017:13:7::2;;;;;;;;;;;;;;:19;;;;4687:1360;;;;4724:3;;;;;:::i;:::-;;;;4687:1360;;;;6057:20;6080:5;6101:1;6086:5;:12;:16;;;;:::i;:::-;6080:23;;;;;;-1:-1:-1::0;;;6080:23:7::2;;;;;;;;;;;;;;;6057:46;;1280:42;-1:-1:-1::0;;;;;6117:33:7::2;:8;:16;;;-1:-1:-1::0;;;;;6117:33:7::2;;6113:272;;;6166:40;::::0;-1:-1:-1;;;;;6166:17:7;::::2;::::0;6184:21:::2;6166:40:::0;::::2;;;::::0;::::2;::::0;;;6184:21;6166:17;:40;::::2;;;;;;;;;;;;;::::0;::::2;;;;;;6113:272;;;6262:16;::::0;::::2;::::0;6255:49:::2;::::0;-1:-1:-1;;;6255:49:7;;6298:4:::2;6255:49;::::0;::::2;7019:51:12::0;6237:15:7::2;::::0;-1:-1:-1;;;;;6255:34:7::2;::::0;::::2;::::0;6992:18:12;;6255:49:7::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6325:16;::::0;::::2;::::0;6237:67;;-1:-1:-1;6318:56:7::2;::::0;-1:-1:-1;;;;;6318:37:7::2;6356:8:::0;6237:67;6318:37:::2;:56::i;:::-;6113:272;;-1:-1:-1::0;;1637:1:9::1;2562:22:::0;;-1:-1:-1;4278:2113:7;;;;-1:-1:-1;4278:2113:7;-1:-1:-1;4278:2113:7:o;3352:245::-;1135:23;2387:30:0;1135:23:7;666:10:2;2404:12:0;587:96:2;2387:30:0;1034:20:1;;3442:62:7::1;;;::::0;-1:-1:-1;;;3442:62:7;;10307:2:12;3442:62:7::1;::::0;::::1;10289:21:12::0;10346:2;10326:18;;;10319:30;10385:25;10365:18;;;10358:53;10428:18;;3442:62:7::1;10279:173:12::0;3442:62:7::1;-1:-1:-1::0;;;;;3514:23:7;::::1;;::::0;;;:15:::1;:23;::::0;;;;;;;;:34;;-1:-1:-1;;3514:34:7::1;::::0;::::1;;::::0;;::::1;::::0;;;3563:27;;7809:41:12;;;3563:27:7::1;::::0;7782:18:12;3563:27:7::1;;;;;;;3352:245:::0;;;:::o;4624:147:0:-;3940:7;3966:12;;;;;;;;;;:22;;;2387:30;2398:4;666:10:2;2404:12:0;587:96:2;2387:30:0;4738:26:::1;4750:4;4756:7;4738:11;:26::i;2907:209:7:-:0;1135:23;2387:30:0;1135:23:7;666:10:2;2404:12:0;587:96:2;2387:30:0;1034:20:1;;2990:70:7::1;;;::::0;-1:-1:-1;;;2990:70:7;;9544:2:12;2990:70:7::1;::::0;::::1;9526:21:12::0;9583:2;9563:18;;;9556:30;9622:29;9602:18;;;9595:57;9669:18;;2990:70:7::1;9516:177:12::0;2990:70:7::1;3070:39;1206:28;3098:10;3070;:39::i;3209:484:0:-: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:2;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:2;;6871:12:0;;6927:40;;6903:5;6927:40;6759:225;;:::o;2471:229:7:-;-1:-1:-1;;;;;2550:31:7;;1280:42;2550:31;;;;:79;;-1:-1:-1;2585:39:7;;-1:-1:-1;;;2585:39:7;;2609:4;2585:39;;;7293:34:12;-1:-1:-1;;;;;7363:15:12;;;7343:18;;;7336:43;2585:15:7;;;;;7228:18:12;;2585:39:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;2550:79;2546:148;;;2645:38;-1:-1:-1;;;;;2645:17:7;;2663:7;-1:-1:-1;;2645:17:7;:38::i;2027:247::-;2103:7;-1:-1:-1;;;;;2126:31:7;;1280:42;2126:31;2122:146;;;-1:-1:-1;;;;;;2180:15:7;;;2173:22;;2122:146;2233:24;;-1:-1:-1;;;2233:24:7;;-1:-1:-1;;;;;7037:32:12;;;2233:24:7;;;7019:51:12;2233:15:7;;;;;6992:18:12;;2233:24:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2226:31;;;;4548:499:1;4713:12;4770:5;4745:21;:30;;4737:81;;;;-1:-1:-1;;;4737:81:1;;9900:2:12;4737:81:1;;;9882:21:12;9939:2;9919:18;;;9912:30;9978:34;9958:18;;;9951:62;-1:-1:-1;;;10029:18:12;;;10022:36;10075:19;;4737:81:1;9872:228:12;4737:81:1;1034:20;;4828:60;;;;-1:-1:-1;;;4828:60:1;;10659:2:12;4828:60:1;;;10641:21:12;10698:2;10678:18;;;10671:30;10737:31;10717:18;;;10710:59;10786:18;;4828:60:1;10631:179:12;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;616:205:10:-;755:58;;-1:-1:-1;;;;;7582:32:12;;755:58:10;;;7564:51:12;7631:18;;;7624:34;;;728:86:10;;748:5;;-1:-1:-1;;;778:23:10;7537:18:12;;755:58:10;;;;-1:-1:-1;;755:58:10;;;;;;;;;;;;;;-1:-1:-1;;;;;755:58:10;-1:-1:-1;;;;;;755:58:10;;;;;;;;;;728:19;:86::i;6041:110:0:-;6119:25;6130:4;6136:7;6119:10;:25::i;1535:441:11:-;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:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1657:25:11;;1635:47;;-1:-1:-1;;;1692:6:11;1699:1;1692:9;;;;;;-1:-1:-1;;;1692:9:11;;;;;;;;;;;;:15;-1:-1:-1;;;;;1692:15:11;;;;;;;;;-1:-1:-1;;;1717:6:11;1724:1;1717:9;;;;;;-1:-1:-1;;;1717:9:11;;;;;;;;;;;;:15;-1:-1:-1;;;;;1717:15:11;;;;;;;;-1:-1:-1;1747:9:11;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:11;1834:3;1826:11;1813:25;;;;;-1:-1:-1;;;1813:25:11;;;;;;;;;;;;1801:6;1808:1;1801:9;;;;;;-1:-1:-1;;;1801:9:11;;;;;;;;;;;;:37;-1:-1:-1;;;;;1801:37:11;;;;;;;;-1:-1:-1;1862:1:11;1852:11;;;;;1782:3;;;:::i;:::-;;;1742:132;;;-1:-1:-1;1891:10:11;;1883:55;;;;-1:-1:-1;;;1883:55:11;;8825:2:12;1883:55:11;;;8807:21:12;;;8844:18;;;8837:30;8903:34;8883:18;;;8876:62;8955:18;;1883:55:11;8797:182:12;1883:55:11;1962:6;1535:441;-1:-1:-1;;;1535:441:11:o;1328:603:10:-;1683:10;;;1682:62;;-1:-1:-1;1699:39:10;;-1:-1:-1;;;1699:39:10;;1723:4;1699:39;;;7293:34:12;-1:-1:-1;;;;;7363:15:12;;;7343:18;;;7336:43;1699:15:10;;;;;7228:18:12;;1699:39:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;1682:62;1661:163;;;;-1:-1:-1;;;1661:163:10;;11788:2:12;1661:163:10;;;11770:21:12;11827:2;11807:18;;;11800:30;11866:34;11846:18;;;11839:62;-1:-1:-1;;;11917:18:12;;;11910:52;11979:19;;1661:163:10;11760:244:12;1661:163:10;1861:62;;-1:-1:-1;;;;;7582:32:12;;1861:62:10;;;7564:51:12;7631:18;;;7624:34;;;1834:90:10;;1854:5;;-1:-1:-1;;;1884:22:10;7537:18:12;;1861:62:10;7519:145:12;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;3122:706:10:-;3541:23;3567:69;3595:4;3567:69;;;;;;;;;;;;;;;;;3575:5;-1:-1:-1;;;;;3567:27:10;;;:69;;;;;:::i;:::-;3650:17;;3541:95;;-1:-1:-1;3650:21:10;3646:176;;3745:10;3734:30;;;;;;;;;;;;:::i;:::-;3726:85;;;;-1:-1:-1;;;3726:85:10;;11017:2:12;3726:85:10;;;10999:21:12;11056:2;11036:18;;;11029:30;11095:34;11075:18;;;11068:62;-1:-1:-1;;;11146:18:12;;;11139:40;11196:19;;3726:85:10;10989:232:12;3461:223:1;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:134:12:-;82:20;;111:31;82:20;111:31;:::i;153:550::-;;248:3;241:4;233:6;229:17;225:27;215:2;;270:5;263;256:20;215:2;310:6;297:20;336:18;332:2;329:26;326:2;;;358:18;;:::i;:::-;402:55;445:2;426:13;;-1:-1:-1;;422:27:12;451:4;418:38;402:55;:::i;:::-;482:2;473:7;466:19;528:3;521:4;516:2;508:6;504:15;500:26;497:35;494:2;;;549:5;542;535:20;494:2;618;611:4;603:6;599:17;592:4;583:7;579:18;566:55;641:16;;;659:4;637:27;630:42;;;;645:7;205:498;-1:-1:-1;;205:498:12:o;708:257::-;;820:2;808:9;799:7;795:23;791:32;788:2;;;841:6;833;826:22;788:2;885:9;872:23;904:31;929:5;904:31;:::i;970:392::-;;;1096:2;1084:9;1075:7;1071:23;1067:32;1064:2;;;1117:6;1109;1102:22;1064:2;1161:9;1148:23;1180:31;1205:5;1180:31;:::i;:::-;1230:5;-1:-1:-1;1287:2:12;1272:18;;1259:32;1300:30;1259:32;1300:30;:::i;:::-;1349:7;1339:17;;;1054:308;;;;;:::o;1367:1852::-;;;1550:2;1538:9;1529:7;1525:23;1521:32;1518:2;;;1571:6;1563;1556:22;1518:2;1616:9;1603:23;1645:18;1686:2;1678:6;1675:14;1672:2;;;1707:6;1699;1692:22;1672:2;1750:6;1739:9;1735:22;1725:32;;1795:7;1788:4;1784:2;1780:13;1776:27;1766:2;;1822:6;1814;1807:22;1766:2;1863;1850:16;1885:4;1908:2;1904;1901:10;1898:2;;;1914:18;;:::i;:::-;1954:37;1987:2;1982;1978;1974:11;1970:20;1954:37;:::i;:::-;2025:15;;;2056:12;;;;2088:11;;;2117:6;2132:1000;2146:2;2143:1;2140:9;2132:1000;;;2209:17;;2201:26;;2279:4;2251:16;;;-1:-1:-1;;2247:30:12;2243:41;2240:2;;;2302:6;2294;2287:22;2240:2;2337:21;2353:4;2337:21;:::i;:::-;2385:31;2412:2;2408;2404:11;2385:31;:::i;:::-;2378:5;2371:46;2467:2;2463;2459:11;2446:25;2500:2;2490:8;2487:16;2484:2;;;2521:6;2513;2506:22;2484:2;2566:53;2611:7;2606:2;2595:8;2591:2;2587:17;2583:26;2566:53;:::i;:::-;2561:2;2554:5;2550:14;2543:77;;2670:2;2666;2662:11;2649:25;2703:2;2693:8;2690:16;2687:2;;;2724:6;2716;2709:22;2687:2;2769:53;2814:7;2809:2;2798:8;2794:2;2790:17;2786:26;2769:53;:::i;:::-;2764:2;2757:5;2753:14;2746:77;;2859:32;2886:3;2882:2;2878:12;2859:32;:::i;:::-;2854:2;2847:5;2843:14;2836:56;2929:32;2956:3;2952:2;2948:12;2929:32;:::i;:::-;2923:3;2912:15;;2905:57;3020:4;3012:13;;;;2999:27;2993:3;2982:15;;2975:52;3040:18;;3078:12;;;;3110;;;;2164:1;2157:9;2132:1000;;;2136:3;;3151:5;3141:15;;;;3175:38;3209:2;3198:9;3194:18;3175:38;:::i;:::-;3165:48;;;;;;1508:1711;;;;;:::o;3224:255::-;;3344:2;3332:9;3323:7;3319:23;3315:32;3312:2;;;3365:6;3357;3350:22;3312:2;3402:9;3396:16;3421:28;3443:5;3421:28;:::i;3484:190::-;;3596:2;3584:9;3575:7;3571:23;3567:32;3564:2;;;3617:6;3609;3602:22;3564:2;-1:-1:-1;3645:23:12;;3554:120;-1:-1:-1;3554:120:12:o;3679:325::-;;;3808:2;3796:9;3787:7;3783:23;3779:32;3776:2;;;3829:6;3821;3814:22;3776:2;3870:9;3857:23;3847:33;;3930:2;3919:9;3915:18;3902:32;3943:31;3968:5;3943:31;:::i;4009:306::-;;4120:2;4108:9;4099:7;4095:23;4091:32;4088:2;;;4141:6;4133;4126:22;4088:2;4172:23;;-1:-1:-1;;;;;;4224:32:12;;4214:43;;4204:2;;4276:6;4268;4261:22;4320:194;;4443:2;4431:9;4422:7;4418:23;4414:32;4411:2;;;4464:6;4456;4449:22;4411:2;-1:-1:-1;4492:16:12;;4401:113;-1:-1:-1;4401:113:12:o;4519:257::-;;4598:5;4592:12;4625:6;4620:3;4613:19;4641:63;4697:6;4690:4;4685:3;4681:14;4674:4;4667:5;4663:16;4641:63;:::i;:::-;4758:2;4737:15;-1:-1:-1;;4733:29:12;4724:39;;;;4765:4;4720:50;;4568:208;-1:-1:-1;;4568:208:12:o;4781:274::-;;4948:6;4942:13;4964:53;5010:6;5005:3;4998:4;4990:6;4986:17;4964:53;:::i;:::-;5033:16;;;;;4918:137;-1:-1:-1;;4918:137:12:o;5060:466::-;;5273:6;5267:13;5289:53;5335:6;5330:3;5323:4;5315:6;5311:17;5289:53;:::i;:::-;5405:13;;5364:16;;;;5427:57;5405:13;5364:16;5461:4;5449:17;;5427:57;:::i;:::-;5500:20;;5243:283;-1:-1:-1;;;;5243:283:12:o;5531:546::-;;5772:6;5766:13;5788:53;5834:6;5829:3;5822:4;5814:6;5810:17;5788:53;:::i;:::-;5863:16;;5888:21;;;5934:13;;5956:68;5934:13;6008:4;5997:16;;;;5978:17;;5956:68;:::i;:::-;6044:20;6066:4;6040:31;;5742:335;-1:-1:-1;;;;;5742:335:12:o;6082:786::-;;6493:25;6488:3;6481:38;6548:6;6542:13;6564:62;6619:6;6614:2;6609:3;6605:12;6598:4;6590:6;6586:17;6564:62;:::i;:::-;-1:-1:-1;;;6685:2:12;6645:16;;;6677:11;;;6670:40;6735:13;;6757:63;6735:13;6806:2;6798:11;;6791:4;6779:17;;6757:63;:::i;:::-;6840:17;6859:2;6836:26;;6471:397;-1:-1:-1;;;;6471:397:12:o;8043:219::-;;8192:2;8181:9;8174:21;8212:44;8252:2;8241:9;8237:18;8229:6;8212:44;:::i;12425:875::-;;12661:2;12650:9;12646:18;12691:6;12680:9;12673:25;12717:2;12755;12750;12739:9;12735:18;12728:30;12778:6;12813;12807:13;12844:6;12836;12829:22;12882:2;12871:9;12867:18;12860:25;;12945:2;12939;12931:6;12927:15;12916:9;12912:31;12908:40;12894:54;;12983:2;12975:6;12971:15;13004:4;13017:254;13031:6;13028:1;13025:13;13017:254;;;13124:2;13120:7;13108:9;13100:6;13096:22;13092:36;13087:3;13080:49;13152:39;13184:6;13175;13169:13;13152:39;:::i;:::-;13142:49;-1:-1:-1;13249:12:12;;;;13214:15;;;;13053:1;13046:9;13017:254;;;-1:-1:-1;13288:6:12;;12622:678;-1:-1:-1;;;;;;;;12622:678:12:o;13305:275::-;13376:2;13370:9;13441:2;13422:13;;-1:-1:-1;;13418:27:12;13406:40;;13476:18;13461:34;;13497:22;;;13458:62;13455:2;;;13523:18;;:::i;:::-;13559:2;13552:22;13350:230;;-1:-1:-1;13350:230:12:o;13585:128::-;;13656:1;13652:6;13649:1;13646:13;13643:2;;;13662:18;;:::i;:::-;-1:-1:-1;13698:9:12;;13633:80::o;13718:168::-;;13824:1;13820;13816:6;13812:14;13809:1;13806:21;13801:1;13794:9;13787:17;13783:45;13780:2;;;13831:18;;:::i;:::-;-1:-1:-1;13871:9:12;;13770:116::o;13891:125::-;;13959:1;13956;13953:8;13950:2;;;13964:18;;:::i;:::-;-1:-1:-1;14001:9:12;;13940:76::o;14021:258::-;14093:1;14103:113;14117:6;14114:1;14111:13;14103:113;;;14193:11;;;14187:18;14174:11;;;14167:39;14139:2;14132:10;14103:113;;;14234:6;14231:1;14228:13;14225:2;;;14269:1;14260:6;14255:3;14251:16;14244:27;14225:2;;14074:205;;;:::o;14284:136::-;;14351:5;14341:2;;14360:18;;:::i;:::-;-1:-1:-1;;;14396:18:12;;14331:89::o;14425:135::-;;-1:-1:-1;;14485:17:12;;14482:2;;;14505:18;;:::i;:::-;-1:-1:-1;14552:1:12;14541:13;;14472:88::o;14565:127::-;14626:10;14621:3;14617:20;14614:1;14607:31;14657:4;14654:1;14647:15;14681:4;14678:1;14671:15;14697:127;14758:10;14753:3;14749:20;14746:1;14739:31;14789:4;14786:1;14779:15;14813:4;14810:1;14803:15;14829:131;-1:-1:-1;;;;;14904:31:12;;14894:42;;14884:2;;14950:1;14947;14940:12;14884:2;14874:86;:::o;14965:118::-;15051:5;15044:13;15037:21;15030:5;15027:32;15017:2;;15073:1;15070;15063:12

Swarm Source

ipfs://dad1d46ef3c2aaa634c7a0680575626e98c694ede508ac1dfde78ca80fb190a6
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.