Contract 0x3657952d7bA5A0A4799809b5B6fdfF9ec5B46293 3

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3c08ce98799c163a941becc3064c1f2d8e3649d26d8be7a2bdc6807f6d0eb6fdGrant Role2558742021-09-02 12:08:32138 days 10 hrs ago0x5e12ae8e436cd25f0041d931f8e4c7a3bb42cc1f IN  0x3657952d7ba5a0a4799809b5b6fdff9ec5b462930 ETH0.001004411267 ETH
0xc320ca98d6b3511c6c31ec5f5df7e00396b335ebbd8c9787af63550091fa2c3e0x60a060402555892021-09-02 11:45:33138 days 10 hrs ago0x5e12ae8e436cd25f0041d931f8e4c7a3bb42cc1f IN  Create: WardenCosmicBrain0 ETH0.046026580349 ETH
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WardenCosmicBrain

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at arbiscan.io on 2021-09-02
*/

// SPDX-License-Identifier: MIT

// ((/*,                                                                    ,*((/,.
// &&@@&&%#/*.                                                        .*(#&&@@@@%. 
// &&@@@@@@@&%(.                                                    ,#%&@@@@@@@@%. 
// &&@@@@@@@@@&&(,                                                ,#&@@@@@@@@@@@%. 
// &&@@@@@@@@@@@&&/.                                            .(&&@@@@@@@@@@@@%. 
// %&@@@@@@@@@@@@@&(,                                          *#&@@@@@@@@@@@@@@%. 
// #&@@@@@@@@@@@@@@&#*                                       .*#@@@@@@@@@@@@@@@&#. 
// #&@@@@@@@@@@@@@@@@#.                                      ,%&@@@@@@@@@@@@@@@&#. 
// #&@@@@@@@@@@@@@@@@%(,                                    ,(&@@@@@@@@@@@@@@@@&#. 
// #&@@@@@@@@@@@@@@@@&&/                                   .(%&@@@@@@@@@@@@@@@@&#. 
// #%@@@@@@@@@@@@@@@@@@(.               ,(/,.              .#&@@@@@@@@@@@@@@@@@&#. 
// (%@@@@@@@@@@@@@@@@@@#*.            ./%&&&/.            .*%@@@@@@@@@@@@@@@@@@%(. 
// (%@@@@@@@@@@@@@@@@@@#*.           *#&@@@@&%*.          .*%@@@@@@@@@@@@@@@@@@%(. 
// (%@@@@@@@@@@@@@@@@@@#/.         ./#@@@@@@@@%(.         ./%@@@@@@@@@@@@@@@@@@%(. 
// (%@@@@@@@@@@@@@@@@@@#/.        ./&@@@@@@@@@@&(*        ,/%@@@@@@@@@@@@@@@@@@%(. 
// (%@@@@@@@@@@@@@@@@@@%/.       ,#&@@@@@@@@@@@@&#,.      ,/%@@@@@@@@@@@@@@@@@@%(. 
// /%@@@@@@@@@@@@@@@@@@#/.      *(&@@@@@@@@@@@@@@&&*      ./%@@@@@@@@@@@@@@@@@&%(. 
// /%@@@@@@@@@@@@@@@@@@#/.     .(&@@@@@@@@@@@@@@@@@#*.    ,/%@@@@@@@@@@@@@@@@@&#/. 
// ,#@@@@@@@@@@@@@@@@@@#/.    ./%@@@@@@@@@@@@@@@@@@&#,    ,/%@@@@@@@@@@@@@@@@@&(,  
//  /%&@@@@@@@@@@@@@@@@#/.    *#&@@@@@@@@@@@@@@@@@@@&*    ,/%@@@@@@@@@@@@@@@@&%*   
//  .*#&@@@@@@@@@@@@@@@#/.    /&&@@@@@@@@@@@@@@@@@@@&/.   ,/%@@@@@@@@@@@@@@@@#*.   
//    ,(&@@@@@@@@@@@@@@#/.    /@@@@@@@@@@@@@@@@@@@@@&(,   ,/%@@@@@@@@@@@@@@%(,     
//     .*(&&@@@@@@@@@@@#/.    /&&@@@@@@@@@@@@@@@@@@@&/,   ,/%@@@@@@@@@@@&%/,       
//        ./%&@@@@@@@@@#/.    *#&@@@@@@@@@@@@@@@@@@@%*    ,/%@@@@@@@@@&%*          
//           ,/#%&&@@@@#/.     ,#&@@@@@@@@@@@@@@@@@#/.    ,/%@@@@&&%(/,            
//               ./#&@@%/.      ,/&@@@@@@@@@@@@@@%(,      ,/%@@%#*.                
//                   .,,,         ,/%&@@@@@@@@&%(*        .,,,.                    
//                                   ,/%&@@@%(*.                                   
//  .,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,**((/*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
//                                                                                                                                                                                                                                                                                                            
//                                                                                             

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File: wx/interface/IWardenCosmicBrain0_8.sol

pragma solidity ^0.8.0;


interface IWardenCosmicBrain {
    function train(
        uint256[]   calldata _subRoutes,
        IERC20[]    calldata _correspondentTokens
    )
        external
        returns (uint256 _learnedId);
    
    function trainTradingPair(
        IERC20      _src,
        IERC20      _dest,
        uint256     _srcAmount,
        uint256     _destAmount,
        uint256     _learnedId
    )
        external
        returns (bool _isAlreadyLearned);
    
    function learnedHashes(
        uint256 _index
    )
        external
        returns (bytes32);
    
    function learnedFetchAllRoutes(
        bytes32 _learnedHash
    )
        external
        view
        returns (uint256[] memory);
    
    function learnedFetchAllTokens(
        bytes32 _learnedHash
    )
        external
        view
        returns (IERC20[] memory);
    
    function hasLearned(
        bytes32 _learnedHash
    )
        external
        view
        returns (bool);

    function learnedIds(
        bytes32 _learnedHash
    )
        external
        view
        returns (uint256);

    function learnedRoutesLength(
        bytes32 _learnedHash
    )
        external
        view
        returns (uint256);
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/utils/introspection/IERC165.sol



pragma solidity ^0.8.0;

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/utils/introspection/ERC165.sol



pragma solidity ^0.8.0;


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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/utils/Strings.sol



pragma solidity ^0.8.0;

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

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

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

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/utils/Context.sol



pragma solidity ^0.8.0;

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/access/AccessControl.sol



pragma solidity ^0.8.0;




/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);

    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    function grantRole(bytes32 role, address account) external;

    function revokeRole(bytes32 role, address account) external;

    function renounceRole(bytes32 role, address account) external;
}

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/security/ReentrancyGuard.sol



pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

// File: wx/WardenCosmicBrain.sol

pragma solidity ^0.8.0;




contract WardenCosmicBrain is IWardenCosmicBrain, AccessControl, ReentrancyGuard {
    mapping(bytes32 => bool) public override hasLearned;
    mapping(bytes32 => uint256[]) public learnedRoutes;
    mapping(bytes32 => uint256) public override learnedRoutesLength;
    mapping(bytes32 => IERC20[]) public learnedTokens;
    mapping(bytes32 => uint256) public learnedTokensLength;
    
    uint256 public learnedCount = 1;
    mapping(bytes32 => uint256) public override learnedIds;
    mapping(uint256 => bytes32) public override learnedHashes;
    
    mapping(IERC20 => mapping(IERC20 => bytes32[])) public tradingPairLearnedHashes;
    mapping(IERC20 => mapping(IERC20 => mapping(bytes32 => bool))) public hasTradingPairLearned;
    mapping(IERC20 => mapping(IERC20 => uint256)) public tradingPairLearnedLength;
    
    bytes32 public constant ALLOWLIST_ROLE = keccak256("ALLOWLIST_ROLE");
    
    address public immutable weth;
    IERC20 public constant ETHER_ERC20 = IERC20(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
    
    struct TradingPairLearning {
        IERC20 src;
        IERC20 dest;
        bytes32 learnedHashe;
    }
    TradingPairLearning[] public tradingPairsLearning;
    
    /**
    * @dev learn new trading strategy.
    * @param learnedHash hash of strategy data
    * @param learnedId unique id
    * @param subRoutesLength lenght of routes
    * @param correspondentTokensLength lenght of tokens
    */
    event Learn(
        bytes32 learnedHash,
        uint256 indexed learnedId,
        uint256 indexed subRoutesLength,
        uint256 indexed correspondentTokensLength
    );
    
    event LearnTradingPair(
        bytes32 learnedHash,
        uint256 indexed learnedId,
        IERC20  indexed src,
        IERC20  indexed dest
    );
    
    constructor(
        address _weth
    )
    {
        weth = _weth;
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }
    
    modifier onlyAllowlisted() {
        require(hasRole(ALLOWLIST_ROLE, msg.sender));
        _;
    }
    
    /**
    * @dev train new trading strategy
    * @param _subRoutes trading routers
    * @param _correspondentTokens intermediate tokens
    */
    function train(
        uint256[]   calldata _subRoutes,
        IERC20[]    calldata _correspondentTokens
    )
        external
        override
        onlyAllowlisted
        returns (uint256 _learnedId)
    {
        bytes memory packed = abi.encodePacked(_subRoutes, _correspondentTokens);
        bytes32 learnedHash = keccak256(packed);
        
        if (!hasLearned[learnedHash]) {
            hasLearned[learnedHash] = true;
            learnedRoutes[learnedHash] = _subRoutes;
            learnedRoutesLength[learnedHash] = _subRoutes.length;
            learnedTokens[learnedHash] = _correspondentTokens;
            learnedTokensLength[learnedHash] = _correspondentTokens.length;
            
            learnedIds[learnedHash] = learnedCount;
            learnedHashes[learnedCount] = learnedHash;
            
            emit Learn(learnedHash, learnedCount, _subRoutes.length, _correspondentTokens.length);
            
            learnedCount += 1;
            
            return learnedCount - 1;

        }
        return learnedIds[learnedHash];
    }
    
    function trainTradingPair(
        IERC20      _src,
        IERC20      _dest,
        uint256     ,
        uint256     ,
        uint256     _learnedId
    )
        external
        override
        onlyAllowlisted
        returns (bool _isAlreadyLearned)
    {
        if (_src == ETHER_ERC20) {
            _src = IERC20(weth);
        }
        if (_dest == ETHER_ERC20) {
            _dest = IERC20(weth);
        }
        
        bytes32 learnedHash = learnedHashes[_learnedId];

        // Learn new trading pair
        if (!hasTradingPairLearned[_src][_dest][learnedHash]) {
            hasTradingPairLearned[_src][_dest][learnedHash] = true;
            tradingPairLearnedHashes[_src][_dest].push(learnedHash);
            tradingPairLearnedLength[_src][_dest] += 1;
            
            tradingPairsLearning.push(TradingPairLearning(
                _src,
                _dest,
                learnedHash
            ));
            
            emit LearnTradingPair(
                learnedHash,
                _learnedId,
                _src,
                _dest
            );
            
            return false;
        }
        return true;
    }
    
    function tradingPairsLearningLength()
        external
        view
        returns (uint256)
    {
        return tradingPairsLearning.length;
    }
    
    function learnedFetchAllRoutes(
        bytes32 _learnedHash
    )
        external
        override
        view
        returns (uint256[] memory)
    {
        return learnedRoutes[_learnedHash];
    }
    
    function learnedFetchAllTokens(
        bytes32 _learnedHash
    )
        external
        override
        view
        returns (IERC20[] memory)
    {
        return learnedTokens[_learnedHash];
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"learnedHash","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"learnedId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"subRoutesLength","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"correspondentTokensLength","type":"uint256"}],"name":"Learn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"learnedHash","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"learnedId","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"src","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"dest","type":"address"}],"name":"LearnTradingPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"ALLOWLIST_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETHER_ERC20","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hasLearned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"},{"internalType":"contract IERC20","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hasTradingPairLearned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"learnedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_learnedHash","type":"bytes32"}],"name":"learnedFetchAllRoutes","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_learnedHash","type":"bytes32"}],"name":"learnedFetchAllTokens","outputs":[{"internalType":"contract IERC20[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"learnedHashes","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"learnedIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"learnedRoutes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"learnedRoutesLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"learnedTokens","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"learnedTokensLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"},{"internalType":"contract IERC20","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tradingPairLearnedHashes","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"},{"internalType":"contract IERC20","name":"","type":"address"}],"name":"tradingPairLearnedLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tradingPairsLearning","outputs":[{"internalType":"contract IERC20","name":"src","type":"address"},{"internalType":"contract IERC20","name":"dest","type":"address"},{"internalType":"bytes32","name":"learnedHashe","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingPairsLearningLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_subRoutes","type":"uint256[]"},{"internalType":"contract IERC20[]","name":"_correspondentTokens","type":"address[]"}],"name":"train","outputs":[{"internalType":"uint256","name":"_learnedId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_src","type":"address"},{"internalType":"contract IERC20","name":"_dest","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_learnedId","type":"uint256"}],"name":"trainTradingPair","outputs":[{"internalType":"bool","name":"_isAlreadyLearned","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a0604052600160075534801561001557600080fd5b50604051620015373803806200153783398101604081905261003691610109565b600180556001600160601b0319606082901b1660805261005760003361005d565b50610139565b610067828261006b565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610067576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100c53390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006020828403121561011b57600080fd5b81516001600160a01b038116811461013257600080fd5b9392505050565b60805160601c6113d16200016660003960008181610232015281816104dd015261052601526113d16000f3fe608060405234801561001057600080fd5b50600436106101495760003560e01c806301ffc9a71461014e5780630b9de09814610176578063248a9ca3146101a457806329c2393b146101b75780632f2ff15d146101ca5780633030b532146101df57806334ec6d8c146101f457806336568abe14610207578063365a31c01461021a5780633fc8cef31461022d5780634e3eeaf41461026c578063624d8aba146102745780636a034458146102945780637b882f7d1461029d578063865164c4146102bd57806388642b45146102f1578063905c675a1461031457806391d148541461033f5780639436a8181461035257806396a9bb5a14610372578063972f4143146103855780639764388f146103a55780639af48121146103c5578063a217fddf146103d8578063d547741f146103e0578063f6a8e171146103f3578063fe55ccaf1461040e575b600080fd5b61016161015c366004611016565b610447565b60405190151581526020015b60405180910390f35b610196610184366004610fab565b60046020526000908152604090205481565b60405190815260200161016d565b6101966101b2366004610fab565b61047e565b6101616101c53660046110af565b610493565b6101dd6101d8366004610fc4565b61073e565b005b61019660008051602061137c83398151915281565b610196610202366004610ff4565b610760565b6101dd610215366004610fc4565b610791565b61019661022836600461106e565b610814565b6102547f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161016d565b600d54610196565b610287610282366004610fab565b610852565b60405161016d9190611221565b61019660075481565b6101966102ab366004610fab565b60086020526000908152604090205481565b6101616102cb36600461106e565b600b60209081526000938452604080852082529284528284209052825290205460ff1681565b6101616102ff366004610fab565b60026020526000908152604090205460ff1681565b610196610322366004611040565b600c60209081526000928352604080842090915290825290205481565b61016161034d366004610fc4565b6108b4565b610365610360366004610fab565b6108dd565b60405161016d91906111d4565b610196610380366004610f40565b610948565b610196610393366004610fab565b60096020526000908152604090205481565b6101966103b3366004610fab565b60066020526000908152604090205481565b6102546103d3366004610ff4565b610abe565b610196600081565b6101dd6103ee366004610fc4565b610af6565b61025473eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b61042161041c366004610fab565b610b13565b604080516001600160a01b0394851681529390921660208401529082015260600161016d565b60006001600160e01b03198216637965db0b60e01b148061047857506301ffc9a760e01b6001600160e01b03198316145b92915050565b60009081526020819052604090206001015490565b60006104ad60008051602061137c833981519152336108b4565b6104b657600080fd5b6001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156104ff577f000000000000000000000000000000000000000000000000000000000000000095505b6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610548577f000000000000000000000000000000000000000000000000000000000000000094505b6000828152600960209081526040808320546001600160a01b03808b168552600b8452828520908a16855283528184208185529092529091205460ff1661072f576001600160a01b038088166000818152600b60209081526040808320948b168084529482528083208684528252808320805460ff19166001908117909155848452600a835281842086855283528184208054808301825590855283852001879055938352600c825280832094835293905291822080549192909161060e90849061128c565b9091555050604080516060810182526001600160a01b03808a1680835289821660208401818152848601878152600d8054600181018255600091909152955160039096027fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5810180549787166001600160a01b031998891617905591517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb6830180549190961696169590951790935592517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb790920191909155915190919085907f1d5ee19ce0036e7abb0d9d443a78e903dfcaec9ff327b32f8046455c535019319061071d9086815260200190565b60405180910390a46000915050610735565b60019150505b95945050505050565b6107478261047e565b6107518133610b53565b61075b8383610bb7565b505050565b6003602052816000526040600020818154811061077c57600080fd5b90600052602060002001600091509150505481565b6001600160a01b03811633146108065760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6108108282610c3b565b5050565b600a602052826000526040600020602052816000526040600020818154811061083c57600080fd5b9060005260206000200160009250925050505481565b6000818152600360209081526040918290208054835181840281018401909452808452606093928301828280156108a857602002820191906000526020600020905b815481526020019060010190808311610894575b50505050509050919050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000818152600560209081526040918290208054835181840281018401909452808452606093928301828280156108a857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161091f5750505050509050919050565b600061096260008051602061137c833981519152336108b4565b61096b57600080fd5b6000858585856040516020016109849493929190611100565b60408051601f19818403018152918152815160208084019190912060008181526002909252919020549192509060ff16610aa3576000818152600260209081526040808320805460ff19166001179055600390915290206109e6908888610e42565b50600081815260046020908152604080832089905560059091529020610a0d908686610e8d565b50600081815260066020908152604080832087905560078054600884528285208190558452600983529281902084905591548251848152925187938a937fd856f4bf91e1c98aa4d266b714d4aac8281358dcae1e5faa7b74f8615c4e30f592918290030190a4600160076000828254610a86919061128c565b9091555050600754610a9a906001906112c3565b92505050610ab6565b6000908152600860205260409020549150505b949350505050565b60056020528160005260406000208181548110610ada57600080fd5b6000918252602090912001546001600160a01b03169150829050565b610aff8261047e565b610b098133610b53565b61075b8383610c3b565b600d8181548110610b2357600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b03918216935091169083565b610b5d82826108b4565b61081057610b75816001600160a01b03166014610ca0565b610b80836020610ca0565b604051602001610b91929190611165565b60408051601f198184030181529082905262461bcd60e51b82526107fd91600401611259565b610bc182826108b4565b610810576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610bf73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610c4582826108b4565b15610810576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606000610caf8360026112a4565b610cba90600261128c565b6001600160401b03811115610cd157610cd161134d565b6040519080825280601f01601f191660200182016040528015610cfb576020820181803683370190505b509050600360fc1b81600081518110610d1657610d16611337565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610d4557610d45611337565b60200101906001600160f81b031916908160001a9053506000610d698460026112a4565b610d7490600161128c565b90505b6001811115610dec576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610da857610da8611337565b1a60f81b828281518110610dbe57610dbe611337565b60200101906001600160f81b031916908160001a90535060049490941c93610de58161130a565b9050610d77565b508315610e3b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107fd565b9392505050565b828054828255906000526020600020908101928215610e7d579160200282015b82811115610e7d578235825591602001919060010190610e62565b50610e89929150610ee0565b5090565b828054828255906000526020600020908101928215610e7d579160200282015b82811115610e7d5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190610ead565b5b80821115610e895760008155600101610ee1565b60008083601f840112610f0757600080fd5b5081356001600160401b03811115610f1e57600080fd5b6020830191508360208260051b8501011115610f3957600080fd5b9250929050565b60008060008060408587031215610f5657600080fd5b84356001600160401b0380821115610f6d57600080fd5b610f7988838901610ef5565b90965094506020870135915080821115610f9257600080fd5b50610f9f87828801610ef5565b95989497509550505050565b600060208284031215610fbd57600080fd5b5035919050565b60008060408385031215610fd757600080fd5b823591506020830135610fe981611363565b809150509250929050565b6000806040838503121561100757600080fd5b50508035926020909101359150565b60006020828403121561102857600080fd5b81356001600160e01b031981168114610e3b57600080fd5b6000806040838503121561105357600080fd5b823561105e81611363565b91506020830135610fe981611363565b60008060006060848603121561108357600080fd5b833561108e81611363565b9250602084013561109e81611363565b929592945050506040919091013590565b600080600080600060a086880312156110c757600080fd5b85356110d281611363565b945060208601356110e281611363565b94979496505050506040830135926060810135926080909101359150565b60006001600160fb1b0385111561111657600080fd5b8460051b80878437600090830181815285915b8581101561115957823561113c81611363565b6001600160a01b0316825260209283019290910190600101611129565b50979650505050505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516111978160178501602088016112da565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516111c88160288401602088016112da565b01602801949350505050565b6020808252825182820181905260009190848201906040850190845b818110156112155783516001600160a01b0316835292840192918401916001016111f0565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156112155783518352928401929184019160010161123d565b60208152600082518060208401526112788160408501602087016112da565b601f01601f19169190910160400192915050565b6000821982111561129f5761129f611321565b500190565b60008160001904831182151516156112be576112be611321565b500290565b6000828210156112d5576112d5611321565b500390565b60005b838110156112f55781810151838201526020016112dd565b83811115611304576000848401525b50505050565b60008161131957611319611321565b506000190190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461137857600080fd5b5056fe26a560d834a19637eccba4611bbc09fb32970bb627da0a70f14f83fdc9822cbca26469706673582212205c17e58953b12580d0b4cd4722376653d0ccf82c5ac8253abe69905ee142197164736f6c6343000807003300000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

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

00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

-----Decoded View---------------
Arg [0] : _weth (address): 0x82af49447d8a07e3bd95bd0d56f35241523fbab1

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1


Deployed ByteCode Sourcemap

23507:5210:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16126:204;;;;;;:::i;:::-;;:::i;:::-;;;7850:14:1;;7843:22;7825:41;;7813:2;7798:18;16126:204:0;;;;;;;;23710:63;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;8023:25:1;;;8011:2;7996:18;23710:63:0;7877:177:1;17537:123:0;;;;;;:::i;:::-;;:::i;26873:1225::-;;;;;;:::i;:::-;;:::i;17922:147::-;;;;;;:::i;:::-;;:::i;:::-;;24346:68;;-1:-1:-1;;;;;;;;;;;24346:68:0;;23653:50;;;;;;:::i;:::-;;:::i;18970:218::-;;;;;;:::i;:::-;;:::i;24072:79::-;;;;;;:::i;:::-;;:::i;24427:29::-;;;;;;;;-1:-1:-1;;;;;6328:32:1;;;6310:51;;6298:2;6283:18;24427:29:0;6164:203:1;28110:155:0;28230:20;:27;28110:155;;28277:213;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;23903:31::-;;;;;;23941:54;;;;;;:::i;:::-;;;;;;;;;;;;;;24158:91;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23595:51;;;;;;:::i;:::-;;;;;;;;;;;;;;;;24256:77;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;16422:139;;;;;;:::i;:::-;;:::i;28502:212::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;25753:1108::-;;;;;;:::i;:::-;;:::i;24002:57::-;;;;;;:::i;:::-;;;;;;;;;;;;;;23836:54;;;;;;:::i;:::-;;;;;;;;;;;;;;23780:49;;;;;;:::i;:::-;;:::i;14400:::-;;14445:4;14400:49;;18314:149;;;;;;:::i;:::-;;:::i;24463:87::-;;24507:42;24463:87;;24678:49;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;8564:15:1;;;8546:34;;8616:15;;;;8611:2;8596:18;;8589:43;8648:18;;;8641:34;8496:2;8481:18;24678:49:0;8280:401:1;16126:204:0;16211:4;-1:-1:-1;;;;;;16235:47:0;;-1:-1:-1;;;16235:47:0;;:87;;-1:-1:-1;;;;;;;;;;8888:40:0;;;16286:36;16228:94;16126:204;-1:-1:-1;;16126:204:0:o;17537:123::-;17603:7;17630:12;;;;;;;;;;:22;;;;17537:123::o;26873:1225::-;27119:22;25533:35;-1:-1:-1;;;;;;;;;;;25557:10:0;25533:7;:35::i;:::-;25525:44;;;;;;-1:-1:-1;;;;;27163:19:0;::::1;24507:42;27163:19;27159:71;;;27213:4;27199:19;;27159:71;-1:-1:-1::0;;;;;27244:20:0;::::1;24507:42;27244:20;27240:73;;;27296:4;27281:20;;27240:73;27333:19;27355:25:::0;;;:13:::1;:25;::::0;;;;;;;;-1:-1:-1;;;;;27433:27:0;;::::1;::::0;;:21:::1;:27:::0;;;;;:34;;::::1;::::0;;;;;;;:47;;;;;;;;;;::::1;;27428:641;;-1:-1:-1::0;;;;;27497:27:0;;::::1;;::::0;;;:21:::1;:27;::::0;;;;;;;:34;;::::1;::::0;;;;;;;;;:47;;;;;;;;:54;;-1:-1:-1;;27497:54:0::1;27547:4;27497:54:::0;;::::1;::::0;;;27566:30;;;:24:::1;:30:::0;;;;;:37;;;;;;;;:55;;;;::::1;::::0;;;;;;;;::::1;::::0;;;27636:30;;;:24:::1;:30:::0;;;;;:37;;;;;;;;;:42;;27547:4;;27636:37;;:42:::1;::::0;27547:4;;27636:42:::1;:::i;:::-;::::0;;;-1:-1:-1;;27733:111:0::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;27733:111:0;;::::1;::::0;;;;;::::1;;::::0;::::1;::::0;;;;;;;;;27707:20:::1;:138:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;27707:138:0;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;::::1;-1:-1:-1::0;;;;;;27707:138:0;;::::1;;::::0;;;;;;;;;;;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;27879:137;;27733:111;;;27944:10;;27879:137:::1;::::0;::::1;::::0;27818:11;8023:25:1;;8011:2;7996:18;;7877:177;27879:137:0::1;;;;;;;;28052:5;28045:12;;;;;27428:641;28086:4;28079:11;;;25580:1;26873:1225:::0;;;;;;;:::o;17922:147::-;18005:18;18018:4;18005:12;:18::i;:::-;16004:30;16015:4;11823:10;16004;:30::i;:::-;18036:25:::1;18047:4;18053:7;18036:10;:25::i;:::-;17922:147:::0;;;:::o;23653:50::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;18970:218::-;-1:-1:-1;;;;;19066:23:0;;11823:10;19066:23;19058:83;;;;-1:-1:-1;;;19058:83:0;;9637:2:1;19058:83:0;;;9619:21:1;9676:2;9656:18;;;9649:30;9715:34;9695:18;;;9688:62;-1:-1:-1;;;9766:18:1;;;9759:45;9821:19;;19058:83:0;;;;;;;;;19154:26;19166:4;19172:7;19154:11;:26::i;:::-;18970:218;;:::o;24072:79::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;28277:213::-;28455:27;;;;:13;:27;;;;;;;;;28448:34;;;;;;;;;;;;;;;;;28414:16;;28448:34;;;28455:27;28448:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28277:213;;;:::o;16422:139::-;16500:4;16524:12;;;;;;;;;;;-1:-1:-1;;;;;16524:29:0;;;;;;;;;;;;;;;16422:139::o;28502:212::-;28679:27;;;;:13;:27;;;;;;;;;28672:34;;;;;;;;;;;;;;;;;28639:15;;28672:34;;;28679:27;28672:34;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28672:34:0;;;;;;;;;;;;;;;;;;;;;;28502:212;;;:::o;25753:1108::-;25948:18;25533:35;-1:-1:-1;;;;;;;;;;;25557:10:0;25533:7;:35::i;:::-;25525:44;;;;;;25984:19:::1;26023:10;;26035:20;;26006:50;;;;;;;;;;;:::i;:::-;;::::0;;-1:-1:-1;;26006:50:0;;::::1;::::0;;;;;;26089:17;;26006:50:::1;26089:17:::0;;::::1;::::0;;;;26067:19:::1;26132:23:::0;;;:10:::1;:23:::0;;;;;;;26006:50;;-1:-1:-1;26089:17:0;26132:23:::1;;26127:686;;26172:23;::::0;;;:10:::1;:23;::::0;;;;;;;:30;;-1:-1:-1;;26172:30:0::1;26198:4;26172:30;::::0;;26217:13:::1;:26:::0;;;;;:39:::1;::::0;26246:10;;26217:39:::1;:::i;:::-;-1:-1:-1::0;26271:32:0::1;::::0;;;:19:::1;:32;::::0;;;;;;;:52;;;26338:13:::1;:26:::0;;;;;:49:::1;::::0;26367:20;;26338:49:::1;:::i;:::-;-1:-1:-1::0;26402:32:0::1;::::0;;;:19:::1;:32;::::0;;;;;;;:62;;;26519:12:::1;::::0;;26493:10:::1;:23:::0;;;;;:38;;;26546:27;;:13:::1;:27:::0;;;;;;:41;;;26640:12;;26621:80;;8023:25:1;;;26621:80:0;;26402:62;;26654:10;;26621:80:::1;::::0;;;;;;;::::1;26746:1;26730:12;;:17;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;26783:12:0::1;::::0;:16:::1;::::0;26798:1:::1;::::0;26783:16:::1;:::i;:::-;26776:23;;;;;;26127:686;26830:23;::::0;;;:10:::1;:23;::::0;;;;;;-1:-1:-1;;25580:1:0::1;25753:1108:::0;;;;;;:::o;23780:49::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23780:49:0;;-1:-1:-1;23780:49:0;;-1:-1:-1;23780:49:0:o;18314:149::-;18398:18;18411:4;18398:12;:18::i;:::-;16004:30;16015:4;11823:10;16004;:30::i;:::-;18429:26:::1;18441:4;18447:7;18429:11;:26::i;24678:49::-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24678:49:0;;;;-1:-1:-1;24678:49:0;;;;:::o;16851:497::-;16932:22;16940:4;16946:7;16932;:22::i;:::-;16927:414;;17120:41;17148:7;-1:-1:-1;;;;;17120:41:0;17158:2;17120:19;:41::i;:::-;17234:38;17262:4;17269:2;17234:19;:38::i;:::-;17025:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;17025:270:0;;;;;;;;;;-1:-1:-1;;;16971:358:0;;;;;;;:::i;20218:229::-;20293:22;20301:4;20307:7;20293;:22::i;:::-;20288:152;;20332:6;:12;;;;;;;;;;;-1:-1:-1;;;;;20332:29:0;;;;;;;;;:36;;-1:-1:-1;;20332:36:0;20364:4;20332:36;;;20415:12;11823:10;;11743:98;20415:12;-1:-1:-1;;;;;20388:40:0;20406:7;-1:-1:-1;;;;;20388:40:0;20400:4;20388:40;;;;;;;;;;20218:229;;:::o;20455:230::-;20530:22;20538:4;20544:7;20530;:22::i;:::-;20526:152;;;20601:5;20569:12;;;;;;;;;;;-1:-1:-1;;;;;20569:29:0;;;;;;;;;;:37;;-1:-1:-1;;20569:37:0;;;20626:40;11823:10;;20569:12;;20626:40;;20601:5;20626:40;20455:230;;:::o;10608:451::-;10683:13;10709:19;10741:10;10745:6;10741:1;:10;:::i;:::-;:14;;10754:1;10741:14;:::i;:::-;-1:-1:-1;;;;;10731:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10731:25:0;;10709:47;;-1:-1:-1;;;10767:6:0;10774:1;10767:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;10767:15:0;;;;;;;;;-1:-1:-1;;;10793:6:0;10800:1;10793:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;10793:15:0;;;;;;;;-1:-1:-1;10824:9:0;10836:10;10840:6;10836:1;:10;:::i;:::-;:14;;10849:1;10836:14;:::i;:::-;10824:26;;10819:135;10856:1;10852;:5;10819:135;;;-1:-1:-1;;;10904:5:0;10912:3;10904:11;10891:25;;;;;;;:::i;:::-;;;;10879:6;10886:1;10879:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;10879:37:0;;;;;;;;-1:-1:-1;10941:1:0;10931:11;;;;;10859:3;;;:::i;:::-;;;10819:135;;;-1:-1:-1;10972:10:0;;10964:55;;;;-1:-1:-1;;;10964:55:0;;9276:2:1;10964:55:0;;;9258:21:1;;;9295:18;;;9288:30;9354:34;9334:18;;;9327:62;9406:18;;10964:55:0;9074:356:1;10964:55:0;11044:6;10608:451;-1:-1:-1;;;10608:451:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:375:1;85:8;95:6;149:3;142:4;134:6;130:17;126:27;116:55;;167:1;164;157:12;116:55;-1:-1:-1;190:20:1;;-1:-1:-1;;;;;222:30:1;;219:50;;;265:1;262;255:12;219:50;302:4;294:6;290:17;278:29;;362:3;355:4;345:6;342:1;338:14;330:6;326:27;322:38;319:47;316:67;;;379:1;376;369:12;316:67;14:375;;;;;:::o;394:802::-;529:6;537;545;553;606:2;594:9;585:7;581:23;577:32;574:52;;;622:1;619;612:12;574:52;649:23;;-1:-1:-1;;;;;721:14:1;;;718:34;;;748:1;745;738:12;718:34;787:78;857:7;848:6;837:9;833:22;787:78;:::i;:::-;884:8;;-1:-1:-1;761:104:1;-1:-1:-1;972:2:1;957:18;;944:32;;-1:-1:-1;988:16:1;;;985:36;;;1017:1;1014;1007:12;985:36;;1056:80;1128:7;1117:8;1106:9;1102:24;1056:80;:::i;:::-;394:802;;;;-1:-1:-1;1155:8:1;-1:-1:-1;;;;394:802:1:o;1201:180::-;1260:6;1313:2;1301:9;1292:7;1288:23;1284:32;1281:52;;;1329:1;1326;1319:12;1281:52;-1:-1:-1;1352:23:1;;1201:180;-1:-1:-1;1201:180:1:o;1386:315::-;1454:6;1462;1515:2;1503:9;1494:7;1490:23;1486:32;1483:52;;;1531:1;1528;1521:12;1483:52;1567:9;1554:23;1544:33;;1627:2;1616:9;1612:18;1599:32;1640:31;1665:5;1640:31;:::i;:::-;1690:5;1680:15;;;1386:315;;;;;:::o;1706:248::-;1774:6;1782;1835:2;1823:9;1814:7;1810:23;1806:32;1803:52;;;1851:1;1848;1841:12;1803:52;-1:-1:-1;;1874:23:1;;;1944:2;1929:18;;;1916:32;;-1:-1:-1;1706:248:1:o;1959:286::-;2017:6;2070:2;2058:9;2049:7;2045:23;2041:32;2038:52;;;2086:1;2083;2076:12;2038:52;2112:23;;-1:-1:-1;;;;;;2164:32:1;;2154:43;;2144:71;;2211:1;2208;2201:12;2250:414;2344:6;2352;2405:2;2393:9;2384:7;2380:23;2376:32;2373:52;;;2421:1;2418;2411:12;2373:52;2460:9;2447:23;2479:31;2504:5;2479:31;:::i;:::-;2529:5;-1:-1:-1;2586:2:1;2571:18;;2558:32;2599:33;2558:32;2599:33;:::i;2669:482::-;2772:6;2780;2788;2841:2;2829:9;2820:7;2816:23;2812:32;2809:52;;;2857:1;2854;2847:12;2809:52;2896:9;2883:23;2915:31;2940:5;2915:31;:::i;:::-;2965:5;-1:-1:-1;3022:2:1;3007:18;;2994:32;3035:33;2994:32;3035:33;:::i;:::-;2669:482;;3087:7;;-1:-1:-1;;;3141:2:1;3126:18;;;;3113:32;;2669:482::o;3643:620::-;3764:6;3772;3780;3788;3796;3849:3;3837:9;3828:7;3824:23;3820:33;3817:53;;;3866:1;3863;3856:12;3817:53;3905:9;3892:23;3924:31;3949:5;3924:31;:::i;:::-;3974:5;-1:-1:-1;4031:2:1;4016:18;;4003:32;4044:33;4003:32;4044:33;:::i;:::-;3643:620;;4096:7;;-1:-1:-1;;;;4150:2:1;4135:18;;4122:32;;4201:2;4186:18;;4173:32;;4252:3;4237:19;;;4224:33;;-1:-1:-1;3643:620:1:o;4453:915::-;4725:3;-1:-1:-1;;;;;4746:31:1;;4743:51;;;4790:1;4787;4780:12;4743:51;4824:6;4821:1;4817:14;4866:6;4858;4853:3;4840:33;4928:1;4892:16;;;4917:13;;;4997:6;;5031:310;5045:6;5042:1;5039:13;5031:310;;;5120:6;5107:20;5140:31;5165:5;5140:31;:::i;:::-;-1:-1:-1;;;;;5198:31:1;5184:46;;5253:4;5316:15;;;;5279:14;;;;5226:1;5060:9;5031:310;;;-1:-1:-1;5357:5:1;4453:915;-1:-1:-1;;;;;;;4453:915:1:o;5373:786::-;-1:-1:-1;;;5779:3:1;5772:38;5754:3;5839:6;5833:13;5855:62;5910:6;5905:2;5900:3;5896:12;5889:4;5881:6;5877:17;5855:62;:::i;:::-;-1:-1:-1;;;5976:2:1;5936:16;;;5968:11;;;5961:40;6026:13;;6048:63;6026:13;6097:2;6089:11;;6082:4;6070:17;;6048:63;:::i;:::-;6131:17;6150:2;6127:26;;5373:786;-1:-1:-1;;;;5373:786:1:o;6372:671::-;6556:2;6608:21;;;6678:13;;6581:18;;;6700:22;;;6527:4;;6556:2;6779:15;;;;6753:2;6738:18;;;6527:4;6822:195;6836:6;6833:1;6830:13;6822:195;;;6901:13;;-1:-1:-1;;;;;6897:39:1;6885:52;;6992:15;;;;6957:12;;;;6933:1;6851:9;6822:195;;;-1:-1:-1;7034:3:1;;6372:671;-1:-1:-1;;;;;;6372:671:1:o;7048:632::-;7219:2;7271:21;;;7341:13;;7244:18;;;7363:22;;;7190:4;;7219:2;7442:15;;;;7416:2;7401:18;;;7190:4;7485:169;7499:6;7496:1;7493:13;7485:169;;;7560:13;;7548:26;;7629:15;;;;7594:12;;;;7521:1;7514:9;7485:169;;8686:383;8835:2;8824:9;8817:21;8798:4;8867:6;8861:13;8910:6;8905:2;8894:9;8890:18;8883:34;8926:66;8985:6;8980:2;8969:9;8965:18;8960:2;8952:6;8948:15;8926:66;:::i;:::-;9053:2;9032:15;-1:-1:-1;;9028:29:1;9013:45;;;;9060:2;9009:54;;8686:383;-1:-1:-1;;8686:383:1:o;10033:128::-;10073:3;10104:1;10100:6;10097:1;10094:13;10091:39;;;10110:18;;:::i;:::-;-1:-1:-1;10146:9:1;;10033:128::o;10166:168::-;10206:7;10272:1;10268;10264:6;10260:14;10257:1;10254:21;10249:1;10242:9;10235:17;10231:45;10228:71;;;10279:18;;:::i;:::-;-1:-1:-1;10319:9:1;;10166:168::o;10339:125::-;10379:4;10407:1;10404;10401:8;10398:34;;;10412:18;;:::i;:::-;-1:-1:-1;10449:9:1;;10339:125::o;10469:258::-;10541:1;10551:113;10565:6;10562:1;10559:13;10551:113;;;10641:11;;;10635:18;10622:11;;;10615:39;10587:2;10580:10;10551:113;;;10682:6;10679:1;10676:13;10673:48;;;10717:1;10708:6;10703:3;10699:16;10692:27;10673:48;;10469:258;;;:::o;10732:136::-;10771:3;10799:5;10789:39;;10808:18;;:::i;:::-;-1:-1:-1;;;10844:18:1;;10732:136::o;10873:127::-;10934:10;10929:3;10925:20;10922:1;10915:31;10965:4;10962:1;10955:15;10989:4;10986:1;10979:15;11005:127;11066:10;11061:3;11057:20;11054:1;11047:31;11097:4;11094:1;11087:15;11121:4;11118:1;11111:15;11137:127;11198:10;11193:3;11189:20;11186:1;11179:31;11229:4;11226:1;11219:15;11253:4;11250:1;11243:15;11269:131;-1:-1:-1;;;;;11344:31:1;;11334:42;;11324:70;;11390:1;11387;11380:12;11324:70;11269:131;:::o

Swarm Source

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