Contract 0x0c70253b7979b23558e387f1f8f7a5448ae8abf3

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd0156deaacd705d3b95cdb6c92309a0d6ca54b637ea755739bcdd0fea9474496Approve69112362021-07-30 6:44:33127 days 10 hrs ago0x0a776abbaae0e2161d0e131f57e605efbea4b99b IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x7d97163acdbc44a8f923e899d0b5a41e56baa86ab63c3246abf13d9c96697b98Transfer69112312021-07-30 6:44:18127 days 10 hrs ago0xa5eb74d2f3cebd3bc6211b6eca7c551d1ac496a0 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.0001150922.25
0x87a680d3afcaa9bb12df79315f63d70ec91bce8ad950b57ff0efe9e9c9b74130Approve68336682021-07-27 14:06:09130 days 3 hrs ago0x3d78f9d556d1f50a3e5e0d159077fdbb3628d465 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x2bcb5428c0b0e289ad81eee0dcbcb55481820aa9a125d26e5034484b4d7c52f3Approve68323202021-07-27 12:58:45130 days 4 hrs ago0x3196aeaf2747180e0ad97f3fe6faeb631c3f1d93 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x539336970d484c943821ff78806982e118695a25cefd9a124f84dfe2ccf87d49Approve68322972021-07-27 12:57:36130 days 4 hrs ago0x9afa49c7305f5b961b74f52d91d746533499c96d IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0xc4c1154fb07c3e5d0b7aa5ede6cf97f0cd700990a9c57a77d19ea1a4cc6896a0Approve68321182021-07-27 12:48:39130 days 4 hrs ago0x97fcd71cc4c187875c969bb6f57d71b50ba630ee IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x0cbf21a27b17db4bb1d13f2d392746a401737eef00abe8de3851f05d7564aec4Approve68268002021-07-27 8:22:44130 days 9 hrs ago0xd7e630afcf128feb8b9071a8412914478c00c22a IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x100a26c1ffbea76b6717b1f39cef2ab86c8e387840e525eabc5e0ee1a09adb48Approve68264992021-07-27 8:07:41130 days 9 hrs ago0x20a6be921ebc0c7dfa8396d2d8359d37cc914c64 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0xedbfb37243547af2d6f8402b6c02acea92442455c38a7242a59b160581719900Approve68264922021-07-27 8:07:20130 days 9 hrs ago0xd7e630afcf128feb8b9071a8412914478c00c22a IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x3e521b4a585902516c6f45b1d2b4ea471095ea537a5ddb14641ecb17d331ca5bApprove68261452021-07-27 7:49:59130 days 9 hrs ago0xdfb90b6013830ba7b83b3f0a161d425ac81ce068 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x33abb00018d2fdd885dfa5786baceeaad4d9c27b7427c38b7c75388ef83e3342Approve68258212021-07-27 7:33:47130 days 10 hrs ago0x81bfc3caece579b09cfbafad69f6fdcca7b46029 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0xebe4d07b86c95b7f905f2a54fd328e23aebe699f06c0e1ee35933a56752afd25Approve68255552021-07-27 7:20:29130 days 10 hrs ago0x60b5929c78110180a689463c0fde2f9dac23d248 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0xbb90c2dd00b3a7d03e9f8d02073b2f81dc11e55665c57defa804660af907fd04Approve68253782021-07-27 7:11:38130 days 10 hrs ago0xff269a53e142ca6256dd90e303c47ecfdbbec72c IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x52dec281faefb283fd494e426a6ffd00222069b10319bb14d9ff1d3c2e64645eApprove68253772021-07-27 7:11:35130 days 10 hrs ago0xa5eb74d2f3cebd3bc6211b6eca7c551d1ac496a0 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0xf637e04f531f45bbb3ed205d884ac547324544348aa5bc4fb8bb491ae8a6a7b4Approve68253572021-07-27 7:10:35130 days 10 hrs ago0x3d78f9d556d1f50a3e5e0d159077fdbb3628d465 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x9a277a7936f606b6c89ebc6ab6d82d5d06d00e8a0e8fd769174676c69f3c4764Approve68253272021-07-27 7:09:05130 days 10 hrs ago0x0d1876f223a02257f02efddfbfc350022b33220f IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x69fac694a22a4174e32e0fd9f012501856c4b42c5049610ca760057ff2bcf012Approve68253182021-07-27 7:08:38130 days 10 hrs ago0xdac752245d44f396630c84394e5db9b5de6614dd IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x874853e804cd8757c514fa7f09b21e719dc778b42802ffda75bb7f344e0a194cApprove68253032021-07-27 7:07:53130 days 10 hrs ago0x54e83ce35884af2e263952f381013757218ecba7 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0xd75b27cad13e7fe07c5dd502520d0b68aa30caf92e98d7a0822a8741d12e2863Approve68252832021-07-27 7:06:53130 days 10 hrs ago0xdd1da3ba29b9215e2e90d9bdb30c3c79adb34b4c IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0xf497515c36deea9428059f71d0978f577d1b963587ae33c054597349d4bb5a26Approve68252052021-07-27 7:02:59130 days 10 hrs ago0x821de5512ef425c5e78bb976042cd4d1135af648 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00005659652.25
0xc5695da73190a008c4658f5ed286ac553a3fe564c68774d266e4019234826e94Approve68251972021-07-27 7:02:35130 days 10 hrs ago0x821de5512ef425c5e78bb976042cd4d1135af648 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x2e779f97df5b655e7088566b4f79bd4569d18169c361cd05196e03d65ede0307Approve68244432021-07-27 6:24:53130 days 11 hrs ago0xa60eb6c6fad8e47dbaefa41a3c0e59ee10c28784 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x4f37c3cd0dddbae2cc311d4150a89fd48047342dfb4715cfb62a3a63a8d21395Approve68234912021-07-27 5:37:17130 days 12 hrs ago0x791092b75f9af60cd471d3b7bebc89f9ea6a5657 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
0x29a98cb5f309b7eab11c329f72dccadb66dbb718ee3771f1937d4cd7b9e166f3Approve68103962021-07-26 18:42:32130 days 23 hrs ago0x956595370cf28cdbafe93707d36133d016cd3955 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009912152.25
0xeb119180d0251b781012a2d18685838b4a8005872fc892625df7efdbb03fefe9Approve68062192021-07-26 15:13:40131 days 2 hrs ago0x0f1b8176466695875a421893333455a2d5016362 IN  0x0c70253b7979b23558e387f1f8f7a5448ae8abf30 HT0.00009979652.25
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x246c4bbd6b090a4ec12bdf92014e79dfeecd8e171ce723fdc5bd4b3c5c4c00eb68028942021-07-26 12:27:25131 days 5 hrs ago 0x3ef4ad87ea3cd9b1e97d40128464b11871774a12  Contract Creation0 HT
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x65683423823653bdf66020e14c5d37a26a94eb63

Contract Name:
DexPair

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at hecoinfo.com on 2021-07-26
*/

/**
 *Submitted for verification at hecoinfo.com on 2021-07-16
*/

pragma solidity >=0.5.0 <0.8.0;

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

    function FEE_RATE_DENOMINATOR() external view returns (uint256);

    function feeRateNumerator() external view returns (uint256);

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function feeToRate() external view returns (uint256);

    function initCodeHash() external view returns (bytes32);

    function pairFeeToRate(address) external view returns (uint256);

    function pairFees(address) external view returns (uint256);

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

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

    function allPairsLength() external view returns (uint);

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

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;

    function addPair(address) external returns (bool);

    function delPair(address) external returns (bool);

    function getSupportListLength() external view returns (uint256);

    function isSupportPair(address pair) external view returns (bool);

    function getSupportPair(uint256 index) external view returns (address);

    function setFeeRateNumerator(uint256) external;

    function setPairFees(address pair, uint256 fee) external;

    function setDefaultFeeToRate(uint256) external;

    function setPairFeeToRate(address pair, uint256 rate) external;

    function getPairFees(address) external view returns (uint256);

    function getPairRate(address) external view returns (uint256);

    function sortTokens(address tokenA, address tokenB) external pure returns (address token0, address token1);

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

    function getReserves(address tokenA, address tokenB) external view returns (uint256 reserveA, uint256 reserveB);

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

    function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut, address token0, address token1) external view returns (uint256 amountOut);

    function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut, address token0, address token1) external view returns (uint256 amountIn);

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

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

interface IDexPair {
    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;
}

interface IDexERC20 {
    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;
}

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

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

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

    function decimals() external view 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);
}

interface IswapV2Callee {
    function swapV2Call(address sender, uint amount0, uint amount1, bytes calldata data) external;
}

library SafeMath {
    uint256 constant WAD = 10 ** 18;
    uint256 constant RAY = 10 ** 27;

    function wad() public pure returns (uint256) {
        return WAD;
    }

    function ray() public pure returns (uint256) {
        return RAY;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    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;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    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;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }

    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a <= b ? a : b;
    }

    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    function sqrt(uint256 a) internal pure returns (uint256 b) {
        if (a > 3) {
            b = a;
            uint256 x = a / 2 + 1;
            while (x < b) {
                b = x;
                x = (a / x + x) / 2;
            }
        } else if (a != 0) {
            b = 1;
        }
    }

    function wmul(uint256 a, uint256 b) internal pure returns (uint256) {
        return mul(a, b) / WAD;
    }

    function wmulRound(uint256 a, uint256 b) internal pure returns (uint256) {
        return add(mul(a, b), WAD / 2) / WAD;
    }

    function rmul(uint256 a, uint256 b) internal pure returns (uint256) {
        return mul(a, b) / RAY;
    }

    function rmulRound(uint256 a, uint256 b) internal pure returns (uint256) {
        return add(mul(a, b), RAY / 2) / RAY;
    }

    function wdiv(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(mul(a, WAD), b);
    }

    function wdivRound(uint256 a, uint256 b) internal pure returns (uint256) {
        return add(mul(a, WAD), b / 2) / b;
    }

    function rdiv(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(mul(a, RAY), b);
    }

    function rdivRound(uint256 a, uint256 b) internal pure returns (uint256) {
        return add(mul(a, RAY), b / 2) / b;
    }

    function wpow(uint256 x, uint256 n) internal pure returns (uint256) {
        uint256 result = WAD;
        while (n > 0) {
            if (n % 2 != 0) {
                result = wmul(result, x);
            }
            x = wmul(x, x);
            n /= 2;
        }
        return result;
    }

    function rpow(uint256 x, uint256 n) internal pure returns (uint256) {
        uint256 result = RAY;
        while (n > 0) {
            if (n % 2 != 0) {
                result = rmul(result, x);
            }
            x = rmul(x, x);
            n /= 2;
        }
        return result;
    }
}

library UQ112x112 {
    uint224 constant Q112 = 2 ** 112;

    // encode a uint112 as a UQ112x112
    function encode(uint112 y) internal pure returns (uint224 z) {
        z = uint224(y) * Q112;
        // never overflows
    }

    // divide a UQ112x112 by a uint112, returning a UQ112x112
    function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) {
        z = x / uint224(y);
    }
}

library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

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

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

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

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

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

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

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

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

contract DexERC20 is IDexERC20 {
    using SafeMath for uint;

    string public constant name = 'COCO LP Token';
    string public constant symbol = 'COCO LP';
    uint8 public constant decimals = 18;
    uint  public totalSupply;
    mapping(address => uint) public balanceOf;
    mapping(address => mapping(address => uint)) public allowance;

    bytes32 public DOMAIN_SEPARATOR;
    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
    mapping(address => uint) public nonces;

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

    constructor() public {
        uint chainId;
        assembly {
            chainId := chainid
        }
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),
                keccak256(bytes(name)),
                keccak256(bytes('1')),
                chainId,
                address(this)
            )
        );
    }

    function _mint(address to, uint value) internal {
        totalSupply = totalSupply.add(value);
        balanceOf[to] = balanceOf[to].add(value);
        emit Transfer(address(0), to, value);
    }

    function _burn(address from, uint value) internal {
        balanceOf[from] = balanceOf[from].sub(value);
        totalSupply = totalSupply.sub(value);
        emit Transfer(from, address(0), value);
    }

    function _approve(address owner, address spender, uint value) private {
        allowance[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

    function _transfer(address from, address to, uint value) private {
        balanceOf[from] = balanceOf[from].sub(value);
        balanceOf[to] = balanceOf[to].add(value);
        emit Transfer(from, to, value);
    }

    function approve(address spender, uint value) external returns (bool) {
        _approve(msg.sender, spender, value);
        return true;
    }

    function transfer(address to, uint value) external returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    function transferFrom(address from, address to, uint value) external returns (bool) {
        if (allowance[from][msg.sender] != uint(- 1)) {
            allowance[from][msg.sender] = allowance[from][msg.sender].sub(value);
        }
        _transfer(from, to, value);
        return true;
    }

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external {
        require(deadline >= block.timestamp, 'DexSwap: EXPIRED');
        bytes32 digest = keccak256(
            abi.encodePacked(
                '\x19\x01',
                DOMAIN_SEPARATOR,
                keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
            )
        );
        address recoveredAddress = ecrecover(digest, v, r, s);
        require(recoveredAddress != address(0) && recoveredAddress == owner, 'DexSwap: INVALID_SIGNATURE');
        _approve(owner, spender, value);
    }
}

contract DexPair is IDexPair, DexERC20 {
    using SafeMath  for uint;
    using UQ112x112 for uint224;

    uint public constant MINIMUM_LIQUIDITY = 10 ** 3;
    bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));

    address public factory;
    address public token0;
    address public token1;

    uint112 private reserve0;           // uses single storage slot, accessible via getReserves
    uint112 private reserve1;           // uses single storage slot, accessible via getReserves
    uint32  private blockTimestampLast; // uses single storage slot, accessible via getReserves

    uint public price0CumulativeLast;
    uint public price1CumulativeLast;
    uint public kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event

    uint private unlocked = 1;
    modifier lock() {
        require(unlocked == 1, 'DexSwap: LOCKED');
        unlocked = 0;
        _;
        unlocked = 1;
    }

    function getReserves() public view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast) {
        _reserve0 = reserve0;
        _reserve1 = reserve1;
        _blockTimestampLast = blockTimestampLast;
    }

    function _safeTransfer(address token, address to, uint value) private {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'DexSwap: TRANSFER_FAILED');
    }

    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);

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

    // called once by the factory at time of deployment
    function initialize(address _token0, address _token1) external {
        require(msg.sender == factory, 'DexSwap: FORBIDDEN');
        // sufficient check
        token0 = _token0;
        token1 = _token1;
    }

    // update reserves and, on the first call per block, price accumulators
    function _update(uint balance0, uint balance1, uint112 _reserve0, uint112 _reserve1) private {
        require(balance0 <= uint112(- 1) && balance1 <= uint112(- 1), 'DexSwap: OVERFLOW');
        uint32 blockTimestamp = uint32(block.timestamp % 2 ** 32);
        uint32 timeElapsed = blockTimestamp - blockTimestampLast;
        // overflow is desired
        if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {
            // * never overflows, and + overflow is desired
            price0CumulativeLast += uint(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) * timeElapsed;
            price1CumulativeLast += uint(UQ112x112.encode(_reserve0).uqdiv(_reserve1)) * timeElapsed;
        }
        reserve0 = uint112(balance0);
        reserve1 = uint112(balance1);
        blockTimestampLast = blockTimestamp;
        emit Sync(reserve0, reserve1);
    }

    // if fee is on, mint liquidity equivalent to 1/6th of the growth in sqrt(k)
    function _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) {
        address feeTo = IDexFactory(factory).feeTo();
        feeOn = feeTo != address(0) && IDexFactory(factory).getPairRate(address(this)) != 99;
        uint _kLast = kLast;
        // gas savings
        if (feeOn) {
            if (_kLast != 0) {
                uint rootK = SafeMath.sqrt(uint(_reserve0).mul(_reserve1));
                uint rootKLast = SafeMath.sqrt(_kLast);
                if (rootK > rootKLast) {
                    uint numerator = totalSupply.mul(rootK.sub(rootKLast)).mul(10);
                    uint denominator = rootK.mul(IDexFactory(factory).getPairRate(address(this))).add(rootKLast.mul(10));
                    uint liquidity = numerator / denominator;
                    if (liquidity > 0) _mint(feeTo, liquidity);
                }
            }
        } else if (_kLast != 0) {
            kLast = 0;
        }
    }

    // this low-level function should be called from a contract which performs important safety checks
    function mint(address to) external lock returns (uint liquidity) {
        (uint112 _reserve0, uint112 _reserve1,) = getReserves();
        // gas savings
        uint balance0 = IERC20(token0).balanceOf(address(this));
        uint balance1 = IERC20(token1).balanceOf(address(this));
        uint amount0 = balance0.sub(_reserve0);
        uint amount1 = balance1.sub(_reserve1);

        bool feeOn = _mintFee(_reserve0, _reserve1);
        uint _totalSupply = totalSupply;
        // gas savings, must be defined here since totalSupply can update in _mintFee
        if (_totalSupply == 0) {
            liquidity = SafeMath.sqrt(amount0.mul(amount1)).sub(MINIMUM_LIQUIDITY);
            _mint(address(0), MINIMUM_LIQUIDITY);
            // permanently lock the first MINIMUM_LIQUIDITY tokens
        } else {
            liquidity = SafeMath.min(amount0.mul(_totalSupply) / _reserve0, amount1.mul(_totalSupply) / _reserve1);
        }
        require(liquidity > 0, 'DexSwap: INSUFFICIENT_LIQUIDITY_MINTED');
        _mint(to, liquidity);

        _update(balance0, balance1, _reserve0, _reserve1);
        if (feeOn) kLast = uint(reserve0).mul(reserve1);
        // reserve0 and reserve1 are up-to-date
        emit Mint(msg.sender, amount0, amount1);
    }

    // this low-level function should be called from a contract which performs important safety checks
    function burn(address to) external lock returns (uint amount0, uint amount1) {
        (uint112 _reserve0, uint112 _reserve1,) = getReserves();
        // gas savings
        address _token0 = token0;
        // gas savings
        address _token1 = token1;
        // gas savings
        uint balance0 = IERC20(_token0).balanceOf(address(this));
        uint balance1 = IERC20(_token1).balanceOf(address(this));
        uint liquidity = balanceOf[address(this)];

        bool feeOn = _mintFee(_reserve0, _reserve1);
        uint _totalSupply = totalSupply;
        // gas savings, must be defined here since totalSupply can update in _mintFee
        amount0 = liquidity.mul(balance0) / _totalSupply;
        // using balances ensures pro-rata distribution
        amount1 = liquidity.mul(balance1) / _totalSupply;
        // using balances ensures pro-rata distribution
        require(amount0 > 0 && amount1 > 0, 'DexSwap: INSUFFICIENT_LIQUIDITY_BURNED');
        _burn(address(this), liquidity);
        _safeTransfer(_token0, to, amount0);
        _safeTransfer(_token1, to, amount1);
        balance0 = IERC20(_token0).balanceOf(address(this));
        balance1 = IERC20(_token1).balanceOf(address(this));

        _update(balance0, balance1, _reserve0, _reserve1);
        if (feeOn) kLast = uint(reserve0).mul(reserve1);
        // reserve0 and reserve1 are up-to-date
        emit Burn(msg.sender, amount0, amount1, to);
    }

    // this low-level function should be called from a contract which performs important safety checks
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external lock {
        require(amount0Out > 0 || amount1Out > 0, 'DexSwap: INSUFFICIENT_OUTPUT_AMOUNT');
        (uint112 _reserve0, uint112 _reserve1,) = getReserves();
        // gas savings
        require(amount0Out < _reserve0 && amount1Out < _reserve1, 'DexSwap: INSUFFICIENT_LIQUIDITY');

        uint balance0;
        uint balance1;
        {// scope for _token{0,1}, avoids stack too deep errors
            address _token0 = token0;
            address _token1 = token1;
            require(to != _token0 && to != _token1, 'DexSwap: INVALID_TO');
            if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out);
            // optimistically transfer tokens
            if (amount1Out > 0) _safeTransfer(_token1, to, amount1Out);
            // optimistically transfer tokens
            if (data.length > 0) IswapV2Callee(to).swapV2Call(msg.sender, amount0Out, amount1Out, data);
            balance0 = IERC20(_token0).balanceOf(address(this));
            balance1 = IERC20(_token1).balanceOf(address(this));
        }
        uint amount0In = balance0 > _reserve0 - amount0Out ? balance0 - (_reserve0 - amount0Out) : 0;
        uint amount1In = balance1 > _reserve1 - amount1Out ? balance1 - (_reserve1 - amount1Out) : 0;
        require(amount0In > 0 || amount1In > 0, 'DexSwap: INSUFFICIENT_INPUT_AMOUNT');
        {// scope for reserve{0,1}Adjusted, avoids stack too deep errors
            uint balance0Adjusted = balance0.mul(1e4).sub(amount0In.mul(IDexFactory(factory).getPairFees(address(this))));
            uint balance1Adjusted = balance1.mul(1e4).sub(amount1In.mul(IDexFactory(factory).getPairFees(address(this))));
            require(balance0Adjusted.mul(balance1Adjusted) >= uint(_reserve0).mul(_reserve1).mul(1e8), 'DexSwap: K');
        }

        _update(balance0, balance1, _reserve0, _reserve1);
        emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);
    }

    // force balances to match reserves
    function skim(address to) external lock {
        address _token0 = token0;
        // gas savings
        address _token1 = token1;
        // gas savings
        _safeTransfer(_token0, to, IERC20(_token0).balanceOf(address(this)).sub(reserve0));
        _safeTransfer(_token1, to, IERC20(_token1).balanceOf(address(this)).sub(reserve1));
    }

    // force reserves to match balances
    function sync() external lock {
        _update(IERC20(token0).balanceOf(address(this)), IERC20(token1).balanceOf(address(this)), reserve0, reserve1);
    }

}

contract DexFactory is IDexFactory {
    using SafeMath for uint256;
    using EnumerableSet for EnumerableSet.AddressSet;
    EnumerableSet.AddressSet private _supportList;

    uint256 public constant FEE_RATE_DENOMINATOR = 1e4;
    uint256 public feeRateNumerator = 30;
    address public feeTo;
    address public feeToSetter;
    uint256 public feeToRate = 5;
    bytes32 public initCodeHash;

    mapping(address => uint256) public pairFeeToRate;
    mapping(address => uint256) public pairFees;
    mapping(address => mapping(address => address)) public getPair;
    address[] public allPairs;

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

    constructor(address _feeToSetter) public {
        feeToSetter = _feeToSetter;
        initCodeHash = keccak256(abi.encodePacked(type(DexPair).creationCode));
    }

    function allPairsLength() external view returns (uint) {
        return allPairs.length;
    }

    function createPair(address tokenA, address tokenB) external returns (address pair) {
        require(tokenA != tokenB, 'DexSwapFactory: IDENTICAL_ADDRESSES');
        (address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'DexSwapFactory: ZERO_ADDRESS');
        require(getPair[token0][token1] == address(0), 'DexSwapFactory: PAIR_EXISTS');
        // single check is sufficient
        bytes memory bytecode = type(DexPair).creationCode;
        bytes32 salt = keccak256(abi.encodePacked(token0, token1));
        assembly {
            pair := create2(0, add(bytecode, 32), mload(bytecode), salt)
        }
        IDexPair(pair).initialize(token0, token1);
        getPair[token0][token1] = pair;
        getPair[token1][token0] = pair;
        // populate mapping in the reverse direction
        allPairs.push(pair);
        emit PairCreated(token0, token1, pair, allPairs.length);
    }

    function setFeeTo(address _feeTo) external {
        require(msg.sender == feeToSetter, 'DexSwapFactory: FORBIDDEN');
        feeTo = _feeTo;
    }

    function setFeeToSetter(address _feeToSetter) external {
        require(msg.sender == feeToSetter, 'DexSwapFactory: FORBIDDEN');
        require(_feeToSetter != address(0), "DexSwapFactory: FeeToSetter is zero address");
        feeToSetter = _feeToSetter;
    }

    function addPair(address pair) external returns (bool){
        require(msg.sender == feeToSetter, 'DexSwapFactory: FORBIDDEN');
        require(pair != address(0), 'DexSwapFactory: pair is the zero address');
        return EnumerableSet.add(_supportList, pair);
    }

    function delPair(address pair) external returns (bool){
        require(msg.sender == feeToSetter, 'DexSwapFactory: FORBIDDEN');
        require(pair != address(0), 'DexSwapFactory: pair is the zero address');
        return EnumerableSet.remove(_supportList, pair);
    }

    function getSupportListLength() public view returns (uint256) {
        return EnumerableSet.length(_supportList);
    }

    function isSupportPair(address pair) public view returns (bool){
        return EnumerableSet.contains(_supportList, pair);
    }

    function getSupportPair(uint256 index) external view returns (address) {
        require(msg.sender == feeToSetter, 'DexSwapFactory: FORBIDDEN');
        require(index <= getSupportListLength() - 1, "index out of bounds");
        return EnumerableSet.at(_supportList, index);
    }

    // Set default fee ,max is 0.003%
    function setFeeRateNumerator(uint256 _feeRateNumerator) external {
        require(msg.sender == feeToSetter, 'DexSwapFactory: FORBIDDEN');
        require(_feeRateNumerator <= 30, "DexSwapFactory: EXCEEDS_FEE_RATE_DENOMINATOR");
        feeRateNumerator = _feeRateNumerator;
    }

    // Set pair fee , max is 0.003%
    function setPairFees(address pair, uint256 fee) external {
        require(msg.sender == feeToSetter, 'DexSwapFactory: FORBIDDEN');
        require(fee <= 30, 'DexSwapFactory: EXCEEDS_FEE_RATE_DENOMINATOR');
        pairFees[pair] = fee;
    }

    // Set the default fee rate ,if set to 1/100 no handling fee. ** should multi by 10 **
    function setDefaultFeeToRate(uint256 rate) external {
        require(msg.sender == feeToSetter, 'DexSwapFactory: FORBIDDEN');
        require(rate > 0 && rate <= 100, "DexSwapFactory: FEE_TO_RATE_OVERFLOW");
        feeToRate = rate.sub(1);
    }

    // Set the commission rate of the pair ,if set to 1/10 no handling fee. ** should multi by 10 **
    function setPairFeeToRate(address pair, uint256 rate) external {
        require(msg.sender == feeToSetter, 'DexSwapFactory: FORBIDDEN');
        require(rate > 0 && rate <= 100, "DexSwapFactory: FEE_TO_RATE_OVERFLOW");
        pairFeeToRate[pair] = rate.sub(1);
    }

    function getPairFees(address pair) public view returns (uint256){
        require(pair != address(0), 'DexSwapFactory: pair is the zero address');
        if (isSupportPair(pair)) {
            return pairFees[pair];
        } else {
            return feeRateNumerator;
        }
    }

    function getPairRate(address pair) external view returns (uint256) {
        require(pair != address(0), 'DexSwapFactory: pair is the zero address');
        if (isSupportPair(pair)) {
            return pairFeeToRate[pair];
        } else {
            return feeToRate;
        }
    }

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) public pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'DexSwapFactory: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'DexSwapFactory: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address tokenA, address tokenB) public view returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(uint(keccak256(abi.encodePacked(
                hex'ff',
                address(this),
                keccak256(abi.encodePacked(token0, token1)),
                initCodeHash
            ))));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address tokenA, address tokenB) public view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IDexPair(pairFor(tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
    function quote(uint amountA, uint reserveA, uint reserveB) public pure returns (uint amountB) {
        require(amountA > 0, 'DexSwapFactory: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'DexSwapFactory: INSUFFICIENT_LIQUIDITY');
        amountB = amountA.mul(reserveB) / reserveA;
    }

    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut, address token0, address token1) public view returns (uint amountOut) {
        require(amountIn > 0, 'DexSwapFactory: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'DexSwapFactory: INSUFFICIENT_LIQUIDITY');
        uint256 fee = getPairFees(pairFor(token0, token1));
        uint amountInWithFee = amountIn.mul(FEE_RATE_DENOMINATOR.sub(fee));
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(FEE_RATE_DENOMINATOR).add(amountInWithFee);
        amountOut = numerator / denominator;
    }

    // given an output amount of an asset and pair reserves, returns a required input amount of the other asset
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut, address token0, address token1) public view returns (uint amountIn) {
        require(amountOut > 0, 'DexSwapFactory: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'DexSwapFactory: INSUFFICIENT_LIQUIDITY');
        uint256 fee = getPairFees(pairFor(token0, token1));
        uint numerator = reserveIn.mul(amountOut).mul(FEE_RATE_DENOMINATOR);
        uint denominator = reserveOut.sub(amountOut).mul(FEE_RATE_DENOMINATOR.sub(fee));
        amountIn = (numerator / denominator).add(1);
    }

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(uint amountIn, address[] memory path) public view returns (uint[] memory amounts) {
        require(path.length >= 2, 'DexSwapFactory: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[0] = amountIn;
        for (uint i; i < path.length - 1; i++) {
            (uint reserveIn, uint reserveOut) = getReserves(path[i], path[i + 1]);
            amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut, path[i], path[i + 1]);
        }
    }

    // performs chained getAmountIn calculations on any number of pairs
    function getAmountsIn(uint amountOut, address[] memory path) public view returns (uint[] memory amounts) {
        require(path.length >= 2, 'DexSwapFactory: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[amounts.length - 1] = amountOut;
        for (uint i = path.length - 1; i > 0; i--) {
            (uint reserveIn, uint reserveOut) = getReserves(path[i - 1], path[i]);
            amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut, path[i - 1], path[i]);
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint112","name":"reserve0","type":"uint112"},{"indexed":false,"internalType":"uint112","name":"reserve1","type":"uint112"}],"name":"Sync","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MINIMUM_LIQUIDITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"_reserve0","type":"uint112"},{"internalType":"uint112","name":"_reserve1","type":"uint112"},{"internalType":"uint32","name":"_blockTimestampLast","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token0","type":"address"},{"internalType":"address","name":"_token1","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"kLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"price0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"skim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount0Out","type":"uint256"},{"internalType":"uint256","name":"amount1Out","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"sync","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526001600c5534801561001557600080fd5b5060405146908060526125de8239604080519182900360520182208282018252600d83526c21a7a1a7902628102a37b5b2b760991b6020938401528151808301835260018152603160f81b908401528151808401919091527fd83dabd687036fc05713a8e803f37ac06547dc47eb51c9ec3bc79a24a1fd7b27818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c09094019052825192019190912060035550600580546001600160a01b031916331790556124d6806101086000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a714610534578063d505accf1461053c578063dd62ed3e1461058d578063fff6cae9146105bb576101a9565b8063ba9a7a56146104fe578063bc25cf7714610506578063c45a01551461052c576101a9565b80637ecebe00116100d35780637ecebe001461046557806389afcb441461048b57806395d89b41146104ca578063a9059cbb146104d2576101a9565b80636a6278421461041157806370a08231146104375780637464fc3d1461045d576101a9565b806323b872dd116101665780633644e515116101405780633644e515146103cb578063485cc955146103d35780635909c0d5146104015780635a3d549314610409576101a9565b806323b872dd1461036f57806330adf81f146103a5578063313ce567146103ad576101a9565b8063022c0d9f146101ae57806306fdde031461023c5780630902f1ac146102b9578063095ea7b3146102f15780630dfe16811461033157806318160ddd14610355575b600080fd5b61023a600480360360808110156101c457600080fd5b8135916020810135916001600160a01b0360408301351691908101906080810160608201356401000000008111156101fb57600080fd5b82018360208201111561020d57600080fd5b8035906020019184600183028401116401000000008311171561022f57600080fd5b5090925090506105c3565b005b610244610bc9565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027e578181015183820152602001610266565b50505050905090810190601f1680156102ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102c1610bf2565b604080516001600160701b03948516815292909316602083015263ffffffff168183015290519081900360600190f35b61031d6004803603604081101561030757600080fd5b506001600160a01b038135169060200135610c1c565b604080519115158252519081900360200190f35b610339610c33565b604080516001600160a01b039092168252519081900360200190f35b61035d610c42565b60408051918252519081900360200190f35b61031d6004803603606081101561038557600080fd5b506001600160a01b03813581169160208101359091169060400135610c48565b61035d610ce2565b6103b5610d06565b6040805160ff9092168252519081900360200190f35b61035d610d0b565b61023a600480360360408110156103e957600080fd5b506001600160a01b0381358116916020013516610d11565b61035d610d93565b61035d610d99565b61035d6004803603602081101561042757600080fd5b50356001600160a01b0316610d9f565b61035d6004803603602081101561044d57600080fd5b50356001600160a01b031661109d565b61035d6110af565b61035d6004803603602081101561047b57600080fd5b50356001600160a01b03166110b5565b6104b1600480360360208110156104a157600080fd5b50356001600160a01b03166110c7565b6040805192835260208301919091528051918290030190f35b61024461146b565b61031d600480360360408110156104e857600080fd5b506001600160a01b03813516906020013561148e565b61035d61149b565b61023a6004803603602081101561051c57600080fd5b50356001600160a01b03166114a1565b61033961160a565b610339611619565b61023a600480360360e081101561055257600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611628565b61035d600480360360408110156105a357600080fd5b506001600160a01b0381358116916020013516611828565b61023a611845565b600c5460011461060c576040805162461bcd60e51b815260206004820152600f60248201526e11195e14ddd85c0e881313d0d2d151608a1b604482015290519081900360640190fd5b6000600c558415158061061f5750600084115b61065a5760405162461bcd60e51b81526004018080602001828103825260238152602001806124596023913960400191505060405180910390fd5b600080610665610bf2565b5091509150816001600160701b03168710801561068a5750806001600160701b031686105b6106db576040805162461bcd60e51b815260206004820152601f60248201527f446578537761703a20494e53554646494349454e545f4c495155494449545900604482015290519081900360640190fd5b60065460075460009182916001600160a01b039182169190811690891682148015906107195750806001600160a01b0316896001600160a01b031614155b610760576040805162461bcd60e51b8152602060048201526013602482015272446578537761703a20494e56414c49445f544f60681b604482015290519081900360640190fd5b8a1561077157610771828a8d6119a5565b891561078257610782818a8c6119a5565b861561083d57886001600160a01b031663b2ff9f26338d8d8c8c6040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b15801561082457600080fd5b505af1158015610838573d6000803e3d6000fd5b505050505b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561088357600080fd5b505afa158015610897573d6000803e3d6000fd5b505050506040513d60208110156108ad57600080fd5b5051604080516370a0823160e01b815230600482015290519195506001600160a01b038316916370a0823191602480820192602092909190829003018186803b1580156108f957600080fd5b505afa15801561090d573d6000803e3d6000fd5b505050506040513d602081101561092357600080fd5b5051925060009150506001600160701b0385168a90038311610946576000610955565b89856001600160701b03160383035b9050600089856001600160701b0316038311610972576000610981565b89856001600160701b03160383035b905060008211806109925750600081115b6109cd5760405162461bcd60e51b81526004018080602001828103825260228152602001806123f06022913960400191505060405180910390fd5b60055460408051634c2fc06f60e01b81523060048201529051600092610a7a92610a5c926001600160a01b0390921691634c2fc06f91602480820192602092909190829003018186803b158015610a2357600080fd5b505afa158015610a37573d6000803e3d6000fd5b505050506040513d6020811015610a4d57600080fd5b5051859063ffffffff611b3f16565b610a6e8761271063ffffffff611b3f16565b9063ffffffff611b9f16565b60055460408051634c2fc06f60e01b81523060048201529051929350600092610ad392610a5c926001600160a01b0390911691634c2fc06f91602480820192602092909190829003018186803b158015610a2357600080fd5b9050610b056305f5e100610af96001600160701b038b8116908b1663ffffffff611b3f16565b9063ffffffff611b3f16565b610b15838363ffffffff611b3f16565b1015610b55576040805162461bcd60e51b815260206004820152600a602482015269446578537761703a204b60b01b604482015290519081900360640190fd5b5050610b6384848888611be1565b60408051838152602081018390528082018d9052606081018c905290516001600160a01b038b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600c55505050505050505050565b6040518060400160405280600d81526020016c21a7a1a7902628102a37b5b2b760991b81525081565b6008546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b6000610c29338484611da4565b5060015b92915050565b6006546001600160a01b031681565b60005481565b6001600160a01b038316600090815260026020908152604080832033845290915281205460001914610ccd576001600160a01b0384166000908152600260209081526040808320338452909152902054610ca8908363ffffffff611b9f16565b6001600160a01b03851660009081526002602090815260408083203384529091529020555b610cd8848484611e06565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b6005546001600160a01b03163314610d65576040805162461bcd60e51b81526020600482015260126024820152712232bc29bbb0b81d102327a92124a22222a760711b604482015290519081900360640190fd5b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b60095481565b600a5481565b6000600c54600114610dea576040805162461bcd60e51b815260206004820152600f60248201526e11195e14ddd85c0e881313d0d2d151608a1b604482015290519081900360640190fd5b6000600c81905580610dfa610bf2565b50600654604080516370a0823160e01b815230600482015290519395509193506000926001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015610e4e57600080fd5b505afa158015610e62573d6000803e3d6000fd5b505050506040513d6020811015610e7857600080fd5b5051600754604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610ecb57600080fd5b505afa158015610edf573d6000803e3d6000fd5b505050506040513d6020811015610ef557600080fd5b505190506000610f14836001600160701b03871663ffffffff611b9f16565b90506000610f31836001600160701b03871663ffffffff611b9f16565b90506000610f3f8787611ec0565b60005490915080610f7c57610f686103e8610a6e610f63878763ffffffff611b3f16565b61212a565b9850610f7760006103e861217c565b610fcb565b610fc86001600160701b038916610f99868463ffffffff611b3f16565b81610fa057fe5b046001600160701b038916610fbb868563ffffffff611b3f16565b81610fc257fe5b04612212565b98505b6000891161100a5760405162461bcd60e51b815260040180806020018281038252602681526020018061247c6026913960400191505060405180910390fd5b6110148a8a61217c565b61102086868a8a611be1565b81156110505760085461104c906001600160701b0380821691600160701b90041663ffffffff611b3f16565b600b555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600c5550949695505050505050565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b600080600c54600114611113576040805162461bcd60e51b815260206004820152600f60248201526e11195e14ddd85c0e881313d0d2d151608a1b604482015290519081900360640190fd5b6000600c81905580611123610bf2565b50600654600754604080516370a0823160e01b815230600482015290519496509294506001600160a01b039182169391169160009184916370a08231916024808301926020929190829003018186803b15801561117f57600080fd5b505afa158015611193573d6000803e3d6000fd5b505050506040513d60208110156111a957600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038516916370a08231916024808301926020929190829003018186803b1580156111f757600080fd5b505afa15801561120b573d6000803e3d6000fd5b505050506040513d602081101561122157600080fd5b5051306000908152600160205260408120549192506112408888611ec0565b60005490915080611257848763ffffffff611b3f16565b8161125e57fe5b049a5080611272848663ffffffff611b3f16565b8161127957fe5b04995060008b11801561128c575060008a115b6112c75760405162461bcd60e51b81526004018080602001828103825260268152602001806124126026913960400191505060405180910390fd5b6112d13084612229565b6112dc878d8d6119a5565b6112e7868d8c6119a5565b604080516370a0823160e01b815230600482015290516001600160a01b038916916370a08231916024808301926020929190829003018186803b15801561132d57600080fd5b505afa158015611341573d6000803e3d6000fd5b505050506040513d602081101561135757600080fd5b5051604080516370a0823160e01b815230600482015290519196506001600160a01b038816916370a0823191602480820192602092909190829003018186803b1580156113a357600080fd5b505afa1580156113b7573d6000803e3d6000fd5b505050506040513d60208110156113cd57600080fd5b505193506113dd85858b8b611be1565b811561140d57600854611409906001600160701b0380821691600160701b90041663ffffffff611b3f16565b600b555b604080518c8152602081018c905281516001600160a01b038f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600c81905550915091565b604051806040016040528060078152602001660434f434f204c560cc1b81525081565b6000610c29338484611e06565b6103e881565b600c546001146114ea576040805162461bcd60e51b815260206004820152600f60248201526e11195e14ddd85c0e881313d0d2d151608a1b604482015290519081900360640190fd5b6000600c55600654600754600854604080516370a0823160e01b815230600482015290516001600160a01b0394851694909316926115999285928792611594926001600160701b03169185916370a0823191602480820192602092909190829003018186803b15801561155c57600080fd5b505afa158015611570573d6000803e3d6000fd5b505050506040513d602081101561158657600080fd5b50519063ffffffff611b9f16565b6119a5565b600854604080516370a0823160e01b81523060048201529051611600928492879261159492600160701b90046001600160701b0316916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561155c57600080fd5b50506001600c5550565b6005546001600160a01b031681565b6007546001600160a01b031681565b42841015611670576040805162461bcd60e51b815260206004820152601060248201526f11195e14ddd85c0e881156141254915160821b604482015290519081900360640190fd5b6003546001600160a01b0380891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e08501825280519083012061190160f01b6101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e280820193601f1981019281900390910190855afa15801561178b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906117c15750886001600160a01b0316816001600160a01b0316145b611812576040805162461bcd60e51b815260206004820152601a60248201527f446578537761703a20494e56414c49445f5349474e4154555245000000000000604482015290519081900360640190fd5b61181d898989611da4565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b600c5460011461188e576040805162461bcd60e51b815260206004820152600f60248201526e11195e14ddd85c0e881313d0d2d151608a1b604482015290519081900360640190fd5b6000600c55600654604080516370a0823160e01b8152306004820152905161199e926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156118df57600080fd5b505afa1580156118f3573d6000803e3d6000fd5b505050506040513d602081101561190957600080fd5b5051600754604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561195657600080fd5b505afa15801561196a573d6000803e3d6000fd5b505050506040513d602081101561198057600080fd5b50516008546001600160701b0380821691600160701b900416611be1565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1781529251815160009460609489169392918291908083835b60208310611a525780518252601f199092019160209182019101611a33565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611ab4576040519150601f19603f3d011682016040523d82523d6000602084013e611ab9565b606091505b5091509150818015611ae7575080511580611ae75750808060200190516020811015611ae457600080fd5b50515b611b38576040805162461bcd60e51b815260206004820152601860248201527f446578537761703a205452414e534645525f4641494c45440000000000000000604482015290519081900360640190fd5b5050505050565b600082611b4e57506000610c2d565b82820282848281611b5b57fe5b0414611b985760405162461bcd60e51b81526004018080602001828103825260218152602001806124386021913960400191505060405180910390fd5b9392505050565b6000611b9883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506122c7565b6001600160701b038411801590611bff57506001600160701b038311155b611c44576040805162461bcd60e51b8152602060048201526011602482015270446578537761703a204f564552464c4f5760781b604482015290519081900360640190fd5b60085463ffffffff42811691600160e01b90048116820390811615801590611c7457506001600160701b03841615155b8015611c8857506001600160701b03831615155b15611cf9578063ffffffff16611cb685611ca18661235e565b6001600160e01b03169063ffffffff61237016565b600980546001600160e01b03929092169290920201905563ffffffff8116611ce184611ca18761235e565b600a80546001600160e01b0392909216929092020190555b600880546dffffffffffffffffffffffffffff19166001600160701b03888116919091176dffffffffffffffffffffffffffff60701b1916600160701b8883168102919091176001600160e01b0316600160e01b63ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316600090815260016020526040902054611e2f908263ffffffff611b9f16565b6001600160a01b038085166000908152600160205260408082209390935590841681522054611e64908263ffffffff61239516565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b158015611f1157600080fd5b505afa158015611f25573d6000803e3d6000fd5b505050506040513d6020811015611f3b57600080fd5b505190506001600160a01b03811615801590611fce5750600554604080516335d0ea0b60e11b815230600482015290516001600160a01b0390921691636ba1d41691602480820192602092909190829003018186803b158015611f9d57600080fd5b505afa158015611fb1573d6000803e3d6000fd5b505050506040513d6020811015611fc757600080fd5b5051606314155b600b549092508215612116578015612111576000612001610f636001600160701b0388811690881663ffffffff611b3f16565b9050600061200e8361212a565b90508082111561210e576000612041600a610af9612032868663ffffffff611b9f16565b6000549063ffffffff611b3f16565b905060006120ea61205984600a63ffffffff611b3f16565b600554604080516335d0ea0b60e11b815230600482015290516120de926001600160a01b031691636ba1d416916024808301926020929190829003018186803b1580156120a557600080fd5b505afa1580156120b9573d6000803e3d6000fd5b505050506040513d60208110156120cf57600080fd5b5051879063ffffffff611b3f16565b9063ffffffff61239516565b905060008183816120f757fe5b049050801561210a5761210a878261217c565b5050505b50505b612122565b8015612122576000600b555b505092915050565b6000600382111561216d575080600160028204015b818110156121675780915060028182858161215657fe5b04018161215f57fe5b04905061213f565b50612177565b8115612177575060015b919050565b60005461218f908263ffffffff61239516565b60009081556001600160a01b0383168152600160205260409020546121ba908263ffffffff61239516565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818311156122225781611b98565b5090919050565b6001600160a01b038216600090815260016020526040902054612252908263ffffffff611b9f16565b6001600160a01b0383166000908152600160205260408120919091555461227f908263ffffffff611b9f16565b60009081556040805183815290516001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b600081848411156123565760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561231b578181015183820152602001612303565b50505050905090810190601f1680156123485780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160701b0316600160701b0290565b60006001600160701b0382166001600160e01b0384168161238d57fe5b049392505050565b600082820183811015611b98576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fdfe446578537761703a20494e53554646494349454e545f494e5055545f414d4f554e54446578537761703a20494e53554646494349454e545f4c49515549444954595f4255524e4544536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77446578537761703a20494e53554646494349454e545f4f55545055545f414d4f554e54446578537761703a20494e53554646494349454e545f4c49515549444954595f4d494e544544a265627a7a72315820b1eea53b54ed9d2a661da4ece74b3a6c4a90cf7112b1d75a6eb1166031ba87a264736f6c63430005110032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429

Deployed ByteCode Sourcemap

24532:10028:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24532:10028:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31911:2036;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;31911:2036:0;;;;;;;;-1:-1:-1;;;;;31911:2036:0;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;31911:2036:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;31911:2036: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;31911:2036:0;;-1:-1:-1;31911:2036:0;-1:-1:-1;31911:2036:0;:::i;:::-;;21192:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;21192:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25535:231;;;:::i;:::-;;;;-1:-1:-1;;;;;25535:231:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23243:147;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;23243:147:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;24826:21;;;:::i;:::-;;;;-1:-1:-1;;;;;24826:21:0;;;;;;;;;;;;;;21334:24;;;:::i;:::-;;;;;;;;;;;;;;;;23545:302;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;23545:302:0;;;;;;;;;;;;;;;;;:::i;21626:108::-;;;:::i;21292:35::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21483:31;;;:::i;26593:217::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;26593:217:0;;;;;;;;;;:::i;25177:32::-;;;:::i;25216:::-;;;:::i;28935:1287::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28935:1287:0;-1:-1:-1;;;;;28935:1287:0;;:::i;21365:41::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21365:41:0;-1:-1:-1;;;;;21365:41:0;;:::i;25255:17::-;;;:::i;21741:38::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21741:38:0;-1:-1:-1;;;;;21741:38:0;;:::i;30334:1465::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30334:1465:0;-1:-1:-1;;;;;30334:1465:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21244:41;;;:::i;23398:139::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;23398:139:0;;;;;;;;:::i;24645:48::-;;;:::i;33996:352::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33996:352:0;-1:-1:-1;;;;;33996:352:0;;:::i;24797:22::-;;;:::i;24854:21::-;;;:::i;23855:670::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;23855:670:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23855:670:0;;;;;;;;:::i;21413:61::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;21413:61:0;;;;;;;;;;:::i;34397:158::-;;;:::i;31911:2036::-;25428:8;;25440:1;25428:13;25420:41;;;;;-1:-1:-1;;;25420:41:0;;;;;;;;;;;;-1:-1:-1;;;25420:41:0;;;;;;;;;;;;;;;25483:1;25472:8;:12;32025:14;;;;:32;;;32056:1;32043:10;:14;32025:32;32017:80;;;;-1:-1:-1;;;32017:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32109:17;32128;32150:13;:11;:13::i;:::-;-1:-1:-1;32108:55:0;;-1:-1:-1;32108:55:0;-1:-1:-1;;;;;;32206:22:0;;;;:48;;;;-1:-1:-1;;;;;;32232:22:0;;;;32206:48;32198:92;;;;;-1:-1:-1;;;32198:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;32438:6;;32477;;32303:13;;;;-1:-1:-1;;;;;32438:6:0;;;;32477;;;;32506:13;;;;;;;:30;;-1:-1:-1;;;;;;32523:13:0;;;;;;;;32506:30;32498:62;;;;;-1:-1:-1;;;32498:62:0;;;;;;;;;;;;-1:-1:-1;;;32498:62:0;;;;;;;;;;;;;;;32579:14;;32575:58;;32595:38;32609:7;32618:2;32622:10;32595:13;:38::i;:::-;32699:14;;32695:58;;32715:38;32729:7;32738:2;32742:10;32715:13;:38::i;:::-;32819:15;;32815:91;;32850:2;-1:-1:-1;;;;;32836:28:0;;32865:10;32877;32889;32901:4;;32836:70;;;;;;;;;;;;;-1:-1:-1;;;;;32836:70:0;-1:-1:-1;;;;;32836:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;32836:70:0;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32836:70:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32836:70:0;;;;32815:91;32932:40;;;-1:-1:-1;;;32932:40:0;;32966:4;32932:40;;;;;;-1:-1:-1;;;;;32932:25:0;;;-1:-1:-1;;32932:40:0;;;;;;;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;32932:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32932:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32932:40:0;32998;;;-1:-1:-1;;;32998:40:0;;33032:4;32998:40;;;;;;32932;;-1:-1:-1;;;;;;32998:25:0;;;-1:-1:-1;;32998:40:0;;;;;32932;;32998;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;32998:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32998:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32998:40:0;;-1:-1:-1;33060:14:0;;-1:-1:-1;;;;;;;33088:22:0;;;;;33077:33;;:75;;33151:1;33077:75;;;-1:-1:-1;;;;;33125:22:0;;;;;33113:35;;33077:75;33060:92;-1:-1:-1;33163:14:0;-1:-1:-1;;;;;33191:22:0;;;;;33180:33;;:75;;33254:1;33180:75;;;-1:-1:-1;;;;;33228:22:0;;;;;33216:35;;33180:75;33163:92;;33286:1;33274:9;:13;:30;;;;33303:1;33291:9;:13;33274:30;33266:77;;;;-1:-1:-1;;;33266:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33504:7;;33492:47;;;-1:-1:-1;;;33492:47:0;;33533:4;33492:47;;;;;;-1:-1:-1;;33456:85:0;;33478:62;;-1:-1:-1;;;;;33504:7:0;;;;-1:-1:-1;;33492:47:0;;;;;;;;;;;;;;;33504:7;33492:47;;;5:2:-1;;;;30:1;27;20:12;5:2;33492:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33492:47:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33492:47:0;33478:9;;:62;:13;:62;:::i;:::-;33456:17;:8;33469:3;33456:17;:12;:17;:::i;:::-;:21;:85;:21;:85;:::i;:::-;33628:7;;33616:47;;;-1:-1:-1;;;33616:47:0;;33657:4;33616:47;;;;;;33432:109;;-1:-1:-1;;;33580:85:0;;33602:62;;-1:-1:-1;;;;;33628:7:0;;;;-1:-1:-1;;33616:47:0;;;;;;;;;;;;;;;33628:7;33616:47;;;5:2:-1;;;;30:1;27;20:12;33580:85:0;33556:109;-1:-1:-1;33730:39:0;33765:3;33730:30;-1:-1:-1;;;;;33730:15:0;;;;:30;;:19;:30::i;:::-;:34;:39;:34;:39;:::i;:::-;33688:38;:16;33709;33688:38;:20;:38;:::i;:::-;:81;;33680:104;;;;;-1:-1:-1;;;33680:104:0;;;;;;;;;;;;-1:-1:-1;;;33680:104:0;;;;;;;;;;;;;;;25495:1;;33808:49;33816:8;33826;33836:9;33847;33808:7;:49::i;:::-;33873:66;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33873:66:0;;;33878:10;;33873:66;;;;;;;;;-1:-1:-1;;25518:1:0;25507:8;:12;-1:-1:-1;;;;;;;;;31911:2036:0:o;21192:45::-;;;;;;;;;;;;;-1:-1:-1;;;21192:45:0;;;;;:::o;25535:231::-;25668:8;;-1:-1:-1;;;;;25668:8:0;;;;-1:-1:-1;;;25699:8:0;;;;;;-1:-1:-1;;;25740:18:0;;;;;25535:231::o;23243:147::-;23307:4;23324:36;23333:10;23345:7;23354:5;23324:8;:36::i;:::-;-1:-1:-1;23378:4:0;23243:147;;;;;:::o;24826:21::-;;;-1:-1:-1;;;;;24826:21:0;;:::o;21334:24::-;;;;:::o;23545:302::-;-1:-1:-1;;;;;23644:15:0;;23623:4;23644:15;;;:9;:15;;;;;;;;23660:10;23644:27;;;;;;;;-1:-1:-1;;23644:40:0;23640:141;;-1:-1:-1;;;;;23731:15:0;;;;;;:9;:15;;;;;;;;23747:10;23731:27;;;;;;;;:38;;23763:5;23731:31;:38::i;:::-;-1:-1:-1;;;;;23701:15:0;;;;;;:9;:15;;;;;;;;23717:10;23701:27;;;;;;;:68;23640:141;23791:26;23801:4;23807:2;23811:5;23791:9;:26::i;:::-;-1:-1:-1;23835:4:0;23545:302;;;;;:::o;21626:108::-;21668:66;21626:108;:::o;21292:35::-;21325:2;21292:35;:::o;21483:31::-;;;;:::o;26593:217::-;26689:7;;-1:-1:-1;;;;;26689:7:0;26675:10;:21;26667:52;;;;;-1:-1:-1;;;26667:52:0;;;;;;;;;;;;-1:-1:-1;;;26667:52:0;;;;;;;;;;;;;;;26759:6;:16;;-1:-1:-1;;;;;26759:16:0;;;-1:-1:-1;;;;;;26759:16:0;;;;;;;26786:6;:16;;;;;;;;;;;26593:217::o;25177:32::-;;;;:::o;25216:::-;;;;:::o;28935:1287::-;28984:14;25428:8;;25440:1;25428:13;25420:41;;;;;-1:-1:-1;;;25420:41:0;;;;;;;;;;;;-1:-1:-1;;;25420:41:0;;;;;;;;;;;;;;;25483:1;25472:8;:12;;;25483:1;29053:13;:11;:13::i;:::-;-1:-1:-1;29124:6:0;;29117:39;;;-1:-1:-1;;;29117:39:0;;29150:4;29117:39;;;;;;29011:55;;-1:-1:-1;29011:55:0;;-1:-1:-1;;;;;;;;29124:6:0;;;;-1:-1:-1;;29117:39:0;;;;;;;;;;;;;;29124:6;29117:39;;;5:2:-1;;;;30:1;27;20:12;5:2;29117:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29117:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29117:39:0;29190:6;;29183:39;;;-1:-1:-1;;;29183:39:0;;29216:4;29183:39;;;;;;29117;;-1:-1:-1;;;;;;;;29190:6:0;;;;-1:-1:-1;;29183:39:0;;;;;29117;;29183;;;;;;;;29190:6;29183:39;;;5:2:-1;;;;30:1;27;20:12;5:2;29183:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29183:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29183:39:0;;-1:-1:-1;29233:12:0;29248:23;:8;-1:-1:-1;;;;;29248:23:0;;:12;:23::i;:::-;29233:38;-1:-1:-1;29282:12:0;29297:23;:8;-1:-1:-1;;;;;29297:23:0;;:12;:23::i;:::-;29282:38;;29333:10;29346:30;29355:9;29366;29346:8;:30::i;:::-;29387:17;29407:11;29333:43;;-1:-1:-1;29520:17:0;29516:374;;29566:58;24686:7;29566:35;29580:20;:7;29592;29580:20;:11;:20;:::i;:::-;29566:13;:35::i;:58::-;29554:70;;29639:36;29653:1;24686:7;29639:5;:36::i;:::-;29516:374;;;29788:90;-1:-1:-1;;;;;29801:37:0;;:25;:7;29813:12;29801:11;:25::i;:::-;:37;;;;;;-1:-1:-1;;;;;29840:37:0;;:25;:7;29852:12;29840:11;:25::i;:::-;:37;;;;;;29788:12;:90::i;:::-;29776:102;;29516:374;29920:1;29908:9;:13;29900:64;;;;-1:-1:-1;;;29900:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29975:20;29981:2;29985:9;29975:5;:20::i;:::-;30008:49;30016:8;30026;30036:9;30047;30008:7;:49::i;:::-;30072:5;30068:47;;;30106:8;;30087:28;;-1:-1:-1;;;;;30092:8:0;;;;-1:-1:-1;;;30106:8:0;;;30087:18;:28::i;:::-;30079:5;:36;30068:47;30180:34;;;;;;;;;;;;;;30185:10;;30180:34;;;;;;;;-1:-1:-1;;25518:1:0;25507:8;:12;-1:-1:-1;28935:1287:0;;;-1:-1:-1;;;;;;28935:1287:0:o;21365:41::-;;;;;;;;;;;;;:::o;25255:17::-;;;;:::o;21741:38::-;;;;;;;;;;;;;:::o;30334:1465::-;30383:12;30397;25428:8;;25440:1;25428:13;25420:41;;;;;-1:-1:-1;;;25420:41:0;;;;;;;;;;;;-1:-1:-1;;;25420:41:0;;;;;;;;;;;;;;;25483:1;25472:8;:12;;;25483:1;30464:13;:11;:13::i;:::-;-1:-1:-1;30530:6:0;;30589;;30646:40;;;-1:-1:-1;;;30646:40:0;;30680:4;30646:40;;;;;;30422:55;;-1:-1:-1;30422:55:0;;-1:-1:-1;;;;;;30530:6:0;;;;30589;;;-1:-1:-1;;30530:6:0;;-1:-1:-1;;30646:40:0;;;;;;;;;;;;;;30530:6;30646:40;;;5:2:-1;;;;30:1;27;20:12;5:2;30646:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30646:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30646:40:0;30713;;;-1:-1:-1;;;30713:40:0;;30747:4;30713:40;;;;;;30646;;-1:-1:-1;;;;;;;;30713:25:0;;;-1:-1:-1;;30713:40:0;;;;;30646;;30713;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;30713:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30713:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30713:40:0;30799:4;30764:14;30781:24;;;:9;30713:40;30781:24;;;;;30713:40;;-1:-1:-1;30831:30:0;30840:9;30851;30831:8;:30::i;:::-;30872:17;30892:11;30818:43;;-1:-1:-1;30892:11:0;31011:23;:9;31025:8;31011:23;:13;:23;:::i;:::-;:38;;;;;;;-1:-1:-1;31153:12:0;31127:23;:9;31141:8;31127:23;:13;:23;:::i;:::-;:38;;;;;;31117:48;;31251:1;31241:7;:11;:26;;;;;31266:1;31256:7;:11;31241:26;31233:77;;;;-1:-1:-1;;;31233:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31321:31;31335:4;31342:9;31321:5;:31::i;:::-;31363:35;31377:7;31386:2;31390:7;31363:13;:35::i;:::-;31409;31423:7;31432:2;31436:7;31409:13;:35::i;:::-;31466:40;;;-1:-1:-1;;;31466:40:0;;31500:4;31466:40;;;;;;-1:-1:-1;;;;;31466:25:0;;;-1:-1:-1;;31466:40:0;;;;;;;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;31466:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31466:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31466:40:0;31528;;;-1:-1:-1;;;31528:40:0;;31562:4;31528:40;;;;;;31466;;-1:-1:-1;;;;;;31528:25:0;;;-1:-1:-1;;31528:40:0;;;;;31466;;31528;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;31528:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31528:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31528:40:0;;-1:-1:-1;31581:49:0;31589:8;31528:40;31609:9;31620;31581:7;:49::i;:::-;31645:5;31641:47;;;31679:8;;31660:28;;-1:-1:-1;;;;;31665:8:0;;;;-1:-1:-1;;;31679:8:0;;;31660:18;:28::i;:::-;31652:5;:36;31641:47;31753:38;;;;;;;;;;;;;;-1:-1:-1;;;;;31753:38:0;;;31758:10;;31753:38;;;;;;;;;;;25495:1;;;;;;;;;25518;25507:8;:12;;;;30334:1465;;;:::o;21244:41::-;;;;;;;;;;;;;-1:-1:-1;;;21244:41:0;;;;;:::o;23398:139::-;23458:4;23475:32;23485:10;23497:2;23501:5;23475:9;:32::i;24645:48::-;24686:7;24645:48;:::o;33996:352::-;25428:8;;25440:1;25428:13;25420:41;;;;;-1:-1:-1;;;25420:41:0;;;;;;;;;;;;-1:-1:-1;;;25420:41:0;;;;;;;;;;;;;;;25483:1;25472:8;:12;34065:6;;34124;;34237:8;;34192:40;;;-1:-1:-1;;;34192:40:0;;34226:4;34192:40;;;;;;-1:-1:-1;;;;;34065:6:0;;;;34124;;;;34165:82;;34065:6;;34188:2;;34192:54;;-1:-1:-1;;;;;34237:8:0;;34065:6;;-1:-1:-1;;34192:40:0;;;;;;;;;;;;;;;34065:6;34192:40;;;5:2:-1;;;;30:1;27;20:12;5:2;34192:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34192:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34192:40:0;;:54;:44;:54;:::i;:::-;34165:13;:82::i;:::-;34330:8;;34285:40;;;-1:-1:-1;;;34285:40:0;;34319:4;34285:40;;;;;;34258:82;;34272:7;;34281:2;;34285:54;;-1:-1:-1;;;34330:8:0;;-1:-1:-1;;;;;34330:8:0;;-1:-1:-1;;;;;34285:25:0;;;-1:-1:-1;;34285:40:0;;;;;;;;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;34258:82:0;-1:-1:-1;;25518:1:0;25507:8;:12;-1:-1:-1;33996:352:0:o;24797:22::-;;;-1:-1:-1;;;;;24797:22:0;;:::o;24854:21::-;;;-1:-1:-1;;;;;24854:21:0;;:::o;23855:670::-;24001:15;23989:8;:27;;23981:56;;;;;-1:-1:-1;;;23981:56:0;;;;;;;;;;;;-1:-1:-1;;;23981:56:0;;;;;;;;;;;;;;;24153:16;;-1:-1:-1;;;;;24249:13:0;;;24048:14;24249:13;;;:6;:13;;;;;;;;:15;;-1:-1:-1;24249:15:0;;;;;;24198:77;;21668:66;24198:77;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24198:77:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;24198:77:0;;;;;24188:88;;;;;;-1:-1:-1;;;24089:202:0;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;24089:202:0;;;;;;24065:237;;;;;;;;;24340:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24048:14;;-1:-1:-1;24340:26:0;;;;;-1:-1:-1;;24340:26:0;;;;;;;;;;-1:-1:-1;24340:26:0;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;24340:26:0;;-1:-1:-1;;24340:26:0;;;-1:-1:-1;;;;;;;24385:30:0;;;;;;:59;;-1:-1:-1;;;;;;24419:25:0;;;;;;;24385:59;24377:98;;;;;-1:-1:-1;;;24377:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24486:31;24495:5;24502:7;24511:5;24486:8;:31::i;:::-;23855:670;;;;;;;;;:::o;21413:61::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;34397:158::-;25428:8;;25440:1;25428:13;25420:41;;;;;-1:-1:-1;;;25420:41:0;;;;;;;;;;;;-1:-1:-1;;;25420:41:0;;;;;;;;;;;;;;;25483:1;25472:8;:12;34453:6;;34446:39;;;-1:-1:-1;;;34446:39:0;;34479:4;34446:39;;;;;;34438:109;;-1:-1:-1;;;;;34453:6:0;;-1:-1:-1;;34446:39:0;;;;;;;;;;;;;;34453:6;34446:39;;;5:2:-1;;;;30:1;27;20:12;5:2;34446:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34446:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34446:39:0;34494:6;;34487:39;;;-1:-1:-1;;;34487:39:0;;34520:4;34487:39;;;;;;-1:-1:-1;;;;;34494:6:0;;;;-1:-1:-1;;34487:39:0;;;;;34446;;34487;;;;;;;;34494:6;34487:39;;;5:2:-1;;;;30:1;27;20:12;5:2;34487:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34487:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34487:39:0;34528:8;;-1:-1:-1;;;;;34528:8:0;;;;-1:-1:-1;;;34538:8:0;;;34438:7;:109::i;:::-;25518:1;25507:8;:12;34397:158::o;25774:285::-;24752:34;;;;;;;;;;;;;;;;;25902:43;;-1:-1:-1;;;;;25902:43:0;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;25902:43:0;;;;;;25:18:-1;;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;25891:55:0;;;;-1:-1:-1;;25870:17:0;;25891:10;;;25902:43;25891:55;;;25:18:-1;25891:55: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;;;25891:55: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;;25855:91:0;;;;25965:7;:57;;;;-1:-1:-1;25977:11:0;;:16;;:44;;;26008:4;25997:24;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25997:24:0;25977:44;25957:94;;;;;-1:-1:-1;;;25957:94:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25774:285;;;;;:::o;8303:471::-;8361:7;8606:6;8602:47;;-1:-1:-1;8636:1:0;8629:8;;8602:47;8673:5;;;8677:1;8673;:5;:1;8697:5;;;;;:10;8689:56;;;;-1:-1:-1;;;8689:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8765:1;8303:471;-1:-1:-1;;;8303:471:0:o;7959:136::-;8017:7;8044:43;8048:1;8051;8044:43;;;;;;;;;;;;;;;;;:3;:43::i;26895:871::-;-1:-1:-1;;;;;27007:24:0;;;;;:52;;-1:-1:-1;;;;;;27035:24:0;;;27007:52;26999:82;;;;;-1:-1:-1;;;26999:82:0;;;;;;;;;;;;-1:-1:-1;;;26999:82:0;;;;;;;;;;;;;;;27198:18;;27123:25;:15;:25;;;-1:-1:-1;;;27198:18:0;;;;27181:35;;;27263:15;;;;;;:33;;-1:-1:-1;;;;;;27282:14:0;;;;27263:33;:51;;;;-1:-1:-1;;;;;;27300:14:0;;;;27263:51;27259:336;;;27469:11;27416:64;;27421:44;27455:9;27421:27;27438:9;27421:16;:27::i;:::-;-1:-1:-1;;;;;27421:33:0;;;:44::i;:::-;27392:20;:88;;-1:-1:-1;;;;;27416:50:0;;;;:64;;;;27392:88;;;27519:64;;;27524:44;27558:9;27524:27;27541:9;27524:16;:27::i;:44::-;27495:20;:88;;-1:-1:-1;;;;;27519:50:0;;;;:64;;;;27495:88;;;27259:336;27605:8;:28;;-1:-1:-1;;27605:28:0;-1:-1:-1;;;;;27605:28:0;;;;;;;-1:-1:-1;;;;27644:28:0;-1:-1:-1;;;27644:28:0;;;;;;;;;-1:-1:-1;;;;;27683:35:0;-1:-1:-1;;;27683:35:0;;;;;;;;;27734:24;;;27739:8;;;27734:24;;27749:8;;;;;;;27734:24;;;;;;;;;;;;;;;;;26895:871;;;;;;:::o;22838:169::-;-1:-1:-1;;;;;22919:16:0;;;;;;;:9;:16;;;;;;;;:25;;;;;;;;;;;;;:33;;;22968:31;;;;;;;;;;;;;;;;;22838:169;;;:::o;23015:220::-;-1:-1:-1;;;;;23109:15:0;;;;;;-1:-1:-1;23109:15:0;;;;;;:26;;23129:5;23109:19;:26::i;:::-;-1:-1:-1;;;;;23091:15:0;;;;;;;-1:-1:-1;23091:15:0;;;;;;:44;;;;23162:13;;;;;;;:24;;23180:5;23162:17;:24::i;:::-;-1:-1:-1;;;;;23146:13:0;;;;;;;-1:-1:-1;23146:13:0;;;;;;;;;:40;;;;23202:25;;;;;;;23146:13;;23202:25;;;;;;;;;;;;;23015:220;;;:::o;27856:967::-;27980:7;;27968:28;;;-1:-1:-1;;;27968:28:0;;;;27929:10;;;;-1:-1:-1;;;;;27980:7:0;;;;27968:26;;:28;;;;;;;;;;;;;;;27980:7;27968:28;;;5:2:-1;;;;30:1;27;20:12;5:2;27968:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;27968:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27968:28:0;;-1:-1:-1;;;;;;28015:19:0;;;;;;:76;;-1:-1:-1;28050:7:0;;28038:47;;;-1:-1:-1;;;28038:47:0;;28079:4;28038:47;;;;;;-1:-1:-1;;;;;28050:7:0;;;;28038:32;;:47;;;;;;;;;;;;;;;28050:7;28038:47;;;5:2:-1;;;;30:1;27;20:12;5:2;28038:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28038:47:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28038:47:0;28089:2;28038:53;;28015:76;28116:5;;28007:84;;-1:-1:-1;28156:660:0;;;;28186:11;;28182:564;;28218:10;28231:45;28245:30;-1:-1:-1;;;;;28245:15:0;;;;:30;;:19;:30::i;28231:45::-;28218:58;;28295:14;28312:21;28326:6;28312:13;:21::i;:::-;28295:38;;28364:9;28356:5;:17;28352:379;;;28398:14;28415:45;28457:2;28415:37;28431:20;:5;28441:9;28431:20;:9;:20;:::i;:::-;28415:11;;;:37;:15;:37;:::i;:45::-;28398:62;-1:-1:-1;28483:16:0;28502:81;28565:17;:9;28579:2;28565:17;:13;:17;:::i;:::-;28524:7;;28512:47;;;-1:-1:-1;;;28512:47:0;;28553:4;28512:47;;;;;;28502:58;;-1:-1:-1;;;;;28524:7:0;;28512:32;;:47;;;;;;;;;;;;;;28524:7;28512:47;;;5:2:-1;;;;30:1;27;20:12;5:2;28512:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28512:47:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28512:47:0;28502:5;;:58;:9;:58;:::i;:::-;:62;:81;:62;:81;:::i;:::-;28483:100;;28606:14;28635:11;28623:9;:23;;;;;;;-1:-1:-1;28673:13:0;;28669:42;;28688:23;28694:5;28701:9;28688:5;:23::i;:::-;28352:379;;;;28182:564;;;28156:660;;;28767:11;;28763:53;;28803:1;28795:5;:9;28763:53;27856:967;;;;;;:::o;9817:312::-;9865:9;9895:1;9891;:5;9887:235;;;-1:-1:-1;9917:1:0;9953;9949;9945:5;;:9;9969:92;9980:1;9976;:5;9969:92;;;10006:1;10002:5;;10044:1;10039;10035;10031;:5;;;;;;:9;10030:15;;;;;;10026:19;;9969:92;;;9887:235;;;;10082:6;;10078:44;;-1:-1:-1;10109:1:0;10078:44;9817:312;;;:::o;22412:201::-;22485:11;;:22;;22501:5;22485:22;:15;:22;:::i;:::-;22471:11;:36;;;-1:-1:-1;;;;;22534:13:0;;;;-1:-1:-1;22534:13:0;;;;;;:24;;22552:5;22534:17;:24::i;:::-;-1:-1:-1;;;;;22518:13:0;;;;;;-1:-1:-1;22518:13:0;;;;;;;;:40;;;;22574:31;;;;;;;22518:13;;;;22574:31;;;;;;;;;;22412:201;;:::o;9587:107::-;9645:7;9677:1;9672;:6;;:14;;9685:1;9672:14;;;-1:-1:-1;9681:1:0;;9587:107;-1:-1:-1;9587:107:0:o;22621:209::-;-1:-1:-1;;;;;22700:15:0;;;;;;-1:-1:-1;22700:15:0;;;;;;:26;;22720:5;22700:19;:26::i;:::-;-1:-1:-1;;;;;22682:15:0;;;;;;-1:-1:-1;22682:15:0;;;;;:44;;;;22751:11;:22;;22767:5;22751:15;:22::i;:::-;22737:11;:36;;;22789:33;;;;;;;;-1:-1:-1;;;;;22789:33:0;;;;;;;;;;;;;22621:209;;:::o;8103:192::-;8189:7;8225:12;8217:6;;;;8209:29;;;;-1:-1:-1;;;8209:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-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;8209:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8261:5:0;;;8103:192::o;11886:129::-;-1:-1:-1;;;;;11962:10:0;-1:-1:-1;;;11962:17:0;;11886:129::o;12086:108::-;12146:9;-1:-1:-1;;;;;12176:10:0;;-1:-1:-1;;;;;12172:14:0;;12176:10;12172:14;;;;;;12086:108;-1:-1:-1;;;12086:108:0:o;7770:181::-;7828:7;7860:5;;;7884:6;;;;7876:46;;;;;-1:-1:-1;;;7876:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://b1eea53b54ed9d2a661da4ece74b3a6c4a90cf7112b1d75a6eb1166031ba87a2
Block Transaction Gas Used Reward
Age Block Fee Address Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading