Contract 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xabc6bfd490d1f97afa8daf0d18114ff60911b58d5e47957b4252ebad85000fc30x60e0604092073382021-07-16 12:52:5574 days 9 hrs agoRabbit Finance: Deployer IN  Contract Creation0 BNB0.00901908
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xf2515eb158a83ab9012bbd6547f544998ea70ba334deaa65feb1c9d5cd8bf564113111802021-09-28 15:21:317 hrs 16 mins ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d 0x203c1b3ac19076c4acfd3ee440138a47eb85032e2 wei
0xf2515eb158a83ab9012bbd6547f544998ea70ba334deaa65feb1c9d5cd8bf564113111802021-09-28 15:21:317 hrs 16 mins ago Binance: WBNB Token 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d2 wei
0xf2515eb158a83ab9012bbd6547f544998ea70ba334deaa65feb1c9d5cd8bf564113111802021-09-28 15:21:317 hrs 16 mins ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d Binance: WBNB Token0.910000000000000031 BNB
0xf2515eb158a83ab9012bbd6547f544998ea70ba334deaa65feb1c9d5cd8bf564113111802021-09-28 15:21:317 hrs 16 mins ago 0x203c1b3ac19076c4acfd3ee440138a47eb85032e 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d0.910000000000000031 BNB
0xb4095b6e4d8b84f568f25b3f68a59551057c63bc218b987d67a4a6cfad23ca8f112706662021-09-27 5:13:181 day 17 hrs ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d0x1b3f7964929dae299f194d46b7386b0df8f10db32 wei
0xb4095b6e4d8b84f568f25b3f68a59551057c63bc218b987d67a4a6cfad23ca8f112706662021-09-27 5:13:181 day 17 hrs ago Binance: WBNB Token 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d2 wei
0xb4095b6e4d8b84f568f25b3f68a59551057c63bc218b987d67a4a6cfad23ca8f112706662021-09-27 5:13:181 day 17 hrs ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d Binance: WBNB Token1 BNB
0xb4095b6e4d8b84f568f25b3f68a59551057c63bc218b987d67a4a6cfad23ca8f112706662021-09-27 5:13:181 day 17 hrs ago 0x203c1b3ac19076c4acfd3ee440138a47eb85032e 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d1 BNB
0x24b5b33d15f173de5d573a5b97d748439fe472be30411e8a146f50ce456ac420112509902021-09-26 12:38:582 days 9 hrs ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d Binance: WBNB Token0.876859999999999973 BNB
0x24b5b33d15f173de5d573a5b97d748439fe472be30411e8a146f50ce456ac420112509902021-09-26 12:38:582 days 9 hrs ago 0x203c1b3ac19076c4acfd3ee440138a47eb85032e 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d0.876859999999999973 BNB
0x89a95b034129a5df7b07b413a18a322647dff7178f8a293ca7a736f3441df538112490082021-09-26 10:58:242 days 11 hrs ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d Binance: WBNB Token0.029000000000000001 BNB
0x89a95b034129a5df7b07b413a18a322647dff7178f8a293ca7a736f3441df538112490082021-09-26 10:58:242 days 11 hrs ago 0x203c1b3ac19076c4acfd3ee440138a47eb85032e 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d0.029000000000000001 BNB
0x93a0b105284923ab1aec969c0b3a66478091e1d4cdf3d32e943e354fe09981f3112208842021-09-25 11:22:433 days 11 hrs ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d Binance: WBNB Token0.13575000000000001 BNB
0x93a0b105284923ab1aec969c0b3a66478091e1d4cdf3d32e943e354fe09981f3112208842021-09-25 11:22:433 days 11 hrs ago 0x203c1b3ac19076c4acfd3ee440138a47eb85032e 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d0.13575000000000001 BNB
0x3aa659f4b45f8c54ceb5dcc1b0b578feb583891659230fce8650647ea925e2bf112208262021-09-25 11:19:493 days 11 hrs ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d0x5fb50acb22ead536d276adc94a8fca6b10400dd22 wei
0x3aa659f4b45f8c54ceb5dcc1b0b578feb583891659230fce8650647ea925e2bf112208262021-09-25 11:19:493 days 11 hrs ago Binance: WBNB Token 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d2 wei
0x3aa659f4b45f8c54ceb5dcc1b0b578feb583891659230fce8650647ea925e2bf112208262021-09-25 11:19:493 days 11 hrs ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d Binance: WBNB Token0.556629999999999958 BNB
0x3aa659f4b45f8c54ceb5dcc1b0b578feb583891659230fce8650647ea925e2bf112208262021-09-25 11:19:493 days 11 hrs ago 0x203c1b3ac19076c4acfd3ee440138a47eb85032e 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d0.556629999999999958 BNB
0x9d6d14ca5a16cb9a031cbe0c71fb957336f4d28478b3767fa9bf5492ad67d201112151252021-09-25 6:34:013 days 16 hrs ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d0xdaa8db7a83a08bcc63c872895737aaae481d0c151 wei
0x9d6d14ca5a16cb9a031cbe0c71fb957336f4d28478b3767fa9bf5492ad67d201112151252021-09-25 6:34:013 days 16 hrs ago Binance: WBNB Token 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d1 wei
0x9d6d14ca5a16cb9a031cbe0c71fb957336f4d28478b3767fa9bf5492ad67d201112151252021-09-25 6:34:013 days 16 hrs ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d Binance: WBNB Token0.219709999999999989 BNB
0x9d6d14ca5a16cb9a031cbe0c71fb957336f4d28478b3767fa9bf5492ad67d201112151252021-09-25 6:34:013 days 16 hrs ago 0x203c1b3ac19076c4acfd3ee440138a47eb85032e 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d0.219709999999999989 BNB
0x7cacab59f2936caf2f90e479b02a6eb55af97da7e963214ee7536374f107058e112016912021-09-24 19:18:464 days 3 hrs ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d0xb65201f8a3443fface61f01540f3fc3a85b9461e1 wei
0x7cacab59f2936caf2f90e479b02a6eb55af97da7e963214ee7536374f107058e112016912021-09-24 19:18:464 days 3 hrs ago Binance: WBNB Token 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d1 wei
0x7cacab59f2936caf2f90e479b02a6eb55af97da7e963214ee7536374f107058e112016912021-09-24 19:18:464 days 3 hrs ago 0xd88ccfc913ed22b52f5a0b55fc7180451350f47d Binance: WBNB Token0.040000000000000001 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StrategyAddTwoSidesOptimal

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-07-19
*/

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.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 aplied to your functions to restrict their use to
 * the owner.
 */
contract Ownable {
    address private _owner;

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

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

    /**
     * @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 msg.sender == _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: openzeppelin-solidity-2.3.0/contracts/math/SafeMath.sol

pragma solidity ^0.6.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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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-solidity/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) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b != 0, "SafeMath: modulo by zero");
        return a % b;
    }
}

// File: openzeppelin-solidity-2.3.0/contracts/utils/ReentrancyGuard.sol

pragma solidity ^0.6.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier
 * available, which can be aplied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 */
contract ReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor () internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _guardCounter = 1;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

// File: @uniswap/v2-core/contracts/libraries/Math.sol

pragma solidity ^0.6.0;

// a library for performing various math operations

library Math {
    function min(uint x, uint y) internal pure returns (uint z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

// File: contracts/SafeToken.sol

pragma solidity ^0.6.0;

interface ERC20Interface {
  function balanceOf(address user) external view returns (uint256);
}

library SafeToken {
  function myBalance(address token) internal view returns (uint256) {
    return ERC20Interface(token).balanceOf(address(this));
  }

  function balanceOf(address token, address user) internal view returns (uint256) {
    return ERC20Interface(token).balanceOf(user);
  }

  function safeApprove(address token, address to, uint256 value) internal {
    // bytes4(keccak256(bytes('approve(address,uint256)')));
    (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
    require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeApprove");
  }

  function safeTransfer(address token, address to, uint256 value) internal {
    // bytes4(keccak256(bytes('transfer(address,uint256)')));
    (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
    require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeTransfer");
  }

  function safeTransferFrom(address token, address from, address to, uint256 value) internal {
    // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
    (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
    require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeTransferFrom");
  }

     function safeTransferETH(address to, uint256 val) internal {
        (bool success, ) = to.call{value:val}(new bytes(0));
        require(success, "!safeTransferETH");
    }
}
// File: contracts/Strategy.sol

pragma solidity ^0.6.0;

interface Strategy {
    function execute(address user, address borrowToken, uint256 borrow, uint256 debt, bytes calldata data) external payable;

}

// File: contracts/interfaces/IWETH.sol

pragma solidity ^0.6.0;

interface IWETH {
    function balanceOf(address user) external returns (uint);

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

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

    function deposit() external payable;

    function withdraw(uint) external;
}

// File: contracts/interfaces/IMdexPair.sol

pragma solidity ^0.6.0;

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

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

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

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}
// File: contracts/interfaces/IMdexRouter.sol



interface IUniswapV2Router02 {
  function factory() external pure returns (address);

  function WETH() external pure returns (address);

  function addLiquidity(
    address tokenA,
    address tokenB,
    uint amountADesired,
    uint amountBDesired,
    uint amountAMin,
    uint amountBMin,
    address to,
    uint deadline
  )
    external
    returns (
      uint amountA,
      uint amountB,
      uint liquidity
    );

  function addLiquidityETH(
    address token,
    uint amountTokenDesired,
    uint amountTokenMin,
    uint amountETHMin,
    address to,
    uint deadline
  )
    external
    payable
    returns (
      uint amountToken,
      uint amountETH,
      uint liquidity
    );

  function removeLiquidity(
    address tokenA,
    address tokenB,
    uint liquidity,
    uint amountAMin,
    uint amountBMin,
    address to,
    uint deadline
  ) external returns (uint amountA, uint amountB);

  function removeLiquidityETH(
    address token,
    uint liquidity,
    uint amountTokenMin,
    uint amountETHMin,
    address to,
    uint deadline
  ) external returns (uint amountToken, uint amountETH);

  function removeLiquidityWithPermit(
    address tokenA,
    address tokenB,
    uint liquidity,
    uint amountAMin,
    uint amountBMin,
    address to,
    uint deadline,
    bool approveMax,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external returns (uint amountA, uint amountB);

  function removeLiquidityETHWithPermit(
    address token,
    uint liquidity,
    uint amountTokenMin,
    uint amountETHMin,
    address to,
    uint deadline,
    bool approveMax,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external returns (uint amountToken, uint amountETH);

  function swapExactTokensForTokens(
    uint amountIn,
    uint amountOutMin,
    address[] calldata path,
    address to,
    uint deadline
  ) external returns (uint[] memory amounts);

  function swapTokensForExactTokens(
    uint amountOut,
    uint amountInMax,
    address[] calldata path,
    address to,
    uint deadline
  ) external returns (uint[] memory amounts);

  function swapExactETHForTokens(
    uint amountOutMin,
    address[] calldata path,
    address to,
    uint deadline
  ) external payable returns (uint[] memory amounts);

  function swapTokensForExactETH(
    uint amountOut,
    uint amountInMax,
    address[] calldata path,
    address to,
    uint deadline
  ) external returns (uint[] memory amounts);

  function swapExactTokensForETH(
    uint amountIn,
    uint amountOutMin,
    address[] calldata path,
    address to,
    uint deadline
  ) external returns (uint[] memory amounts);

  function swapETHForExactTokens(
    uint amountOut,
    address[] calldata path,
    address to,
    uint deadline
  ) external payable returns (uint[] memory amounts);

  function quote(
    uint amountA,
    uint reserveA,
    uint reserveB
  ) external pure returns (uint amountB);

  function getAmountOut(
    uint amountIn,
    uint reserveIn,
    uint reserveOut
  ) external pure returns (uint amountOut);

  function getAmountIn(
    uint amountOut,
    uint reserveIn,
    uint reserveOut
  ) external pure returns (uint amountIn);

  function getAmountsOut(uint amountIn, address[] calldata path)
    external
    view
    returns (uint[] memory amounts);

  function getAmountsIn(uint amountOut, address[] calldata path)
    external
    view
    returns (uint[] memory amounts);

  function removeLiquidityETHSupportingFeeOnTransferTokens(
    address token,
    uint liquidity,
    uint amountTokenMin,
    uint amountETHMin,
    address to,
    uint deadline
  ) external returns (uint amountETH);

  function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
    address token,
    uint liquidity,
    uint amountTokenMin,
    uint amountETHMin,
    address to,
    uint deadline,
    bool approveMax,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external returns (uint amountETH);

  function swapExactTokensForTokensSupportingFeeOnTransferTokens(
    uint amountIn,
    uint amountOutMin,
    address[] calldata path,
    address to,
    uint deadline
  ) external;

  function swapExactETHForTokensSupportingFeeOnTransferTokens(
    uint amountOutMin,
    address[] calldata path,
    address to,
    uint deadline
  ) external payable;

  function swapExactTokensForETHSupportingFeeOnTransferTokens(
    uint amountIn,
    uint amountOutMin,
    address[] calldata path,
    address to,
    uint deadline
  ) external;
}

interface ISwapMining {

    /// The user withdraws all the transaction rewards of the pool
    function takerWithdraw() external;

    /// Get rewards from users in the current pool
    /// @param pid pid of pair.
    function getUserReward(uint256 pid) external view returns (uint256, uint256);

}

// File: contracts/interfaces/IMdexFactory.sol

/**
 *Submitted for verification at hecoinfo.com on 2021-02-25
*/



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

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

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

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

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

interface PancakeGoblin {
    function token0() external view returns (address);
    function token1() external view returns (address);
}

// File: contracts/StrategyAddTwoSidesOptimal.sol


contract StrategyAddTwoSidesOptimal is Ownable, ReentrancyGuard, Strategy {
    using SafeToken for address;
    using SafeMath for uint256;

    IUniswapV2Factory public immutable factory;
    IUniswapV2Router02 public immutable router;
    address public constant WBNB = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c;
    address public immutable goblin;

    /// @dev Create a new add two-side optimal strategy instance for mdx.
    /// @param _router The mdx router smart contract.
    /// @param _goblin The goblin can execute the smart contract.
    constructor(IUniswapV2Router02 _router, address _goblin) public {
        factory = IUniswapV2Factory(_router.factory());
        router = _router;
        goblin = _goblin;
    }

    /// @dev Throws if called by any account other than the goblin.
    modifier onlyGoblin() {
        require(isGoblin(), "caller is not the goblin");
        _;
    }

    /// @dev Returns true if the caller is the current goblin.
    function isGoblin() public view returns (bool) {
        return msg.sender == goblin;
    }

    /// @dev Compute optimal deposit amount  
    /// @param amtA amount of token A desired to deposit  
    /// @param amtB amonut of token B desired to deposit  
    /// @param resA amount of token A in reserve. 
    /// @param resB amount of token B in reserve. 
    function optimalDeposit(
        uint256 amtA,
        uint256 amtB,
        uint256 resA,
        uint256 resB
    ) internal pure returns (uint256 swapAmt, bool isReversed) {
        if (amtA.mul(resB) >= amtB.mul(resA)) {
            swapAmt = _optimalDepositA(amtA, amtB, resA, resB);
            isReversed = false;
        } else {
            swapAmt = _optimalDepositA(amtB, amtA, resB, resA);
            isReversed = true;
        }
    }

    /// @dev Compute optimal deposit amount helper  
    /// @param amtA amount of token A desired to deposit
    /// @param amtB amonut of token B desired to deposit
    /// @param resA amount of token A in reserve
    /// @param resB amount of token B in reserve
    function _optimalDepositA(
        uint256 amtA,
        uint256 amtB,
        uint256 resA,
        uint256 resB
    ) internal pure returns (uint256) {
        require(amtA.mul(resB) >= amtB.mul(resA), "Reversed");

        uint256 a = 9975;
        uint256 b = uint256(19975).mul(resA);
        uint256 _c = (amtA.mul(resB)).sub(amtB.mul(resA));
        uint256 c = _c.mul(10000).div(amtB.add(resB)).mul(resA);

        uint256 d = a.mul(c).mul(4);
        uint256 e = Math.sqrt(b.mul(b).add(d));

        uint256 numerator = e.sub(b);
        uint256 denominator = a.mul(2);

        return numerator.div(denominator);
    }

    /// @dev Execute worker strategy. Take LP tokens + debtToken. Return LP tokens.
    /// @param user User address  
    /// @param borrowToken The token user borrow from bank. 
    /// @param borrow The amount user borrow from bank. 
    /// @param data Extra calldata information passed along to this strategy.
    function execute(address user, address borrowToken, uint256 borrow, uint256 /* debt */, bytes calldata data)
        override
        external
        payable
        onlyGoblin
        nonReentrant
    {
        address token0;
        address token1;
        uint256 minLPAmount;
        {
            // 1. decode token and amount info, and transfer to contract.
            (address _token0, address _token1 , uint256 token0Amount, uint256 token1Amount, uint256 _minLPAmount) =
                abi.decode(data, (address, address, uint256, uint256, uint256));
            token0 = _token0;
            token1 = _token1;
            minLPAmount = _minLPAmount;
            require(borrowToken == token0 || borrowToken == token1, "borrowToken not token0 and token1");
            if (token0Amount > 0 && token0 != address(0)) {
                token0.safeTransferFrom(user, address(this), token0Amount);
            }
            if (token1Amount > 0 && token1 != address(0)) {
                token1.safeTransferFrom(user, address(this), token1Amount);
            }
        }

        token0 = PancakeGoblin(msg.sender).token0();
        token1 = PancakeGoblin(msg.sender).token1();
        
        address BnbRelative = address(0);
        {   
            if (borrow > 0 && borrowToken != address(0)) {
                borrowToken.safeTransferFrom(msg.sender, address(this), borrow);
            }
            if (token0 == WBNB){
                BnbRelative = token1;
            }
            if (token1 == WBNB){
                BnbRelative = token0;
            }

            // change all bnb to wbnb if need. 
            uint256 BnbBalance = address(this).balance;
            if (BnbBalance > 0) {
                IWETH(WBNB).deposit{value:BnbBalance}();
            }
        }
        // tokens are all ERC20 token now.
        IUniswapV2Pair lpToken = IUniswapV2Pair(factory.getPair(token0, token1));
        
        // 2. Compute the optimal amount of token0 and token1 to be converted.
        address tokenRelative;
        {
            borrowToken = borrowToken == address(0) ? WBNB : borrowToken;
            tokenRelative = borrowToken == lpToken.token0() ? token1 : token0;

            borrowToken.safeApprove(address(router), 0);
            borrowToken.safeApprove(address(router), uint256(-1));

            tokenRelative.safeApprove(address(router), 0);
            tokenRelative.safeApprove(address(router), uint256(-1));

            // 3. swap and mint LP tokens. 
            calAndSwap(lpToken, borrowToken, tokenRelative);

            (,, uint256 moreLPAmount) = router.addLiquidity(token0, token1, token0.myBalance(), token1.myBalance(), 0, 0, address(this), now);
            require(moreLPAmount >= minLPAmount, "insufficient LP tokens received");
        }

        // 4. send lpToken and borrowToken back to the sender.
        lpToken.transfer(msg.sender, lpToken.balanceOf(address(this)));

        if (BnbRelative == address(0)) {
            borrowToken.safeTransfer(msg.sender, borrowToken.myBalance());
            tokenRelative.safeTransfer(user, tokenRelative.myBalance());
        } else {
            safeUnWrapperAndAllSend(borrowToken, msg.sender);
            safeUnWrapperAndAllSend(tokenRelative, user);
        }
    }

    /// get token balance, if is WBnb un wrapper to Bnb and send to 'to'
    function safeUnWrapperAndAllSend(address token, address to) internal {
        uint256 total = SafeToken.myBalance(token);
        if (total > 0) {
            if (token == WBNB) {
                IWETH(WBNB).withdraw(total);
                SafeToken.safeTransferETH(to, total);
            } else {
                SafeToken.safeTransfer(token, to, total);
            }
        }
    }

    /// Compute amount and swap between borrowToken and tokenRelative.
    function calAndSwap(IUniswapV2Pair lpToken, address borrowToken, address tokenRelative) internal {
        (uint256 token0Reserve, uint256 token1Reserve,) = lpToken.getReserves();
        (uint256 debtReserve, uint256 relativeReserve) = borrowToken ==
            lpToken.token0() ? (token0Reserve, token1Reserve) : (token1Reserve, token0Reserve);
        (uint256 swapAmt, bool isReversed) = optimalDeposit(borrowToken.myBalance(), tokenRelative.myBalance(),
            debtReserve, relativeReserve);

        if (swapAmt > 0){
            address[] memory path = new address[](2);
            (path[0], path[1]) = isReversed ? (tokenRelative, borrowToken) : (borrowToken, tokenRelative);
            router.swapExactTokensForTokens(swapAmt, 0, path, address(this), now);
        }
    }

    /// @param minter The address of MDex SwapMining contract.
    /// @param pid pid pid of pair in SwapMining config.
    function getSwapReward(address minter, uint256 pid) public view returns (uint256, uint256) {
        ISwapMining swapMining = ISwapMining(minter);
        return swapMining.getUserReward(pid);
    }

    /// @param minter The address of MDex SwapMining contract.
    /// @param token Token of reward. Result of pairOfPid(lpTokenAddress)
    function swapMiningReward(address minter, address token) external onlyOwner{
        ISwapMining swapMining = ISwapMining(minter);
        swapMining.takerWithdraw();
        token.safeTransfer(msg.sender, token.myBalance());
    }
    
    /// @dev Recover ERC20 tokens that were accidentally sent to this smart contract.
    /// @param token The token contract. Can be anything. This contract should not hold ERC20 tokens.
    /// @param to The address to send the tokens to.
    /// @param value The number of tokens to transfer to `to`.
    function recover(address token, address to, uint256 value) external onlyOwner nonReentrant {
        token.safeTransfer(to, value);
    }

    receive() external payable {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IUniswapV2Router02","name":"_router","type":"address"},{"internalType":"address","name":"_goblin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"WBNB","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"borrowToken","type":"address"},{"internalType":"uint256","name":"borrow","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"execute","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"getSwapReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goblin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGoblin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"swapMiningReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e060405234801561001057600080fd5b506040516120443803806120448339818101604052604081101561003357600080fd5b508051602090910151600080546001600160a01b03191633178082556040516001600160a01b039190911691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a360018081905550816001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156100c557600080fd5b505afa1580156100d9573d6000803e3d6000fd5b505050506040513d60208110156100ef57600080fd5b50516001600160601b0319606091821b811660805292811b831660a0521b1660c05260805160601c60a05160601c60c05160601c611ed661016e60003980610416528061065f525080610bad5280610be85280610c245280610c5f5280610c9b5280610fd052806116fd5250806106835280610a7a5250611ed66000f3fe6080604052600436106100c65760003560e01c80638dd950021161007f578063c45a015511610059578063c45a015514610252578063f2fde38b14610267578063f48221a31461029a578063f887ea401461032f576100cd565b80638dd95002146102135780638f32d59b14610228578063b7156cf91461023d576100cd565b80631ec82cb8146100d257806351a618701461011757806367d935e814610140578063715018a61461017b5780637822cfc8146101905780638da5cb5b146101e2576100cd565b366100cd57005b600080fd5b3480156100de57600080fd5b50610115600480360360608110156100f557600080fd5b506001600160a01b03813581169160208101359091169060400135610344565b005b34801561012357600080fd5b5061012c61040b565b604080519115158252519081900360200190f35b34801561014c57600080fd5b506101156004803603604081101561016357600080fd5b506001600160a01b038135811691602001351661043a565b34801561018757600080fd5b5061011561050b565b34801561019c57600080fd5b506101c9600480360360408110156101b357600080fd5b506001600160a01b03813516906020013561059c565b6040805192835260208301919091528051918290030190f35b3480156101ee57600080fd5b506101f7610625565b604080516001600160a01b039092168252519081900360200190f35b34801561021f57600080fd5b506101f7610634565b34801561023457600080fd5b5061012c61064c565b34801561024957600080fd5b506101f761065d565b34801561025e57600080fd5b506101f7610681565b34801561027357600080fd5b506101156004803603602081101561028a57600080fd5b50356001600160a01b03166106a5565b610115600480360360a08110156102b057600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156102f057600080fd5b82018360208201111561030257600080fd5b8035906020019184600183028401116401000000008311171561032457600080fd5b5090925090506106f8565b34801561033b57600080fd5b506101f7610fce565b61034c61064c565b61038b576040805162461bcd60e51b81526020600482018190526024820152600080516020611e81833981519152604482015290519081900360640190fd5b600180548101908190556103af6001600160a01b038516848463ffffffff610ff216565b6001548114610405576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b50505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161490565b61044261064c565b610481576040805162461bcd60e51b81526020600482018190526024820152600080516020611e81833981519152604482015290519081900360640190fd5b6000829050806001600160a01b031663b872dd0e6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156104c157600080fd5b505af11580156104d5573d6000803e3d6000fd5b50505050610506336104ef846001600160a01b031661114c565b6001600160a01b038516919063ffffffff610ff216565b505050565b61051361064c565b610552576040805162461bcd60e51b81526020600482018190526024820152600080516020611e81833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60408051639fb08cb760e01b8152600481018390528151600092839286926001600160a01b03841692639fb08cb79260248082019391829003018186803b1580156105e657600080fd5b505afa1580156105fa573d6000803e3d6000fd5b505050506040513d604081101561061057600080fd5b50805160209091015190969095509350505050565b6000546001600160a01b031690565b73bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c81565b6000546001600160a01b0316331490565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6106ad61064c565b6106ec576040805162461bcd60e51b81526020600482018190526024820152600080516020611e81833981519152604482015290519081900360640190fd5b6106f5816111ca565b50565b61070061040b565b610751576040805162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f742074686520676f626c696e0000000000000000604482015290519081900360640190fd5b600180548101908190556000808080808080808a8a60a081101561077457600080fd5b506001600160a01b03813581169950602082013581169850608082013597508996508895506040820135945060609091013592508691508e168514806107cb5750866001600160a01b03168e6001600160a01b0316145b6108065760405162461bcd60e51b8152600401808060200182810382526021815260200180611e3f6021913960400191505060405180910390fd5b60008311801561081e57506001600160a01b03881615155b15610843576108438f30858b6001600160a01b031661126a909392919063ffffffff16565b60008211801561085b57506001600160a01b03871615155b15610880576108808f30848a6001600160a01b031661126a909392919063ffffffff16565b5050505050336001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156108be57600080fd5b505afa1580156108d2573d6000803e3d6000fd5b505050506040513d60208110156108e857600080fd5b50516040805163d21220a760e01b81529051919450339163d21220a791600480820192602092909190829003018186803b15801561092557600080fd5b505afa158015610939573d6000803e3d6000fd5b505050506040513d602081101561094f57600080fd5b505191506000881580159061096c57506001600160a01b038a1615155b1561098c5761098c6001600160a01b038b1633308c63ffffffff61126a16565b6001600160a01b03841673bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c14156109b45750815b6001600160a01b03831673bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c14156109dc5750825b478015610a4c5773bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c6001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610a3257600080fd5b505af1158015610a46573d6000803e3d6000fd5b50505050505b506040805163e6a4390560e01b81526001600160a01b038681166004830152858116602483015291516000927f0000000000000000000000000000000000000000000000000000000000000000169163e6a43905916044808301926020929190829003018186803b158015610ac057600080fd5b505afa158015610ad4573d6000803e3d6000fd5b505050506040513d6020811015610aea57600080fd5b5051905060006001600160a01b038c1615610b05578b610b1b565b73bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c5b9b50816001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015610b5657600080fd5b505afa158015610b6a573d6000803e3d6000fd5b505050506040513d6020811015610b8057600080fd5b50516001600160a01b038d8116911614610b9a5785610b9c565b845b9050610bd96001600160a01b038d167f0000000000000000000000000000000000000000000000000000000000000000600063ffffffff6113d116565b610c156001600160a01b038d167f000000000000000000000000000000000000000000000000000000000000000060001963ffffffff6113d116565b610c506001600160a01b0382167f0000000000000000000000000000000000000000000000000000000000000000600063ffffffff6113d116565b610c8c6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000060001963ffffffff6113d116565b610c97828d83611523565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e8e337008888610cdc8b6001600160a01b031661114c565b610cee8b6001600160a01b031661114c565b604080516001600160e01b031960e088901b1681526001600160a01b0395861660048201529390941660248401526044830191909152606482015260006084820181905260a482018190523060c48301524260e483015291516101048083019360609383900390910190829087803b158015610d6957600080fd5b505af1158015610d7d573d6000803e3d6000fd5b505050506040513d6060811015610d9357600080fd5b5060400151905084811015610def576040805162461bcd60e51b815260206004820152601f60248201527f696e73756666696369656e74204c5020746f6b656e7320726563656976656400604482015290519081900360640190fd5b50604080516370a0823160e01b815230600482015290516001600160a01b0384169163a9059cbb91339184916370a0823191602480820192602092909190829003018186803b158015610e4157600080fd5b505afa158015610e55573d6000803e3d6000fd5b505050506040513d6020811015610e6b57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b158015610ebc57600080fd5b505af1158015610ed0573d6000803e3d6000fd5b505050506040513d6020811015610ee657600080fd5b50506001600160a01b038316610f5557610f2333610f0c8e6001600160a01b031661114c565b6001600160a01b038f16919063ffffffff610ff216565b610f508d610f39836001600160a01b031661114c565b6001600160a01b038416919063ffffffff610ff216565b610f69565b610f5f8c336118a9565b610f69818e6118a9565b5050505050506001548114610fc5576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b50505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b6020831061106f5780518252601f199092019160209182019101611050565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146110d1576040519150601f19603f3d011682016040523d82523d6000602084013e6110d6565b606091505b5091509150818015611104575080511580611104575080806020019051602081101561110157600080fd5b50515b611145576040805162461bcd60e51b815260206004820152600d60248201526c10b9b0b332aa3930b739b332b960991b604482015290519081900360640190fd5b5050505050565b604080516370a0823160e01b815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b15801561119657600080fd5b505afa1580156111aa573d6000803e3d6000fd5b505050506040513d60208110156111c057600080fd5b505190505b919050565b6001600160a01b03811661120f5760405162461bcd60e51b8152600401808060200182810382526026815260200180611e196026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106112ef5780518252601f1990920191602091820191016112d0565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611351576040519150601f19603f3d011682016040523d82523d6000602084013e611356565b606091505b5091509150818015611384575080511580611384575080806020019051602081101561138157600080fd5b50515b6113c9576040805162461bcd60e51b815260206004820152601160248201527021736166655472616e7366657246726f6d60781b604482015290519081900360640190fd5b505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b178152925182516000946060949389169392918291908083835b6020831061144e5780518252601f19909201916020918201910161142f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146114b0576040519150601f19603f3d011682016040523d82523d6000602084013e6114b5565b606091505b50915091508180156114e35750805115806114e357508080602001905160208110156114e057600080fd5b50515b611145576040805162461bcd60e51b815260206004820152600c60248201526b2173616665417070726f766560a01b604482015290519081900360640190fd5b600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561155f57600080fd5b505afa158015611573573d6000803e3d6000fd5b505050506040513d606081101561158957600080fd5b50805160209182015160408051630dfe168160e01b815290516dffffffffffffffffffffffffffff938416965092909116935060009283926001600160a01b038a1692630dfe1681926004808301939192829003018186803b1580156115ee57600080fd5b505afa158015611602573d6000803e3d6000fd5b505050506040513d602081101561161857600080fd5b50516001600160a01b03878116911614611633578284611636565b83835b9150915060008061166b611652896001600160a01b031661114c565b611664896001600160a01b031661114c565b868661196d565b9092509050811561189e576040805160028082526060808301845292602083019080368337019050509050816116a25788886116a5565b87895b826000815181106116b257fe5b60200260200101836001815181106116c657fe5b60200260200101826001600160a01b03166001600160a01b0316815250826001600160a01b03166001600160a01b031681525050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166338ed17398460008430426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b838110156117a9578181015183820152602001611791565b505050509050019650505050505050600060405180830381600087803b1580156117d257600080fd5b505af11580156117e6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561180f57600080fd5b810190808051604051939291908464010000000082111561182f57600080fd5b90830190602082018581111561184457600080fd5b825186602082028301116401000000008211171561186157600080fd5b82525081516020918201928201910280838360005b8381101561188e578181015183820152602001611876565b5050505090500160405250505050505b505050505050505050565b60006118b48361114c565b90508015610506576001600160a01b03831673bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c14156119625773bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c6001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561193b57600080fd5b505af115801561194f573d6000803e3d6000fd5b5050505061195d82826119c8565b610506565b610506838383610ff2565b600080611980858563ffffffff611ac416565b611990878563ffffffff611ac416565b106119ac576119a186868686611b26565b9150600090506119bf565b6119b885878587611b26565b9150600190505b94509492505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b60208310611a145780518252601f1990920191602091820191016119f5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611a76576040519150601f19603f3d011682016040523d82523d6000602084013e611a7b565b606091505b5050905080610506576040805162461bcd60e51b815260206004820152601060248201526f042e6c2cccaa8e4c2dce6cccae48aa8960831b604482015290519081900360640190fd5b600082611ad357506000611b20565b82820282848281611ae057fe5b0414611b1d5760405162461bcd60e51b8152600401808060200182810382526021815260200180611e606021913960400191505060405180910390fd5b90505b92915050565b6000611b38848463ffffffff611ac416565b611b48868463ffffffff611ac416565b1015611b86576040805162461bcd60e51b815260206004820152600860248201526714995d995c9cd95960c21b604482015290519081900360640190fd5b6126f76000611b9d614e078663ffffffff611ac416565b90506000611bd0611bb4888863ffffffff611ac416565b611bc48a8863ffffffff611ac416565b9063ffffffff611ca616565b90506000611c1587611c09611beb8b8a63ffffffff611d0316565b611bfd8661271063ffffffff611ac416565b9063ffffffff611d5d16565b9063ffffffff611ac416565b90506000611c2e6004611c09878563ffffffff611ac416565b90506000611c5a611c5583611c49888063ffffffff611ac416565b9063ffffffff611d0316565b611dc7565b90506000611c6e828763ffffffff611ca616565b90506000611c8388600263ffffffff611ac416565b9050611c95828263ffffffff611d5d16565b9d9c50505050505050505050505050565b600082821115611cfd576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611b1d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211611db3576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481611dbe57fe5b04949350505050565b60006003821115611e0a575080600160028204015b81811015611e0457809150600281828581611df357fe5b040181611dfc57fe5b049050611ddc565b506111c5565b81156111c55750600191905056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373626f72726f77546f6b656e206e6f7420746f6b656e3020616e6420746f6b656e31536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f95f336412cbe3ec89d98e9b391d3803b90128b2cc3cc7c90cfa069de8116ad164736f6c6343000606003300000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024e000000000000000000000000203c1b3ac19076c4acfd3ee440138a47eb85032e

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

00000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024e000000000000000000000000203c1b3ac19076c4acfd3ee440138a47eb85032e

-----Decoded View---------------
Arg [0] : _router (address): 0x10ed43c718714eb63d5aa57b78b54704e256024e
Arg [1] : _goblin (address): 0x203c1b3ac19076c4acfd3ee440138a47eb85032e

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024e
Arg [1] : 000000000000000000000000203c1b3ac19076c4acfd3ee440138a47eb85032e


Deployed ByteCode Sourcemap

19275:9014:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;28110:139:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;28110:139:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;28110:139:0;;;;;;;;;;;;;;;;;:::i;:::-;;20272:93;;5:9:-1;2:2;;;27:1;24;17:12;2:2;20272:93:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;27555:235;;5:9:-1;2:2;;;27:1;24;17:12;2:2;27555:235:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;27555:235:0;;;;;;;;;;:::i;1694:140::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1694:140:0;;;:::i;27207:201::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;27207:201:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;27207:201:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;883:79;;5:9:-1;2:2;;;27:1;24;17:12;2:2;883:79:0;;;:::i;:::-;;;;-1:-1:-1;;;;;883:79:0;;;;;;;;;;;;;;19523:73;;5:9:-1;2:2;;;27:1;24;17:12;2:2;19523:73:0;;;:::i;1249:92::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1249:92:0;;;:::i;19603:31::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;19603:31:0;;;:::i;19425:42::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;19425:42:0;;;:::i;1989:109::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1989:109:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;1989:109:0;-1:-1:-1;;;;;1989:109:0;;:::i;22359:3357::-;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;;;;;22359:3357:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;22359:3357:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;22359:3357:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;22359:3357:0;;-1:-1:-1;22359:3357:0;-1:-1:-1;22359:3357:0;:::i;19474:42::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;19474:42:0;;;:::i;28110:139::-;1095:9;:7;:9::i;:::-;1087:54;;;;;-1:-1:-1;;;1087:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1087:54:0;;;;;;;;;;;;;;;7571:1:::1;7554:18:::0;;;::::1;::::0;;;;28212:29:::2;-1:-1:-1::0;;;;;28212:18:0;::::2;28231:2:::0;28235:5;28212:29:::2;:18;:29;:::i;:::-;7666:13:::1;;7650:12;:29;7642:73;;;::::0;;-1:-1:-1;;;7642:73:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;1152:1;28110:139:::0;;;:::o;20272:93::-;20337:10;-1:-1:-1;;;;;20351:6:0;20337:20;;20272:93;:::o;27555:235::-;1095:9;:7;:9::i;:::-;1087:54;;;;;-1:-1:-1;;;1087:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1087:54:0;;;;;;;;;;;;;;;27641:22:::1;27678:6;27641:44;;27696:10;-1:-1:-1::0;;;;;27696:24:0::1;;:26;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;27696:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;27696:26:0;;;;27733:49;27752:10;27764:17;:5;-1:-1:-1::0;;;;;27764:15:0::1;;:17::i;:::-;-1:-1:-1::0;;;;;27733:18:0;::::1;::::0;:49;::::1;:18;:49;:::i;:::-;1152:1;27555:235:::0;;:::o;1694:140::-;1095:9;:7;:9::i;:::-;1087:54;;;;;-1:-1:-1;;;1087:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1087:54:0;;;;;;;;;;;;;;;1793:1:::1;1777:6:::0;;1756:40:::1;::::0;-1:-1:-1;;;;;1777:6:0;;::::1;::::0;1756:40:::1;::::0;1793:1;;1756:40:::1;1824:1;1807:19:::0;;-1:-1:-1;;;;;;1807:19:0::1;::::0;;1694:140::o;27207:201::-;27371:29;;;-1:-1:-1;;;27371:29:0;;;;;;;;;;27280:7;;;;27346:6;;-1:-1:-1;;;;;27371:24:0;;;;;:29;;;;;;;;;;;:24;:29;;;2:2:-1;;;;27:1;24;17:12;2:2;27371:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;27371:29:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;27371:29:0;;;;;;;;;;;-1:-1:-1;27207:201:0;-1:-1:-1;;;;27207:201:0:o;883:79::-;921:7;948:6;-1:-1:-1;;;;;948:6:0;883:79;:::o;19523:73::-;19554:42;19523:73;:::o;1249:92::-;1289:4;1327:6;-1:-1:-1;;;;;1327:6:0;1313:10;:20;;1249:92::o;19603:31::-;;;:::o;19425:42::-;;;:::o;1989:109::-;1095:9;:7;:9::i;:::-;1087:54;;;;;-1:-1:-1;;;1087:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1087:54:0;;;;;;;;;;;;;;;2062:28:::1;2081:8;2062:18;:28::i;:::-;1989:109:::0;:::o;22359:3357::-;20141:10;:8;:10::i;:::-;20133:47;;;;;-1:-1:-1;;;20133:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7571:1:::1;7554:18:::0;;;::::1;::::0;;;;:13:::1;::::0;;;;;;;22881:4;;15:3:-1::2;7:12:::0;::::2;4:2;;;32:1;29::::0;22:12:::2;4:2;-1:-1:::0;;;;;;22870:63:0;::::2;::::0;::::2;::::0;-1:-1:-1;22870:63:0::2;::::0;::::2;;::::0;::::2;::::0;-1:-1:-1;22870:63:0;;;::::2;::::0;-1:-1:-1;22870:63:0;;-1:-1:-1;22870:63:0;;-1:-1:-1;22870:63:0;;;::::2;::::0;-1:-1:-1;22870:63:0;;;;::::2;::::0;-1:-1:-1;22870:63:0;;-1:-1:-1;23059:21:0;::::2;::::0;::::2;::::0;:46:::2;;;23099:6;-1:-1:-1::0;;;;;23084:21:0::2;:11;-1:-1:-1::0;;;;;23084:21:0::2;;23059:46;23051:92;;;;-1:-1:-1::0;;;23051:92:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23177:1;23162:12;:16;:40;;;;-1:-1:-1::0;;;;;;23182:20:0;::::2;::::0;::::2;23162:40;23158:139;;;23223:58;23247:4;23261;23268:12;23223:6;-1:-1:-1::0;;;;;23223:23:0::2;;;:58;;;;;;:::i;:::-;23330:1;23315:12;:16;:40;;;;-1:-1:-1::0;;;;;;23335:20:0;::::2;::::0;::::2;23315:40;23311:139;;;23376:58;23400:4;23414;23421:12;23376:6;-1:-1:-1::0;;;;;23376:23:0::2;;;:58;;;;;;:::i;:::-;7630:1;;;;;23496:10;-1:-1:-1::0;;;;;23482:32:0::2;;:34;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;23482:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;23482:34:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;-1:-1:::0;23482:34:0;23536::::2;::::0;;-1:-1:-1;;;23536:34:0;;;;23482;;-1:-1:-1;23550:10:0::2;::::0;23536:32:::2;::::0;:34:::2;::::0;;::::2;::::0;23482::::2;::::0;23536;;;;;;;;23550:10;23536:34;::::2;;2:2:-1::0;::::2;;;27:1;24::::0;17:12:::2;2:2;23536:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;23536:34:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;-1:-1:::0;23536:34:0;;-1:-1:-1;23591:19:0::2;23656:10:::0;;;;;:39:::2;;-1:-1:-1::0;;;;;;23670:25:0;::::2;::::0;::::2;23656:39;23652:143;;;23716:63;-1:-1:-1::0;;;;;23716:28:0;::::2;23745:10;23765:4;23772:6:::0;23716:63:::2;:28;:63;:::i;:::-;-1:-1:-1::0;;;;;23813:14:0;::::2;19554:42;23813:14;23809:74;;;-1:-1:-1::0;23861:6:0;23809:74:::2;-1:-1:-1::0;;;;;23901:14:0;::::2;19554:42;23901:14;23897:74;;;-1:-1:-1::0;23949:6:0;23897:74:::2;24057:21;24097:14:::0;;24093:94:::2;;19554:42;-1:-1:-1::0;;;;;24132:19:0::2;;24158:10;24132:39;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;24132:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;24132:39:0;;;;;24093:94;-1:-1:-1::0;24292:31:0::2;::::0;;-1:-1:-1;;;24292:31:0;;-1:-1:-1;;;;;24292:31:0;;::::2;;::::0;::::2;::::0;;;::::2;::::0;;;;;;24252:22:::2;::::0;24292:7:::2;:15;::::0;::::2;::::0;:31;;;;;::::2;::::0;;;;;;;;:15;:31;::::2;;2:2:-1::0;::::2;;;27:1;24::::0;17:12:::2;2:2;24292:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;24292:31:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;-1:-1:::0;24292:31:0;;-1:-1:-1;24425:21:0::2;-1:-1:-1::0;;;;;24486:25:0;::::2;::::0;:46:::2;;24521:11;24486:46;;;19554:42;24486:46;24472:60;;24578:7;-1:-1:-1::0;;;;;24578:14:0::2;;:16;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;24578:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;24578:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;-1:-1:::0;24578:16:0;-1:-1:-1;;;;;24563:31:0;;::::2;::::0;::::2;;:49;;24606:6;24563:49;;;24597:6;24563:49;24547:65:::0;-1:-1:-1;24629:43:0::2;-1:-1:-1::0;;;;;24629:23:0;::::2;24661:6;24670:1;24629:43;:23;:43;:::i;:::-;24687:53;-1:-1:-1::0;;;;;24687:23:0;::::2;24719:6;-1:-1:-1::0;;24687:53:0::2;:23;:53;:::i;:::-;24757:45;-1:-1:-1::0;;;;;24757:25:0;::::2;24791:6;24800:1;24757:45;:25;:45;:::i;:::-;24817:55;-1:-1:-1::0;;;;;24817:25:0;::::2;24851:6;-1:-1:-1::0;;24817:55:0::2;:25;:55;:::i;:::-;24934:47;24945:7;24954:11;24967:13;24934:10;:47::i;:::-;25002:20;25026:6;-1:-1:-1::0;;;;;25026:19:0::2;;25046:6;25054;25062:18;:6;-1:-1:-1::0;;;;;25062:16:0::2;;:18::i;:::-;25082;:6;-1:-1:-1::0;;;;;25082:16:0::2;;:18::i;:::-;25026:101;::::0;;-1:-1:-1;;;;;;25026:101:0::2;::::0;;;;;;-1:-1:-1;;;;;25026:101:0;;::::2;;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;;;25102:1:::2;25026:101:::0;;;;;;;;;;;;25116:4:::2;25026:101:::0;;;;25123:3:::2;25026:101:::0;;;;;;;;;;;::::2;::::0;;;;;;;;;;;;::::2;;2:2:-1::0;::::2;;;27:1;24::::0;17:12:::2;2:2;25026:101:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;25026:101:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;-1:-1:::0;25026:101:0;;;;-1:-1:-1;25150:27:0;;::::2;;25142:71;;;::::0;;-1:-1:-1;;;25142:71:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;-1:-1:-1::0;25330:32:0::2;::::0;;-1:-1:-1;;;25330:32:0;;25356:4:::2;25330:32;::::0;::::2;::::0;;;-1:-1:-1;;;;;25301:16:0;::::2;::::0;::::2;::::0;25318:10:::2;::::0;25301:16;;25330:17:::2;::::0;:32;;;;;::::2;::::0;;;;;;;;;25301:16;25330:32;::::2;;2:2:-1::0;::::2;;;27:1;24::::0;17:12:::2;2:2;25330:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;25330:32:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;-1:-1:::0;25330:32:0;25301:62:::2;::::0;;-1:-1:-1;;;;;;25301:62:0::2;::::0;;;;;;-1:-1:-1;;;;;25301:62:0;;::::2;;::::0;::::2;::::0;;;;;;;;;;;;;;25330:32:::2;::::0;25301:62;;;;;;;-1:-1:-1;25301:62:0;;::::2;;2:2:-1::0;::::2;;;27:1;24::::0;17:12:::2;2:2;25301:62:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;25301:62:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;-1:-1:::0;;;;;;;25380:25:0;::::2;25376:333;;25422:61;25447:10;25459:23;:11;-1:-1:-1::0;;;;;25459:21:0::2;;:23::i;:::-;-1:-1:-1::0;;;;;25422:24:0;::::2;::::0;:61;::::2;:24;:61;:::i;:::-;25498:59;25525:4;25531:25;:13;-1:-1:-1::0;;;;;25531:23:0::2;;:25::i;:::-;-1:-1:-1::0;;;;;25498:26:0;::::2;::::0;:59;::::2;:26;:59;:::i;:::-;25376:333;;;25590:48;25614:11;25627:10;25590:23;:48::i;:::-;25653:44;25677:13;25692:4;25653:23;:44::i;:::-;7630:1;;;;;;7666:13:::1;;7650:12;:29;7642:73;;;::::0;;-1:-1:-1;;;7642:73:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;20191:1;22359:3357:::0;;;;;;:::o;19474:42::-;;;:::o;9218:332::-;9408:45;;;-1:-1:-1;;;;;9408:45:0;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;9408:45:0;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;9397:57:0;;;;9362:12;;9376:17;;9397:10;;;;9408:45;9397:57;;;25:18:-1;9397:57:0;;25:18:-1;36:153;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;;;9397:57:0;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;9361:93:0;;;;9469:7;:57;;;;-1:-1:-1;9481:11:0;;:16;;:44;;;9512:4;9501:24;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;9501:24:0;9481:44;9461:83;;;;;-1:-1:-1;;;9461:83:0;;;;;;;;;;;;-1:-1:-1;;;9461:83:0;;;;;;;;;;;;;;;9218:332;;;;;:::o;8602:132::-;8682:46;;;-1:-1:-1;;;8682:46:0;;8722:4;8682:46;;;;;;8659:7;;-1:-1:-1;;;;;8682:31:0;;;;;:46;;;;;;;;;;;;;;;:31;:46;;;2:2:-1;;;;27:1;24;17:12;2:2;8682:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;8682:46:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;8682:46:0;;-1:-1:-1;8602:132:0;;;;:::o;2204:229::-;-1:-1:-1;;;;;2278:22:0;;2270:73;;;;-1:-1:-1;;;2270:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2380:6;;;2359:38;;-1:-1:-1;;;;;2359:38:0;;;;2380:6;;;2359:38;;;2408:6;:17;;-1:-1:-1;;;;;;2408:17:0;-1:-1:-1;;;;;2408:17:0;;;;;;;;;;2204:229::o;9556:372::-;9776:51;;;-1:-1:-1;;;;;9776:51:0;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;9776:51:0;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;9765:63:0;;;;9730:12;;9744:17;;9765:10;;;;9776:51;9765:63;;;25:18:-1;9765:63:0;;25:18:-1;36:153;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;;;9765:63:0;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;9729:99:0;;;;9843:7;:57;;;;-1:-1:-1;9855:11:0;;:16;;:44;;;9886:4;9875:24;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;9875:24:0;9855:44;9835:87;;;;;-1:-1:-1;;;9835:87:0;;;;;;;;;;;;-1:-1:-1;;;9835:87:0;;;;;;;;;;;;;;;9556:372;;;;;;:::o;8883:329::-;9071:45;;;-1:-1:-1;;;;;9071:45:0;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;9071:45:0;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;9060:57:0;;;;9025:12;;9039:17;;9060:10;;;;9071:45;9060:57;;;25:18:-1;9060:57:0;;25:18:-1;36:153;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;;;9060:57:0;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;9024:93:0;;;;9132:7;:57;;;;-1:-1:-1;9144:11:0;;:16;;:44;;;9175:4;9164:24;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;9164:24:0;9144:44;9124:82;;;;;-1:-1:-1;;;9124:82:0;;;;;;;;;;;;-1:-1:-1;;;9124:82:0;;;;;;;;;;;;;;26276:801;26385:21;26408;26434:7;-1:-1:-1;;;;;26434:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;26434:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26434:21:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;26434:21:0;;;;;;;;26543:16;;-1:-1:-1;;;26543:16:0;;;;26384:71;;;;;-1:-1:-1;26384:71:0;;;;;-1:-1:-1;26467:19:0;;;;-1:-1:-1;;;;;26543:14:0;;;;;:16;;;;;26434:21;;26543:16;;;;;:14;:16;;;2:2:-1;;;;27:1;24;17:12;2:2;26543:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26543:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;26543:16:0;-1:-1:-1;;;;;26515:44:0;;;;;;:110;;26596:13;26611;26515:110;;;26563:13;26578;26515:110;26466:159;;;;26637:15;26654;26673:109;26688:23;:11;-1:-1:-1;;;;;26688:21:0;;:23::i;:::-;26713:25;:13;-1:-1:-1;;;;;26713:23:0;;:25::i;:::-;26753:11;26766:15;26673:14;:109::i;:::-;26636:146;;-1:-1:-1;26636:146:0;-1:-1:-1;26799:11:0;;26795:275;;26850:16;;;26864:1;26850:16;;;26826:21;26850:16;;;;;26826:21;26850:16;;;;;109:14:-1;26850:16:0;88:42:-1;144:17;;-1:-1;26850:16:0;26826:40;;26902:10;:72;;26947:11;26960:13;26902:72;;;26916:13;26931:11;26902:72;26882:4;26887:1;26882:7;;;;;;;;;;;;;26891:4;26896:1;26891:7;;;;;;;;;;;;;26881:93;-1:-1:-1;;;;;26881:93:0;-1:-1:-1;;;;;26881:93:0;;;;;-1:-1:-1;;;;;26881:93:0;-1:-1:-1;;;;;26881:93:0;;;;;;26989:6;-1:-1:-1;;;;;26989:31:0;;27021:7;27030:1;27033:4;27047;27054:3;26989:69;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26989:69:0;-1:-1:-1;;;;;26989:69: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;26989:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;26989:69:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26989:69:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;26989:69:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;15:2;7:11;;4:2;;;31:1;28;21:12;4:2;26989:69:0;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;261:11;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;26989:69:0;;421:4:-1;412:14;;;;26989:69:0;;;;;412:14:-1;26989:69: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;26989:69:0;;;;;;;;;;;;26795:275;;26276:801;;;;;;;;;:::o;25798:398::-;25878:13;25894:26;25914:5;25894:19;:26::i;:::-;25878:42;-1:-1:-1;25935:9:0;;25931:258;;-1:-1:-1;;;;;25965:13:0;;19554:42;25965:13;25961:217;;;19554:42;-1:-1:-1;;;;;25999:20:0;;26020:5;25999:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;25999:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25999:27:0;;;;26045:36;26071:2;26075:5;26045:25;:36::i;:::-;25961:217;;;26122:40;26145:5;26152:2;26156:5;26122:22;:40::i;20644:461::-;20790:15;;20857:14;:4;20866;20857:14;:8;:14;:::i;:::-;20839;:4;20848;20839:14;:8;:14;:::i;:::-;:32;20835:263;;20898:40;20915:4;20921;20927;20933;20898:16;:40::i;:::-;20888:50;;20966:5;20953:18;;20835:263;;;21014:40;21031:4;21037;21043;21049;21014:16;:40::i;:::-;21004:50;;21082:4;21069:17;;20835:263;20644:461;;;;;;;:::o;9937:176::-;10045:12;;;10008;10045;;;;;;;;;-1:-1:-1;;;;;10026:7:0;;;10040:3;;10026:32;;;;;;;;;;;;;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;;;10026:32:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;10007:51:0;;;10077:7;10069:36;;;;;-1:-1:-1;;;10069:36:0;;;;;;;;;;;;-1:-1:-1;;;10069:36:0;;;;;;;;;;;;;;4258:470;4316:7;4560:6;4556:47;;-1:-1:-1;4590:1:0;4583:8;;4556:47;4627:5;;;4631:1;4627;:5;:1;4651:5;;;;;:10;4643:56;;;;-1:-1:-1;;;4643:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4719:1;-1:-1:-1;4258:470:0;;;;;:::o;21383:648::-;21531:7;21577:14;:4;21586;21577:14;:8;:14;:::i;:::-;21559;:4;21568;21559:14;:8;:14;:::i;:::-;:32;;21551:53;;;;;-1:-1:-1;;;21551:53:0;;;;;;;;;;;;-1:-1:-1;;;21551:53:0;;;;;;;;;;;;;;;21629:4;21617:9;21656:24;21664:5;21675:4;21656:24;:18;:24;:::i;:::-;21644:36;-1:-1:-1;21691:10:0;21704:36;21725:14;:4;21734;21725:14;:8;:14;:::i;:::-;21705;:4;21714;21705:14;:8;:14;:::i;:::-;21704:20;:36;:20;:36;:::i;:::-;21691:49;-1:-1:-1;21751:9:0;21763:43;21801:4;21763:33;21781:14;:4;21790;21781:14;:8;:14;:::i;:::-;21763:13;:2;21770:5;21763:13;:6;:13;:::i;:::-;:17;:33;:17;:33;:::i;:::-;:37;:43;:37;:43;:::i;:::-;21751:55;-1:-1:-1;21819:9:0;21831:15;21844:1;21831:8;:1;21751:55;21831:8;:5;:8;:::i;:15::-;21819:27;-1:-1:-1;21857:9:0;21869:26;21879:15;21819:27;21879:8;21885:1;;21879:8;:5;:8;:::i;:::-;:12;:15;:12;:15;:::i;:::-;21869:9;:26::i;:::-;21857:38;-1:-1:-1;21908:17:0;21928:8;21857:38;21934:1;21928:8;:5;:8;:::i;:::-;21908:28;-1:-1:-1;21947:19:0;21969:8;:1;21975;21969:8;:5;:8;:::i;:::-;21947:30;-1:-1:-1;21997:26:0;:9;21947:30;21997:26;:13;:26;:::i;:::-;21990:33;21383:648;-1:-1:-1;;;;;;;;;;;;;21383:648:0:o;3823:184::-;3881:7;3914:1;3909;:6;;3901:49;;;;;-1:-1:-1;;;3901:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3973:5:0;;;3823:184::o;3367:181::-;3425:7;3457:5;;;3481:6;;;;3473:46;;;;;-1:-1:-1;;;3473:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;5196:333;5254:7;5353:1;5349;:5;5341:44;;;;;-1:-1:-1;;;5341:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5396:9;5412:1;5408;:5;;;;;;;5196:333;-1:-1:-1;;;;5196:333:0:o;8104:303::-;8149:6;8176:1;8172;:5;8168:232;;;-1:-1:-1;8198:1:0;8231;8227;8223:5;;:9;8247:92;8258:1;8254;:5;8247:92;;;8284:1;8280:5;;8322:1;8317;8313;8309;:5;;;;;;:9;8308:15;;;;;;8304:19;;8247:92;;;8168:232;;;;8360:6;;8356:44;;-1:-1:-1;8387:1:0;8104:303;;;:::o

Swarm Source

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