ETH Price: $2,610.28 (+1.46%)

Contract

0xa6937eCB7F31F6f8807f2aD145889EED14feFc92
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw147934202022-05-17 15:54:02882 days ago1652802842IN
0xa6937eCB...D14feFc92
0 ETH0.0024646550
Withdraw147933962022-05-17 15:50:35882 days ago1652802635IN
0xa6937eCB...D14feFc92
0 ETH0.0035584550
Withdraw All147933702022-05-17 15:43:36882 days ago1652802216IN
0xa6937eCB...D14feFc92
0 ETH0.0012062550
Withdraw125605772021-06-03 8:53:561231 days ago1622710436IN
0xa6937eCB...D14feFc92
0 ETH0.0016967130
Swap123487722021-05-01 14:12:211264 days ago1619878341IN
0xa6937eCB...D14feFc92
0 ETH0.0041693631.9
Swap122535332021-04-16 21:19:391278 days ago1618607979IN
0xa6937eCB...D14feFc92
0 ETH0.01477125130
Swap122108052021-04-10 7:32:551285 days ago1618039975IN
0xa6937eCB...D14feFc92
0 ETH0.0093173991
Set Rate121825592021-04-05 23:07:231289 days ago1617664043IN
0xa6937eCB...D14feFc92
0 ETH0.00526201133
Set Rate121824392021-04-05 22:37:381289 days ago1617662258IN
0xa6937eCB...D14feFc92
0 ETH0.00452873114.466
Set Rate121540022021-04-01 13:58:291294 days ago1617285509IN
0xa6937eCB...D14feFc92
0 ETH0.00715831180.93
Set Rate121402972021-03-30 11:16:481296 days ago1617103008IN
0xa6937eCB...D14feFc92
0 ETH0.00490444124
Set Rate120984192021-03-24 0:39:181302 days ago1616546358IN
0xa6937eCB...D14feFc92
0 ETH0.00585547148
Set Rate120981832021-03-23 23:46:161302 days ago1616543176IN
0xa6937eCB...D14feFc92
0 ETH0.00458942116
Set Rate120965852021-03-23 17:49:261302 days ago1616521766IN
0xa6937eCB...D14feFc92
0 ETH0.00727977184
Set Rate120965122021-03-23 17:33:331302 days ago1616520813IN
0xa6937eCB...D14feFc92
0 ETH0.00886233224
Set Rate120427972021-03-15 11:05:341311 days ago1615806334IN
0xa6937eCB...D14feFc92
0 ETH0.00743803188.00000145
Set Rate120426812021-03-15 10:40:421311 days ago1615804842IN
0xa6937eCB...D14feFc92
0 ETH0.0059346150
Set Rate120410732021-03-15 4:44:041311 days ago1615783444IN
0xa6937eCB...D14feFc92
0 ETH0.00516966130.66579562
Set Rate120409602021-03-15 4:15:311311 days ago1615781731IN
0xa6937eCB...D14feFc92
0 ETH0.0053807136
Set Rate120409312021-03-15 4:09:401311 days ago1615781380IN
0xa6937eCB...D14feFc92
0 ETH0.00605329153
Set Rate120409062021-03-15 4:00:231311 days ago1615780823IN
0xa6937eCB...D14feFc92
0 ETH0.00435204110
Set Rate120397582021-03-14 23:36:471311 days ago1615765007IN
0xa6937eCB...D14feFc92
0 ETH0.00506419128
Set Rate120397452021-03-14 23:34:011311 days ago1615764841IN
0xa6937eCB...D14feFc92
0 ETH0.00526201133
Swap119880312021-03-07 0:05:461319 days ago1615075546IN
0xa6937eCB...D14feFc92
0 ETH0.0108456392.4000016
Set Rate119657152021-03-03 13:59:451323 days ago1614779985IN
0xa6937eCB...D14feFc92
0 ETH0.0032046881
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xc48f9767...3E0A3E977
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
LiquidityERC20SwapOldCompatibility

Compiler Version
v0.5.15+commit.6a57276f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-08-20
*/

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

pragma solidity ^0.5.0;

/**
 * @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, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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: openzeppelin-solidity/contracts/utils/Address.sol

pragma solidity ^0.5.5;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.0;




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

    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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "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");
        }
    }
}

// File: contracts/Interfaces/IErc20Swap.sol

pragma solidity >=0.4.0;

interface IErc20Swap {
    function getRate(address src, address dst, uint256 srcAmount) external view returns(uint expectedRate, uint slippageRate);  // real rate = returned value / 1e18
    function swap(address src, uint srcAmount, address dest, uint maxDestAmount, uint minConversionRate) external payable;

    event LogTokenSwap(
        address indexed _userAddress,
        address indexed _userSentTokenAddress,
        uint _userSentTokenAmount,
        address indexed _userReceivedTokenAddress,
        uint _userReceivedTokenAmount
    );
}

// File: openzeppelin-solidity/contracts/GSN/Context.sol

pragma solidity ^0.5.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 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

// File: openzeppelin-solidity/contracts/Ownership/Ownable.sol

pragma solidity ^0.5.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: contracts/Utils/Destructible.sol

pragma solidity >=0.5.0;


/**
 * @title Destructible
 * @dev Base contract that can be destroyed by owner. All funds in contract will be sent to the owner.
 */
contract Destructible is Ownable {
  /**
   * @dev Transfers the current balance to the owner and terminates the contract.
   */
  function destroy() public onlyOwner {
    selfdestruct(address(bytes20(owner())));
  }

  function destroyAndSend(address payable _recipient) public onlyOwner {
    selfdestruct(_recipient);
  }
}

// File: contracts/Utils/Pausable.sol

pragma solidity >=0.4.24;


/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is Ownable {
  event Pause();
  event Unpause();

  bool public paused = false;


  /**
   * @dev Modifier to make a function callable only when the contract is not paused.
   */
  modifier whenNotPaused() {
    require(!paused, "The contract is paused");
    _;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is paused.
   */
  modifier whenPaused() {
    require(paused, "The contract is not paused");
    _;
  }

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() public onlyOwner whenNotPaused {
    paused = true;
    emit Pause();
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() public onlyOwner whenPaused {
    paused = false;
    emit Unpause();
  }
}

// File: contracts/Interfaces/IBadStaticCallERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface to be safe with not so good proxy contracts.
 */
interface IBadStaticCallERC20 {

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

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

// File: contracts/Utils/Withdrawable.sol

pragma solidity >=0.4.24;





contract Withdrawable is Ownable {
  using SafeERC20 for IERC20;
  address constant ETHER = address(0);

  event LogWithdrawToken(
    address indexed _from,
    address indexed _token,
    uint amount
  );

  /**
   * @dev Withdraw asset.
   * @param _tokenAddress Asset to be withdrawed.
   */
  function withdrawAll(address _tokenAddress) public onlyOwner {
    uint tokenBalance;
    if (_tokenAddress == ETHER) {
      address self = address(this); // workaround for a possible solidity bug
      tokenBalance = self.balance;
    } else {
      tokenBalance = IBadStaticCallERC20(_tokenAddress).balanceOf(address(this));
    }
    _withdraw(_tokenAddress, tokenBalance);
  }

  function _withdraw(address _tokenAddress, uint _amount) internal {
    if (_tokenAddress == ETHER) {
      msg.sender.transfer(_amount);
    } else {
      IERC20(_tokenAddress).safeTransfer(msg.sender, _amount);
    }
    emit LogWithdrawToken(msg.sender, _tokenAddress, _amount);
  }

}

// File: contracts/Utils/WithdrawOperator.sol

pragma solidity >=0.4.24;




contract WithdrawOperator is Withdrawable {
  address public withdrawOperator;

  event SetWithdrawOperator(address oldOperator, address newOperator);

  constructor() public {
    withdrawOperator = msg.sender;
  }

  function setWithdrawOperator(address _operator) public onlyOwner {
    emit SetWithdrawOperator(withdrawOperator, _operator);
    withdrawOperator = _operator;
  }

  function withdraw(address _tokenAddress, uint _amount) public {
    require(msg.sender == withdrawOperator || msg.sender == owner(), "caller is not allowed");
    _withdraw(_tokenAddress, _amount);
  }
}

// File: contracts/Utils/SafeStaticCallERC20.sol

pragma solidity ^0.5.0;




library SafeStaticCallERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeApprove(IBadStaticCallERC20 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),
            "SafeProxyERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @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(IBadStaticCallERC20 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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeProxyERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeProxyERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeProxyERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/Utils/WithFee.sol

pragma solidity ^0.5.0;





contract WithFee is Ownable {
  using SafeERC20 for IERC20;
  using SafeMath for uint;
  address payable public feeWallet;
  uint public storedSpread;
  uint constant spreadDecimals = 6;
  uint constant spreadUnit = 10 ** spreadDecimals;

  event LogFee(address token, uint amount);

  constructor(address payable _wallet, uint _spread) public {
    require(_wallet != address(0), "_wallet == address(0)");
    require(_spread < spreadUnit, "spread >= spreadUnit");
    feeWallet = _wallet;
    storedSpread = _spread;
  }

  function setFeeWallet(address payable _wallet) external onlyOwner {
    require(_wallet != address(0), "_wallet == address(0)");
    feeWallet = _wallet;
  }

  function setSpread(uint _spread) external onlyOwner {
    storedSpread = _spread;
  }

  function _getFee(uint underlyingTokenTotal) internal view returns(uint) {
    return underlyingTokenTotal.mul(storedSpread).div(spreadUnit);
  }

  function _payFee(address feeToken, uint fee) internal {
    if (fee > 0) {
      if (feeToken == address(0)) {
        feeWallet.transfer(fee);
      } else {
        IERC20(feeToken).safeTransfer(feeWallet, fee);
      }
      emit LogFee(feeToken, fee);
    }
  }

}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol

pragma solidity ^0.5.0;


/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

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

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

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

// File: contracts/Utils/LowLevel.sol

pragma solidity ^0.5.0;

library LowLevel {
  function staticCallContractAddr(address target, bytes memory payload) internal view
    returns (bool success_, address result_)
  {
    (bool success, bytes memory result) = address(target).staticcall(payload);
    if (success && result.length == 32) {
      return (true, abi.decode(result, (address)));
    }
    return (false, address(0));
  }

  function callContractAddr(address target, bytes memory payload) internal
    returns (bool success_, address result_)
  {
    (bool success, bytes memory result) = address(target).call(payload);
    if (success && result.length == 32) {
      return (true, abi.decode(result, (address)));
    }
    return (false, address(0));
  }

  function staticCallContractUint(address target, bytes memory payload) internal view
    returns (bool success_, uint result_)
  {
    (bool success, bytes memory result) = address(target).staticcall(payload);
    if (success && result.length == 32) {
      return (true, abi.decode(result, (uint)));
    }
    return (false, 0);
  }

  function callContractUint(address target, bytes memory payload) internal
    returns (bool success_, uint result_)
  {
    (bool success, bytes memory result) = address(target).call(payload);
    if (success && result.length == 32) {
      return (true, abi.decode(result, (uint)));
    }
    return (false, 0);
  }
}

// File: contracts/Utils/RateNormalization.sol

pragma solidity ^0.5.0;





contract RateNormalization is Ownable {
  using SafeMath for uint;

  struct RateAdjustment {
    uint factor;
    bool multiply;
  }

  mapping (address => mapping(address => RateAdjustment)) public rateAdjustment;
  mapping (address => uint) public forcedDecimals;

  function _getAdjustment(address src, address dest) private view returns(RateAdjustment memory) {
    RateAdjustment memory adj = rateAdjustment[src][dest];
    if (adj.factor == 0) {
      uint srcDecimals = _getDecimals(src);
      uint destDecimals = _getDecimals(dest);
      if (srcDecimals != destDecimals) {
        if (srcDecimals > destDecimals) {
          adj.multiply = true;
          adj.factor = 10 ** (srcDecimals - destDecimals);
        } else {
          adj.multiply = false;
          adj.factor = 10 ** (destDecimals - srcDecimals);
        }
      }
    }
    return adj;
  }

  // return normalized rate
  function normalizeRate(address src, address dest, uint256 rate) public view
    returns(uint)
  {
    RateAdjustment memory adj = _getAdjustment(src, dest);
    if (adj.factor > 1) {
      rate = adj.multiply
        ? rate.mul(adj.factor)
        : rate.div(adj.factor);
    }
    return rate;
  }

  function denormalizeRate(address src, address dest, uint256 rate) public view
    returns(uint)
  {
    RateAdjustment memory adj = _getAdjustment(src, dest);
    if (adj.factor > 1) {
      rate = adj.multiply  // invert multiply/divide for denormalization
        ? rate.div(adj.factor)
        : rate.mul(adj.factor);
    }
    return rate;
  }

  function denormalizeRate(address src, address dest, uint256 rate, uint256 slippage) public view
    returns(uint, uint)
  {
    RateAdjustment memory adj = _getAdjustment(src, dest);
    if (adj.factor > 1) {
      if (adj.multiply) {
        rate = rate.div(adj.factor);
        slippage = slippage.div(adj.factor);
      } else {
        rate = rate.mul(adj.factor);
        slippage = slippage.mul(adj.factor);
      }
    }
    return (rate, slippage);
  }

  function _getDecimals(address token) internal view returns(uint) {
    uint forced = forcedDecimals[token];
    if (forced > 0) return forced;
    bytes memory payload = abi.encodeWithSignature("decimals()");
    (bool success, uint decimals) = LowLevel.staticCallContractUint(token, payload);
    require(success, "the token doesn't expose the decimals number");
    return decimals;
  }

  function setRateAdjustmentFactor(address src, address dest, uint factor, bool multiply) public onlyOwner {
    rateAdjustment[src][dest] = RateAdjustment(factor, multiply);
    rateAdjustment[dest][src] = RateAdjustment(factor, !multiply);
  }

  function setForcedDecimals(address token, uint decimals) public onlyOwner {
    forcedDecimals[token] = decimals;
  }

}

// File: contracts/LiquidityERC20Swap.sol

pragma solidity ^0.5.0;












contract LiquidityERC20Swap is Destructible, Pausable, WithdrawOperator, WithFee, RateNormalization, IErc20Swap {
  using SafeMath for uint;
  using SafeERC20 for IERC20;
  using SafeStaticCallERC20 for IBadStaticCallERC20;
  uint constant expScale = 1e18;

  address public token1;
  address public token2;
  address public feeToken;

  uint public rate1to2;
  uint public rate2to1;
  uint public rateDeadline;

  event SetRate(uint rate1to2, uint rate2to1, uint deadline);

  constructor (address _token1, address _token2, address payable _wallet, uint _spread) public
    WithFee(_wallet, _spread)
  {
    require(_token1 != address(0) && _token2 != address(0), "invalid tokens");
    token1 = _token1;
    token2 = _token2;
    feeToken = _token2;
  }

  function setFeeToken(address _token) public onlyOwner {
    require(_token == token1 || _token == token2, "invalid token address");
    feeToken = _token;
  }


  function setRate(uint _rate1to2, uint _rate2to1, uint _deadline) public onlyOwner {
    require(_deadline > now, "deadline <= now");
    _setRate(_rate1to2, _rate2to1, _deadline);
  }

  function _setRate(uint _rate1to2, uint _rate2to1, uint _deadline) internal {
    rate1to2 = _rate1to2;
    rate2to1 = _rate2to1;
    rateDeadline = _deadline;
    emit SetRate(rate1to2, rate2to1, rateDeadline);
  }

  function _getDestAmount(address src, address dest, uint srcAmount) internal view returns(uint toUserAmount, uint feeAmount) {
    uint rate;
    if (now > rateDeadline) {
      rate = 0;
    } else if (src == token1 && dest == token2) {
      rate = rate1to2;
    } else if (src == token2 && dest == token1) {
      rate = rate2to1;
    } else {
      rate = 0;
    }
    if (feeToken == src) {
      feeAmount = _getFee(srcAmount);
      toUserAmount = srcAmount.sub(feeAmount).mul(rate).div(expScale);
    } else if (feeToken == dest) {
      uint intermediate = srcAmount.mul(rate).div(expScale);
      feeAmount = _getFee(intermediate);
      toUserAmount = intermediate.sub(feeAmount);
    } else {
      toUserAmount = 0;
      feeAmount = 0;
    }
  }

  // @dev Calculate the conversion rate considering the fee and the balance
  function getRate(address src, address dest, uint256 srcAmount) public view
    returns(uint rate, uint slippage)
  {
    (uint toUserAmount, ) = _getDestAmount(src, dest, srcAmount);
    // if no enough balance rate will be 0
    if (toUserAmount > IERC20(dest).balanceOf(address(this))) {
      rate = 0;
    } else {
      rate = normalizeRate(src, dest, toUserAmount.mul(expScale).div(srcAmount));
    }
    slippage = rate;
  }

  function swap(address src, uint srcAmount, address dest, uint /* maxDestAmount */, uint minConversionRate)
    public payable whenNotPaused
  {
    require(msg.value == 0, "ethers not supported");
    require(srcAmount != 0, "srcAmount == 0");
    require(
      IBadStaticCallERC20(src).allowance(msg.sender, address(this)) >= srcAmount, // 0xdd62ed3e
      "ERC20 allowance < srcAmount"
    );

    (uint toUserAmount, uint feeAmount) = _getDestAmount(src, dest, srcAmount);

    uint actualRate = normalizeRate(src, dest, toUserAmount.mul(expScale).div(srcAmount));
    require(toUserAmount > 0, "toUserAmount == 0");
    require(actualRate >= minConversionRate, "rate < minConversionRate");

    require(toUserAmount <= IBadStaticCallERC20(dest).balanceOf(address(this)), "Insufficient funds");

    // get user's tokens.
    uint srcExpectedBalance = IBadStaticCallERC20(src).balanceOf(address(this)).add(srcAmount);
    IERC20(src).safeTransferFrom(msg.sender, address(this), srcAmount);   // 0x23b872dd
    require(srcExpectedBalance == IBadStaticCallERC20(src).balanceOf(address(this)), "Unexpected src balance");

    _payFee(feeToken, feeAmount);

    // send tokens to the user
    IERC20(dest).safeTransfer(msg.sender, toUserAmount);

    emit LogTokenSwap(
      msg.sender,
      src,
      srcAmount,
      dest,
      toUserAmount
    );
  }

}

// File: contracts/LiquidityERC20SwapOldCompatibility.sol

pragma solidity ^0.5.0;



contract LiquidityERC20SwapOldCompatibility is LiquidityERC20Swap {
  using SafeMath for uint;

  address public operator;
  uint public defaultRateDuration = 24 hours;

  constructor (address _token1, address _token2, address payable _wallet, uint _spread) public
    LiquidityERC20Swap(_token1, _token2, _wallet, _spread)
  {
    operator = msg.sender;
  }

  modifier onlyOperator() {
    require(msg.sender == operator, "msg sender is not the operator address");
    _;
  }

  function setOperator(address _operator) public onlyOwner {
    operator = _operator;
  }

  function setDefaultRateDuration(uint _defaultRateDuration) public onlyOwner {
    defaultRateDuration = _defaultRateDuration;
  }

  function setRateAndRateDecimals(
    uint _buyRate,
    uint _buyRateDecimals,
    uint _sellRate,
    uint _sellRateDecimals
  )
    public
    onlyOperator
    returns (bool)
  {
    require(_buyRateDecimals == 18, "_buyRateDecimals != 18");
    require(_sellRateDecimals == 18, "_sellRateDecimals != 18");
    _setRate(_sellRate, _buyRate, now + defaultRateDuration);
    return true;
  }

  function buyRate() public view returns(uint) {
    return rate2to1;
  }

  function buyRateDecimals() public pure returns(uint) {
    return 18;
  }

  function sellRate() public view returns(uint) {
    return rate1to2;
  }

  function sellRateDecimals() public pure returns(uint) {
    return 18;
  }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token1","type":"address"},{"internalType":"address","name":"_token2","type":"address"},{"internalType":"address payable","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_spread","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_userAddress","type":"address"},{"indexed":true,"internalType":"address","name":"_userSentTokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_userSentTokenAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"_userReceivedTokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_userReceivedTokenAmount","type":"uint256"}],"name":"LogTokenSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogWithdrawToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rate1to2","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rate2to1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"SetRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOperator","type":"address"},{"indexed":false,"internalType":"address","name":"newOperator","type":"address"}],"name":"SetWithdrawOperator","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"constant":true,"inputs":[],"name":"buyRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"buyRateDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"defaultRateDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"rate","type":"uint256"},{"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"denormalizeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"denormalizeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"destroy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"_recipient","type":"address"}],"name":"destroyAndSend","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"feeToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"feeWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"forcedDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"}],"name":"getRate","outputs":[{"internalType":"uint256","name":"rate","type":"uint256"},{"internalType":"uint256","name":"slippage","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"normalizeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rate1to2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rate2to1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rateAdjustment","outputs":[{"internalType":"uint256","name":"factor","type":"uint256"},{"internalType":"bool","name":"multiply","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rateDeadline","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"sellRateDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_defaultRateDuration","type":"uint256"}],"name":"setDefaultRateDuration","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"setFeeToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"_wallet","type":"address"}],"name":"setFeeWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"decimals","type":"uint256"}],"name":"setForcedDecimals","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_rate1to2","type":"uint256"},{"internalType":"uint256","name":"_rate2to1","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"setRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"factor","type":"uint256"},{"internalType":"bool","name":"multiply","type":"bool"}],"name":"setRateAdjustmentFactor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_buyRate","type":"uint256"},{"internalType":"uint256","name":"_buyRateDecimals","type":"uint256"},{"internalType":"uint256","name":"_sellRate","type":"uint256"},{"internalType":"uint256","name":"_sellRateDecimals","type":"uint256"}],"name":"setRateAndRateDecimals","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_spread","type":"uint256"}],"name":"setSpread","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setWithdrawOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"storedSpread","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"minConversionRate","type":"uint256"}],"name":"swap","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token2","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"withdrawAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"withdrawOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x60806040526004361061025c5760003560e01c80638c11c04c11610144578063d21220a7116100b6578063f3fef3a31161007a578063f3fef3a31461085a578063f5074f4114610893578063f97c6f84146108c6578063f99e2e5b146108db578063fa09e630146108f0578063fc37987b146109235761025c565b8063d21220a7146107a5578063e56c174b146107ba578063f25f4b56146107fd578063f2fde38b14610812578063f30c6193146108455761025c565b8063986602b511610108578063986602b514610656578063a1c11a7b14610699578063b3ab15fb146106dc578063b66a261c1461070f578063c24b074f14610739578063ce057dbc146107725761025c565b80638c11c04c146105995780638da5cb5b146105ae5780638f32d59b146105c357806390d49b9d146105d85780639801132f1461060b5761025c565b80635c975abb116101dd57806370fbff24116101a157806370fbff24146104d3578063715018a6146105275780637db966a51461053c57806383197ef01461056f5780638456cb59146105845780638acf0212146103a05761025c565b80635c975abb1461043f5780635e75228f146104545780636217229b14610494578063647846a5146104a95780636d044514146104be5761025c565b8063380d121511610224578063380d1215146103a05780633989c666146103b55780633f4ba83a146103eb578063469b8cdb14610400578063570ca7351461042a5761025c565b80630b749269146102615780630cca8a58146102c35780630dbc2e9f1461031357806315cce2241461033a57806325be124e1461036f575b600080fd5b34801561026d57600080fd5b506102aa6004803603608081101561028457600080fd5b506001600160a01b03813581169160208101359091169060408101359060600135610938565b6040805192835260208301919091528051918290030190f35b3480156102cf57600080fd5b506102ff600480360360808110156102e657600080fd5b50803590602081013590604081013590606001356109cf565b604080519115158252519081900360200190f35b34801561031f57600080fd5b50610328610ad8565b60408051918252519081900360200190f35b34801561034657600080fd5b5061036d6004803603602081101561035d57600080fd5b50356001600160a01b0316610ade565b005b34801561037b57600080fd5b50610384610bb9565b604080516001600160a01b039092168252519081900360200190f35b3480156103ac57600080fd5b50610328610bc8565b3480156103c157600080fd5b5061036d600480360360608110156103d857600080fd5b5080359060208101359060400135610bcd565b3480156103f757600080fd5b5061036d610c6a565b34801561040c57600080fd5b5061036d6004803603602081101561042357600080fd5b5035610d45565b34801561043657600080fd5b50610384610d91565b34801561044b57600080fd5b506102ff610da0565b61036d600480360360a081101561046a57600080fd5b506001600160a01b0381358116916020810135916040820135169060608101359060800135610db0565b3480156104a057600080fd5b50610328611314565b3480156104b557600080fd5b5061038461131a565b3480156104ca57600080fd5b50610328611329565b3480156104df57600080fd5b5061050e600480360360408110156104f657600080fd5b506001600160a01b038135811691602001351661132f565b6040805192835290151560208301528051918290030190f35b34801561053357600080fd5b5061036d611356565b34801561054857600080fd5b5061036d6004803603602081101561055f57600080fd5b50356001600160a01b03166113e7565b34801561057b57600080fd5b5061036d611498565b34801561059057600080fd5b5061036d6114f2565b3480156105a557600080fd5b506103286115cd565b3480156105ba57600080fd5b506103846115d3565b3480156105cf57600080fd5b506102ff6115e2565b3480156105e457600080fd5b5061036d600480360360208110156105fb57600080fd5b50356001600160a01b0316611606565b34801561061757600080fd5b5061036d6004803603608081101561062e57600080fd5b506001600160a01b0381358116916020810135909116906040810135906060013515156116c2565b34801561066257600080fd5b506103286004803603606081101561067957600080fd5b506001600160a01b0381358116916020810135909116906040013561179a565b3480156106a557600080fd5b50610328600480360360608110156106bc57600080fd5b506001600160a01b038135811691602081013590911690604001356117fd565b3480156106e857600080fd5b5061036d600480360360208110156106ff57600080fd5b50356001600160a01b031661184f565b34801561071b57600080fd5b5061036d6004803603602081101561073257600080fd5b50356118b8565b34801561074557600080fd5b5061036d6004803603604081101561075c57600080fd5b506001600160a01b038135169060200135611904565b34801561077e57600080fd5b506103286004803603602081101561079557600080fd5b50356001600160a01b0316611967565b3480156107b157600080fd5b50610384611979565b3480156107c657600080fd5b506102aa600480360360608110156107dd57600080fd5b506001600160a01b03813581169160208101359091169060400135611988565b34801561080957600080fd5b50610384611a4f565b34801561081e57600080fd5b5061036d6004803603602081101561083557600080fd5b50356001600160a01b0316611a5e565b34801561085157600080fd5b50610328611ab1565b34801561086657600080fd5b5061036d6004803603604081101561087d57600080fd5b506001600160a01b038135169060200135611ab7565b34801561089f57600080fd5b5061036d600480360360208110156108b657600080fd5b50356001600160a01b0316611b3f565b3480156108d257600080fd5b50610328611b92565b3480156108e757600080fd5b50610384611b98565b3480156108fc57600080fd5b5061036d6004803603602081101561091357600080fd5b50356001600160a01b0316611ba7565b34801561092f57600080fd5b50610328611c86565b600080610943612772565b61094d8787611c8c565b90506001816000015111156109c25780602001511561099657805161097990869063ffffffff611d4116565b815190955061098f90859063ffffffff611d4116565b93506109c2565b80516109a990869063ffffffff611d8316565b81519095506109bf90859063ffffffff611d8316565b93505b5092959194509092505050565b600c546000906001600160a01b03163314610a1b5760405162461bcd60e51b815260040180806020018281038252602681526020018061278a6026913960400191505060405180910390fd5b83601214610a69576040805162461bcd60e51b81526020600482015260166024820152750bec4eaf2a4c2e8ca88cac6d2dac2d8e640427a4062760531b604482015290519081900360640190fd5b81601214610abe576040805162461bcd60e51b815260206004820152601760248201527f5f73656c6c52617465446563696d616c7320213d203138000000000000000000604482015290519081900360640190fd5b610acd8386600d544201611ddc565b506001949350505050565b600a5481565b610ae66115e2565b610b25576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b6006546001600160a01b0382811691161480610b4e57506007546001600160a01b038281169116145b610b97576040805162461bcd60e51b8152602060048201526015602482015274696e76616c696420746f6b656e206164647265737360581b604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031681565b601290565b610bd56115e2565b610c14576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b428111610c5a576040805162461bcd60e51b815260206004820152600f60248201526e646561646c696e65203c3d206e6f7760881b604482015290519081900360640190fd5b610c65838383611ddc565b505050565b610c726115e2565b610cb1576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b600054600160a01b900460ff16610d0f576040805162461bcd60e51b815260206004820152601a60248201527f54686520636f6e7472616374206973206e6f7420706175736564000000000000604482015290519081900360640190fd5b6000805460ff60a01b191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b610d4d6115e2565b610d8c576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b600d55565b600c546001600160a01b031681565b600054600160a01b900460ff1681565b600054600160a01b900460ff1615610e08576040805162461bcd60e51b8152602060048201526016602482015275151a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b604482015290519081900360640190fd5b3415610e52576040805162461bcd60e51b8152602060048201526014602482015273195d1a195c9cc81b9bdd081cdd5c1c1bdc9d195960621b604482015290519081900360640190fd5b83610e95576040805162461bcd60e51b815260206004820152600e60248201526d0737263416d6f756e74203d3d20360941b604482015290519081900360640190fd5b60408051636eb1769f60e11b8152336004820152306024820152905185916001600160a01b0388169163dd62ed3e916044808201926020929091908290030181600087803b158015610ee657600080fd5b505af1158015610efa573d6000803e3d6000fd5b505050506040513d6020811015610f1057600080fd5b50511015610f65576040805162461bcd60e51b815260206004820152601b60248201527f455243323020616c6c6f77616e6365203c20737263416d6f756e740000000000604482015290519081900360640190fd5b600080610f73878688611e30565b90925090506000610fac8887610fa78a610f9b88670de0b6b3a764000063ffffffff611d8316565b9063ffffffff611d4116565b61179a565b905060008311610ff7576040805162461bcd60e51b81526020600482015260116024820152700746f55736572416d6f756e74203d3d203607c1b604482015290519081900360640190fd5b8381101561104c576040805162461bcd60e51b815260206004820152601860248201527f72617465203c206d696e436f6e76657273696f6e526174650000000000000000604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038816916370a082319160248083019260209291908290030181600087803b15801561109457600080fd5b505af11580156110a8573d6000803e3d6000fd5b505050506040513d60208110156110be57600080fd5b5051831115611109576040805162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b604482015290519081900360640190fd5b600061119f888a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050602060405180830381600087803b15801561116757600080fd5b505af115801561117b573d6000803e3d6000fd5b505050506040513d602081101561119157600080fd5b50519063ffffffff611f7a16565b90506111bc6001600160a01b038a1633308b63ffffffff611fd416565b604080516370a0823160e01b815230600482015290516001600160a01b038b16916370a082319160248083019260209291908290030181600087803b15801561120457600080fd5b505af1158015611218573d6000803e3d6000fd5b505050506040513d602081101561122e57600080fd5b5051811461127c576040805162461bcd60e51b8152602060048201526016602482015275556e6578706563746564207372632062616c616e636560501b604482015290519081900360640190fd5b600854611292906001600160a01b031684612034565b6112ac6001600160a01b038816338663ffffffff6120f016565b866001600160a01b0316896001600160a01b0316336001600160a01b03167f3ec01f4da9d8c31a1cdb8e6e7231364ba5ef0850b01daaa44a9f126f920693c68b88604051808381526020018281526020019250505060405180910390a4505050505050505050565b60095490565b6008546001600160a01b031681565b600b5481565b60046020908152600092835260408084209091529082529020805460019091015460ff1682565b61135e6115e2565b61139d576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6113ef6115e2565b61142e576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b600154604080516001600160a01b039283168152918316602083015280517fdca137b706b3561944d076606cc9bd48ab9ab2485a03fd271c77b073e83f395b9281900390910190a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6114a06115e2565b6114df576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b6114e76115d3565b6001600160a01b0316ff5b6114fa6115e2565b611539576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b600054600160a01b900460ff1615611591576040805162461bcd60e51b8152602060048201526016602482015275151a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b604482015290519081900360640190fd5b6000805460ff60a01b1916600160a01b1781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600d5481565b6000546001600160a01b031690565b600080546001600160a01b03166115f7612142565b6001600160a01b031614905090565b61160e6115e2565b61164d576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b6001600160a01b0381166116a0576040805162461bcd60e51b81526020600482015260156024820152745f77616c6c6574203d3d206164647265737328302960581b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6116ca6115e2565b611709576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b6040805180820182528381529115801560208085019182526001600160a01b039788166000818152600480845286822099909a168082529883528581209651875592516001968701805491151560ff19928316179055855180870187529788528783019485529783529781528382209782529690965294209151825592519201805492151592909116919091179055565b60006117a4612772565b6117ae8585611c8c565b90506001816000015111156117f45780602001516117de5780516117d990849063ffffffff611d4116565b6117f1565b80516117f190849063ffffffff611d8316565b92505b50909392505050565b6000611807612772565b6118118585611c8c565b90506001816000015111156117f457806020015161183c5780516117d990849063ffffffff611d8316565b80516117f190849063ffffffff611d4116565b6118576115e2565b611896576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6118c06115e2565b6118ff576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b600355565b61190c6115e2565b61194b576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260056020526040902055565b60056020526000908152604090205481565b6006546001600160a01b031681565b6000806000611998868686611e30565b50604080516370a0823160e01b815230600482015290519192506001600160a01b038716916370a0823191602480820192602092909190829003018186803b1580156119e357600080fd5b505afa1580156119f7573d6000803e3d6000fd5b505050506040513d6020811015611a0d57600080fd5b5051811115611a1f5760009250611a43565b611a408686610fa787610f9b86670de0b6b3a764000063ffffffff611d8316565b92505b82915050935093915050565b6002546001600160a01b031681565b611a666115e2565b611aa5576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b611aae81612146565b50565b60095481565b6001546001600160a01b0316331480611ae85750611ad36115d3565b6001600160a01b0316336001600160a01b0316145b611b31576040805162461bcd60e51b815260206004820152601560248201527418d85b1b195c881a5cc81b9bdd08185b1b1bddd959605a1b604482015290519081900360640190fd5b611b3b82826121e6565b5050565b611b476115e2565b611b86576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b806001600160a01b0316ff5b60035481565b6001546001600160a01b031681565b611baf6115e2565b611bee576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b60006001600160a01b038216611c0657503031611b31565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a082319160248083019260209291908290030181600087803b158015611c4e57600080fd5b505af1158015611c62573d6000803e3d6000fd5b505050506040513d6020811015611c7857600080fd5b50519050611b3b82826121e6565b600a5490565b611c94612772565b611c9c612772565b506001600160a01b0380841660009081526004602090815260408083209386168352928152908290208251808401909352805480845260019091015460ff16151591830191909152611d38576000611cf385612285565b90506000611d0085612285565b9050808214611d355780821115611d255760016020840152808203600a0a8352611d35565b60006020840152818103600a0a83525b50505b90505b92915050565b6000611d3883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061232c565b600082611d9257506000611d3b565b82820282848281611d9f57fe5b0414611d385760405162461bcd60e51b81526004018080602001828103825260218152602001806128026021913960400191505060405180910390fd5b6009839055600a829055600b819055604080518481526020810184905280820183905290517f52543716810f73c3fa9bca74622aecb6d3614ca4991472f3e999d531c2f6afb89181900360600190a1505050565b6000806000600b54421115611e4757506000611ebb565b6006546001600160a01b038781169116148015611e7157506007546001600160a01b038681169116145b15611e7f5750600954611ebb565b6007546001600160a01b038781169116148015611ea957506006546001600160a01b038681169116145b15611eb75750600a54611ebb565b5060005b6008546001600160a01b0387811691161415611f0f57611eda846123ce565b9150611f08670de0b6b3a7640000610f9b83611efc888763ffffffff6123ed16565b9063ffffffff611d8316565b9250611f71565b6008546001600160a01b0386811691161415611f68576000611f43670de0b6b3a7640000610f9b878563ffffffff611d8316565b9050611f4e816123ce565b9250611f60818463ffffffff6123ed16565b935050611f71565b60009250600091505b50935093915050565b600082820183811015611d38576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261202e90859061242f565b50505050565b8015611b3b576001600160a01b038216612088576002546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612082573d6000803e3d6000fd5b506120a8565b6002546120a8906001600160a01b0384811691168363ffffffff6120f016565b604080516001600160a01b03841681526020810183905281517f1cdf74906ad7d5c402e19a20dbe986befe937e6768a0722bdb18918cdba45c4a929181900390910190a15050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c6590849061242f565b3390565b6001600160a01b03811661218b5760405162461bcd60e51b81526004018080602001828103825260268152602001806127b06026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03821661222757604051339082156108fc029083906000818181858888f19350505050158015612221573d6000803e3d6000fd5b50612241565b6122416001600160a01b038316338363ffffffff6120f016565b6040805182815290516001600160a01b0384169133917f46ae78bc7b198b8b534ca0070d125569ac5f955976841c4343223079f3abf0de9181900360200190a35050565b6001600160a01b03811660009081526005602052604081205480156122ab579050612327565b6040805160048152602481019091526020810180516001600160e01b031663313ce56760e01b1790526000806122e186846125e7565b91509150816123215760405162461bcd60e51b815260040180806020018281038252602c8152602001806127d6602c913960400191505060405180910390fd5b93505050505b919050565b600081836123b85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561237d578181015183820152602001612365565b50505050905090810190601f1680156123aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816123c457fe5b0495945050505050565b6000611d3b6006600a0a610f9b60035485611d8390919063ffffffff16565b6000611d3883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506126dc565b612441826001600160a01b0316612736565b612492576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106124d05780518252601f1990920191602091820191016124b1565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612532576040519150601f19603f3d011682016040523d82523d6000602084013e612537565b606091505b50915091508161258e576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561202e578080602001905160208110156125aa57600080fd5b505161202e5760405162461bcd60e51b815260040180806020018281038252602a815260200180612843602a913960400191505060405180910390fd5b60008060006060856001600160a01b0316856040518082805190602001908083835b602083106126285780518252601f199092019160209182019101612609565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114612688576040519150601f19603f3d011682016040523d82523d6000602084013e61268d565b606091505b50915091508180156126a0575080516020145b156126cb5760018180602001905160208110156126bc57600080fd5b505190945092506126d5915050565b5060009250829150505b9250929050565b6000818484111561272e5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561237d578181015183820152602001612365565b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061276a57508115155b949350505050565b60408051808201909152600080825260208201529056fe6d73672073656e646572206973206e6f7420746865206f70657261746f7220616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737374686520746f6b656e20646f65736e2774206578706f73652074686520646563696d616c73206e756d626572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582018652dcdb0d6648033d67c695043fc598147497ee27535ebc01bea6162a63a8a64736f6c634300050f0032

Deployed Bytecode Sourcemap

38551:1463:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33022:474;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33022:474:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;33022:474:0;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;39282:405;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39282:405:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;39282:405:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;34750:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34750:20:0;;;:::i;:::-;;;;;;;;;;;;;;;;35161:161;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35161:161:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35161:161:0;-1:-1:-1;;;;;35161:161:0;;:::i;:::-;;34669:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34669:21:0;;;:::i;:::-;;;;-1:-1:-1;;;;;34669:21:0;;;;;;;;;;;;;;39933:76;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39933:76:0;;;:::i;35330:186::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35330:186:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35330:186:0;;;;;;;;;;;;:::i;21180:95::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21180:95:0;;;:::i;39145:131::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39145:131:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39145:131:0;;:::i;38652:23::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38652:23:0;;;:::i;20503:26::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20503:26:0;;;:::i;37058:1392::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;37058:1392:0;;;;;;;;;;;;;;;;;;;;;;;;;:::i;39853:74::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39853:74:0;;;:::i;34695:23::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34695:23:0;;;:::i;34775:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34775:24:0;;;:::i;31561:77::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31561:77:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;31561:77:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;18939:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18939:140:0;;;:::i;24137:166::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24137:166:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24137:166:0;-1:-1:-1;;;;;24137:166:0;;:::i;20033:88::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20033:88:0;;;:::i;21000:93::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21000:93:0;;;:::i;38680:42::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38680:42:0;;;:::i;18128:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18128:79:0;;;:::i;18494:94::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18494:94:0;;;:::i;27504:160::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27504:160:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27504:160:0;-1:-1:-1;;;;;27504:160:0;;:::i;33903:246::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33903:246:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;33903:246:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;32345:308::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32345:308:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;32345:308:0;;;;;;;;;;;;;;;;;:::i;32659:357::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32659:357:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;32659:357:0;;;;;;;;;;;;;;;;;:::i;39049:90::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39049:90:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39049:90:0;-1:-1:-1;;;;;39049:90:0;;:::i;27670:87::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27670:87:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27670:87:0;;:::i;34155:119::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34155:119:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;34155:119:0;;;;;;;;:::i;31643:47::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31643:47:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31643:47:0;-1:-1:-1;;;;;31643:47:0;;:::i;34643:21::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34643:21:0;;;:::i;36610:442::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36610:442:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;36610:442:0;;;;;;;;;;;;;;;;;:::i;27053:32::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27053:32:0;;;:::i;19234:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19234:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19234:109:0;-1:-1:-1;;;;;19234:109:0;;:::i;34725:20::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34725:20:0;;;:::i;24309:204::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24309:204:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;24309:204:0;;;;;;;;:::i;20127:106::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20127:106:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20127:106:0;-1:-1:-1;;;;;20127:106:0;;:::i;27090:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27090:24:0;;;:::i;23956:31::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23956:31:0;;;:::i;23128:390::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23128:390:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23128:390:0;-1:-1:-1;;;;;23128:390:0;;:::i;39693:73::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39693:73:0;;;:::i;33022:474::-;33131:4;33137;33153:25;;:::i;:::-;33181;33196:3;33201:4;33181:14;:25::i;:::-;33153:53;;33230:1;33217:3;:10;;;:14;33213:248;;;33246:3;:12;;;33242:212;;;33287:10;;33278:20;;:4;;:20;:8;:20;:::i;:::-;33333:10;;33271:27;;-1:-1:-1;33320:24:0;;:8;;:24;:12;:24;:::i;:::-;33309:35;;33242:212;;;33387:10;;33378:20;;:4;;:20;:8;:20;:::i;:::-;33433:10;;33371:27;;-1:-1:-1;33420:24:0;;:8;;:24;:12;:24;:::i;:::-;33409:35;;33242:212;-1:-1:-1;33475:4:0;;33481:8;;-1:-1:-1;33022:474:0;;-1:-1:-1;;;33022:474:0:o;39282:405::-;38978:8;;39461:4;;-1:-1:-1;;;;;38978:8:0;38964:10;:22;38956:73;;;;-1:-1:-1;;;38956:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39485:16;39505:2;39485:22;39477:57;;;;;-1:-1:-1;;;39477:57:0;;;;;;;;;;;;-1:-1:-1;;;39477:57:0;;;;;;;;;;;;;;;39549:17;39570:2;39549:23;39541:59;;;;;-1:-1:-1;;;39541:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;39607:56;39616:9;39627:8;39643:19;;39637:3;:25;39607:8;:56::i;:::-;-1:-1:-1;39677:4:0;39282:405;;;;;;:::o;34750:20::-;;;;:::o;35161:161::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;35240:6;;-1:-1:-1;;;;;35230:16:0;;;35240:6;;35230:16;;:36;;-1:-1:-1;35260:6:0;;-1:-1:-1;;;;;35250:16:0;;;35260:6;;35250:16;35230:36;35222:70;;;;;-1:-1:-1;;;35222:70:0;;;;;;;;;;;;-1:-1:-1;;;35222:70:0;;;;;;;;;;;;;;;35299:8;:17;;-1:-1:-1;;;;;;35299:17:0;-1:-1:-1;;;;;35299:17:0;;;;;;;;;;35161:161::o;34669:21::-;;;-1:-1:-1;;;;;34669:21:0;;:::o;39933:76::-;40001:2;39933:76;:::o;35330:186::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;35439:3;35427:9;:15;35419:43;;;;;-1:-1:-1;;;35419:43:0;;;;;;;;;;;;-1:-1:-1;;;35419:43:0;;;;;;;;;;;;;;;35469:41;35478:9;35489;35500;35469:8;:41::i;:::-;35330:186;;;:::o;21180:95::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;20865:6;;-1:-1:-1;;;20865:6:0;;;;20857:45;;;;;-1:-1:-1;;;20857:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21243:5;21234:14;;-1:-1:-1;;;;21234:14:0;;;21260:9;;;;21243:5;21260:9;21180:95::o;39145:131::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;39228:19;:42;39145:131::o;38652:23::-;;;-1:-1:-1;;;;;38652:23:0;;:::o;20503:26::-;;;-1:-1:-1;;;20503:26:0;;;;;:::o;37058:1392::-;20679:6;;-1:-1:-1;;;20679:6:0;;;;20678:7;20670:42;;;;;-1:-1:-1;;;20670:42:0;;;;;;;;;;;;-1:-1:-1;;;20670:42:0;;;;;;;;;;;;;;;37217:9;:14;37209:47;;;;;-1:-1:-1;;;37209:47:0;;;;;;;;;;;;-1:-1:-1;;;37209:47:0;;;;;;;;;;;;;;;37271:14;37263:41;;;;;-1:-1:-1;;;37263:41:0;;;;;;;;;;;;-1:-1:-1;;;37263:41:0;;;;;;;;;;;;;;;37327:61;;;-1:-1:-1;;;37327:61:0;;37362:10;37327:61;;;;37382:4;37327:61;;;;;;37392:9;;-1:-1:-1;;;;;37327:34:0;;;;;:61;;;;;;;;;;;;;;;-1:-1:-1;37327:34:0;:61;;;5:2:-1;;;;30:1;27;20:12;5:2;37327:61:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37327:61:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37327:61:0;:74;;37311:149;;;;;-1:-1:-1;;;37311:149:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;37470:17;37489:14;37507:36;37522:3;37527:4;37533:9;37507:14;:36::i;:::-;37469:74;;-1:-1:-1;37469:74:0;-1:-1:-1;37552:15:0;37570:67;37584:3;37589:4;37595:41;37626:9;37595:26;37469:74;34632:4;37595:26;:16;:26;:::i;:::-;:30;:41;:30;:41;:::i;:::-;37570:13;:67::i;:::-;37552:85;;37667:1;37652:12;:16;37644:46;;;;;-1:-1:-1;;;37644:46:0;;;;;;;;;;;;-1:-1:-1;;;37644:46:0;;;;;;;;;;;;;;;37719:17;37705:10;:31;;37697:68;;;;;-1:-1:-1;;;37697:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;37798:50;;;-1:-1:-1;;;37798:50:0;;37842:4;37798:50;;;;;;-1:-1:-1;;;;;37798:35:0;;;;;:50;;;;;;;;;;;;;;-1:-1:-1;37798:35:0;:50;;;5:2:-1;;;;30:1;27;20:12;5:2;37798:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37798:50:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37798:50:0;37782:66;;;37774:97;;;;;-1:-1:-1;;;37774:97:0;;;;;;;;;;;;-1:-1:-1;;;37774:97:0;;;;;;;;;;;;;;;37907:23;37933:64;37987:9;37953:3;-1:-1:-1;;;;;37933:34:0;;37976:4;37933:49;;;;;;;;;;;;;-1:-1:-1;;;;;37933:49:0;-1:-1:-1;;;;;37933:49:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37933:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37933:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37933:49:0;;:64;:53;:64;:::i;:::-;37907:90;-1:-1:-1;38004:66:0;-1:-1:-1;;;;;38004:28:0;;38033:10;38053:4;38060:9;38004:66;:28;:66;:::i;:::-;38123:49;;;-1:-1:-1;;;38123:49:0;;38166:4;38123:49;;;;;;-1:-1:-1;;;;;38123:34:0;;;;;:49;;;;;;;;;;;;;;-1:-1:-1;38123:34:0;:49;;;5:2:-1;;;;30:1;27;20:12;5:2;38123:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38123:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38123:49:0;38101:71;;38093:106;;;;;-1:-1:-1;;;38093:106:0;;;;;;;;;;;;-1:-1:-1;;;38093:106:0;;;;;;;;;;;;;;;38216:8;;38208:28;;-1:-1:-1;;;;;38216:8:0;38226:9;38208:7;:28::i;:::-;38277:51;-1:-1:-1;;;;;38277:25:0;;38303:10;38315:12;38277:51;:25;:51;:::i;:::-;38412:4;-1:-1:-1;;;;;38342:102:0;38382:3;-1:-1:-1;;;;;38342:102:0;38363:10;-1:-1:-1;;;;;38342:102:0;;38394:9;38425:12;38342:102;;;;;;;;;;;;;;;;;;;;;;;;20719:1;;;;37058:1392;;;;;:::o;39853:74::-;39913:8;;39853:74;:::o;34695:23::-;;;-1:-1:-1;;;;;34695:23:0;;:::o;34775:24::-;;;;:::o;31561:77::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;18939:140::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;19038:1;19022:6;;19001:40;;-1:-1:-1;;;;;19022:6:0;;;;19001:40;;19038:1;;19001:40;19069:1;19052:19;;-1:-1:-1;;;;;;19052:19:0;;;18939:140::o;24137:166::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;24234:16;;24214:48;;;-1:-1:-1;;;;;24234:16:0;;;24214:48;;;;;;;;;;;;;;;;;;;;;24269:16;:28;;-1:-1:-1;;;;;;24269:28:0;-1:-1:-1;;;;;24269:28:0;;;;;;;;;;24137:166::o;20033:88::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;20105:7;:5;:7::i;:::-;-1:-1:-1;;;;;20089:25:0;20076:39;21000:93;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;20679:6;;-1:-1:-1;;;20679:6:0;;;;20678:7;20670:42;;;;;-1:-1:-1;;;20670:42:0;;;;;;;;;;;;-1:-1:-1;;;20670:42:0;;;;;;;;;;;;;;;21055:6;:13;;-1:-1:-1;;;;21055:13:0;-1:-1:-1;;;21055:13:0;;;21080:7;;;;21055:6;21080:7;21000:93::o;38680:42::-;;;;:::o;18128:79::-;18166:7;18193:6;-1:-1:-1;;;;;18193:6:0;18128:79;:::o;18494:94::-;18534:4;18574:6;;-1:-1:-1;;;;;18574:6:0;18558:12;:10;:12::i;:::-;-1:-1:-1;;;;;18558:22:0;;18551:29;;18494:94;:::o;27504:160::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;27585:21:0;;27577:55;;;;;-1:-1:-1;;;27577:55:0;;;;;;;;;;;;-1:-1:-1;;;27577:55:0;;;;;;;;;;;;;;;27639:9;:19;;-1:-1:-1;;;;;;27639:19:0;-1:-1:-1;;;;;27639:19:0;;;;;;;;;;27504:160::o;33903:246::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;34043:32;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;34015:19:0;;;-1:-1:-1;34015:19:0;;;:14;:19;;;;;;:25;;;;;;;;;;;;;:60;;;;;;;;;;;;;;;-1:-1:-1;;34015:60:0;;;;;;34110:33;;;;;;;;;;;;;;;;34082:20;;;;;;;;;:25;;;;;;;;;:61;;;;;;;;;;;;;;;;;;;;;;;33903:246::o;32345:308::-;32434:4;32450:25;;:::i;:::-;32478;32493:3;32498:4;32478:14;:25::i;:::-;32450:53;;32527:1;32514:3;:10;;;:14;32510:120;;;32546:3;:12;;;:76;;32611:10;;32602:20;;:4;;:20;:8;:20;:::i;:::-;32546:76;;;32579:10;;32570:20;;:4;;:20;:8;:20;:::i;:::-;32539:83;;32510:120;-1:-1:-1;32643:4:0;;32345:308;-1:-1:-1;;;32345:308:0:o;32659:357::-;32750:4;32766:25;;:::i;:::-;32794;32809:3;32814:4;32794:14;:25::i;:::-;32766:53;;32843:1;32830:3;:10;;;:14;32826:167;;;32862:3;:12;;;:123;;32974:10;;32965:20;;:4;;:20;:8;:20;:::i;32862:123::-;32942:10;;32933:20;;:4;;:20;:8;:20;:::i;39049:90::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;39113:8;:20;;-1:-1:-1;;;;;;39113:20:0;-1:-1:-1;;;;;39113:20:0;;;;;;;;;;39049:90::o;27670:87::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;27729:12;:22;27670:87::o;34155:119::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;34236:21:0;;;;;;;:14;:21;;;;;:32;34155:119::o;31643:47::-;;;;;;;;;;;;;:::o;34643:21::-;;;-1:-1:-1;;;;;34643:21:0;;:::o;36610:442::-;36698:9;36709:13;36735:17;36758:36;36773:3;36778:4;36784:9;36758:14;:36::i;:::-;-1:-1:-1;36864:37:0;;;-1:-1:-1;;;36864:37:0;;36895:4;36864:37;;;;;;36734:60;;-1:-1:-1;;;;;;36864:22:0;;;;;:37;;;;;;;;;;;;;;;:22;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;36864:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36864:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36864:37:0;36849:52;;36845:180;;;36919:1;36912:8;;36845:180;;;36950:67;36964:3;36969:4;36975:41;37006:9;36975:26;:12;34632:4;36975:26;:16;:26;:::i;36950:67::-;36943:74;;36845:180;37042:4;37031:15;;36610:442;;;;;;;:::o;27053:32::-;;;-1:-1:-1;;;;;27053:32:0;;:::o;19234:109::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;19307:28;19326:8;19307:18;:28::i;:::-;19234:109;:::o;34725:20::-;;;;:::o;24309:204::-;24400:16;;-1:-1:-1;;;;;24400:16:0;24386:10;:30;;:55;;;24434:7;:5;:7::i;:::-;-1:-1:-1;;;;;24420:21:0;:10;-1:-1:-1;;;;;24420:21:0;;24386:55;24378:89;;;;;-1:-1:-1;;;24378:89:0;;;;;;;;;;;;-1:-1:-1;;;24378:89:0;;;;;;;;;;;;;;;24474:33;24484:13;24499:7;24474:9;:33::i;:::-;24309:204;;:::o;20127:106::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;20216:10;-1:-1:-1;;;;;20203:24:0;;27090;;;;:::o;23956:31::-;;;-1:-1:-1;;;;;23956:31:0;;:::o;23128:390::-;18340:9;:7;:9::i;:::-;18332:54;;;;;-1:-1:-1;;;18332:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18332:54:0;;;;;;;;;;;;;;;23196:17;-1:-1:-1;;;;;23224:22:0;;23220:248;;-1:-1:-1;23280:4:0;23351:12;23220:248;;;23401:59;;;-1:-1:-1;;;23401:59:0;;23454:4;23401:59;;;;;;-1:-1:-1;;;;;23401:44:0;;;;;:59;;;;;;;;;;;;;;-1:-1:-1;23401:44:0;:59;;;5:2:-1;;;;30:1;27;20:12;5:2;23401:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23401:59:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23401:59:0;;-1:-1:-1;23474:38:0;23484:13;23499:12;23474:9;:38::i;39693:73::-;39752:8;;39693:73;:::o;31697:613::-;31769:21;;:::i;:::-;31799:25;;:::i;:::-;-1:-1:-1;;;;;;31827:19:0;;;;;;;:14;:19;;;;;;;;:25;;;;;;;;;;;;31799:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31859:429;;31889:16;31908:17;31921:3;31908:12;:17::i;:::-;31889:36;;31934:17;31954:18;31967:4;31954:12;:18::i;:::-;31934:38;;32000:12;31985:11;:27;31981:300;;32043:12;32029:11;:26;32025:247;;;32085:4;32070:12;;;:19;32122:26;;;32115:2;:34;32102:47;;32025:247;;;32195:5;32180:12;;;:20;32233:26;;;32226:2;:34;32213:47;;32025:247;31859:429;;;32301:3;-1:-1:-1;31697:613:0;;;;;:::o;3232:132::-;3290:7;3317:39;3321:1;3324;3317:39;;;;;;;;;;;;;;;;;:3;:39::i;2293:471::-;2351:7;2596:6;2592:47;;-1:-1:-1;2626:1:0;2619:8;;2592:47;2663:5;;;2667:1;2663;:5;:1;2687:5;;;;;:10;2679:56;;;;-1:-1:-1;;;2679:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35522:219;35604:8;:20;;;35631:8;:20;;;35658:12;:24;;;35694:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35522:219;;;:::o;35747:780::-;35836:17;35855:14;35878:9;35904:12;;35898:3;:18;35894:230;;;-1:-1:-1;35934:1:0;35894:230;;;35960:6;;-1:-1:-1;;;;;35953:13:0;;;35960:6;;35953:13;:31;;;;-1:-1:-1;35978:6:0;;-1:-1:-1;;;;;35970:14:0;;;35978:6;;35970:14;35953:31;35949:175;;;-1:-1:-1;36002:8:0;;35949:175;;;36035:6;;-1:-1:-1;;;;;36028:13:0;;;36035:6;;36028:13;:31;;;;-1:-1:-1;36053:6:0;;-1:-1:-1;;;;;36045:14:0;;;36053:6;;36045:14;36028:31;36024:100;;;-1:-1:-1;36077:8:0;;36024:100;;;-1:-1:-1;36115:1:0;36024:100;36134:8;;-1:-1:-1;;;;;36134:15:0;;;:8;;:15;36130:392;;;36172:18;36180:9;36172:7;:18::i;:::-;36160:30;-1:-1:-1;36214:48:0;34632:4;36214:34;36243:4;36214:24;:9;36160:30;36214:24;:13;:24;:::i;:::-;:28;:34;:28;:34;:::i;:48::-;36199:63;;36130:392;;;36280:8;;-1:-1:-1;;;;;36280:16:0;;;:8;;:16;36276:246;;;36307:17;36327:33;34632:4;36327:19;:9;36341:4;36327:19;:13;:19;:::i;:33::-;36307:53;;36381:21;36389:12;36381:7;:21::i;:::-;36369:33;-1:-1:-1;36426:27:0;:12;36369:33;36426:27;:16;:27;:::i;:::-;36411:42;;36276:246;;;;36491:1;36476:16;;36513:1;36501:13;;36276:246;35747:780;;;;;;;:::o;921:181::-;979:7;1011:5;;;1035:6;;;;1027:46;;;;;-1:-1:-1;;;1027:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;12340:204;12467:68;;;-1:-1:-1;;;;;12467:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12467:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12441:95:0;;12460:5;;12441:18;:95::i;:::-;12340:204;;;;:::o;27915:274::-;27980:7;;27976:208;;-1:-1:-1;;;;;28002:22:0;;27998:144;;28037:9;;:23;;-1:-1:-1;;;;;28037:9:0;;;;:23;;;;;28056:3;;28037:9;:23;:9;:23;28056:3;28037:9;:23;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28037:23:0;27998:144;;;28117:9;;28087:45;;-1:-1:-1;;;;;28087:29:0;;;;28117:9;28128:3;28087:45;:29;:45;:::i;:::-;28155:21;;;-1:-1:-1;;;;;28155:21:0;;;;;;;;;;;;;;;;;;;;;;;27915:274;;:::o;12156:176::-;12265:58;;;-1:-1:-1;;;;;12265:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12265:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12239:85:0;;12258:5;;12239:18;:85::i;16826:98::-;16906:10;16826:98;:::o;19449:229::-;-1:-1:-1;;;;;19523:22:0;;19515:73;;;;-1:-1:-1;;;19515:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19625:6;;;19604:38;;-1:-1:-1;;;;;19604:38:0;;;;19625:6;;;19604:38;;;19653:6;:17;;-1:-1:-1;;;;;;19653:17:0;-1:-1:-1;;;;;19653:17:0;;;;;;;;;;19449:229::o;23524:292::-;-1:-1:-1;;;;;23600:22:0;;23596:151;;23633:28;;:10;;:28;;;;;23653:7;;23633:28;;;;23653:7;23633:10;:28;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23633:28:0;23596:151;;;23684:55;-1:-1:-1;;;;;23684:34:0;;23719:10;23731:7;23684:55;:34;:55;:::i;:::-;23758:52;;;;;;;;-1:-1:-1;;;;;23758:52:0;;;23775:10;;23758:52;;;;;;;;;23524:292;;:::o;33502:395::-;-1:-1:-1;;;;;33588:21:0;;33561:4;33588:21;;;:14;:21;;;;;;33620:10;;33616:29;;33639:6;-1:-1:-1;33632:13:0;;33616:29;33675:37;;;22:32:-1;6:49;;33675:37:0;;;;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;26:21;;33751:47:0;33783:5;33675:37;33751:31;:47::i;:::-;33719:79;;;;33813:7;33805:64;;;;-1:-1:-1;;;33805:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33883:8;-1:-1:-1;;;;33502:395:0;;;;:::o;3894:345::-;3980:7;4082:12;4075:5;4067:28;;;;-1:-1:-1;;;4067:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4067:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4106:9;4122:1;4118;:5;;;;;;;3894:345;-1:-1:-1;;;;;3894:345:0:o;27763:146::-;27829:4;27849:54;27150:1;27183:2;:20;27849:38;27874:12;;27849:20;:24;;:38;;;;:::i;1377:136::-;1435:7;1462:43;1466:1;1469;1462:43;;;;;;;;;;;;;;;;;:3;:43::i;14195:1114::-;14799:27;14807:5;-1:-1:-1;;;;;14799:25:0;;:27::i;:::-;14791:71;;;;;-1:-1:-1;;;14791:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14936:12;14950:23;14985:5;-1:-1:-1;;;;;14977:19:0;14997:4;14977:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;14977:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;14935:67:0;;;;15021:7;15013:52;;;;;-1:-1:-1;;;15013:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15082:17;;:21;15078:224;;15224:10;15213:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15213:30:0;15205:85;;;;-1:-1:-1;;;15205:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30655:340;30753:13;30768:12;30793;30807:19;30838:6;-1:-1:-1;;;;;30830:26:0;30857:7;30830:35;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;30830:35:0;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;30792:73:0;;;;30876:7;:30;;;;;30887:6;:13;30904:2;30887:19;30876:30;30872:94;;;30925:4;30942:6;30931:26;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30931:26:0;30917:41;;-1:-1:-1;30931:26:0;-1:-1:-1;30917:41:0;;-1:-1:-1;;30917:41:0;30872:94;-1:-1:-1;30980:5:0;;-1:-1:-1;30980:5:0;;-1:-1:-1;;30655:340:0;;;;;;:::o;1850:192::-;1936:7;1972:12;1964:6;;;;1956:29;;;;-1:-1:-1;;;1956:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;1956:29:0;-1:-1:-1;;;2008:5:0;;;1850:192::o;9177:619::-;9237:4;9705:20;;9548:66;9745:23;;;;;;:42;;-1:-1:-1;9772:15:0;;;9745:42;9737:51;9177:619;-1:-1:-1;;;;9177:619:0:o;38551:1463::-;;;;;;;;;;-1:-1:-1;38551:1463:0;;;;;;;;:::o

Swarm Source

bzzr://18652dcdb0d6648033d67c695043fc598147497ee27535ebc01bea6162a63a8a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.