false
false

Contract Address Details

0xF3724f17A0A39F966c22F4A859e074f542f50fF3

Contract Name
MojitoMaker
Creator
0xd4d730–cd9daf at 0xf9f011–d50102
Balance
0 KCS ( )
Tokens
Fetching tokens...
Transactions
3,295 Transactions
Transfers
67,533 Transfers
Gas Used
1,320,593,424
Last Balance Update
45212190
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
MojitoMaker




Optimization enabled
true
Compiler version
v0.6.12+commit.27d51765




Optimization runs
200
EVM Version
default




Verified at
2021-11-30T06:45:49.017953Z

Constructor Arguments

00000000000000000000000079855a03426e15ad120df77efa623af87bd54ef3000000000000000000000000caaf158b5aecc75336efb9b252be4748feb76b8000000000000000000000000041bca2301971392b3a56ee88689587cb5912ac2000000000000000000000000039538e511bb7f9ac643de8d1ed9447b531edd6d40000000000000000000000002ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c07521

Arg [0] (address) : 0x79855a03426e15ad120df77efa623af87bd54ef3
Arg [1] (address) : 0xcaaf158b5aecc75336efb9b252be4748feb76b80
Arg [2] (address) : 0x41bca2301971392b3a56ee88689587cb5912ac20
Arg [3] (address) : 0x39538e511bb7f9ac643de8d1ed9447b531edd6d4
Arg [4] (address) : 0x2ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f
Arg [5] (address) : 0x4446fc4eb47f2f6586f9faab68b3498f86c07521

              

Contract source code

// SPDX-License-Identifier: MIT

pragma solidity =0.6.12;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {// Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1;
            // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

/**
 * @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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/*
 * @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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this;
        // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * 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 {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @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 {_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) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @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 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 {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _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 {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _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 {
        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 {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

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

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

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
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) {
        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) {
        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) {
        // 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) {
        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) {
        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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @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. 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) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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) {
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

/**
 * @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);
}

/**
 * @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 SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

interface IMojitoPair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint);

    function balanceOf(address owner) external view returns (uint);

    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);

    function transfer(address to, uint value) external returns (bool);

    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);

    function price0CumulativeLast() external view returns (uint);

    function price1CumulativeLast() external view returns (uint);

    function kLast() external view returns (uint);

    function swapFeeNumerator() external view returns (uint);

    function setSwapFeeNumerator(uint _swapFeeNumerator) external;

    function feeToDenominator() external view returns (uint);

    function setFeeToDenominator(uint _feeToDenominator) external;

    function mint(address to) external returns (uint liquidity);

    function burn(address to) external returns (uint amount0, uint amount1);

    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

interface IMojitoFactory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);

    function allPairs(uint) external view returns (address pair);

    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;

    function setSwapFeeNumerator(address _pair, uint _swapFeeNumerator) external;

    function setFeeToDenominator(address _pair, uint _feeToDenominator) external;
}

contract MojitoMaker is AccessControl {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
    bytes32 public constant TIMELOCK_ROLE = keccak256("TIMELOCK_ROLE");
    uint256 public constant NUMERATOR = 20;
    uint256 public constant DENOMINATOR = 30;

    // V1 - V5: OK
    IMojitoFactory public immutable factory;
    address public immutable feeToBurn;
    address public immutable feeToPool;
    address public immutable awardPool;
    address public immutable mojito;
    address public immutable wkcs;

    // V1 - V5: OK
    mapping(address => address) internal _bridges;

    // E1: OK
    event LogBridgeSet(address indexed token, address indexed bridge);
    // E1: OK
    event LogConvert(
        address indexed server,
        address indexed token0,
        address indexed token1,
        uint256 amount0,
        uint256 amount1,
        uint256 amountMJT
    );

    constructor(address _factory, address _feeToBurn, address _feeToPool, address _awardPool, address _mojito, address _wkcs) public {
        factory = IMojitoFactory(_factory);
        feeToBurn = _feeToBurn;
        feeToPool = _feeToPool;
        awardPool = _awardPool;
        mojito = _mojito;
        wkcs = _wkcs;

        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    // F1 - F10: OK
    // C1 - C24: OK
    function bridgeFor(address token) public view returns (address bridge) {
        bridge = _bridges[token];
        if (bridge == address(0)) {
            bridge = wkcs;
        }
    }

    // F1 - F10: OK
    // C1 - C24: OK
    function setBridge(address token, address bridge) external onlyTimelock {
        // Checks
        require(token != mojito && token != wkcs && token != bridge, "MojitoMaker::setBridge: invalid bridge");

        // Effects
        _bridges[token] = bridge;
        emit LogBridgeSet(token, bridge);
    }

    // F1 - F10: OK
    // F3: _convert is separate to save gas by only checking the 'onlyOperator' modifier once in case of convertMultiple
    // C1 - C24: OK
    function convert(address token0, address token1) external onlyOperator() {
        _convert(token0, token1);
    }

    // F1 - F10: OK, see convert
    // C1 - C24: OK
    // C3: Loop is under control of the caller
    function convertMultiple(address[] calldata token0, address[] calldata token1) external onlyOperator() {
        uint256 len = token0.length;
        for (uint256 i = 0; i < len; i++) {
            _convert(token0[i], token1[i]);
        }
    }

    // F1 - F10: OK
    // C1- C24: OK
    function _convert(address token0, address token1) internal {
        // Interactions
        // S1 - S4: OK
        IMojitoPair pair = IMojitoPair(factory.getPair(token0, token1));
        require(address(pair) != address(0), "MojitoMaker::_convert: invalid pair");
        // balanceOf: S1 - S4: OK
        // transfer: X1 - X5: OK
        IERC20(address(pair)).safeTransfer(address(pair), pair.balanceOf(address(this)));
        // X1 - X5: OK
        (uint256 amount0, uint256 amount1) = pair.burn(address(this));
        if (token0 != pair.token0()) {
            (amount0, amount1) = (amount1, amount0);
        }
        emit LogConvert(
            msg.sender,
            token0,
            token1,
            amount0,
            amount1,
            _convertStep(token0, token1, amount0, amount1)
        );
    }

    // F1 - F10: OK
    // C1 - C24: OK
    // All safeTransfer, _swap, _toMojito, _convertStep: X1 - X5: OK
    function _convertStep(address token0, address token1, uint256 amount0, uint256 amount1) internal returns (uint256 mojitoOut) {
        // Interactions
        if (token0 == token1) {
            uint256 amount = amount0.add(amount1);
            if (token0 == mojito) {
                safeMojitoTransfer(amount);
                mojitoOut = amount;
            } else if (token0 == wkcs) {
                mojitoOut = _toMojito(wkcs, amount);
            } else {
                address bridge = bridgeFor(token0);
                amount = _swap(token0, bridge, amount, address(this));
                mojitoOut = _convertStep(bridge, bridge, amount, 0);
            }
        } else if (token0 == mojito) {
            // eg. MJT - ETH
            safeMojitoTransfer(amount0);
            mojitoOut = _toMojito(token1, amount1).add(amount0);
        } else if (token1 == mojito) {
            // eg. USDT - MJT
            safeMojitoTransfer(amount1);
            mojitoOut = _toMojito(token0, amount0).add(amount1);
        } else if (token0 == wkcs) {
            // eg. ETH - USDC
            mojitoOut = _toMojito(wkcs, _swap(token1, wkcs, amount1, address(this)).add(amount0));
        } else if (token1 == wkcs) {
            // eg. USDT - ETH
            mojitoOut = _toMojito(wkcs, _swap(token0, wkcs, amount0, address(this)).add(amount1));
        } else {
            // eg. MIC - USDT
            address bridge0 = bridgeFor(token0);
            address bridge1 = bridgeFor(token1);
            if (bridge0 == token1) {
                // eg. MIC - USDT - and bridgeFor(MIC) = USDT
                mojitoOut = _convertStep(
                    bridge0,
                    token1,
                    _swap(token0, bridge0, amount0, address(this)),
                    amount1
                );
            } else if (bridge1 == token0) {
                // eg. WBTC - DSD - and bridgeFor(DSD) = WBTC
                mojitoOut = _convertStep(
                    token0,
                    bridge1,
                    amount0,
                    _swap(token1, bridge1, amount1, address(this))
                );
            } else {
                mojitoOut = _convertStep(
                    bridge0,
                    bridge1, // eg. USDT - DSD - and bridgeFor(DSD) = WBTC
                    _swap(token0, bridge0, amount0, address(this)),
                    _swap(token1, bridge1, amount1, address(this))
                );
            }
        }
    }

    // F1 - F10: OK
    // C1 - C24: OK
    // All safeTransfer, swap: X1 - X5: OK
    function _swap(address fromToken, address toToken, uint256 amountIn, address to) internal returns (uint256 amountOut) {
        // Checks
        // X1 - X5: OK
        IMojitoPair pair = IMojitoPair(factory.getPair(fromToken, toToken));
        require(address(pair) != address(0), "MojitoMaker::_swap: cannot convert");

        // Interactions
        // X1 - X5: OK
        (uint256 reserve0, uint256 reserve1,) = pair.getReserves();
        uint256 swapFeeNumerator = pair.swapFeeNumerator();
        uint256 amountInWithFee = amountIn.mul(10000 - swapFeeNumerator);
        if (fromToken == pair.token0()) {
            amountOut = amountInWithFee.mul(reserve1) / reserve0.mul(10000).add(amountInWithFee);
            IERC20(fromToken).safeTransfer(address(pair), amountIn);
            pair.swap(0, amountOut, to, new bytes(0));
        } else {
            amountOut = amountInWithFee.mul(reserve0) / reserve1.mul(10000).add(amountInWithFee);
            IERC20(fromToken).safeTransfer(address(pair), amountIn);
            pair.swap(amountOut, 0, to, new bytes(0));
        }
    }

    // F1 - F10: OK
    // C1 - C24: OK
    function _toMojito(address token, uint256 amountIn) internal returns (uint256 amountOut) {
        // X1 - X5: OK
        amountOut = _swap(token, mojito, amountIn, address(this));
        safeMojitoTransfer(amountOut);
    }

    function safeMojitoTransfer(uint256 _amount) internal {
        uint256 amount = _amount;
        uint256 mojitoBal = IERC20(mojito).balanceOf(address(this));
        if (amount > mojitoBal) {
            amount = mojitoBal;
        }

        uint256 amountToBurn = amount.mul(NUMERATOR).div(DENOMINATOR);
        uint256 amountToPool = amount.sub(amountToBurn);
        if (amountToBurn > 0) {
            IERC20(mojito).safeTransfer(feeToBurn, amountToBurn);
        }
        if (amountToPool > 0) {
            IERC20(mojito).safeTransfer(feeToPool, amountToPool);
        }

    }

    function inCaseTokensGetStuck(address _token) external onlyTimelock {
        uint256 amount = IERC20(_token).balanceOf(address(this));
        IERC20(_token).safeTransfer(awardPool, amount);
    }

    modifier onlyOperator() {
        require(hasRole(OPERATOR_ROLE, msg.sender), "MojitoMaker::onlyOperator: caller is not the operator");
        _;
    }

    modifier onlyTimelock() {
        require(hasRole(TIMELOCK_ROLE, msg.sender), "MojitoMaker::onlyTimelock: caller is not the timelock");
        _;
    }

}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_factory","internalType":"address"},{"type":"address","name":"_feeToBurn","internalType":"address"},{"type":"address","name":"_feeToPool","internalType":"address"},{"type":"address","name":"_awardPool","internalType":"address"},{"type":"address","name":"_mojito","internalType":"address"},{"type":"address","name":"_wkcs","internalType":"address"}]},{"type":"event","name":"LogBridgeSet","inputs":[{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"address","name":"bridge","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"LogConvert","inputs":[{"type":"address","name":"server","internalType":"address","indexed":true},{"type":"address","name":"token0","internalType":"address","indexed":true},{"type":"address","name":"token1","internalType":"address","indexed":true},{"type":"uint256","name":"amount0","internalType":"uint256","indexed":false},{"type":"uint256","name":"amount1","internalType":"uint256","indexed":false},{"type":"uint256","name":"amountMJT","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"DENOMINATOR","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"NUMERATOR","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"OPERATOR_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"TIMELOCK_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"awardPool","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"bridge","internalType":"address"}],"name":"bridgeFor","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"convert","inputs":[{"type":"address","name":"token0","internalType":"address"},{"type":"address","name":"token1","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"convertMultiple","inputs":[{"type":"address[]","name":"token0","internalType":"address[]"},{"type":"address[]","name":"token1","internalType":"address[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IMojitoFactory"}],"name":"factory","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeToBurn","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeToPool","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getRoleMember","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getRoleMemberCount","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"inCaseTokensGetStuck","inputs":[{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"mojito","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBridge","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"bridge","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"wkcs","inputs":[]}]
              

Contract Creation Code

0x6101406040523480156200001257600080fd5b506040516200244c3803806200244c833981810160405260c08110156200003857600080fd5b5080516020820151604083015160608085015160808087015160a0978801516001600160601b031988861b811690935286851b831690985284841b821660c05282841b821660e05280841b8216610100529287901b1661012052939492939192620000a5600033620000b1565b505050505050620001c5565b620000bd8282620000c1565b5050565b600082815260208181526040909120620000e691839062000b386200013a821b17901c565b15620000bd57620000f66200015a565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000151836001600160a01b0384166200015e565b90505b92915050565b3390565b60006200016c8383620001ad565b620001a45750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000154565b50600062000154565b60009081526001919091016020526040902054151590565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160601c6121b86200029460003980610631528061077d528061088a528061104f528061108c528061119b52806111d85280611201528061122e528061126b528061129452508061060d5280610740528061100452806110ec528061114a528061152d52806115e8528061164252806116985250806108b05280610acb5250806106795280611664525080610655528061160a5250806109435280610bbe52806116ce52506121b86000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80639d22ae8c116100c3578063ca15c8731161007c578063ca15c873146103de578063d547741f146103fb578063d8830c7d14610427578063def68a9c1461042f578063f288a2e214610455578063f5b541a61461045d5761014d565b80639d22ae8c14610344578063a217fddf14610372578063a761a9391461037a578063b902a519146103a0578063bd1b820c146103a8578063c45a0155146103d65761014d565b806369bd7bf21161011557806369bd7bf2146102c15780637b534dbf146102c95780638664d191146102d15780639010d07c146102d9578063918f8674146102fc57806391d14854146103045761014d565b8063248a9ca3146101525780632f2ff15d14610181578063303e6aa4146101af57806336568abe1461027157806352d9f48c1461029d575b600080fd5b61016f6004803603602081101561016857600080fd5b5035610465565b60408051918252519081900360200190f35b6101ad6004803603604081101561019757600080fd5b50803590602001356001600160a01b031661047d565b005b6101ad600480360360408110156101c557600080fd5b8101906020810181356401000000008111156101e057600080fd5b8201836020820111156101f257600080fd5b8035906020019184602083028401116401000000008311171561021457600080fd5b91939092909160208101903564010000000081111561023257600080fd5b82018360208201111561024457600080fd5b8035906020019184602083028401116401000000008311171561026657600080fd5b5090925090506104e9565b6101ad6004803603604081101561028757600080fd5b50803590602001356001600160a01b03166105aa565b6102a561060b565b604080516001600160a01b039092168252519081900360200190f35b6102a561062f565b6102a5610653565b6102a5610677565b6102a5600480360360408110156102ef57600080fd5b508035906020013561069b565b61016f6106bc565b6103306004803603604081101561031a57600080fd5b50803590602001356001600160a01b03166106c1565b604080519115158252519081900360200190f35b6101ad6004803603604081101561035a57600080fd5b506001600160a01b03813581169160200135166106d9565b61016f610862565b6102a56004803603602081101561039057600080fd5b50356001600160a01b0316610867565b6102a56108ae565b6101ad600480360360408110156103be57600080fd5b506001600160a01b03813581169160200135166108d2565b6102a5610941565b61016f600480360360208110156103f457600080fd5b5035610965565b6101ad6004803603604081101561041157600080fd5b50803590602001356001600160a01b031661097c565b61016f6109d5565b6101ad6004803603602081101561044557600080fd5b50356001600160a01b03166109da565b61016f610af0565b61016f610b14565b6000818152602081905260409020600201545b919050565b6000828152602081905260409020600201546104a09061049b610b4d565b6106c1565b6104db5760405162461bcd60e51b815260040180806020018281038252602f815260200180611faf602f913960400191505060405180910390fd5b6104e58282610b51565b5050565b6105137f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929336106c1565b61054e5760405162461bcd60e51b81526004018080602001828103825260358152602001806120fd6035913960400191505060405180910390fd5b8260005b818110156105a25761059a86868381811061056957fe5b905060200201356001600160a01b031685858481811061058557fe5b905060200201356001600160a01b0316610bba565b600101610552565b505050505050565b6105b2610b4d565b6001600160a01b0316816001600160a01b0316146106015760405162461bcd60e51b815260040180806020018281038252602f815260200180612154602f913960400191505060405180910390fd5b6104e58282610ea2565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008281526020819052604081206106b39083610f0b565b90505b92915050565b601e81565b60008281526020819052604081206106b39083610f17565b6107037ff66846415d2bf9eabda9e84793ff9c0ea96d87f50fc41e66aa16469c6a442f05336106c1565b61073e5760405162461bcd60e51b8152600401808060200182810382526035815260200180611fde6035913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141580156107b257507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b80156107d05750806001600160a01b0316826001600160a01b031614155b61080b5760405162461bcd60e51b81526004018080602001828103825260268152602001806120696026913960400191505060405180910390fd5b6001600160a01b0382811660008181526001602052604080822080546001600160a01b0319169486169485179055517f2e103aa707acc565f9a1547341914802b2bfe977fd79c595209f248ae4b006139190a35050565b600081565b6001600160a01b03808216600090815260016020526040902054168061047857507f0000000000000000000000000000000000000000000000000000000000000000919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6108fc7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929336106c1565b6109375760405162461bcd60e51b81526004018080602001828103825260358152602001806120fd6035913960400191505060405180910390fd5b6104e58282610bba565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008181526020819052604081206106b690610f2c565b60008281526020819052604090206002015461099a9061049b610b4d565b6106015760405162461bcd60e51b81526004018080602001828103825260308152602001806120396030913960400191505060405180910390fd5b601481565b610a047ff66846415d2bf9eabda9e84793ff9c0ea96d87f50fc41e66aa16469c6a442f05336106c1565b610a3f5760405162461bcd60e51b8152600401808060200182810382526035815260200180611fde6035913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610a8e57600080fd5b505afa158015610aa2573d6000803e3d6000fd5b505050506040513d6020811015610ab857600080fd5b505190506104e56001600160a01b0383167f000000000000000000000000000000000000000000000000000000000000000083610f37565b7ff66846415d2bf9eabda9e84793ff9c0ea96d87f50fc41e66aa16469c6a442f0581565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b60006106b3836001600160a01b038416610f8e565b3390565b6000828152602081905260409020610b699082610b38565b156104e557610b76610b4d565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a4390584846040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b158015610c3a57600080fd5b505afa158015610c4e573d6000803e3d6000fd5b505050506040513d6020811015610c6457600080fd5b505190506001600160a01b038116610cad5760405162461bcd60e51b81526004018080602001828103825260238152602001806120b06023913960400191505060405180910390fd5b610d3b81826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610cfe57600080fd5b505afa158015610d12573d6000803e3d6000fd5b505050506040513d6020811015610d2857600080fd5b50516001600160a01b0384169190610f37565b600080826001600160a01b03166389afcb44306040518263ffffffff1660e01b815260040180826001600160a01b031681526020019150506040805180830381600087803b158015610d8c57600080fd5b505af1158015610da0573d6000803e3d6000fd5b505050506040513d6040811015610db657600080fd5b50805160209182015160408051630dfe168160e01b815290519295509093506001600160a01b03861692630dfe168192600480840193829003018186803b158015610e0057600080fd5b505afa158015610e14573d6000803e3d6000fd5b505050506040513d6020811015610e2a57600080fd5b50516001600160a01b03868116911614610e4057905b6001600160a01b03808516908616337fd06b1d7ed79b664d17472c6f6997b929f1abe463ccccb4e5b6a0038f2f730c158585610e7e8b8b8484610fd8565b60408051938452602084019290925282820152519081900360600190a45050505050565b6000828152602081905260409020610eba9082611368565b156104e557610ec7610b4d565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006106b3838361137d565b60006106b3836001600160a01b0384166113e1565b60006106b6826113f9565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f899084906113fd565b505050565b6000610f9a83836113e1565b610fd0575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106b6565b5060006106b6565b6000836001600160a01b0316856001600160a01b031614156110ea57600061100084846114ae565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b0316141561104d5761104581611508565b8091506110e4565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b031614156110b8576110b17f000000000000000000000000000000000000000000000000000000000000000082611690565b91506110e4565b60006110c387610867565b90506110d1878284306116c9565b91506110e08182846000610fd8565b9250505b50611360565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b031614156111485761112d83611508565b6111418361113b8685611690565b906114ae565b9050611360565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031614156111995761118b82611508565b6111418261113b8786611690565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b0316141561122c576111417f00000000000000000000000000000000000000000000000000000000000000006112278561113b887f000000000000000000000000000000000000000000000000000000000000000088306116c9565b611690565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031614156112ba576111417f00000000000000000000000000000000000000000000000000000000000000006112278461113b897f000000000000000000000000000000000000000000000000000000000000000089306116c9565b60006112c586610867565b905060006112d286610867565b9050856001600160a01b0316826001600160a01b0316141561130c5761130582876112ff8a868a306116c9565b87610fd8565b925061135d565b866001600160a01b0316816001600160a01b0316141561133d576113058782876113388a868a306116c9565b610fd8565b61135a828261134e8a868a306116c9565b6113388a868a306116c9565b92505b50505b949350505050565b60006106b3836001600160a01b038416611b95565b815460009082106113bf5760405162461bcd60e51b8152600401808060200182810382526022815260200180611f8d6022913960400191505060405180910390fd5b8260000182815481106113ce57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6060611452826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c5b9092919063ffffffff16565b805190915015610f895780806020019051602081101561147157600080fd5b5051610f895760405162461bcd60e51b815260040180806020018281038252602a8152602001806120d3602a913960400191505060405180910390fd5b6000828201838110156106b3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516370a0823160e01b8152306004820152905182916000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b15801561157357600080fd5b505afa158015611587573d6000803e3d6000fd5b505050506040513d602081101561159d57600080fd5b50519050808211156115ad578091505b60006115c5601e6115bf856014611c74565b90611ccd565b905060006115d38483611d34565b9050811561162f5761162f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000084610f37565b8015611689576116896001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083610f37565b5050505050565b60006116be837f000000000000000000000000000000000000000000000000000000000000000084306116c9565b90506106b681611508565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a4390587876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561174a57600080fd5b505afa15801561175e573d6000803e3d6000fd5b505050506040513d602081101561177457600080fd5b505190506001600160a01b0381166117bd5760405162461bcd60e51b81526004018080602001828103825260228152602001806121326022913960400191505060405180910390fd5b600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156117f957600080fd5b505afa15801561180d573d6000803e3d6000fd5b505050506040513d606081101561182357600080fd5b50805160209182015160408051633fbd188960e21b815290516dffffffffffffffffffffffffffff93841696509290911693506000926001600160a01b0387169263fef46224926004808201939291829003018186803b15801561188657600080fd5b505afa15801561189a573d6000803e3d6000fd5b505050506040513d60208110156118b057600080fd5b5051905060006118c588612710849003611c74565b9050846001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561190057600080fd5b505afa158015611914573d6000803e3d6000fd5b505050506040513d602081101561192a57600080fd5b50516001600160a01b038b811691161415611a655761194f8161113b86612710611c74565b6119598285611c74565b8161196057fe5b0495506119776001600160a01b038b16868a610f37565b604080516000808252602082019283905263022c0d9f60e01b835260248201818152604483018a90526001600160a01b038b81166064850152608060848501908152845160a48601819052918b169563022c0d9f958d948f9491939092909160c4850191908083838b5b838110156119f95781810151838201526020016119e1565b50505050905090810190601f168015611a265780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015611a4857600080fd5b505af1158015611a5c573d6000803e3d6000fd5b50505050611b88565b611a758161113b85612710611c74565b611a7f8286611c74565b81611a8657fe5b049550611a9d6001600160a01b038b16868a610f37565b604080516000808252602082019283905263022c0d9f60e01b835260248201898152604483018290526001600160a01b038b81166064850152608060848501908152845160a48601819052918b169563022c0d9f958d95948f9491939092909160c4850191908083838a5b83811015611b20578181015183820152602001611b08565b50505050905090810190601f168015611b4d5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015611b6f57600080fd5b505af1158015611b83573d6000803e3d6000fd5b505050505b5050505050949350505050565b60008181526001830160205260408120548015611c515783546000198083019190810190600090879083908110611bc857fe5b9060005260206000200154905080876000018481548110611be557fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611c1557fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506106b6565b60009150506106b6565b6060611c6a8484600085611d91565b90505b9392505050565b600082611c83575060006106b6565b82820282848281611c9057fe5b04146106b35760405162461bcd60e51b815260040180806020018281038252602181526020018061208f6021913960400191505060405180910390fd5b6000808211611d23576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611d2c57fe5b049392505050565b600082821115611d8b576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b606082471015611dd25760405162461bcd60e51b81526004018080602001828103825260268152602001806120136026913960400191505060405180910390fd5b611ddb85611ee2565b611e2c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611e6b5780518252601f199092019160209182019101611e4c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611ecd576040519150601f19603f3d011682016040523d82523d6000602084013e611ed2565b606091505b509150915061135a828286611ee8565b3b151590565b60608315611ef7575081611c6d565b825115611f075782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f51578181015183820152602001611f39565b50505050905090810190601f168015611f7e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744d6f6a69746f4d616b65723a3a6f6e6c7954696d656c6f636b3a2063616c6c6572206973206e6f74207468652074696d656c6f636b416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654d6f6a69746f4d616b65723a3a7365744272696467653a20696e76616c696420627269646765536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d6f6a69746f4d616b65723a3a5f636f6e766572743a20696e76616c696420706169725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644d6f6a69746f4d616b65723a3a6f6e6c794f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f724d6f6a69746f4d616b65723a3a5f737761703a2063616e6e6f7420636f6e76657274416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212203e03eeff46442713032b46122f2576b12c543cbd07121ce37563e4b2ce4ffe2264736f6c634300060c003300000000000000000000000079855a03426e15ad120df77efa623af87bd54ef3000000000000000000000000caaf158b5aecc75336efb9b252be4748feb76b8000000000000000000000000041bca2301971392b3a56ee88689587cb5912ac2000000000000000000000000039538e511bb7f9ac643de8d1ed9447b531edd6d40000000000000000000000002ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c07521

Deployed ByteCode

0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80639d22ae8c116100c3578063ca15c8731161007c578063ca15c873146103de578063d547741f146103fb578063d8830c7d14610427578063def68a9c1461042f578063f288a2e214610455578063f5b541a61461045d5761014d565b80639d22ae8c14610344578063a217fddf14610372578063a761a9391461037a578063b902a519146103a0578063bd1b820c146103a8578063c45a0155146103d65761014d565b806369bd7bf21161011557806369bd7bf2146102c15780637b534dbf146102c95780638664d191146102d15780639010d07c146102d9578063918f8674146102fc57806391d14854146103045761014d565b8063248a9ca3146101525780632f2ff15d14610181578063303e6aa4146101af57806336568abe1461027157806352d9f48c1461029d575b600080fd5b61016f6004803603602081101561016857600080fd5b5035610465565b60408051918252519081900360200190f35b6101ad6004803603604081101561019757600080fd5b50803590602001356001600160a01b031661047d565b005b6101ad600480360360408110156101c557600080fd5b8101906020810181356401000000008111156101e057600080fd5b8201836020820111156101f257600080fd5b8035906020019184602083028401116401000000008311171561021457600080fd5b91939092909160208101903564010000000081111561023257600080fd5b82018360208201111561024457600080fd5b8035906020019184602083028401116401000000008311171561026657600080fd5b5090925090506104e9565b6101ad6004803603604081101561028757600080fd5b50803590602001356001600160a01b03166105aa565b6102a561060b565b604080516001600160a01b039092168252519081900360200190f35b6102a561062f565b6102a5610653565b6102a5610677565b6102a5600480360360408110156102ef57600080fd5b508035906020013561069b565b61016f6106bc565b6103306004803603604081101561031a57600080fd5b50803590602001356001600160a01b03166106c1565b604080519115158252519081900360200190f35b6101ad6004803603604081101561035a57600080fd5b506001600160a01b03813581169160200135166106d9565b61016f610862565b6102a56004803603602081101561039057600080fd5b50356001600160a01b0316610867565b6102a56108ae565b6101ad600480360360408110156103be57600080fd5b506001600160a01b03813581169160200135166108d2565b6102a5610941565b61016f600480360360208110156103f457600080fd5b5035610965565b6101ad6004803603604081101561041157600080fd5b50803590602001356001600160a01b031661097c565b61016f6109d5565b6101ad6004803603602081101561044557600080fd5b50356001600160a01b03166109da565b61016f610af0565b61016f610b14565b6000818152602081905260409020600201545b919050565b6000828152602081905260409020600201546104a09061049b610b4d565b6106c1565b6104db5760405162461bcd60e51b815260040180806020018281038252602f815260200180611faf602f913960400191505060405180910390fd5b6104e58282610b51565b5050565b6105137f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929336106c1565b61054e5760405162461bcd60e51b81526004018080602001828103825260358152602001806120fd6035913960400191505060405180910390fd5b8260005b818110156105a25761059a86868381811061056957fe5b905060200201356001600160a01b031685858481811061058557fe5b905060200201356001600160a01b0316610bba565b600101610552565b505050505050565b6105b2610b4d565b6001600160a01b0316816001600160a01b0316146106015760405162461bcd60e51b815260040180806020018281038252602f815260200180612154602f913960400191505060405180910390fd5b6104e58282610ea2565b7f0000000000000000000000002ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f81565b7f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c0752181565b7f000000000000000000000000caaf158b5aecc75336efb9b252be4748feb76b8081565b7f00000000000000000000000041bca2301971392b3a56ee88689587cb5912ac2081565b60008281526020819052604081206106b39083610f0b565b90505b92915050565b601e81565b60008281526020819052604081206106b39083610f17565b6107037ff66846415d2bf9eabda9e84793ff9c0ea96d87f50fc41e66aa16469c6a442f05336106c1565b61073e5760405162461bcd60e51b8152600401808060200182810382526035815260200180611fde6035913960400191505060405180910390fd5b7f0000000000000000000000002ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f6001600160a01b0316826001600160a01b0316141580156107b257507f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c075216001600160a01b0316826001600160a01b031614155b80156107d05750806001600160a01b0316826001600160a01b031614155b61080b5760405162461bcd60e51b81526004018080602001828103825260268152602001806120696026913960400191505060405180910390fd5b6001600160a01b0382811660008181526001602052604080822080546001600160a01b0319169486169485179055517f2e103aa707acc565f9a1547341914802b2bfe977fd79c595209f248ae4b006139190a35050565b600081565b6001600160a01b03808216600090815260016020526040902054168061047857507f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c07521919050565b7f00000000000000000000000039538e511bb7f9ac643de8d1ed9447b531edd6d481565b6108fc7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929336106c1565b6109375760405162461bcd60e51b81526004018080602001828103825260358152602001806120fd6035913960400191505060405180910390fd5b6104e58282610bba565b7f00000000000000000000000079855a03426e15ad120df77efa623af87bd54ef381565b60008181526020819052604081206106b690610f2c565b60008281526020819052604090206002015461099a9061049b610b4d565b6106015760405162461bcd60e51b81526004018080602001828103825260308152602001806120396030913960400191505060405180910390fd5b601481565b610a047ff66846415d2bf9eabda9e84793ff9c0ea96d87f50fc41e66aa16469c6a442f05336106c1565b610a3f5760405162461bcd60e51b8152600401808060200182810382526035815260200180611fde6035913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610a8e57600080fd5b505afa158015610aa2573d6000803e3d6000fd5b505050506040513d6020811015610ab857600080fd5b505190506104e56001600160a01b0383167f00000000000000000000000039538e511bb7f9ac643de8d1ed9447b531edd6d483610f37565b7ff66846415d2bf9eabda9e84793ff9c0ea96d87f50fc41e66aa16469c6a442f0581565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b60006106b3836001600160a01b038416610f8e565b3390565b6000828152602081905260409020610b699082610b38565b156104e557610b76610b4d565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60007f00000000000000000000000079855a03426e15ad120df77efa623af87bd54ef36001600160a01b031663e6a4390584846040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b158015610c3a57600080fd5b505afa158015610c4e573d6000803e3d6000fd5b505050506040513d6020811015610c6457600080fd5b505190506001600160a01b038116610cad5760405162461bcd60e51b81526004018080602001828103825260238152602001806120b06023913960400191505060405180910390fd5b610d3b81826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610cfe57600080fd5b505afa158015610d12573d6000803e3d6000fd5b505050506040513d6020811015610d2857600080fd5b50516001600160a01b0384169190610f37565b600080826001600160a01b03166389afcb44306040518263ffffffff1660e01b815260040180826001600160a01b031681526020019150506040805180830381600087803b158015610d8c57600080fd5b505af1158015610da0573d6000803e3d6000fd5b505050506040513d6040811015610db657600080fd5b50805160209182015160408051630dfe168160e01b815290519295509093506001600160a01b03861692630dfe168192600480840193829003018186803b158015610e0057600080fd5b505afa158015610e14573d6000803e3d6000fd5b505050506040513d6020811015610e2a57600080fd5b50516001600160a01b03868116911614610e4057905b6001600160a01b03808516908616337fd06b1d7ed79b664d17472c6f6997b929f1abe463ccccb4e5b6a0038f2f730c158585610e7e8b8b8484610fd8565b60408051938452602084019290925282820152519081900360600190a45050505050565b6000828152602081905260409020610eba9082611368565b156104e557610ec7610b4d565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006106b3838361137d565b60006106b3836001600160a01b0384166113e1565b60006106b6826113f9565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f899084906113fd565b505050565b6000610f9a83836113e1565b610fd0575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106b6565b5060006106b6565b6000836001600160a01b0316856001600160a01b031614156110ea57600061100084846114ae565b90507f0000000000000000000000002ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f6001600160a01b0316866001600160a01b0316141561104d5761104581611508565b8091506110e4565b7f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c075216001600160a01b0316866001600160a01b031614156110b8576110b17f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c0752182611690565b91506110e4565b60006110c387610867565b90506110d1878284306116c9565b91506110e08182846000610fd8565b9250505b50611360565b7f0000000000000000000000002ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f6001600160a01b0316856001600160a01b031614156111485761112d83611508565b6111418361113b8685611690565b906114ae565b9050611360565b7f0000000000000000000000002ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f6001600160a01b0316846001600160a01b031614156111995761118b82611508565b6111418261113b8786611690565b7f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c075216001600160a01b0316856001600160a01b0316141561122c576111417f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c075216112278561113b887f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c0752188306116c9565b611690565b7f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c075216001600160a01b0316846001600160a01b031614156112ba576111417f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c075216112278461113b897f0000000000000000000000004446fc4eb47f2f6586f9faab68b3498f86c0752189306116c9565b60006112c586610867565b905060006112d286610867565b9050856001600160a01b0316826001600160a01b0316141561130c5761130582876112ff8a868a306116c9565b87610fd8565b925061135d565b866001600160a01b0316816001600160a01b0316141561133d576113058782876113388a868a306116c9565b610fd8565b61135a828261134e8a868a306116c9565b6113388a868a306116c9565b92505b50505b949350505050565b60006106b3836001600160a01b038416611b95565b815460009082106113bf5760405162461bcd60e51b8152600401808060200182810382526022815260200180611f8d6022913960400191505060405180910390fd5b8260000182815481106113ce57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6060611452826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c5b9092919063ffffffff16565b805190915015610f895780806020019051602081101561147157600080fd5b5051610f895760405162461bcd60e51b815260040180806020018281038252602a8152602001806120d3602a913960400191505060405180910390fd5b6000828201838110156106b3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516370a0823160e01b8152306004820152905182916000916001600160a01b037f0000000000000000000000002ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f16916370a08231916024808301926020929190829003018186803b15801561157357600080fd5b505afa158015611587573d6000803e3d6000fd5b505050506040513d602081101561159d57600080fd5b50519050808211156115ad578091505b60006115c5601e6115bf856014611c74565b90611ccd565b905060006115d38483611d34565b9050811561162f5761162f6001600160a01b037f0000000000000000000000002ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f167f000000000000000000000000caaf158b5aecc75336efb9b252be4748feb76b8084610f37565b8015611689576116896001600160a01b037f0000000000000000000000002ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f167f00000000000000000000000041bca2301971392b3a56ee88689587cb5912ac2083610f37565b5050505050565b60006116be837f0000000000000000000000002ca48b4eea5a731c2b54e7c3944dbdb87c0cfb6f84306116c9565b90506106b681611508565b6000807f00000000000000000000000079855a03426e15ad120df77efa623af87bd54ef36001600160a01b031663e6a4390587876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561174a57600080fd5b505afa15801561175e573d6000803e3d6000fd5b505050506040513d602081101561177457600080fd5b505190506001600160a01b0381166117bd5760405162461bcd60e51b81526004018080602001828103825260228152602001806121326022913960400191505060405180910390fd5b600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156117f957600080fd5b505afa15801561180d573d6000803e3d6000fd5b505050506040513d606081101561182357600080fd5b50805160209182015160408051633fbd188960e21b815290516dffffffffffffffffffffffffffff93841696509290911693506000926001600160a01b0387169263fef46224926004808201939291829003018186803b15801561188657600080fd5b505afa15801561189a573d6000803e3d6000fd5b505050506040513d60208110156118b057600080fd5b5051905060006118c588612710849003611c74565b9050846001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561190057600080fd5b505afa158015611914573d6000803e3d6000fd5b505050506040513d602081101561192a57600080fd5b50516001600160a01b038b811691161415611a655761194f8161113b86612710611c74565b6119598285611c74565b8161196057fe5b0495506119776001600160a01b038b16868a610f37565b604080516000808252602082019283905263022c0d9f60e01b835260248201818152604483018a90526001600160a01b038b81166064850152608060848501908152845160a48601819052918b169563022c0d9f958d948f9491939092909160c4850191908083838b5b838110156119f95781810151838201526020016119e1565b50505050905090810190601f168015611a265780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015611a4857600080fd5b505af1158015611a5c573d6000803e3d6000fd5b50505050611b88565b611a758161113b85612710611c74565b611a7f8286611c74565b81611a8657fe5b049550611a9d6001600160a01b038b16868a610f37565b604080516000808252602082019283905263022c0d9f60e01b835260248201898152604483018290526001600160a01b038b81166064850152608060848501908152845160a48601819052918b169563022c0d9f958d95948f9491939092909160c4850191908083838a5b83811015611b20578181015183820152602001611b08565b50505050905090810190601f168015611b4d5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015611b6f57600080fd5b505af1158015611b83573d6000803e3d6000fd5b505050505b5050505050949350505050565b60008181526001830160205260408120548015611c515783546000198083019190810190600090879083908110611bc857fe5b9060005260206000200154905080876000018481548110611be557fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611c1557fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506106b6565b60009150506106b6565b6060611c6a8484600085611d91565b90505b9392505050565b600082611c83575060006106b6565b82820282848281611c9057fe5b04146106b35760405162461bcd60e51b815260040180806020018281038252602181526020018061208f6021913960400191505060405180910390fd5b6000808211611d23576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611d2c57fe5b049392505050565b600082821115611d8b576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b606082471015611dd25760405162461bcd60e51b81526004018080602001828103825260268152602001806120136026913960400191505060405180910390fd5b611ddb85611ee2565b611e2c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611e6b5780518252601f199092019160209182019101611e4c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611ecd576040519150601f19603f3d011682016040523d82523d6000602084013e611ed2565b606091505b509150915061135a828286611ee8565b3b151590565b60608315611ef7575081611c6d565b825115611f075782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f51578181015183820152602001611f39565b50505050905090810190601f168015611f7e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744d6f6a69746f4d616b65723a3a6f6e6c7954696d656c6f636b3a2063616c6c6572206973206e6f74207468652074696d656c6f636b416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654d6f6a69746f4d616b65723a3a7365744272696467653a20696e76616c696420627269646765536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d6f6a69746f4d616b65723a3a5f636f6e766572743a20696e76616c696420706169725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644d6f6a69746f4d616b65723a3a6f6e6c794f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f724d6f6a69746f4d616b65723a3a5f737761703a2063616e6e6f7420636f6e76657274416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212203e03eeff46442713032b46122f2576b12c543cbd07121ce37563e4b2ce4ffe2264736f6c634300060c0033