Contract 0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a8 1

 
 
Txn Hash
Block
From
To
Value [Txn Fee]
0x979f78e712ae7619f4631792b1d306bd6e5d997414f35c870418a2224f1aaffe97434272021-08-04 14:33:0112 mins ago0x2d49715d125c00320e4e05457da707779622ab0f IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000760385
0x80c915f7a63a94ba04e4c749a3b929d0c1f78e05d15f0b91cb1631ad69b164b797425172021-08-04 13:44:031 hr 1 min ago0xf50f9fb9c3813e13de87447b0894cab4d42b6008 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.00069901
0x16a2b82daae2b7ca5dc2bebda5bcee104e5af9652125d8289089b7cd293298bb97419772021-08-04 13:17:031 hr 28 mins ago0x3e376cb42215e1dfb04af1f2e4685f175f33a2f8 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.00083915
0x2b600438c3a4c7dc190f0255bf7e6f82f54a83e5eb64f6d1efb0f4d515798b4797419442021-08-04 13:15:241 hr 30 mins ago0x3e376cb42215e1dfb04af1f2e4685f175f33a2f8 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000685385
0x72dd102211a182e6c69872cd88191117934b9dc121fafc05683d81c14965610b97418722021-08-04 13:11:481 hr 34 mins ago0x81ccdb7583e488691ed79936f9ca84d1719514fd IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000774465
0x686ebf3efd0bc2a8eb5661dfa4888635b08f8309d1f9f74f70b0bf07ef1bc9f297399502021-08-04 11:32:363 hrs 13 mins ago0xd26f1f1830766a6d9d950ea0d30b9485cc838771 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.0008572
0xfb4ab3622c6ec8503de390ae51f7875bf6098055b2078fa816c5211017afd55f97399282021-08-04 11:31:213 hrs 14 mins ago0xd26f1f1830766a6d9d950ea0d30b9485cc838771 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000783365
0xfe573a9dcc95d149acdee5baba9f3d5cc7f97bd098ad0cf87b5f88120ba4235297399242021-08-04 11:31:073 hrs 14 mins ago0xd26f1f1830766a6d9d950ea0d30b9485cc838771 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000858425
0x284515284d7c6b6890376f241647cee2a26903cbfed02970857f3e7e2c46eb8697399182021-08-04 11:30:483 hrs 15 mins ago0xd26f1f1830766a6d9d950ea0d30b9485cc838771 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000783365
0x7ec6895acaa633ce4da452111fbb3f661b96328f2649af4359de840e340cde5797385082021-08-04 10:18:184 hrs 27 mins ago0xb1d11cfc57a234d24541dc4cf3a7bcc0dad90ec8 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000769885
0xddbe8d3f0d22da8945abd16463f7981189b9d6700776b19429056b4b26ab272297305602021-08-04 3:20:3011 hrs 25 mins ago0xb14cf9b14db20b0b6a964d0ee7f60894e1f186dd IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.00078244
0xc94464bd60d3cd751e153cd3925671c72363875612f0201734d8e4091c8fd64f97236952021-08-03 21:30:1917 hrs 15 mins ago0xf50f9fb9c3813e13de87447b0894cab4d42b6008 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.00082954
0xef7b085aac60923ce66f1873976f39cd96b5645bc30d29bd1fa55b6225c444cc97207012021-08-03 18:57:4519 hrs 48 mins ago0xbaa133e96addcb055c247e5fa83348feb8e86e2f IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.00083915
0x7eba9e072692e0180370c25c6ef64d95e4a09056e683ff2d350a1d068f32391197206702021-08-03 18:56:1219 hrs 49 mins ago0xbaa133e96addcb055c247e5fa83348feb8e86e2f IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000685385
0xab043bfed31c02d750b7945f30776bee8e7b89cea6e4b5ed43f5e17439da8fe197190522021-08-03 17:33:4621 hrs 12 mins ago0x7a0f3177798b5b4aa4fc6f6bda760bbc208293b6 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000699465
0x587274e98d8bca026aacc964e246ff1c4ea7c3cd18dc688abc97bdb0fde4c62697190512021-08-03 17:33:4121 hrs 12 mins ago0x7a0f3177798b5b4aa4fc6f6bda760bbc208293b6 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000774465
0xff1522beb0825cbf652c6fe8f43f5023b65365664ab7a88b785beea3d39c8b4297172682021-08-03 16:02:1922 hrs 43 mins ago0x61d8e2b9413d69a289fe8ddb1b5373ee75ad5a17 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000685385
0x342db78c71872b9d4718206732a6af901ecc40baec479e8d2e1b1984e429fdf197167632021-08-03 15:35:4123 hrs 10 mins ago0x6d84264a7bd2cffa4a117ba2350403b3a9866949 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.00085847
0xa1ae8ef27f589a1e3aa6e03d4228f9bf12e376e864b057e0372344712d7227eb97166742021-08-03 15:30:5823 hrs 14 mins ago0x78bb4748ae8ec71b34f9052c9a5d9e768ba4957f IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.00083006
0x4ce91606cfaa1d63a47b94b1241c4ff820f2559fc595fdee1a999887bac0fc9e97156782021-08-03 14:37:581 day 7 mins ago0x93450c0fadcf8a7d2bdd57bd3674ea1029e556ca IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.00083915
0xd09cff74f62644f33ac455ff0f159f24f9c5728e722024bd4110ddaf43d5e04f97156192021-08-03 14:34:071 day 11 mins ago0x93450c0fadcf8a7d2bdd57bd3674ea1029e556ca IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000760385
0x3be5108001a2fcc98f1d56e586c22426f01ffcc2e32433c8cddc86d4a2cedec997155712021-08-03 14:31:121 day 14 mins ago0x19755045b1bc1ee1e5547af2516f14cd49646b66 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.000685385
0x88595e087680e1fcc5d32423d48124443bedf9e84157b51ed7e71a3fd64ddb0497147152021-08-03 13:44:531 day 1 hr ago0xf50f9fb9c3813e13de87447b0894cab4d42b6008 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.00077401
0x0d20f5a752cfa70a500bc54da19a0c1971f74505ed16d85cf4e9e5ab7902c21497141912021-08-03 13:17:121 day 1 hr ago0xba2623982db69635ae1e92eeead6a4204d7ae251 IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.00090506
0x36ad1c9e40230bae0ab280935f1bedc4213e03e8615ad2ce6be7471f57bf305397140882021-08-03 13:11:411 day 1 hr ago0x0c6b4ead89e32adc102bf50284d297ebdf39b6ad IN  0xdac4d0ee7b55497e96b73a53b31a2b47abb7b5a80 BNB0.00083915
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FairLaunch

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-03-29
*/

pragma solidity 0.6.6;


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

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

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

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

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

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

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

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

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

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

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

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

abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

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

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

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

// CodexToken with Governance.
contract CodexToken is ERC20("CodexToken", "CODEX"), Ownable {
  using SafeMath for uint256;
  uint256 private _cap = 18e24;
  uint256 private _totalLock;

  uint256 public startReleaseBlock;
  uint256 public endReleaseBlock;

  mapping(address => uint256) private _locks;
  mapping(address => uint256) private _lastUnlockBlock;

  event Lock(address indexed to, uint256 value);

  constructor(uint256 _startReleaseBlock) public {
    _setupDecimals(18);
    startReleaseBlock = _startReleaseBlock;
    //set endReleaseBlock 3 months after start release block
    endReleaseBlock = startReleaseBlock.add(2592000);

    //mint warchest funds
    mint(msg.sender, 9e23);
  }

  function setReleaseBlock(uint256 _startReleaseBlock, uint256 _endReleaseBlock) public onlyOwner {
    require(_endReleaseBlock > _startReleaseBlock, "endReleaseBlock < startReleaseBlock");
    startReleaseBlock = _startReleaseBlock;
    endReleaseBlock = _endReleaseBlock;
  }

  function cap() public view returns (uint256) {
    return _cap;
  }

  function unlockedSupply() public view returns (uint256) {
    return totalSupply().sub(totalLock());
  }

  function totalLock() public view returns (uint256) {
    return _totalLock;
  }

  function mint(address _to, uint256 _amount) public onlyOwner {
    require(totalSupply().add(_amount) <= cap(), "cap exceeded");
    _mint(_to, _amount);
    _moveDelegates(address(0), _delegates[_to], _amount);
  }

  function burn(address _account, uint256 _amount) public onlyOwner {
    _burn(_account, _amount);
  }

  function totalBalanceOf(address _account) public view returns (uint256) {
    return _locks[_account].add(balanceOf(_account));
  }

  function lockOf(address _account) public view returns (uint256) {
    return _locks[_account];
  }

  function lastUnlockBlock(address _account) public view returns (uint256) {
    return _lastUnlockBlock[_account];
  }

  function lock(address _account, uint256 _amount) public onlyOwner {
    if(block.number < endReleaseBlock) {
        require(_account != address(0), "no lock to address(0)");
        require(_amount <= balanceOf(_account), "no lock over balance");    

        _transfer(_account, address(this), _amount);    

        _locks[_account] = _locks[_account].add(_amount);
        _totalLock = _totalLock.add(_amount);   

        if (_lastUnlockBlock[_account] < startReleaseBlock) {
          _lastUnlockBlock[_account] = startReleaseBlock;
        }   

        emit Lock(_account, _amount);  
    }
  }

  function canUnlockAmount(address _account) public view returns (uint256) {
    // When block number less than startReleaseBlock, no CODEXs can be unlocked
    if (block.number < startReleaseBlock) {
      return 0;
    }
    // When block number more than endReleaseBlock, all locked CODEXs can be unlocked
    else if (block.number >= endReleaseBlock) {
      return _locks[_account];
    }
    // When block number is more than startReleaseBlock but less than endReleaseBlock,
    // some CODEXs can be released
    else
    {
      uint256 releasedBlock = block.number.sub(_lastUnlockBlock[_account]);
      uint256 blockLeft = endReleaseBlock.sub(_lastUnlockBlock[_account]);
      return _locks[_account].mul(releasedBlock).div(blockLeft);
    }
  }

  function unlock() public {
    require(_locks[msg.sender] > 0, "no locked CODEXs");

    uint256 amount = canUnlockAmount(msg.sender);

    _transfer(address(this), msg.sender, amount);
    _locks[msg.sender] = _locks[msg.sender].sub(amount);
    _lastUnlockBlock[msg.sender] = block.number;
    _totalLock = _totalLock.sub(amount);
  }

  // @dev move CODEXs with its locked funds to another account
  function transferAll(address _to) public {
    _locks[_to] = _locks[_to].add(_locks[msg.sender]);

    if (_lastUnlockBlock[_to] < startReleaseBlock) {
      _lastUnlockBlock[_to] = startReleaseBlock;
    }

    if (_lastUnlockBlock[_to] < _lastUnlockBlock[msg.sender]) {
      _lastUnlockBlock[_to] = _lastUnlockBlock[msg.sender];
    }

    _locks[msg.sender] = 0;
    _lastUnlockBlock[msg.sender] = 0;

    _transfer(msg.sender, _to, balanceOf(msg.sender));
  }

  // Copied and modified from YAM code:
  // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
  // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
  // Which is copied and modified from COMPOUND:
  // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

  /// @notice A record of each accounts delegate
  mapping(address => address) internal _delegates;

  /// @notice A checkpoint for marking number of votes from a given block
  struct Checkpoint {
    uint32 fromBlock;
    uint256 votes;
  }

  /// @notice A record of votes checkpoints for each account, by index
  mapping(address => mapping(uint32 => Checkpoint)) public checkpoints;

  /// @notice The number of checkpoints for each account
  mapping(address => uint32) public numCheckpoints;

  /// @notice The EIP-712 typehash for the contract's domain
  bytes32 public constant DOMAIN_TYPEHASH = keccak256(
    "EIP712Domain(string name,uint256 chainId,address verifyingContract)"
  );

  /// @notice The EIP-712 typehash for the delegation struct used by the contract
  bytes32 public constant DELEGATION_TYPEHASH = keccak256(
    "Delegation(address delegatee,uint256 nonce,uint256 expiry)"
  );

  /// @notice A record of states for signing / validating signatures
  mapping(address => uint256) public nonces;

  /// @notice An event thats emitted when an account changes its delegate
  event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

  /// @notice An event thats emitted when a delegate account's vote balance changes
  event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);

  /**
    * @notice Delegate votes from `msg.sender` to `delegatee`
    * @param delegator The address to get delegatee for
    */
  function delegates(address delegator) external view returns (address) {
    return _delegates[delegator];
  }

  /**
    * @notice Delegate votes from `msg.sender` to `delegatee`
    * @param delegatee The address to delegate votes to
    */
  function delegate(address delegatee) external {
    return _delegate(msg.sender, delegatee);
  }

  /**
    * @notice Delegates votes from signatory to `delegatee`
    * @param delegatee The address to delegate votes to
    * @param nonce The contract state required to match the signature
    * @param expiry The time at which to expire the signature
    * @param v The recovery byte of the signature
    * @param r Half of the ECDSA signature pair
    * @param s Half of the ECDSA signature pair
    */
  function delegateBySig(
    address delegatee,
    uint256 nonce,
    uint256 expiry,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external {
    bytes32 domainSeparator = keccak256(
      abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this))
    );

    bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));

    bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));

    address signatory = ecrecover(digest, v, r, s);
    require(signatory != address(0), "CODEX::delegateBySig: invalid signature");
    require(nonce == nonces[signatory]++, "CODEX::delegateBySig: invalid nonce");
    require(now <= expiry, "CODEX::delegateBySig: signature expired");
    return _delegate(signatory, delegatee);
  }

  /**
    * @notice Gets the current votes balance for `account`
    * @param account The address to get votes balance
    * @return The number of current votes for `account`
    */
  function getCurrentVotes(address account) external view returns (uint256) {
    uint32 nCheckpoints = numCheckpoints[account];
    return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
  }

  /**
    * @notice Determine the prior number of votes for an account as of a block number
    * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
    * @param account The address of the account to check
    * @param blockNumber The block number to get the vote balance at
    * @return The number of votes the account had as of the given block
    */
  function getPriorVotes(address account, uint256 blockNumber) external view returns (uint256) {
    require(blockNumber < block.number, "CODEX::getPriorVotes: not yet determined");

    uint32 nCheckpoints = numCheckpoints[account];
    if (nCheckpoints == 0) {
      return 0;
    }

    // First check most recent balance
    if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
      return checkpoints[account][nCheckpoints - 1].votes;
    }

    // Next check implicit zero balance
    if (checkpoints[account][0].fromBlock > blockNumber) {
      return 0;
    }

    uint32 lower = 0;
    uint32 upper = nCheckpoints - 1;
    while (upper > lower) {
      uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
      Checkpoint memory cp = checkpoints[account][center];
      if (cp.fromBlock == blockNumber) {
        return cp.votes;
      } else if (cp.fromBlock < blockNumber) {
        lower = center;
      } else {
        upper = center - 1;
      }
    }
    return checkpoints[account][lower].votes;
  }

  function _delegate(address delegator, address delegatee) internal {
    address currentDelegate = _delegates[delegator];
    uint256 delegatorBalance = balanceOf(delegator); // balance of underlying CODEXs (not scaled);
    _delegates[delegator] = delegatee;

    emit DelegateChanged(delegator, currentDelegate, delegatee);

    _moveDelegates(currentDelegate, delegatee, delegatorBalance);
  }

  function _moveDelegates(
    address srcRep,
    address dstRep,
    uint256 amount
  ) internal {
    if (srcRep != dstRep && amount > 0) {
      if (srcRep != address(0)) {
        // decrease old representative
        uint32 srcRepNum = numCheckpoints[srcRep];
        uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
        uint256 srcRepNew = srcRepOld.sub(amount);
        _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
      }

      if (dstRep != address(0)) {
        // increase new representative
        uint32 dstRepNum = numCheckpoints[dstRep];
        uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
        uint256 dstRepNew = dstRepOld.add(amount);
        _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
      }
    }
  }

  function _writeCheckpoint(
    address delegatee,
    uint32 nCheckpoints,
    uint256 oldVotes,
    uint256 newVotes
  ) internal {
    uint32 blockNumber = safe32(block.number, "CODEX::_writeCheckpoint: block number exceeds 32 bits");

    if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
      checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
    } else {
      checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
      numCheckpoints[delegatee] = nCheckpoints + 1;
    }

    emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
  }

  function safe32(uint256 n, string memory errorMessage) internal pure returns (uint32) {
    require(n < 2**32, errorMessage);
    return uint32(n);
  }

  function getChainId() internal pure returns (uint256) {
    uint256 chainId;
    assembly {
      chainId := chainid()
    }
    return chainId;
  }
}

interface IFairLaunch {
  function poolLength() external view returns (uint256);

  function addPool(
    uint256 _allocPoint,
    address _stakeToken,
    bool _withUpdate
  ) external;

  function setPool(
    uint256 _pid,
    uint256 _allocPoint,
    bool _withUpdate
  ) external;

  function pendingCodex(uint256 _pid, address _user) external view returns (uint256);

  function updatePool(uint256 _pid) external;

  function deposit(address _for, uint256 _pid, uint256 _amount) external;

  function withdraw(address _for, uint256 _pid, uint256 _amount) external;

  function withdrawAll(address _for, uint256 _pid) external;

  function harvest(uint256 _pid) external;
}

// FairLaunch is a smart contract for distributing CODEX by asking user to stake the ERC20-based token.
contract FairLaunch is IFairLaunch, Ownable {
  using SafeMath for uint256;
  using SafeERC20 for IERC20;

  // Info of each user.
  struct UserInfo {
    uint256 amount; // How many Staking tokens the user has provided.
    uint256 rewardDebt; // Reward debt. See explanation below.
    address fundedBy; // Funded by who?
    //
    // We do some fancy math here. Basically, any point in time, the amount of CODEXs
    // entitled to a user but is pending to be distributed is:
    //
    //   pending reward = (user.amount * pool.accCodexPerShare) - user.rewardDebt
    //
    // Whenever a user deposits or withdraws Staking tokens to a pool. Here's what happens:
    //   1. The pool's `accCodexPerShare` (and `lastRewardBlock`) gets updated.
    //   2. User receives the pending reward sent to his/her address.
    //   3. User's `amount` gets updated.
    //   4. User's `rewardDebt` gets updated.
  }

  // Info of each pool.
  struct PoolInfo {
    address stakeToken; // Address of Staking token contract.
    uint256 allocPoint; // How many allocation points assigned to this pool. CODEXs to distribute per block.
    uint256 lastRewardBlock; // Last block number that CODEXs distribution occurs.
    uint256 accCodexPerShare; // Accumulated CODEXs per share, times 1e12. See below.
  }

  // The Codex TOKEN!
  CodexToken public codex;
  // Dev address.
  address public devaddr;
  // amount of CODEX per block in different epochs
  mapping(uint256 => uint256) public codexEmission;
  // amount of CODEX earned by users. _codexEarningsByPool[userAddress][pid] = codex earned by userAddress from pool with ID pid
  mapping(address => mapping(uint256 => uint256)) private _codexEarningsByPool;
  //total Codex rewarded to all users
  uint256 public _totalEarnedCodex;
  //length of an epoch in blocks (BSC has blocks every ~3sec) -- 806400 blocks/epoch gives an 1 epoch / 4 weeks
  uint256 private constant BLOCKS_PER_EPOCH = 806400;

  // Info of each pool.
  PoolInfo[] public poolInfo;
  // Info of each user that stakes Staking tokens.
  mapping(uint256 => mapping(address => UserInfo)) public userInfo;
  // Total allocation poitns. Must be the sum of all allocation points in all pools.
  uint256 public totalAllocPoint;
  // The block number when codex mining starts.
  uint256 public startBlock;

  event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
  event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
  event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);

  constructor(
    CodexToken _codex,
    address _devaddr,
    uint256 _startBlock
  ) public {
    totalAllocPoint = 0;
    codex = _codex;
    devaddr = _devaddr;
    startBlock = _startBlock;
    codexEmission[0] = 1716501736111110000;
    codexEmission[1] = 1615055803571430000;
    codexEmission[2] = 771374007936508000;
    codexEmission[3] = 748231646825397000;
    codexEmission[4] = 725784970238095000;
    codexEmission[5] = 704011656746032000;
    codexEmission[6] = 682890625000000000;
    codexEmission[7] = 662404513888889000;
    codexEmission[8] = 642532242063492000;
    codexEmission[9] = 623256448412699000;
    codexEmission[10] = 604558531746032000;
    codexEmission[11] = 586421130952381000;
    codexEmission[12] = 568829365079365000;
    codexEmission[13] = 551763392857143000;
    codexEmission[14] = 535210813492063000;
    codexEmission[15] = 519154265873016000;
    codexEmission[16] = 503580109126984000;
    codexEmission[17] = 488472222222222000;
    codexEmission[18] = 473818204365079000;
    codexEmission[19] = 459603174603175000;
    codexEmission[20] = 445815972222222000;
    codexEmission[21] = 432441716269841000;
    codexEmission[22] = 419468005952381000;
    codexEmission[23] = 406883680555556000;
    codexEmission[24] = 394677579365079000;
    codexEmission[25] = 382837301587302000;
    codexEmission[26] = 371352926587302000;
    codexEmission[27] = 360212053571429000;
    codexEmission[28] = 349406001984127000;
    codexEmission[29] = 338923611111111000;
    codexEmission[30] = 328756200396825000;
    codexEmission[31] = 318892609126984000;
    codexEmission[32] = 309326636904762000;
    codexEmission[33] = 300045882936508000;
    codexEmission[34] = 291045386904762000;
    codexEmission[35] = 282313988095238000;
    codexEmission[36] = 273844246031746000;
    codexEmission[37] = 265627480158730000;
    codexEmission[38] = 257659970238095000;
    codexEmission[39] = 249929315476191000;
    codexEmission[40] = 242430555555556000;
  }

  /*
  ██████╗░░█████╗░██████╗░░█████╗░███╗░░░███╗  ░██████╗███████╗████████╗████████╗███████╗██████╗░
  ██╔══██╗██╔══██╗██╔══██╗██╔══██╗████╗░████║  ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗
  ██████╔╝███████║██████╔╝███████║██╔████╔██║  ╚█████╗░█████╗░░░░░██║░░░░░░██║░░░█████╗░░██████╔╝
  ██╔═══╝░██╔══██║██╔══██╗██╔══██║██║╚██╔╝██║  ░╚═══██╗██╔══╝░░░░░██║░░░░░░██║░░░██╔══╝░░██╔══██╗
  ██║░░░░░██║░░██║██║░░██║██║░░██║██║░╚═╝░██║  ██████╔╝███████╗░░░██║░░░░░░██║░░░███████╗██║░░██║
  ╚═╝░░░░░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░░░░╚═╝  ╚═════╝░╚══════╝░░░╚═╝░░░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝
  */

  // Update dev address by the previous dev.
  function setDev(address _devaddr) public {
    require(msg.sender == devaddr, "dev: wut?");
    devaddr = _devaddr;
  }

  // Add a new lp to the pool. Can only be called by the owner.
  function addPool(
    uint256 _allocPoint,
    address _stakeToken,
    bool _withUpdate
  ) public override onlyOwner {
    if (_withUpdate) {
      massUpdatePools();
    }
    require(_stakeToken != address(0), "add: not stakeToken addr");
    require(!isDuplicatedPool(_stakeToken), "add: stakeToken dup");
    uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
    totalAllocPoint = totalAllocPoint.add(_allocPoint);
    poolInfo.push(
      PoolInfo({
        stakeToken: _stakeToken,
        allocPoint: _allocPoint,
        lastRewardBlock: lastRewardBlock,
        accCodexPerShare: 0
      })
    );
  }

  // Update the given pool's CODEX allocation point. Can only be called by the owner.
  function setPool(
    uint256 _pid,
    uint256 _allocPoint,
    bool _withUpdate
  ) public override onlyOwner {
    if (_withUpdate) {
      massUpdatePools();
    }
    totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
    poolInfo[_pid].allocPoint = _allocPoint;
  }

  /*
  ░██╗░░░░░░░██╗░█████╗░██████╗░██╗░░██╗
  ░██║░░██╗░░██║██╔══██╗██╔══██╗██║░██╔╝
  ░╚██╗████╗██╔╝██║░░██║██████╔╝█████═╝░
  ░░████╔═████║░██║░░██║██╔══██╗██╔═██╗░
  ░░╚██╔╝░╚██╔╝░╚█████╔╝██║░░██║██║░╚██╗
  ░░░╚═╝░░░╚═╝░░░╚════╝░╚═╝░░╚═╝╚═╝░░╚═╝
  */

  function isDuplicatedPool(address _stakeToken) public view returns (bool) {
    uint256 length = poolInfo.length;
    for (uint256 _pid = 0; _pid < length; _pid++) {
      if(poolInfo[_pid].stakeToken == _stakeToken) return true;
    }
    return false;
  }

  function poolLength() external override view returns (uint256) {
    return poolInfo.length;
  }

  // View function to see pending CODEXs on frontend.
  function pendingCodex(uint256 _pid, address _user) external override view returns (uint256) {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][_user];
    uint256 accCodexPerShare = pool.accCodexPerShare;
    uint256 lpSupply = IERC20(pool.stakeToken).balanceOf(address(this));
    if (block.number > pool.lastRewardBlock && lpSupply != 0) {
      uint256 codexReward = rewardWaterfall(pool.lastRewardBlock, block.number).mul(pool.allocPoint).div(totalAllocPoint);
      uint256 devAmount = codexReward.mul(15).div(95);
      uint256 userReward = codexReward.sub( devAmount );
      accCodexPerShare = accCodexPerShare.add(userReward.mul(1e12).div(lpSupply));
    }
    return user.amount.mul(accCodexPerShare).div(1e12).sub(user.rewardDebt);
  }

  // Update reward vairables for all pools. Be careful of gas spending!
  function massUpdatePools() public {
    uint256 length = poolInfo.length;
    for (uint256 pid = 0; pid < length; ++pid) {
      updatePool(pid);
    }
  }

  // Update reward variables of the given pool to be up-to-date.
  function updatePool(uint256 _pid) public override {
    PoolInfo storage pool = poolInfo[_pid];
    if (block.number <= pool.lastRewardBlock) {
      return;
    }
    uint256 lpSupply = IERC20(pool.stakeToken).balanceOf(address(this));
    if (lpSupply == 0) {
      pool.lastRewardBlock = block.number;
      return;
    }
    uint256 codexReward = rewardWaterfall(pool.lastRewardBlock, block.number).mul(pool.allocPoint).div(totalAllocPoint);
    uint256 devAmount = codexReward.mul(15).div(95);
    uint256 devLock = codexReward.mul(12).div(95);
    uint256 userReward = codexReward.sub(devAmount);
    codex.mint(devaddr, devAmount);
    codex.mint(address(this), codexReward.sub(devAmount));
    codex.lock(devaddr, devLock);
    pool.accCodexPerShare = pool.accCodexPerShare.add(userReward.mul(1e12).div(lpSupply));
    pool.lastRewardBlock = block.number;
  }

  // Deposit Staking tokens to FairLaunchToken for CODEX allocation.
  function deposit(address _for, uint256 _pid, uint256 _amount) public override {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][_for];
    if (user.fundedBy != address(0)) require(user.fundedBy == msg.sender, "bad sof");
    require(pool.stakeToken != address(0), "deposit: not accept deposit");
    updatePool(_pid);
    if (user.amount > 0) _harvest(_for, _pid);
    if (user.fundedBy == address(0)) user.fundedBy = msg.sender;
    IERC20(pool.stakeToken).safeTransferFrom(address(msg.sender), address(this), _amount);
    user.amount = user.amount.add(_amount);
    user.rewardDebt = user.amount.mul(pool.accCodexPerShare).div(1e12);
    emit Deposit(msg.sender, _pid, _amount);
  }

  // Withdraw Staking tokens from FairLaunchToken.
  function withdraw(address _for, uint256 _pid, uint256 _amount) public override {
    _withdraw(_for, _pid, _amount);
  }

  function withdrawAll(address _for, uint256 _pid) public override {
    _withdraw(_for, _pid, userInfo[_pid][_for].amount);
  }

  function _withdraw(address _for, uint256 _pid, uint256 _amount) internal {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][_for];
    require(user.fundedBy == msg.sender, "only funder");
    require(user.amount >= _amount, "withdraw: not good");
    updatePool(_pid);
    _harvest(_for, _pid);
    user.amount = user.amount.sub(_amount);
    user.rewardDebt = user.amount.mul(pool.accCodexPerShare).div(1e12);
    if (pool.stakeToken != address(0)) {
      IERC20(pool.stakeToken).safeTransfer(address(msg.sender), _amount);
    }
    emit Withdraw(msg.sender, _pid, user.amount);
  }

  // Harvest CODEXs earn from the pool.
  function harvest(uint256 _pid) public override {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    updatePool(_pid);
    _harvest(msg.sender, _pid);
    user.rewardDebt = user.amount.mul(pool.accCodexPerShare).div(1e12);
  }

  function _harvest(address _to, uint256 _pid) internal {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][_to];
    require(user.amount > 0, "nothing to harvest");
    uint256 pending = user.amount.mul(pool.accCodexPerShare).div(1e12).sub(user.rewardDebt);
    require(pending <= codex.balanceOf(address(this)), "wtf not enough codex");
    _codexEarningsByPool[_to][_pid] = _codexEarningsByPool[_to][_pid].add(pending);
    _totalEarnedCodex = _totalEarnedCodex.add(pending);
    safeCodexTransfer(_to, pending);
    codex.lock(_to, pending.mul(80).div(100));
  }

  // Withdraw without caring about rewards. EMERGENCY ONLY.
  function emergencyWithdraw(uint256 _pid) public {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    IERC20(pool.stakeToken).safeTransfer(address(msg.sender), user.amount);
    emit EmergencyWithdraw(msg.sender, _pid, user.amount);
    user.amount = 0;
    user.rewardDebt = 0;
  }

    // Safe codex transfer function, just in case if rounding error causes pool to not have enough CODEXs.
  function safeCodexTransfer(address _to, uint256 _amount) internal {
    uint256 codexBal = codex.balanceOf(address(this));
    if (_amount > codexBal) {
      codex.transfer(_to, codexBal);
    } else {
      codex.transfer(_to, _amount);
    }
  }


  function getEpochFromBlock(uint256 blockNumber) public view returns(uint256) {
    uint256 epoch = (blockNumber.sub(startBlock)).div(BLOCKS_PER_EPOCH);
    return epoch;
  }

  function getBlockEndFromEpoch(uint256 epochNumber) public view returns(uint256) {
    uint256 blocksFromStart = (epochNumber + 1).mul(BLOCKS_PER_EPOCH);
    uint256 epochBlockEnd = startBlock.add(blocksFromStart);
    return epochBlockEnd;
  }

  // Return reward over the period _from to _to block.
  function rewardWaterfall(uint256 _lastRewardBlock, uint256 _currentBlock) public view returns (uint256) {
    uint256 startEpoch = getEpochFromBlock(_lastRewardBlock);
    uint256 endEpoch = getEpochFromBlock(_currentBlock);
    uint256 blocksLeftInEpoch;
    uint256 totalReward;
    uint256 rewardedUntil = _lastRewardBlock;
    if (startEpoch > endEpoch) {
        revert();
    }
    //waterfall logic
    while(startEpoch < endEpoch) {
      blocksLeftInEpoch = getBlockEndFromEpoch(startEpoch).sub(rewardedUntil);
      totalReward = totalReward.add( blocksLeftInEpoch.mul(codexEmission[startEpoch]) );
      //advance calculation for next epoch
      rewardedUntil = getBlockEndFromEpoch(startEpoch);
      startEpoch = startEpoch.add(1);
    }
    uint256 inEpochReward = (_currentBlock.sub(rewardedUntil)).mul(codexEmission[startEpoch]);
    totalReward = totalReward.add(inEpochReward);

    return totalReward;
  }

  function codexPerBlock() public view returns(uint256) {
    if ( block.number < startBlock ){
        return 0;
    } else {
        uint256 currentEpoch = getEpochFromBlock(block.number);
        return codexEmission[currentEpoch];
    }
  }

  function codexPerWeek() public view returns(uint256) {
    return (codexPerBlock() * 201600);
  }

  function codexPerYear() public view returns(uint256) {
    //uses 3 second blocks and 365 day year
    return (codexPerBlock() * 10512000);
  }

  function totalEarnedCodex() public view returns(uint256) {
    return _totalEarnedCodex;
  }

  function earnedCodexByPool(address user, uint256 pid) public view returns(uint256) {
    return _codexEarningsByPool[user][pid];
  }

  function earnedCodexByAddress(address user) public view returns (uint256) {
    uint256 codexEarned;
    for (uint256 i = 0; i < poolInfo.length; i++) {
        codexEarned = codexEarned.add(earnedCodexByPool(user, i));
    }
    return codexEarned;
  }

}

Contract ABI

[{"inputs":[{"internalType":"contract CodexToken","name":"_codex","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"_totalEarnedCodex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"address","name":"_stakeToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"codex","outputs":[{"internalType":"contract CodexToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"codexEmission","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"codexPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"codexPerWeek","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"codexPerYear","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_for","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"earnedCodexByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"earnedCodexByPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"epochNumber","type":"uint256"}],"name":"getBlockEndFromEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getEpochFromBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakeToken","type":"address"}],"name":"isDuplicatedPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingCodex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"address","name":"stakeToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accCodexPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"_currentBlock","type":"uint256"}],"name":"rewardWaterfall","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"setDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalEarnedCodex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"address","name":"fundedBy","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_for","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_for","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516129113803806129118339818101604052606081101561003357600080fd5b508051602082015160409092015190919060006100576001600160e01b036107cf16565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060006008819055600180546001600160a01b039586166001600160a01b031991821617909155600280549490951693169290921790925560099190915560036020526717d23d3c0d3e77707f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff55671669d4b2484ee2707fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c55670ab47892c40660607fc3a24b0501bd2c13a7e57f2db4369ec4c223447539fc0724a9d55ac4a06ebd4d55670a6240b7eebbbb087fcbc4e5fb02c3d1de23a9f1e014b4d2ee5aeaea9505df5e855c9210bf472495af55670a128195c65bee987f83ec6a1f0257b830b5e016457c9cf1435391bf56cc98f369a58a54fe93772465556709c526df2e14db807f405aad32e1adbac89bb7f176e338b8fc6e994ca210c9bb7bdca249b4659422505567097a1d67c391ca007fc69056f16cbaa3c616b828e333ab7d3a32310765507f8f58359e99ebb7a885f355670931556553f668a87ff2c49132ed1cee2a7e75bde50d332a2f81f1d01e5456d8a19d1df09bd561dbd2556708eabbab7cee03a07f85aaa47b6dc46495bb8824fad4583769726fea36efd831a35556690b830a8fbe556708a640700b9c49787f8a8dc4e5242ea8b1ab1d60606dae757e6c2cca9f92a2cced9f72c19960bcb45855670863d2c812a769807f9dcb9783ba5cd0b54745f65f4f918525e461e91888c334e5342cb380ac558d535567082362e95f3312487f2d72af3c1b2b2956e6f694fb741556d5ca9524373974378cdbec16afa8b84164556707e4e34b335dd5887fd56a60595ebefebed7f22dcee6c2acc61b06cf8c68e84c88677840365d1ff92b556707a841e1e75076d87fa8f2d96126c6d0ad63adabaef7bf5cf47f163fb0c218a473d28f62312d197bcf5567076d736632246b187fd6ebcc64c739277b117ce359e436534b234b76e914c80ad276abf5b56207893955670734680de0fd64c07ff60b7f6a315ec68a6ac240e69dca53652b38627f709a2caa217d9e18af4d7a60556706fd1370f07761407f47d4745e02b343689a5e7ac121d2a352b7a15c10328a8759fd7d4cf0999002bb556706c766e5e83382b07ffc111d09a6e2f0958402cbe16a5aef32c9d8ddb9a4df7271140de57bfed6525a5567069357257f4b41d87f6a2b6bffaca788160f671fa62d34758b717f75a90ad5a468757c50d61f33c44355670660d6a6f7dd34587f8a8166be5f30abeb6c91ee2f07eeb0b2eb14b4d59534d10a1c143964bd6179195567062fdb43c3803eb07f0ffe031ee7f67944a037276fd51f48fcc2fe05a729c43144606bc8777da8014f5567060057732452fa687f94f2575c7592b1dfd5a8846a17482da7b0e38fb10c93880d74916c5f16792464556705d23fedd16ee0487f370c8c7c6215b209793aa720f65163fbeecd5f5114008532ba0649ee23405402556705a58a8d3c6adca07f0f0519a40093d7edad68f12e2ec868fdf92a03df1cbec3e035c987d6b218f2f45567057a2d2ad6ddd7d87fa3ddc4e8d053be09ec661eb04964a206cbd921c2c11fc03088857923bed1485a556705501c7f57e156707fad96411afed98a37aa585ce71717b0782fa4bee47da09d8f483e532128238611556705274f84eb89b0707f68fc0e82119a780903c8e97d959a36d433d1e401ad7b7a461ff2087e524d54a8556704ffbaf448f062887f925be0b447003e4366d6addf976a9e5448b14e56ca3733fe4a9ca6f86b0dcbd5556704d956e856a740187f57023ef7fe58b878582140ea36f22723905ad724896eaf74090fba76c229bd22556704b4193a864539587f4ba0d371c59a4c8176901cb7799ecdd8b41b974be3a1349b5d0a9ff9aaa230d95567048ffa05be5c21a87f6117fee2f1274e1b392d2c3fe842478040a980d896757f38cbfe2ceebfa9f55f5567046cef237082e9407fbb7ea1d025e27e153f156855239b4b128e9da3a64a6f0a0270f89209895881425567044af2eff8464a907fe0033292d8349127dd6b6fa9c34f6f3d290151b2785dbcbf18fa2c3985d1f74355670429fa240cbfbe607fb79c508b45d95db38395ed273cca5afa4bcb8f1225ec7e9c849430db27d6f0fe5567040a003cc3f976907f9f4e12e393433b9749089d7660b578840ae05c9423ce1aefceb0c80c340a21c6556703eafb138f8a5f707f4f8c9d329171a3577e6beb939d329b1f26da4c7a51f25bbe134c866f0feee945556703cce3e41081c3d07f10f5232ee9f6343d8bf0b7c9043a31ee616d8f028dcf3d2e9033ff8e0ce0ef0f556703afb2c92d7177107f37e56e4c2b6ed73b31a7a63e641bfee67245b50921806a650aa65bb58a213ba7556703936460b6e11e987f6e80044b428a86ddb5f7277680f16ac528219bbc3f477f367a023fd1680fef0555670377ed6363ea37187f10f3a17841c6d818ccbb16e4596978865bb77ba586b583c9de26b166e55de864556028905267035d494e4a96eaa07ff787d5ff306ee7ea1d7b35b5cacd5a837646921c113945dbc3a3b6329ce40033556107d3565b3390565b61212f806107e26000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c806393f1a40b1161011a578063d477f05f116100ad578063e36c91261161007c578063e36c912614610568578063ea2e723f14610585578063f06483ba146105b1578063f2fde38b146105ce578063f396199e146105f4576101fb565b8063d477f05f14610515578063d49e77cd1461053b578063d813f6b714610543578063ddc632621461054b576101fb565b8063b6a2298e116100e9578063b6a2298e1461048f578063bded13de146104b5578063c59935b1146104bd578063cc6dbc27146104e9576101fb565b806393f1a40b146103b357806396b477cb14610406578063b03df69d14610423578063b5c5f6721461045d576101fb565b806351eb05a611610192578063715018a611610161578063715018a6146103675780637abceffd1461036f5780637dc7948d146103a35780638da5cb5b146103ab576101fb565b806351eb05a6146103025780635312ea8e1461031f5780635ba83ef31461033c578063630b5ba11461035f576101fb565b806341779f86116101ce57806341779f86146102a357806346ca6bea146102c757806348cd4cb1146102f25780634cf05bbe146102fa576101fb565b8063081e3eda146102005780630efe6a8b1461021a5780631526fe271461024e57806317caf6f11461029b575b600080fd5b6102086105fc565b60408051918252519081900360200190f35b61024c6004803603606081101561023057600080fd5b506001600160a01b038135169060208101359060400135610603565b005b61026b6004803603602081101561026457600080fd5b50356107d8565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b610208610819565b6102ab61081f565b604080516001600160a01b039092168252519081900360200190f35b61024c600480360360608110156102dd57600080fd5b5080359060208101359060400135151561082e565b61020861090f565b610208610915565b61024c6004803603602081101561031857600080fd5b5035610929565b61024c6004803603602081101561033557600080fd5b5035610c0a565b6102086004803603604081101561035257600080fd5b5080359060200135610cab565b61024c610d95565b61024c610db8565b61024c6004803603606081101561038557600080fd5b508035906001600160a01b0360208201351690604001351515610e64565b61020861109b565b6102ab6110d2565b6103df600480360360408110156103c957600080fd5b50803590602001356001600160a01b03166110e1565b6040805193845260208401929092526001600160a01b031682820152519081900360600190f35b6102086004803603602081101561041c57600080fd5b5035611116565b6104496004803603602081101561043957600080fd5b50356001600160a01b031661113e565b604080519115158252519081900360200190f35b61024c6004803603606081101561047357600080fd5b506001600160a01b0381351690602081013590604001356111a2565b610208600480360360208110156104a557600080fd5b50356001600160a01b03166111b2565b6102086111df565b610208600480360360408110156104d357600080fd5b506001600160a01b0381351690602001356111e5565b61024c600480360360408110156104ff57600080fd5b506001600160a01b03813516906020013561120d565b61024c6004803603602081101561052b57600080fd5b50356001600160a01b031661123d565b6102ab6112aa565b6102086112b9565b61024c6004803603602081101561056157600080fd5b50356112cd565b6102086004803603602081101561057e57600080fd5b5035611342565b6102086004803603604081101561059b57600080fd5b50803590602001356001600160a01b0316611354565b610208600480360360208110156105c757600080fd5b50356114d8565b61024c600480360360208110156105e457600080fd5b50356001600160a01b0316611512565b610208611614565b6006545b90565b60006006838154811061061257fe5b600091825260208083208684526007825260408085206001600160a01b03808b1687529352909320600281015460049093029093019350161561069a5760028101546001600160a01b0316331461069a576040805162461bcd60e51b81526020600482015260076024820152663130b21039b7b360c91b604482015290519081900360640190fd5b81546001600160a01b03166106f6576040805162461bcd60e51b815260206004820152601b60248201527f6465706f7369743a206e6f7420616363657074206465706f7369740000000000604482015290519081900360640190fd5b6106ff84610929565b80541561071057610710858561161a565b60028101546001600160a01b0316610737576002810180546001600160a01b031916331790555b8154610754906001600160a01b031633308663ffffffff6118a316565b8054610766908463ffffffff61190316565b80825560038301546107959164e8d4a5100091610789919063ffffffff61196416565b9063ffffffff6119bd16565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b600681815481106107e557fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60085481565b6001546001600160a01b031681565b610836611a24565b6001600160a01b03166108476110d2565b6001600160a01b031614610890576040805162461bcd60e51b815260206004820181905260248201526000805160206120b0833981519152604482015290519081900360640190fd5b801561089e5761089e610d95565b6108e1826108d5600686815481106108b257fe5b906000526020600020906004020160010154600854611a2890919063ffffffff16565b9063ffffffff61190316565b60088190555081600684815481106108f557fe5b906000526020600020906004020160010181905550505050565b60095481565b600061091f61109b565b6203138002905090565b60006006828154811061093857fe5b90600052602060002090600402019050806002015443116109595750610c07565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156109a357600080fd5b505afa1580156109b7573d6000803e3d6000fd5b505050506040513d60208110156109cd57600080fd5b50519050806109e3575043600290910155610c07565b6000610a0d6008546107898560010154610a01876002015443610cab565b9063ffffffff61196416565b90506000610a27605f61078984600f63ffffffff61196416565b90506000610a41605f61078985600c63ffffffff61196416565b90506000610a55848463ffffffff611a2816565b600154600254604080516340c10f1960e01b81526001600160a01b0392831660048201526024810188905290519394509116916340c10f199160448082019260009290919082900301818387803b158015610aaf57600080fd5b505af1158015610ac3573d6000803e3d6000fd5b50506001546001600160a01b031691506340c10f19905030610aeb878763ffffffff611a2816565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610b3a57600080fd5b505af1158015610b4e573d6000803e3d6000fd5b50506001546002546040805163282d3fdf60e01b81526001600160a01b03928316600482015260248101889052905191909216935063282d3fdf9250604480830192600092919082900301818387803b158015610baa57600080fd5b505af1158015610bbe573d6000803e3d6000fd5b50505050610bf2610be18661078964e8d4a510008561196490919063ffffffff16565b60038801549063ffffffff61190316565b60038701555050436002909401939093555050505b50565b600060068281548110610c1957fe5b60009182526020808320858452600782526040808520338087529352909320805460049093029093018054909450610c64926001600160a01b0391909116919063ffffffff611a8516565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b600080610cb784611116565b90506000610cc484611116565b90506000808683851115610cd757600080fd5b83851015610d5157610cf881610cec876114d8565b9063ffffffff611a2816565b600086815260036020526040902054909350610d2c90610d1f90859063ffffffff61196416565b839063ffffffff61190316565b9150610d37856114d8565b9050610d4a85600163ffffffff61190316565b9450610cd7565b600085815260036020526040812054610d7490610a018a8563ffffffff611a2816565b9050610d86838263ffffffff61190316565b96505050505050505b92915050565b60065460005b81811015610db457610dac81610929565b600101610d9b565b5050565b610dc0611a24565b6001600160a01b0316610dd16110d2565b6001600160a01b031614610e1a576040805162461bcd60e51b815260206004820181905260248201526000805160206120b0833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610e6c611a24565b6001600160a01b0316610e7d6110d2565b6001600160a01b031614610ec6576040805162461bcd60e51b815260206004820181905260248201526000805160206120b0833981519152604482015290519081900360640190fd5b8015610ed457610ed4610d95565b6001600160a01b038216610f2f576040805162461bcd60e51b815260206004820152601860248201527f6164643a206e6f74207374616b65546f6b656e20616464720000000000000000604482015290519081900360640190fd5b610f388261113e565b15610f80576040805162461bcd60e51b815260206004820152601360248201527206164643a207374616b65546f6b656e2064757606c1b604482015290519081900360640190fd5b60006009544311610f9357600954610f95565b435b600854909150610fab908563ffffffff61190316565b600855604080516080810182526001600160a01b0394851681526020810195865290810191825260006060820181815260068054600181018255925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919096161790945593517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40840155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d418301555090517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290910155565b60006009544310156110af57506000610600565b60006110ba43611116565b60009081526003602052604090205491506106009050565b6000546001600160a01b031690565b60076020908152600092835260408084209091529082529020805460018201546002909201549091906001600160a01b031683565b600080611135620c4e0061078960095486611a2890919063ffffffff16565b9150505b919050565b600654600090815b8181101561119857836001600160a01b03166006828154811061116557fe5b60009182526020909120600490910201546001600160a01b0316141561119057600192505050611139565b600101611146565b5060009392505050565b6111ad838383611ad7565b505050565b600080805b6006548110156111d8576111ce610d1f85836111e5565b91506001016111b7565b5092915050565b60055481565b6001600160a01b03919091166000908152600460209081526040808320938352929052205490565b60008181526007602090815260408083206001600160a01b0386168452909152902054610db49083908390611ad7565b6002546001600160a01b03163314611288576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b60006112c361109b565b62a0668002905090565b6000600682815481106112dc57fe5b6000918252602080832085845260078252604080852033865290925292206004909102909101915061130d83610929565b611317338461161a565b600382015481546113389164e8d4a51000916107899163ffffffff61196416565b6001909101555050565b60036020526000908152604090205481565b6000806006848154811061136457fe5b600091825260208083208784526007825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b1580156113e257600080fd5b505afa1580156113f6573d6000803e3d6000fd5b505050506040513d602081101561140c57600080fd5b505160028501549091504311801561142357508015155b156114a55760006114466008546107898760010154610a01896002015443610cab565b90506000611460605f61078984600f63ffffffff61196416565b90506000611474838363ffffffff611a2816565b905061149f611492856107898464e8d4a5100063ffffffff61196416565b869063ffffffff61190316565b94505050505b6114cd8360010154610cec64e8d4a5100061078986886000015461196490919063ffffffff16565b979650505050505050565b6000806114f160018401620c4e0063ffffffff61196416565b9050600061150a8260095461190390919063ffffffff16565b949350505050565b61151a611a24565b6001600160a01b031661152b6110d2565b6001600160a01b031614611574576040805162461bcd60e51b815260206004820181905260248201526000805160206120b0833981519152604482015290519081900360640190fd5b6001600160a01b0381166115b95760405162461bcd60e51b81526004018080602001828103825260268152602001806120696026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60055490565b60006006828154811061162957fe5b600091825260208083208584526007825260408085206001600160a01b038916865290925292208054600490920290920192506116a2576040805162461bcd60e51b81526020600482015260126024820152711b9bdd1a1a5b99c81d1bc81a185c9d995cdd60721b604482015290519081900360640190fd5b60006116d08260010154610cec64e8d4a510006107898760030154876000015461196490919063ffffffff16565b600154604080516370a0823160e01b815230600482015290519293506001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561171e57600080fd5b505afa158015611732573d6000803e3d6000fd5b505050506040513d602081101561174857600080fd5b5051811115611795576040805162461bcd60e51b81526020600482015260146024820152730eee8cc40dcdee840cadcdeeaced040c6dec8caf60631b604482015290519081900360640190fd5b6001600160a01b03851660009081526004602090815260408083208784529091529020546117c9908263ffffffff61190316565b6001600160a01b0386166000908152600460209081526040808320888452909152902055600554611800908263ffffffff61190316565b60055561180d8582611c62565b6001546001600160a01b031663282d3fdf86611835606461078986605063ffffffff61196416565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561188457600080fd5b505af1158015611898573d6000803e3d6000fd5b505050505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526118fd908590611df2565b50505050565b60008282018381101561195d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008261197357506000610d8f565b8282028284828161198057fe5b041461195d5760405162461bcd60e51b815260040180806020018281038252602181526020018061208f6021913960400191505060405180910390fd5b6000808211611a13576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611a1c57fe5b049392505050565b3390565b600082821115611a7f576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526111ad908490611df2565b600060068381548110611ae657fe5b600091825260208083208684526007825260408085206001600160a01b03808b1687529352909320600281015460049093029093019350163314611b5f576040805162461bcd60e51b815260206004820152600b60248201526a37b7363c90333ab73232b960a91b604482015290519081900360640190fd5b8054831115611baa576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b611bb384610929565b611bbd858561161a565b8054611bcf908463ffffffff611a2816565b8082556003830154611bf29164e8d4a5100091610789919063ffffffff61196416565b600182015581546001600160a01b031615611c23578154611c23906001600160a01b0316338563ffffffff611a8516565b80546040805191825251859133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611cad57600080fd5b505afa158015611cc1573d6000803e3d6000fd5b505050506040513d6020811015611cd757600080fd5b5051905080821115611d6b576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611d3957600080fd5b505af1158015611d4d573d6000803e3d6000fd5b505050506040513d6020811015611d6357600080fd5b506111ad9050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611dc157600080fd5b505af1158015611dd5573d6000803e3d6000fd5b505050506040513d6020811015611deb57600080fd5b5050505050565b6060611e47826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ea39092919063ffffffff16565b8051909150156111ad57808060200190516020811015611e6657600080fd5b50516111ad5760405162461bcd60e51b815260040180806020018281038252602a8152602001806120d0602a913960400191505060405180910390fd5b606061150a848460008585611eb785611fbe565b611f08576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611f475780518252601f199092019160209182019101611f28565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611fa9576040519150601f19603f3d011682016040523d82523d6000602084013e611fae565b606091505b50915091506114cd828286611fc4565b3b151590565b60608315611fd357508161195d565b825115611fe35782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561202d578181015183820152602001612015565b50505050905090810190601f16801561205a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c4cbb00fd6081c654fcd9c35e01c1116b9ef62bd2a62626d381bbacb2625df7064736f6c634300060600330000000000000000000000009e95cb3d0560f9cba88991f828322526851bfb5600000000000000000000000051ee7ff6727e40e21a7a32cdeec2539ce094b37200000000000000000000000000000000000000000000000000000000005f61f8

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

0000000000000000000000009e95cb3d0560f9cba88991f828322526851bfb5600000000000000000000000051ee7ff6727e40e21a7a32cdeec2539ce094b37200000000000000000000000000000000000000000000000000000000005f61f8

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000009e95cb3d0560f9cba88991f828322526851bfb56
Arg [1] : 00000000000000000000000051ee7ff6727e40e21a7a32cdeec2539ce094b372
Arg [2] : 00000000000000000000000000000000000000000000000000000000005f61f8


Deployed ByteCode Sourcemap

47893:16828:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;47893:16828:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;56609:98:0;;;:::i;:::-;;;;;;;;;;;;;;;;58837:736;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;58837:736:0;;;;;;;;;;;;;:::i;:::-;;49909:26;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;49909:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;49909:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50147:30;;;:::i;49248:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;49248:23:0;;;;;;;;;;;;;;55299:313;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;55299:313:0;;;;;;;;;;;;;;:::i;50231:25::-;;;:::i;63960:99::-;;;:::i;57875:886::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;57875:886:0;;:::i;61544:341::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;61544:341:0;;:::i;62753:946::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;62753:946:0;;;;;;;:::i;57643:160::-;;;:::i;23597:148::-;;;:::i;54543:663::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;54543:663:0;;;-1:-1:-1;;;;;54543:663:0;;;;;;;;;;;;:::i;63705:249::-;;;:::i;22946:87::-;;;:::i;49992:64::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;49992:64:0;;;;;;-1:-1:-1;;;;;49992:64:0;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;49992:64:0;;;;;;;;;;;;;;62262:176;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;62262:176:0;;:::i;56340:263::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;56340:263:0;-1:-1:-1;;;;;56340:263:0;;:::i;:::-;;;;;;;;;;;;;;;;;;59631:122;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;59631:122:0;;;;;;;;;;;;;:::i;64457:259::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;64457:259:0;-1:-1:-1;;;;;64457:259:0;;:::i;49677:32::-;;;:::i;64317:134::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;64317:134:0;;;;;;;;:::i;59759:128::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;59759:128:0;;;;;;;;:::i;54350:122::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;54350:122:0;-1:-1:-1;;;;;54350:122:0;;:::i;49295:22::-;;;:::i;64065:146::-;;;:::i;60576:284::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;60576:284:0;;:::i;49374:48::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;49374:48:0;;:::i;56768:796::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;56768:796:0;;;;;;-1:-1:-1;;;;;56768:796:0;;:::i;62444:247::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;62444:247:0;;:::i;23900:244::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;23900:244:0;-1:-1:-1;;;;;23900:244:0;;:::i;64217:94::-;;;:::i;56609:98::-;56686:8;:15;56609:98;;:::o;58837:736::-;58922:21;58946:8;58955:4;58946:14;;;;;;;;;;;;;;;;58991;;;:8;:14;;;;;;-1:-1:-1;;;;;58991:20:0;;;;;;;;;;59022:13;;;;58946:14;;;;;;;;-1:-1:-1;59022:13:0;:27;59018:80;;59059:13;;;;-1:-1:-1;;;;;59059:13:0;59076:10;59059:27;59051:47;;;;;-1:-1:-1;;;59051:47:0;;;;;;;;;;;;-1:-1:-1;;;59051:47:0;;;;;;;;;;;;;;;59113:15;;-1:-1:-1;;;;;59113:15:0;59105:69;;;;;-1:-1:-1;;;59105:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;59181:16;59192:4;59181:10;:16::i;:::-;59208:11;;:15;59204:41;;59225:20;59234:4;59240;59225:8;:20::i;:::-;59256:13;;;;-1:-1:-1;;;;;59256:13:0;59252:59;;59285:13;;;:26;;-1:-1:-1;;;;;;59285:26:0;59301:10;59285:26;;;59252:59;59325:15;;59318:85;;-1:-1:-1;;;;;59325:15:0;59367:10;59388:4;59395:7;59318:85;:40;:85;:::i;:::-;59424:11;;:24;;59440:7;59424:24;:15;:24;:::i;:::-;59410:38;;;59489:21;;;;59473:48;;59516:4;;59473:38;;59410;59473;:15;:38;:::i;:::-;:42;:48;:42;:48;:::i;:::-;59455:15;;;:66;59533:34;;;;;;;;59553:4;;59541:10;;59533:34;;;;;;;;;58837:736;;;;;:::o;49909:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49909:26:0;;;;-1:-1:-1;49909:26:0;;;:::o;50147:30::-;;;;:::o;49248:23::-;;;-1:-1:-1;;;;;49248:23:0;;:::o;55299:313::-;23177:12;:10;:12::i;:::-;-1:-1:-1;;;;;23166:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23166:23:0;;23158:68;;;;;-1:-1:-1;;;23158:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23158:68:0;;;;;;;;;;;;;;;55426:11:::1;55422:51;;;55448:17;:15;:17::i;:::-;55497:63;55548:11;55497:46;55517:8;55526:4;55517:14;;;;;;;;;;;;;;;;;;:25;;;55497:15;;:19;;:46;;;;:::i;:::-;:50:::0;:63:::1;:50;:63;:::i;:::-;55479:15;:81;;;;55595:11;55567:8;55576:4;55567:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;55299:313:::0;;;:::o;50231:25::-;;;;:::o;63960:99::-;64004:7;64028:15;:13;:15::i;:::-;64046:6;64028:24;64020:33;;63960:99;:::o;57875:886::-;57932:21;57956:8;57965:4;57956:14;;;;;;;;;;;;;;;;;;57932:38;;57997:4;:20;;;57981:12;:36;57977:65;;58028:7;;;57977:65;58074:15;;58067:48;;;-1:-1:-1;;;58067:48:0;;58109:4;58067:48;;;;;;58048:16;;-1:-1:-1;;;;;58074:15:0;;58067:33;;:48;;;;;;;;;;;;;;58074:15;58067:48;;;2:2:-1;;;;27:1;24;17:12;2:2;58067:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;58067:48:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;58067:48:0;;-1:-1:-1;58126:13:0;58122:86;;-1:-1:-1;58173:12:0;58150:20;;;;:35;58194:7;;58122:86;58214:19;58236:93;58313:15;;58236:72;58292:4;:15;;;58236:51;58252:4;:20;;;58274:12;58236:15;:51::i;:::-;:55;:72;:55;:72;:::i;:93::-;58214:115;-1:-1:-1;58336:17:0;58356:27;58380:2;58356:19;58214:115;58372:2;58356:19;:15;:19;:::i;:27::-;58336:47;-1:-1:-1;58390:15:0;58408:27;58432:2;58408:19;:11;58424:2;58408:19;:15;:19;:::i;:27::-;58390:45;-1:-1:-1;58442:18:0;58463:26;:11;58479:9;58463:26;:15;:26;:::i;:::-;58496:5;;58507:7;;58496:30;;;-1:-1:-1;;;58496:30:0;;-1:-1:-1;;;;;58507:7:0;;;58496:30;;;;;;;;;;;;58442:47;;-1:-1:-1;58496:5:0;;;:10;;:30;;;;;:5;;:30;;;;;;;;:5;;:30;;;2:2:-1;;;;27:1;24;17:12;2:2;58496:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;58533:5:0;;-1:-1:-1;;;;;58533:5:0;;-1:-1:-1;58533:10:0;;-1:-1:-1;58552:4:0;58559:26;:11;58575:9;58559:26;:15;:26;:::i;:::-;58533:53;;;;;;;;;;;;;-1:-1:-1;;;;;58533:53:0;-1:-1:-1;;;;;58533:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;58533:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;58593:5:0;;58604:7;;58593:28;;;-1:-1:-1;;;58593:28:0;;-1:-1:-1;;;;;58604:7:0;;;58593:28;;;;;;;;;;;;:5;;;;;-1:-1:-1;58593:10:0;;-1:-1:-1;58593:28:0;;;;;:5;;:28;;;;;;;:5;;:28;;;2:2:-1;;;;27:1;24;17:12;2:2;58593:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;58593:28:0;;;;58652:61;58678:34;58703:8;58678:20;58693:4;58678:10;:14;;:20;;;;:::i;:34::-;58652:21;;;;;:61;:25;:61;:::i;:::-;58628:21;;;:85;-1:-1:-1;;58743:12:0;58720:20;;;;:35;;;;-1:-1:-1;;;57875:886:0;;:::o;61544:341::-;61599:21;61623:8;61632:4;61623:14;;;;;;;;;;;;;;;;61668;;;:8;:14;;;;;;61683:10;61668:26;;;;;;;;61759:11;;61623:14;;;;;;;61708:15;;61623:14;;-1:-1:-1;61701:70:0;;-1:-1:-1;;;;;61708:15:0;;;;;61683:10;61701:70;:36;:70;:::i;:::-;61819:11;;61783:48;;;;;;;61813:4;;61801:10;;61783:48;;;;;;;;;61852:1;61838:15;;;61860;;;;:19;-1:-1:-1;;61544:341:0:o;62753:946::-;62848:7;62864:18;62885:35;62903:16;62885:17;:35::i;:::-;62864:56;;62927:16;62946:32;62964:13;62946:17;:32::i;:::-;62927:51;-1:-1:-1;62985:25:0;;63067:16;63094:21;;;63090:54;;;12:1:-1;9;2:12;63090:54:0;63192:8;63179:10;:21;63173:347;;;63231:51;63268:13;63231:32;63252:10;63231:20;:32::i;:::-;:36;:51;:36;:51;:::i;:::-;63344:25;;;;:13;:25;;;;;;63211:71;;-1:-1:-1;63305:67:0;;63322:48;;63211:71;;63322:48;:21;:48;:::i;:::-;63305:11;;:67;:15;:67;:::i;:::-;63291:81;;63441:32;63462:10;63441:20;:32::i;:::-;63425:48;-1:-1:-1;63495:17:0;:10;63510:1;63495:17;:14;:17;:::i;:::-;63482:30;;63173:347;;;63526:21;63589:25;;;:13;:25;;;;;;63550:65;;63551:32;:13;63569;63551:32;:17;:32;:::i;63550:65::-;63526:89;-1:-1:-1;63636:30:0;:11;63526:89;63636:30;:15;:30;:::i;:::-;63622:44;-1:-1:-1;;;;;;;62753:946:0;;;;;:::o;57643:160::-;57701:8;:15;57684:14;57723:75;57751:6;57745:3;:12;57723:75;;;57775:15;57786:3;57775:10;:15::i;:::-;57759:5;;57723:75;;;;57643:160;:::o;23597:148::-;23177:12;:10;:12::i;:::-;-1:-1:-1;;;;;23166:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23166:23:0;;23158:68;;;;;-1:-1:-1;;;23158:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23158:68:0;;;;;;;;;;;;;;;23704:1:::1;23688:6:::0;;23667:40:::1;::::0;-1:-1:-1;;;;;23688:6:0;;::::1;::::0;23667:40:::1;::::0;23704:1;;23667:40:::1;23735:1;23718:19:::0;;-1:-1:-1;;;;;;23718:19:0::1;::::0;;23597:148::o;54543:663::-;23177:12;:10;:12::i;:::-;-1:-1:-1;;;;;23166:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23166:23:0;;23158:68;;;;;-1:-1:-1;;;23158:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23158:68:0;;;;;;;;;;;;;;;54677:11:::1;54673:51;;;54699:17;:15;:17::i;:::-;-1:-1:-1::0;;;;;54738:25:0;::::1;54730:62;;;::::0;;-1:-1:-1;;;54730:62:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;54808:29;54825:11;54808:16;:29::i;:::-;54807:30;54799:62;;;::::0;;-1:-1:-1;;;54799:62:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;54799:62:0;;;;;;;;;;;;;::::1;;54868:23;54909:10;;54894:12;:25;:53;;54937:10;;54894:53;;;54922:12;54894:53;54972:15;::::0;54868:79;;-1:-1:-1;54972:32:0::1;::::0;54992:11;54972:32:::1;:19;:32;:::i;:::-;54954:15;:50:::0;55033:160:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;55033:160:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;55033:160:0;;;;;;55011:8:::1;27:10:-1::0;;39:1:::1;23:18:::0;::::1;45:23:::0;;55011:189:0;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;55011:189:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;-1:-1:-1;55011:189:0;;;;;;;54543:663::o;63705:249::-;63750:7;63786:10;;63771:12;:25;63766:183;;;-1:-1:-1;63816:1:0;63809:8;;63766:183;63842:20;63865:31;63883:12;63865:17;:31::i;:::-;63914:27;;;;:13;:27;;;;;;;-1:-1:-1;63907:34:0;;-1:-1:-1;63907:34:0;22946:87;22992:7;23019:6;-1:-1:-1;;;;;23019:6:0;22946:87;:::o;49992:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49992:64:0;;:::o;62262:176::-;62330:7;62346:13;62362:51;49871:6;62363:27;62379:10;;62363:11;:15;;:27;;;;:::i;62362:51::-;62346:67;-1:-1:-1;;62262:176:0;;;;:::o;56340:263::-;56438:8;:15;56408:4;;;56460:119;56490:6;56483:4;:13;56460:119;;;56547:11;-1:-1:-1;;;;;56518:40:0;:8;56527:4;56518:14;;;;;;;;;;;;;;;;;;;;;:25;-1:-1:-1;;;;;56518:25:0;:40;56515:56;;;56567:4;56560:11;;;;;;56515:56;56498:6;;56460:119;;;-1:-1:-1;56592:5:0;;56340:263;-1:-1:-1;;;56340:263:0:o;59631:122::-;59717:30;59727:4;59733;59739:7;59717:9;:30::i;:::-;59631:122;;;:::o;64457:259::-;64522:7;;;64564:122;64588:8;:15;64584:19;;64564:122;;;64635:43;64651:26;64669:4;64675:1;64651:17;:26::i;64635:43::-;64621:57;-1:-1:-1;64605:3:0;;64564:122;;;-1:-1:-1;64699:11:0;64457:259;-1:-1:-1;;64457:259:0:o;49677:32::-;;;;:::o;64317:134::-;-1:-1:-1;;;;;64414:26:0;;;;64391:7;64414:26;;;:20;:26;;;;;;;;:31;;;;;;;;;64317:134::o;59759:128::-;59853:14;;;;:8;:14;;;;;;;;-1:-1:-1;;;;;59853:20:0;;;;;;;;;:27;59831:50;;59841:4;;59847;;59831:9;:50::i;54350:122::-;54420:7;;-1:-1:-1;;;;;54420:7:0;54406:10;:21;54398:43;;;;;-1:-1:-1;;;54398:43:0;;;;;;;;;;;;-1:-1:-1;;;54398:43:0;;;;;;;;;;;;;;;54448:7;:18;;-1:-1:-1;;;;;;54448:18:0;-1:-1:-1;;;;;54448:18:0;;;;;;;;;;54350:122::o;49295:22::-;;;-1:-1:-1;;;;;49295:22:0;;:::o;64065:146::-;64109:7;64178:15;:13;:15::i;:::-;64196:8;64178:26;64170:35;;64065:146;:::o;60576:284::-;60630:21;60654:8;60663:4;60654:14;;;;;;;;;;;;;;;;60699;;;:8;:14;;;;;;60714:10;60699:26;;;;;;;60654:14;;;;;;;;-1:-1:-1;60732:16:0;60708:4;60732:10;:16::i;:::-;60755:26;60764:10;60776:4;60755:8;:26::i;:::-;60822:21;;;;60806:11;;:48;;60849:4;;60806:38;;;:15;:38;:::i;:48::-;60788:15;;;;:66;-1:-1:-1;;60576:284:0:o;49374:48::-;;;;;;;;;;;;;:::o;56768:796::-;56851:7;56867:21;56891:8;56900:4;56891:14;;;;;;;;;;;;;;;;56936;;;:8;:14;;;;;;-1:-1:-1;;;;;56936:21:0;;;;;;;;;;;56891:14;;;;;;;56991:21;;;;57045:15;;57038:48;;-1:-1:-1;;;57038:48:0;;57080:4;57038:48;;;;;;;;;56891:14;;-1:-1:-1;56936:21:0;;56991;;56891:14;;57045:15;;;;;57038:33;;:48;;;;;56891:14;;57038:48;;;;;57045:15;57038:48;;;2:2:-1;;;;27:1;24;17:12;2:2;57038:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57038:48:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;57038:48:0;57112:20;;;;57038:48;;-1:-1:-1;57097:12:0;:35;:52;;;;-1:-1:-1;57136:13:0;;;57097:52;57093:388;;;57160:19;57182:93;57259:15;;57182:72;57238:4;:15;;;57182:51;57198:4;:20;;;57220:12;57182:15;:51::i;:93::-;57160:115;-1:-1:-1;57284:17:0;57304:27;57328:2;57304:19;57160:115;57320:2;57304:19;:15;:19;:::i;:27::-;57284:47;-1:-1:-1;57340:18:0;57361:28;:11;57284:47;57361:28;:15;:28;:::i;:::-;57340:49;-1:-1:-1;57417:56:0;57438:34;57463:8;57438:20;57340:49;57453:4;57438:20;:14;:20;:::i;:34::-;57417:16;;:56;:20;:56;:::i;:::-;57398:75;;57093:388;;;;57494:64;57542:4;:15;;;57494:43;57532:4;57494:33;57510:16;57494:4;:11;;;:15;;:33;;;;:::i;:64::-;57487:71;56768:796;-1:-1:-1;;;;;;;56768:796:0:o;62444:247::-;62515:7;;62557:39;62572:1;62558:15;;49871:6;62557:39;:21;:39;:::i;:::-;62531:65;;62603:21;62627:31;62642:15;62627:10;;:14;;:31;;;;:::i;:::-;62603:55;62444:247;-1:-1:-1;;;;62444:247:0:o;23900:244::-;23177:12;:10;:12::i;:::-;-1:-1:-1;;;;;23166:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23166:23:0;;23158:68;;;;;-1:-1:-1;;;23158:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23158:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;23989:22:0;::::1;23981:73;;;;-1:-1:-1::0;;;23981:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24091:6;::::0;;24070:38:::1;::::0;-1:-1:-1;;;;;24070:38:0;;::::1;::::0;24091:6;::::1;::::0;24070:38:::1;::::0;::::1;24119:6;:17:::0;;-1:-1:-1;;;;;;24119:17:0::1;-1:-1:-1::0;;;;;24119:17:0;;;::::1;::::0;;;::::1;::::0;;23900:244::o;64217:94::-;64288:17;;64217:94;:::o;60866:611::-;60927:21;60951:8;60960:4;60951:14;;;;;;;;;;;;;;;;60996;;;:8;:14;;;;;;-1:-1:-1;;;;;60996:19:0;;;;;;;;;61030:11;;60951:14;;;;;;;;-1:-1:-1;61022:46:0;;;;;-1:-1:-1;;;61022:46:0;;;;;;;;;;;;-1:-1:-1;;;61022:46:0;;;;;;;;;;;;;;;61075:15;61093:69;61146:4;:15;;;61093:48;61136:4;61093:38;61109:4;:21;;;61093:4;:11;;;:15;;:38;;;;:::i;:69::-;61188:5;;:30;;;-1:-1:-1;;;61188:30:0;;61212:4;61188:30;;;;;;61075:87;;-1:-1:-1;;;;;;61188:5:0;;;;:15;;:30;;;;;;;;;;;;;;;:5;:30;;;2:2:-1;;;;27:1;24;17:12;2:2;61188:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61188:30:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;61188:30:0;61177:41;;;61169:74;;;;;-1:-1:-1;;;61169:74:0;;;;;;;;;;;;-1:-1:-1;;;61169:74:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;61284:25:0;;;;;;:20;:25;;;;;;;;:31;;;;;;;;;:44;;61320:7;61284:44;:35;:44;:::i;:::-;-1:-1:-1;;;;;61250:25:0;;;;;;:20;:25;;;;;;;;:31;;;;;;;;:78;61355:17;;:30;;61377:7;61355:30;:21;:30;:::i;:::-;61335:17;:50;61392:31;61410:3;61415:7;61392:17;:31::i;:::-;61430:5;;-1:-1:-1;;;;;61430:5:0;:10;61441:3;61446:24;61466:3;61446:15;:7;61458:2;61446:15;:11;:15;:::i;:24::-;61430:41;;;;;;;;;;;;;-1:-1:-1;;;;;61430:41:0;-1:-1:-1;;;;;61430:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;61430:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61430:41:0;;;;60866:611;;;;;:::o;18651:205::-;18779:68;;;-1:-1:-1;;;;;18779:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;18779:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;18752:96:0;;18772:5;;18752:19;:96::i;:::-;18651:205;;;;:::o;5371:179::-;5429:7;5461:5;;;5485:6;;;;5477:46;;;;;-1:-1:-1;;;5477:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5541:1;5371:179;-1:-1:-1;;;5371:179:0:o;6250:220::-;6308:7;6332:6;6328:20;;-1:-1:-1;6347:1:0;6340:8;;6328:20;6371:5;;;6375:1;6371;:5;:1;6395:5;;;;;:10;6387:56;;;;-1:-1:-1;;;6387:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6948:153;7006:7;7038:1;7034;:5;7026:44;;;;;-1:-1:-1;;;7026:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7092:1;7088;:5;;;;;;;6948:153;-1:-1:-1;;;6948:153:0:o;22082:106::-;22170:10;22082:106;:::o;5833:158::-;5891:7;5924:1;5919;:6;;5911:49;;;;;-1:-1:-1;;;5911:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5978:5:0;;;5833:158::o;18466:177::-;18576:58;;;-1:-1:-1;;;;;18576:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;18576:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;18549:86:0;;18569:5;;18549:19;:86::i;59893:636::-;59973:21;59997:8;60006:4;59997:14;;;;;;;;;;;;;;;;60042;;;:8;:14;;;;;;-1:-1:-1;;;;;60042:20:0;;;;;;;;;;60077:13;;;;59997:14;;;;;;;;-1:-1:-1;60077:13:0;60094:10;60077:27;60069:51;;;;;-1:-1:-1;;;60069:51:0;;;;;;;;;;;;-1:-1:-1;;;60069:51:0;;;;;;;;;;;;;;;60135:11;;:22;-1:-1:-1;60135:22:0;60127:53;;;;;-1:-1:-1;;;60127:53:0;;;;;;;;;;;;-1:-1:-1;;;60127:53:0;;;;;;;;;;;;;;;60187:16;60198:4;60187:10;:16::i;:::-;60210:20;60219:4;60225;60210:8;:20::i;:::-;60251:11;;:24;;60267:7;60251:24;:15;:24;:::i;:::-;60237:38;;;60316:21;;;;60300:48;;60343:4;;60300:38;;60237;60300;:15;:38;:::i;:48::-;60282:15;;;:66;60359:15;;-1:-1:-1;;;;;60359:15:0;:29;60355:118;;60406:15;;60399:66;;-1:-1:-1;;;;;60406:15:0;60444:10;60457:7;60399:66;:36;:66;:::i;:::-;60511:11;;60484:39;;;;;;;60505:4;;60493:10;;60484:39;;;;;;;;;59893:636;;;;;:::o;61999:255::-;62091:5;;:30;;;-1:-1:-1;;;62091:30:0;;62115:4;62091:30;;;;;;62072:16;;-1:-1:-1;;;;;62091:5:0;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;2:2:-1;;;;27:1;24;17:12;2:2;62091:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;62091:30:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;62091:30:0;;-1:-1:-1;62132:18:0;;;62128:121;;;62161:5;;:29;;;-1:-1:-1;;;62161:29:0;;-1:-1:-1;;;;;62161:29:0;;;;;;;;;;;;;;;:5;;;;;:14;;:29;;;;;;;;;;;;;;:5;;:29;;;2:2:-1;;;;27:1;24;17:12;2:2;62161:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;62161:29:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;62128:121:0;;-1:-1:-1;62128:121:0;;62213:5;;:28;;;-1:-1:-1;;;62213:28:0;;-1:-1:-1;;;;;62213:28:0;;;;;;;;;;;;;;;:5;;;;;:14;;:28;;;;;;;;;;;;;;:5;;:28;;;2:2:-1;;;;27:1;24;17:12;2:2;62213:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;62213:28:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;61999:255:0;;;:::o;20771:761::-;21195:23;21221:69;21249:4;21221:69;;;;;;;;;;;;;;;;;21229:5;-1:-1:-1;;;;;21221:27:0;;;:69;;;;;:::i;:::-;21305:17;;21195:95;;-1:-1:-1;21305:21:0;21301:224;;21447:10;21436:30;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;21436:30:0;21428:85;;;;-1:-1:-1;;;21428:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13566:195;13669:12;13701:52;13723:6;13731:4;13737:1;13740:12;13669;14870:18;14881:6;14870:10;:18::i;:::-;14862:60;;;;;-1:-1:-1;;;14862:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14996:12;15010:23;15037:6;-1:-1:-1;;;;;15037:11:0;15057:5;15065:4;15037:33;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;15037:33:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;14995:75:0;;;;15088:52;15106:7;15115:10;15127:12;15088:17;:52::i;10648:422::-;11015:20;11054:8;;;10648:422::o;17158:742::-;17273:12;17302:7;17298:595;;;-1:-1:-1;17333:10:0;17326:17;;17298:595;17447:17;;:21;17443:439;;17710:10;17704:17;17771:15;17758:10;17754:2;17750:19;17743:44;17658:148;17853:12;17846:20;;-1:-1:-1;;;17846:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;17846:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

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