Contract 0x22E57e66865f75c2E79D45aAEff9AfD7c57c98Ff

Contract Overview

Balance:
0 Ether

Token:
Txn Hash
Method
Block
From
To
Value
0xecffe0ce9bd10aa20fd23ca71c7f512a68d816745dcb838ea533b9070b0c08d6Deposit113430472022-09-08 6:43:5422 days 14 hrs ago0xcc59573d6623fd40732140ec26f9e8bc8ba11505 IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00031683 2.50000003
0x912ab103fb384ca498814dd84cfb4c1fb020aad65bc535a6602e1688835112abDeposit113381652022-09-07 10:04:3923 days 11 hrs ago0xcc59573d6623fd40732140ec26f9e8bc8ba11505 IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00040355 2.50000001
0x0a2a987bd1d7d28f620ca5f3b5a7337a7629087f47874923d3a117d34ed7059cWithdraw113320212022-09-06 8:15:0724 days 13 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00035577 2.50000001
0xd749100b098d7ce339312c63ff5785ccf702bb160a82281fca48ee154ee6e175Deposit113320152022-09-06 8:13:3624 days 13 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00031683 2.5
0x9d00565fff0ea75c57f8bdfe87add8d0df8de74316ff7bc43f5d1d607d13effcDeposit113320102022-09-06 8:12:2124 days 13 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00040361 2.50000001
0x5284c30186720f07391ea038f6b9af831004d01c5487402b7820b97be0b28a8eWithdraw113319712022-09-06 8:02:3424 days 13 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00033168 2.5
0x19b8bea4117b00496ea8dafa500de2520e101c57521e79d45d089f99ee1f1fe0Deposit113037982022-09-01 9:30:5329 days 12 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00031683 2.5
0x018ebf999c1a8967cc98964a285ee6a1f7dd990421ee9e3b00005e357257d336Deposit113037132022-09-01 9:09:3729 days 12 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00040364 2.5
0x9d485d81a8836c7ef2ef71ffdb8934aa6b9d918b2a81460e5ecac074fe3074d8Withdraw113036922022-09-01 9:04:2129 days 12 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00033165 2.5
0xdaffab64b243e1d22ed993936d714ce521ab921b92a13c1cff36688314fae3c6Deposit112923632022-08-30 9:47:0231 days 11 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00031683 2.50000004
0xaee9de3ff7c714299ea9274c1c9f4637dc8451e75fd23add67f8f0a126170913Deposit112864662022-08-29 9:11:5432 days 12 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00040361 2.50000009
0xc1ae8032a31a35051aaea67dfdfc8d7e89f54d828fb66682d6217374699c5b1aWithdraw112864452022-08-29 9:06:3932 days 12 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00033168 2.50000005
0x060c3c6651bea8a4147674381a0349b9a90188d1c17a7b5634e944e1faecbe82Deposit112859662022-08-29 7:06:5332 days 14 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00031683 2.50000001
0xd3c19595a55c2c911f4aae5d817146b52d8c2d600b3218ea1935d8707f7981e8Deposit112688582022-08-26 7:29:3235 days 14 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00037009 2.50000001
0x6aeac1e82b74c243d7584e56b921b68f3ba949b9bbec81b8ef09832dbe98ab30Deposit112688552022-08-26 7:28:4735 days 14 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00040355 2.50000001
0x2ebf9f093eb6a2bb467b7ebe70fb5b9ffcb2456cdb663e68ec2056315d71c57bWithdraw112688492022-08-26 7:27:1735 days 14 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00033168 2.50000001
0x2c0ae97b2a9d95841311726c960f86ef9d628635bae9601791aedf241f3e896eDeposit112687842022-08-26 7:11:0235 days 14 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00040364 2.50000001
0xf5925443c4dfaae0ac7ee644012ccd90da9c028a7a8443ce5205d0fb3a659de4Withdraw112687782022-08-26 7:09:3235 days 14 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00033162 2.50000001
0x8b755d182071d7090773b9994336aa1dc0ca35b6f739d2dedf3c2b805a1d3efbWithdraw112632152022-08-25 7:57:3836 days 13 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00035571 2.50000006
0xf094efc0dfabc3e3d17e5a7de14a06db33675d2e20930526fe24050f523349c7Deposit112631992022-08-25 7:53:3836 days 13 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00037 2.50000009
0xf158d7759fbd512ea88fc2feed3273810cb34a672c85489ac3ef8d9f2ffa9b25Deposit112621532022-08-25 3:31:4436 days 18 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00031683 2.50000001
0xb02612cde35430d1821e30110d996bd571cbefb3f87495881d9efc2fe6b3520eDeposit112621292022-08-25 3:25:4436 days 18 hrs ago0xf0cfbb000b21a7159ee07378bfaf372d9d195a4e IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00031683 2.50000001
0x4c5ecdf0b22ec0549661a2431d8f92115bdebf910dcbbed18ec2de8713ff38daDeposit106913282022-05-17 10:53:21136 days 10 hrs ago0x18f3670f9ffe97af95b3e6cbb35c59f3d37cf9f8 IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.0001531 1.10625775
0xdb8c36e6ccb075385b4408b0c0de8c2daa315901aec70f5fff52b6347648ab4bDeposit106911322022-05-17 10:04:17136 days 11 hrs ago0x18f3670f9ffe97af95b3e6cbb35c59f3d37cf9f8 IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00016703 1.10017315
0x3cec0d36f0efde20940b43c87fcd319a1059d0e89566584e19b648464058c587Withdraw106326862022-05-07 4:10:33146 days 17 hrs ago0x0d913b559ca2b13bfa772827301a42142fbac49b IN  0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff0 Ether0.00022466 1.49999924
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xecffe0ce9bd10aa20fd23ca71c7f512a68d816745dcb838ea533b9070b0c08d6113430472022-09-08 6:43:5422 days 14 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0xc5c6a872b0ef7bbdeb42d95745c4b19ce3a2814c0 Ether
0xecffe0ce9bd10aa20fd23ca71c7f512a68d816745dcb838ea533b9070b0c08d6113430472022-09-08 6:43:5422 days 14 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0xecffe0ce9bd10aa20fd23ca71c7f512a68d816745dcb838ea533b9070b0c08d6113430472022-09-08 6:43:5422 days 14 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0xecffe0ce9bd10aa20fd23ca71c7f512a68d816745dcb838ea533b9070b0c08d6113430472022-09-08 6:43:5422 days 14 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0xecffe0ce9bd10aa20fd23ca71c7f512a68d816745dcb838ea533b9070b0c08d6113430472022-09-08 6:43:5422 days 14 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0xa71ea99abb7a34956da9fb35f96ca9d8b21fd5f50 Ether
0x912ab103fb384ca498814dd84cfb4c1fb020aad65bc535a6602e1688835112ab113381652022-09-07 10:04:3923 days 11 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0xa71ea99abb7a34956da9fb35f96ca9d8b21fd5f50 Ether
0x912ab103fb384ca498814dd84cfb4c1fb020aad65bc535a6602e1688835112ab113381652022-09-07 10:04:3923 days 11 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0x912ab103fb384ca498814dd84cfb4c1fb020aad65bc535a6602e1688835112ab113381652022-09-07 10:04:3923 days 11 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0x912ab103fb384ca498814dd84cfb4c1fb020aad65bc535a6602e1688835112ab113381652022-09-07 10:04:3923 days 11 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0x912ab103fb384ca498814dd84cfb4c1fb020aad65bc535a6602e1688835112ab113381652022-09-07 10:04:3923 days 11 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0xa71ea99abb7a34956da9fb35f96ca9d8b21fd5f50 Ether
0x0a2a987bd1d7d28f620ca5f3b5a7337a7629087f47874923d3a117d34ed7059c113320212022-09-06 8:15:0724 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0xa71ea99abb7a34956da9fb35f96ca9d8b21fd5f50 Ether
0x0a2a987bd1d7d28f620ca5f3b5a7337a7629087f47874923d3a117d34ed7059c113320212022-09-06 8:15:0724 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0xc5c6a872b0ef7bbdeb42d95745c4b19ce3a2814c0 Ether
0x0a2a987bd1d7d28f620ca5f3b5a7337a7629087f47874923d3a117d34ed7059c113320212022-09-06 8:15:0724 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0x0a2a987bd1d7d28f620ca5f3b5a7337a7629087f47874923d3a117d34ed7059c113320212022-09-06 8:15:0724 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0x0a2a987bd1d7d28f620ca5f3b5a7337a7629087f47874923d3a117d34ed7059c113320212022-09-06 8:15:0724 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0x0a2a987bd1d7d28f620ca5f3b5a7337a7629087f47874923d3a117d34ed7059c113320212022-09-06 8:15:0724 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0xa71ea99abb7a34956da9fb35f96ca9d8b21fd5f50 Ether
0xd749100b098d7ce339312c63ff5785ccf702bb160a82281fca48ee154ee6e175113320152022-09-06 8:13:3624 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0xc5c6a872b0ef7bbdeb42d95745c4b19ce3a2814c0 Ether
0xd749100b098d7ce339312c63ff5785ccf702bb160a82281fca48ee154ee6e175113320152022-09-06 8:13:3624 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0xd749100b098d7ce339312c63ff5785ccf702bb160a82281fca48ee154ee6e175113320152022-09-06 8:13:3624 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0xd749100b098d7ce339312c63ff5785ccf702bb160a82281fca48ee154ee6e175113320152022-09-06 8:13:3624 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0xd749100b098d7ce339312c63ff5785ccf702bb160a82281fca48ee154ee6e175113320152022-09-06 8:13:3624 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0xa71ea99abb7a34956da9fb35f96ca9d8b21fd5f50 Ether
0x9d00565fff0ea75c57f8bdfe87add8d0df8de74316ff7bc43f5d1d607d13effc113320102022-09-06 8:12:2124 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0xa71ea99abb7a34956da9fb35f96ca9d8b21fd5f50 Ether
0x9d00565fff0ea75c57f8bdfe87add8d0df8de74316ff7bc43f5d1d607d13effc113320102022-09-06 8:12:2124 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0x9d00565fff0ea75c57f8bdfe87add8d0df8de74316ff7bc43f5d1d607d13effc113320102022-09-06 8:12:2124 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
0x9d00565fff0ea75c57f8bdfe87add8d0df8de74316ff7bc43f5d1d607d13effc113320102022-09-06 8:12:2124 days 13 hrs ago 0x22e57e66865f75c2e79d45aaeff9afd7c57c98ff 0x03948cd09d68a8a6e88f072f900e212121d94b890 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LitedexFarmer

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-07-29
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.12;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
 
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, 'SafeMath: addition overflow');

        return c;
    }

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

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

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

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

        return c;
    }

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

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

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

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

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

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

    /**
     * @dev Returns the token symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the token name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @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 Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev 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');
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 weiValue,
        string memory errorMessage
    ) private returns (bytes memory) {
        require(isContract(target), 'Address: call to non-contract');

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

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

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


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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

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

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


/**
 * @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, Ownable {
    using SafeMath for uint256;
    using Address for address;

    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 bep token owner.
     */
    function getOwner() external override view returns (address) {
        return owner();
    }

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

    /**
     * @dev Returns the token decimals.
     */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev Returns the token symbol.
     */
    function symbol() public override view returns (string memory) {
        return _symbol;
    }

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

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

    /**
     * @dev See {ERC20-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 override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    /**
     * @dev See {ERC20-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 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 {ERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public 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 {ERC20-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 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 {
        require(sender != address(0), 'ERC20: transfer from the zero address');
        require(recipient != address(0), 'ERC20: transfer to the zero address');

        _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 {
        require(account != address(0), 'ERC20: mint to the zero address');

        _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 {
        require(account != address(0), 'ERC20: burn from the zero address');

        _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 is 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 {
        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 Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, 'ERC20: burn amount exceeds allowance')
        );
    }
}

/* Litedex with Governance. */
contract Litedex is ERC20('Litedex', 'LDX') {
    
    /* @notice Creates `_amount` token to `_to`. Must only be called by the owner or minter (LitedexFarmer). */
    function mint(address _to, uint256 _amount) public {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }
    /* @notice destroy `_amount` token from `_from`. Must only be called by the owner or minter (LitedexFarmer). */
    function burn(uint256 _amount) public {
        _burn(msg.sender, _amount);
        _moveDelegates(_delegates[msg.sender], address(0), _amount);
    }

    /***
     * 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 
     */

    /* @dev 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 => uint) 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, uint previousBalance, uint 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,
        uint nonce,
        uint 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), "Litedex: delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "Litedex: delegateBySig: invalid nonce");
        require(now <= expiry, "Litedex: 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, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "Litedex: 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 LDXs (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, "Litedex: _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(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

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

/* Litedex Stake Position is my favorite friend */
contract LitedexStakePosition is ERC20('LDX-SP', 'SLDX') {
    /* @notice Creates `_amount` token to `_to`. Must only be called by the owner (LitedexFarmer). */
    function mint(address _to, uint256 _amount) public {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

    function burn(address _from ,uint256 _amount) public {
        _burn(_from, _amount);
        _moveDelegates(_delegates[_from], address(0),  _amount);
    }

    // The Litedex TOKEN!
    Litedex public ldx;


    constructor(
        Litedex _ldx
    ) public {
        ldx = _ldx;
    }

    /* Safe ldx transfer function, just in case if rounding error causes pool to not have enough ldx */
    function safeLdxTransfer(address _to, uint256 _amount) public onlyOwner {
        uint256 ldxBalance = ldx.balanceOf(address(this));
        if (_amount > ldxBalance) {
            ldx.transfer(_to, ldxBalance);
        } else {
            ldx.transfer(_to, _amount);
        }
    }

    /***
     * 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
     */

    /* @dev 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 => uint) 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, uint previousBalance, uint 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,
        uint nonce,
        uint 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), "Litedex: delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "Litedex: delegateBySig: invalid nonce");
        require(now <= expiry, "Litedex: 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, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "Litedex: 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 LDXs (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, "Litedex: _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(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}
/* LitedexFarmer is the master of Litedex.

*/

contract LitedexFarmer is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    /* Info of each user.
     * amount : How many LP tokens the user has provided.
     * rewardDebt : Reward debt. See explanation below.
     *
     * We do some fancy math here. Basically, any point in time, the amount of LDXs
     * entitled to a user but is pending to be distributed is:
     *
     * pending reward = (user.amount * pool.accLdxPerShare) - user.reward.debt
     * 
     * Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
     *   1. The pool's `accLdxPerShare` (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.
     */
    struct UserInfo {
        uint256 amount;
        uint256 rewardDebt;
    }

    /* Info of each pool.
     * lpToken : Address of LP token contract
     * allocPoint : How many allocation points assigned to this pool. LDXs to distribute per block.
     * lastRewardBlock : Last block number that LDXs distribution occurs.
     * Accumulated LDXs per share, times 1e12.
     */
    struct PoolInfo {
        IERC20 lpToken;
        uint256 allocPoint;
        uint256 lastRewardBlock;
        uint256 accLdxPerShare;
    }

    /*Litedex Token */
    Litedex public ldx; 
    
    /* The StakingPool Position token */
    LitedexStakePosition public sldx;
    
    /* LDX tokens created per block. */
    uint256 public ldxPerBlock;
    
    /* Bonus muliplier for early bmd makers. */
    uint256 public BONUS_MULTIPLIER = 1;

    /* Info of each pool.*/
    PoolInfo[] public poolInfo;
    
    /* Info of each user that stakes LP 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 = 0;
    
    /* The block number when LDX mining starts.*/
    uint256 public startBlock;
    
    /* Events */

    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(
        Litedex _ldx,
        LitedexStakePosition _sldx,
        uint256 _ldxPerBlock,
        uint256 _startBlock
    ) public {
        ldx = _ldx;
        sldx = _sldx;
        ldxPerBlock = _ldxPerBlock;
        startBlock = _startBlock;

        // staking pool
        poolInfo.push(PoolInfo({
            lpToken: _ldx,
            allocPoint: 1000,
            lastRewardBlock: startBlock,
            accLdxPerShare: 0
        }));

        totalAllocPoint = 1000;

    }

    /* Update Bonus Multipler */
    function updateMultiplier(uint256 multiplierNumber) public onlyOwner {
        BONUS_MULTIPLIER = multiplierNumber;
    }
    
    /* View total Pool which added to LitedexFarmer */
    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    /* Add a new lp to the pool. Can only be called by the owner.
     *
     * DO NOT add the same LP token more than once. Rewards will be messed up if you do.
     */
    function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accLdxPerShare: 0
        }));
        updateStakingPool();
    }

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

    function updateStakingPool() internal {
        uint256 length = poolInfo.length;
        uint256 points = 0;
        for (uint256 pid = 1; pid < length; ++pid) {
            points = points.add(poolInfo[pid].allocPoint);
        }
        if (points != 0) {
            points = points.div(3);
            totalAllocPoint = totalAllocPoint.sub(poolInfo[0].allocPoint).add(points);
            poolInfo[0].allocPoint = points;
        }
    }

    /* Return reward multiplier over the given _from to _to block. */
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        return _to.sub(_from).mul(BONUS_MULTIPLIER);
    }

    /* View function to see pending LDXs on frontend. */
    function pendingLdx(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accLdxPerShare = pool.accLdxPerShare; 
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 ldxReward = multiplier.mul(ldxPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accLdxPerShare = accLdxPerShare.add(ldxReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accLdxPerShare).div(1e12).sub(user.rewardDebt);
    }
    
    /* Update reward per block which given */
    
    function updateRewardPerBlock(uint256 rewardPerBlock) external onlyOwner returns(bool){
        uint256 _rewardPerBlock = rewardPerBlock;
        ldxPerBlock = _rewardPerBlock;
        return true;
    }
    
    /* Getting multiplier of each pool */
    function getMultiplierByPoolId(uint256 pid) public view returns(uint256){
        PoolInfo storage pool = poolInfo[pid];
        uint256 _multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        return _multiplier;
    }

    /* Update reward variables 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 {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 ldxReward = multiplier.mul(ldxPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        ldx.mint(address(this), ldxReward.div(40));
        ldx.burn(ldxReward.div(40));
        ldx.mint(address(sldx), ldxReward.sub(ldxReward.div(40)));
        pool.accLdxPerShare = pool.accLdxPerShare.add(ldxReward.sub(ldxReward.div(40)).mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    /* Deposit LP tokens to LitedexFarmer for LDX allocation. */
    function deposit(uint256 _pid, uint256 _amount) public {

        require (_pid != 0, 'deposit bmd by staking');

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accLdxPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeLdxTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accLdxPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    /* Withdraw LP tokens from LitedexFarmer. */
    function withdraw(uint256 _pid, uint256 _amount) public {

        require (_pid != 0, 'withdraw bmd by unstaking');

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accLdxPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            safeLdxTransfer(msg.sender, pending);
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accLdxPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    /* Stake LDX tokens to LitedexFarmer */
    function enterStaking(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[0][msg.sender];
        updatePool(0);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accLdxPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeLdxTransfer(msg.sender, pending);
            }
        }
        if(_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accLdxPerShare).div(1e12);

        sldx.mint(msg.sender, _amount);
        emit Deposit(msg.sender, 0, _amount);
    }

    /* Withdraw LDX tokens from staking pool. */
    function leaveStaking(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[0][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(0);
        uint256 pending = user.amount.mul(pool.accLdxPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            safeLdxTransfer(msg.sender, pending);
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accLdxPerShare).div(1e12);

        sldx.burn(msg.sender, _amount);
        emit Withdraw(msg.sender, 0, _amount);
    }

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

    /* Safe LDX transfer function, just in case if rounding error causes pool to not have enough LDXs. */
    function safeLdxTransfer(address _to, uint256 _amount) internal {
        sldx.safeLdxTransfer(_to, _amount);
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract Litedex","name":"_ldx","type":"address"},{"internalType":"contract LitedexStakePosition","name":"_sldx","type":"address"},{"internalType":"uint256","name":"_ldxPerBlock","type":"uint256"},{"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":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"enterStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"getMultiplierByPoolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ldx","outputs":[{"internalType":"contract Litedex","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ldxPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"leaveStaking","outputs":[],"stateMutability":"nonpayable","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":"pendingLdx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accLdxPerShare","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":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sldx","outputs":[{"internalType":"contract LitedexStakePosition","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"multiplierNumber","type":"uint256"}],"name":"updateMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rewardPerBlock","type":"uint256"}],"name":"updateRewardPerBlock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600455600060075534801561001a57600080fd5b50604051611ede380380611ede8339818101604052608081101561003d57600080fd5b5080516020820151604083015160609093015191929091600061005e6101c8565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b03199081166001600160a01b039687169081178355600280548316968816969096179095556003939093556008829055604080516080810182529485526103e86020860181815291860193845260006060870181815260058054958601815590915295517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db06004909402938401805490961697169690961790935591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db1830155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db282015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db3909101556007556101cc565b3390565b611d03806101db6000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80635ec15b7d116100de5780638da5cb5b1161009757806393f1a40b1161007157806393f1a40b146103f3578063b71e7c8a14610438578063e2bbb15814610455578063f2fde38b146104785761018e565b80638da5cb5b146103c05780638dbb1e3a146103c85780638e2a4cb8146103eb5761018e565b80635ec15b7d146103585780635ffe614614610360578063630b5ba11461037d57806364482f7914610385578063715018a6146103b05780638aa28550146103b85761018e565b80634076b78c1161014b57806348cd4cb11161012557806348cd4cb1146102f257806351eb05a6146102fa5780635312ea8e146103175780635b608f7c146103345761018e565b80634076b78c1461028657806341441d3b146102b2578063441a3e70146102cf5761018e565b806301f8a97614610193578063081e3eda146101c45780631058d281146101de5780631526fe27146101fd57806317caf6f11461024a5780631eaaa04514610252575b600080fd5b6101b0600480360360208110156101a957600080fd5b503561049e565b604080519115158252519081900360200190f35b6101cc610501565b60408051918252519081900360200190f35b6101fb600480360360208110156101f457600080fd5b5035610507565b005b61021a6004803603602081101561021357600080fd5b50356106eb565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6101cc61072c565b6101fb6004803603606081101561026857600080fd5b508035906001600160a01b0360208201351690604001351515610732565b6101cc6004803603604081101561029c57600080fd5b50803590602001356001600160a01b03166108b8565b6101fb600480360360208110156102c857600080fd5b5035610a22565b6101fb600480360360408110156102e557600080fd5b5080359060200135610bb6565b6101cc610d5b565b6101fb6004803603602081101561031057600080fd5b5035610d61565b6101fb6004803603602081101561032d57600080fd5b5035611017565b61033c6110b2565b604080516001600160a01b039092168252519081900360200190f35b6101cc6110c1565b6101fb6004803603602081101561037657600080fd5b50356110c7565b6101fb611124565b6101fb6004803603606081101561039b57600080fd5b50803590602081013590604001351515611147565b6101fb611245565b6101cc6112e7565b61033c6112ed565b6101cc600480360360408110156103de57600080fd5b50803590602001356112fc565b61033c611317565b61041f6004803603604081101561040957600080fd5b50803590602001356001600160a01b0316611326565b6040805192835260208301919091528051918290030190f35b6101cc6004803603602081101561044e57600080fd5b503561134a565b6101fb6004803603604081101561046b57600080fd5b5080359060200135611382565b6101fb6004803603602081101561048e57600080fd5b50356001600160a01b03166114df565b60006104a8611540565b6000546001600160a01b039081169116146104f8576040805162461bcd60e51b81526020600482018190526024820152600080516020611c84833981519152604482015290519081900360640190fd5b50600355600190565b60055490565b6000600560008154811061051757fe5b600091825260208083203384527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f890915260409092208054600490920290920192508311156105a2576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6105ac6000610d61565b60006105e682600101546105e064e8d4a510006105da8760030154876000015461154490919063ffffffff16565b9061159d565b906115df565b905080156105f8576105f83382611621565b831561062257815461060a90856115df565b82558254610622906001600160a01b03163386611692565b6003830154825461063d9164e8d4a51000916105da91611544565b600183015560025460408051632770a7eb60e21b81523360048201526024810187905290516001600160a01b0390921691639dc29fac9160448082019260009290919082900301818387803b15801561069557600080fd5b505af11580156106a9573d6000803e3d6000fd5b5050604080518781529051600093503392507ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a350505050565b600581815481106106f857fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60075481565b61073a611540565b6000546001600160a01b0390811691161461078a576040805162461bcd60e51b81526020600482018190526024820152600080516020611c84833981519152604482015290519081900360640190fd5b801561079857610798611124565b600060085443116107ab576008546107ad565b435b6007549091506107bd90856116e9565b600755604080516080810182526001600160a01b0385811682526020820187815292820184815260006060840181815260058054600181018255925293517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0600490920291820180546001600160a01b031916919094161790925592517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db182015591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db2830155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db3909101556108b2611743565b50505050565b600080600584815481106108c857fe5b600091825260208083208784526006825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b15801561094657600080fd5b505afa15801561095a573d6000803e3d6000fd5b505050506040513d602081101561097057600080fd5b505160028501549091504311801561098757508015155b156109ed57600061099c8560020154436112fc565b905060006109c96007546105da88600101546109c36003548761154490919063ffffffff16565b90611544565b90506109e86109e1846105da8464e8d4a51000611544565b85906116e9565b935050505b610a1583600101546105e064e8d4a510006105da86886000015461154490919063ffffffff16565b9450505050505b92915050565b60006005600081548110610a3257fe5b600091825260208083203384527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f890915260408320600490920201925090610a7990610d61565b805415610ac2576000610aae82600101546105e064e8d4a510006105da8760030154876000015461154490919063ffffffff16565b90508015610ac057610ac03382611621565b505b8215610aee578154610adf906001600160a01b03163330866117e5565b8054610aeb90846116e9565b81555b60038201548154610b099164e8d4a51000916105da91611544565b6001820155600254604080516340c10f1960e01b81523360048201526024810186905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b158015610b6157600080fd5b505af1158015610b75573d6000803e3d6000fd5b5050604080518681529051600093503392507f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050565b81610c08576040805162461bcd60e51b815260206004820152601960248201527f776974686472617720626d6420627920756e7374616b696e6700000000000000604482015290519081900360640190fd5b600060058381548110610c1757fe5b600091825260208083208684526006825260408085203386529092529220805460049092029092019250831115610c8a576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610c9384610d61565b6000610cc182600101546105e064e8d4a510006105da8760030154876000015461154490919063ffffffff16565b90508015610cd357610cd33382611621565b8315610cfd578154610ce590856115df565b82558254610cfd906001600160a01b03163386611692565b60038301548254610d189164e8d4a51000916105da91611544565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b60085481565b600060058281548110610d7057fe5b9060005260206000209060040201905080600201544311610d915750611014565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ddb57600080fd5b505afa158015610def573d6000803e3d6000fd5b505050506040513d6020811015610e0557600080fd5b5051905080610e1b575043600290910155611014565b6000610e2b8360020154436112fc565b90506000610e526007546105da86600101546109c36003548761154490919063ffffffff16565b6001549091506001600160a01b03166340c10f1930610e7284602861159d565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610eb857600080fd5b505af1158015610ecc573d6000803e3d6000fd5b50506001546001600160a01b031691506342966c689050610eee83602861159d565b6040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610f2457600080fd5b505af1158015610f38573d6000803e3d6000fd5b50506001546002546001600160a01b0391821693506340c10f19925016610f6a610f6385602861159d565b85906115df565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610fb057600080fd5b505af1158015610fc4573d6000803e3d6000fd5b50505050611001610ff6846105da64e8d4a510006109c3610fef60288861159d90919063ffffffff16565b87906115df565b6003860154906116e9565b6003850155505043600290920191909155505b50565b60006005828154811061102657fe5b6000918252602080832085845260068252604080852033808752935290932080546004909302909301805490945061106b926001600160a01b03919091169190611692565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b6001546001600160a01b031681565b60035481565b6110cf611540565b6000546001600160a01b0390811691161461111f576040805162461bcd60e51b81526020600482018190526024820152600080516020611c84833981519152604482015290519081900360640190fd5b600455565b60055460005b818110156111435761113b81610d61565b60010161112a565b5050565b61114f611540565b6000546001600160a01b0390811691161461119f576040805162461bcd60e51b81526020600482018190526024820152600080516020611c84833981519152604482015290519081900360640190fd5b80156111ad576111ad611124565b6111ea826111e4600586815481106111c157fe5b9060005260206000209060040201600101546007546115df90919063ffffffff16565b906116e9565b6007819055506000600584815481106111ff57fe5b9060005260206000209060040201600101549050826005858154811061122157fe5b9060005260206000209060040201600101819055508281146108b2576108b2611743565b61124d611540565b6000546001600160a01b0390811691161461129d576040805162461bcd60e51b81526020600482018190526024820152600080516020611c84833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60045481565b6000546001600160a01b031690565b600454600090611310906109c384866115df565b9392505050565b6002546001600160a01b031681565b60066020908152600092835260408084209091529082529020805460019091015482565b6000806005838154811061135a57fe5b90600052602060002090600402019050600061137a8260020154436112fc565b949350505050565b816113cd576040805162461bcd60e51b81526020600482015260166024820152756465706f73697420626d64206279207374616b696e6760501b604482015290519081900360640190fd5b6000600583815481106113dc57fe5b6000918252602080832086845260068252604080852033865290925292206004909102909101915061140d84610d61565b80541561145657600061144282600101546105e064e8d4a510006105da8760030154876000015461154490919063ffffffff16565b90508015611454576114543382611621565b505b8215611482578154611473906001600160a01b03163330866117e5565b805461147f90846116e9565b81555b6003820154815461149d9164e8d4a51000916105da91611544565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b6114e7611540565b6000546001600160a01b03908116911614611537576040805162461bcd60e51b81526020600482018190526024820152600080516020611c84833981519152604482015290519081900360640190fd5b6110148161183f565b3390565b60008261155357506000610a1c565b8282028284828161156057fe5b04146113105760405162461bcd60e51b8152600401808060200182810382526021815260200180611c636021913960400191505060405180910390fd5b600061131083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506118df565b600061131083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611981565b60025460408051639ceeaa5760e01b81526001600160a01b0385811660048301526024820185905291519190921691639ceeaa5791604480830192600092919082900301818387803b15801561167657600080fd5b505af115801561168a573d6000803e3d6000fd5b505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526116e49084906119db565b505050565b600082820183811015611310576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600554600060015b8281101561178e576117846005828154811061176357fe5b906000526020600020906004020160010154836116e990919063ffffffff16565b915060010161174b565b508015611143576117a081600361159d565b90506117b7816111e460056000815481106111c157fe5b6007819055508060056000815481106117cc57fe5b9060005260206000209060040201600101819055505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108b29085906119db565b6001600160a01b0381166118845760405162461bcd60e51b8152600401808060200182810382526026815260200180611c3d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000818361196b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611930578181015183820152602001611918565b50505050905090810190601f16801561195d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161197757fe5b0495945050505050565b600081848411156119d35760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611930578181015183820152602001611918565b505050900390565b6060611a30826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a8c9092919063ffffffff16565b8051909150156116e457808060200190516020811015611a4f57600080fd5b50516116e45760405162461bcd60e51b815260040180806020018281038252602a815260200180611ca4602a913960400191505060405180910390fd5b606061137a84846000856060611aa185611c03565b611af2576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611b315780518252601f199092019160209182019101611b12565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611b93576040519150601f19603f3d011682016040523d82523d6000602084013e611b98565b606091505b50915091508115611bac57915061137a9050565b805115611bbc5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611930578181015183820152602001611918565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061137a57505015159291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204ab4fb7384d8009d2528bff3be599b5303798a6525036f7533e268d075ac8ca164736f6c634300060c003300000000000000000000000003948cd09d68a8a6e88f072f900e212121d94b89000000000000000000000000c5c6a872b0ef7bbdeb42d95745c4b19ce3a2814c0000000000000000000000000000000000000000000000008ac7230489e80000000000000000000000000000000000000000000000000000000000000089aa30

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

00000000000000000000000003948cd09d68a8a6e88f072f900e212121d94b89000000000000000000000000c5c6a872b0ef7bbdeb42d95745c4b19ce3a2814c0000000000000000000000000000000000000000000000008ac7230489e80000000000000000000000000000000000000000000000000000000000000089aa30

-----Decoded View---------------
Arg [0] : _ldx (address): 0x03948cD09d68A8a6E88F072F900e212121D94b89
Arg [1] : _sldx (address): 0xc5c6a872B0Ef7bbDEb42d95745c4B19Ce3A2814c
Arg [2] : _ldxPerBlock (uint256): 10000000000000000000
Arg [3] : _startBlock (uint256): 9022000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000003948cd09d68a8a6e88f072f900e212121d94b89
Arg [1] : 000000000000000000000000c5c6a872b0ef7bbdeb42d95745c4b19ce3a2814c
Arg [2] : 0000000000000000000000000000000000000000000000008ac7230489e80000
Arg [3] : 000000000000000000000000000000000000000000000000000000000089aa30


Deployed ByteCode Sourcemap

51725:11844:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57812:207;;;;;;;;;;;;;;;;-1:-1:-1;57812:207:0;;:::i;:::-;;;;;;;;;;;;;;;;;;54874:95;;;:::i;:::-;;;;;;;;;;;;;;;;62146:758;;;;;;;;;;;;;;;;-1:-1:-1;62146:758:0;;:::i;:::-;;53459:26;;;;;;;;;;;;;;;;-1:-1:-1;53459:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;53459:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53720:34;;;:::i;55151:542::-;;;;;;;;;;;;;;;;-1:-1:-1;55151:542:0;;;-1:-1:-1;;;;;55151:542:0;;;;;;;;;;;;:::i;56996:751::-;;;;;;;;;;;;;;;;-1:-1:-1;56996:751:0;;;;;;-1:-1:-1;;;;;56996:751:0;;:::i;61317:771::-;;;;;;;;;;;;;;;;-1:-1:-1;61317:771:0;;:::i;60464:800::-;;;;;;;;;;;;;;;;-1:-1:-1;60464:800:0;;;;;;;:::i;53818:25::-;;;:::i;58660:862::-;;;;;;;;;;;;;;;;-1:-1:-1;58660:862:0;;:::i;62978:356::-;;;;;;;;;;;;;;;;-1:-1:-1;62978:356:0;;:::i;53138:18::-;;;:::i;:::-;;;;-1:-1:-1;;;;;53138:18:0;;;;;;;;;;;;;;53298:26;;;:::i;54683:123::-;;;;;;;;;;;;;;;;-1:-1:-1;54683:123:0;;:::i;58399:180::-;;;:::i;55791:456::-;;;;;;;;;;;;;;;;-1:-1:-1;55791:456:0;;;;;;;;;;;;;;:::i;22144:140::-;;;:::i;53386:35::-;;;:::i;21502:79::-;;;:::i;56787:143::-;;;;;;;;;;;;;;;;-1:-1:-1;56787:143:0;;;;;;;:::i;53212:32::-;;;:::i;53550:66::-;;;;;;;;;;;;;;;;-1:-1:-1;53550:66:0;;;;;;-1:-1:-1;;;;;53550:66:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;58074:239;;;;;;;;;;;;;;;;-1:-1:-1;58074:239:0;;:::i;59596:810::-;;;;;;;;;;;;;;;;-1:-1:-1;59596:810:0;;;;;;;:::i;22439:109::-;;;;;;;;;;;;;;;;-1:-1:-1;22439:109:0;-1:-1:-1;;;;;22439:109:0;;:::i;57812:207::-;57893:4;21724:12;:10;:12::i;:::-;21714:6;;-1:-1:-1;;;;;21714:6:0;;;:22;;;21706:67;;;;;-1:-1:-1;;;21706:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21706:67:0;;;;;;;;;;;;;;;-1:-1:-1;57960:11:0::1;:29:::0;58007:4:::1;::::0;57812:207::o;54874:95::-;54946:8;:15;54874:95;:::o;62146:758::-;62203:21;62227:8;62236:1;62227:11;;;;;;;;;;;;;;;;62285:10;62273:23;;:11;:23;;;:11;:23;;;62315:11;;62227;;;;;;;;-1:-1:-1;62315:22:0;-1:-1:-1;62315:22:0;62307:53;;;;;-1:-1:-1;;;62307:53:0;;;;;;;;;;;;-1:-1:-1;;;62307:53:0;;;;;;;;;;;;;;;62371:13;62382:1;62371:10;:13::i;:::-;62395:15;62413:67;62464:4;:15;;;62413:46;62454:4;62413:36;62429:4;:19;;;62413:4;:11;;;:15;;:36;;;;:::i;:::-;:40;;:46::i;:::-;:50;;:67::i;:::-;62395:85;-1:-1:-1;62494:11:0;;62491:79;;62522:36;62538:10;62550:7;62522:15;:36::i;:::-;62583:11;;62580:151;;62625:11;;:24;;62641:7;62625:15;:24::i;:::-;62611:38;;62664:12;;:55;;-1:-1:-1;;;;;62664:12:0;62698:10;62711:7;62664:25;:55::i;:::-;62775:19;;;;62759:11;;:46;;62800:4;;62759:36;;:15;:36::i;:46::-;62741:15;;;:64;62818:4;;:30;;;-1:-1:-1;;;62818:30:0;;62828:10;62818:30;;;;;;;;;;;;-1:-1:-1;;;;;62818:4:0;;;;:9;;:30;;;;;:4;;:30;;;;;;;;:4;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;62864:32:0;;;;;;;;62885:1;;-1:-1:-1;62873:10:0;;-1:-1:-1;62864:32:0;;;;;;;;;62146:758;;;;:::o;53459:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;53459:26:0;;;;-1:-1:-1;53459:26:0;;;:::o;53720:34::-;;;;:::o;55151:542::-;21724:12;:10;:12::i;:::-;21714:6;;-1:-1:-1;;;;;21714:6:0;;;:22;;;21706:67;;;;;-1:-1:-1;;;21706:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21706:67:0;;;;;;;;;;;;;;;55252:11:::1;55248:61;;;55280:17;:15;:17::i;:::-;55319:23;55360:10;;55345:12;:25;:53;;55388:10;;55345:53;;;55373:12;55345:53;55427:15;::::0;55319:79;;-1:-1:-1;55427:32:0::1;::::0;55447:11;55427:19:::1;:32::i;:::-;55409:15;:50:::0;55484:170:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;55484:170:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;55484:170:0;;;;;;55470:8:::1;:185:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;55470:185:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;55666:19:::1;:17;:19::i;:::-;21784:1;55151:542:::0;;;:::o;56996:751::-;57068:7;57088:21;57112:8;57121:4;57112:14;;;;;;;;;;;;;;;;57161;;;:8;:14;;;;;;-1:-1:-1;;;;;57161:21:0;;;;;;;;;;;57112:14;;;;;;;57218:19;;;;57268:12;;:37;;-1:-1:-1;;;57268:37:0;;57299:4;57268:37;;;;;;;;;57112:14;;-1:-1:-1;57161:21:0;;57218:19;;57112:14;;57268:12;;;;;:22;;:37;;;;;57112:14;;57268:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57268:37:0;57335:20;;;;57268:37;;-1:-1:-1;57320:12:0;:35;:52;;;;-1:-1:-1;57359:13:0;;;57320:52;57316:344;;;57389:18;57410:49;57424:4;:20;;;57446:12;57410:13;:49::i;:::-;57389:70;;57474:17;57494:69;57547:15;;57494:48;57526:4;:15;;;57494:27;57509:11;;57494:10;:14;;:27;;;;:::i;:::-;:31;;:48::i;:69::-;57474:89;-1:-1:-1;57595:53:0;57614:33;57638:8;57614:19;57474:89;57628:4;57614:13;:19::i;:33::-;57595:14;;:18;:53::i;:::-;57578:70;;57316:344;;;57677:62;57723:4;:15;;;57677:41;57713:4;57677:31;57693:14;57677:4;:11;;;:15;;:31;;;;:::i;:62::-;57670:69;;;;;;56996:751;;;;;:::o;61317:771::-;61374:21;61398:8;61407:1;61398:11;;;;;;;;;;;;;;;;61456:10;61444:23;;:11;:23;;;:11;:23;;61398:11;;;;;;-1:-1:-1;61444:23:0;61478:13;;:10;:13::i;:::-;61506:11;;:15;61502:234;;61538:15;61556:67;61607:4;:15;;;61556:46;61597:4;61556:36;61572:4;:19;;;61556:4;:11;;;:15;;:36;;;;:::i;:67::-;61538:85;-1:-1:-1;61641:11:0;;61638:87;;61673:36;61689:10;61701:7;61673:15;:36::i;:::-;61502:234;;61749:11;;61746:170;;61777:12;;:74;;-1:-1:-1;;;;;61777:12:0;61815:10;61836:4;61843:7;61777:29;:74::i;:::-;61880:11;;:24;;61896:7;61880:15;:24::i;:::-;61866:38;;61746:170;61960:19;;;;61944:11;;:46;;61985:4;;61944:36;;:15;:36::i;:46::-;61926:15;;;:64;62003:4;;:30;;;-1:-1:-1;;;62003:30:0;;62013:10;62003:30;;;;;;;;;;;;-1:-1:-1;;;;;62003:4:0;;;;:9;;:30;;;;;:4;;:30;;;;;;;;:4;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;62049:31:0;;;;;;;;62069:1;;-1:-1:-1;62057:10:0;;-1:-1:-1;62049:31:0;;;;;;;;;61317:771;;;:::o;60464:800::-;60542:9;60533:48;;;;;-1:-1:-1;;;60533:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;60594:21;60618:8;60627:4;60618:14;;;;;;;;;;;;;;;;60667;;;:8;:14;;;;;;60682:10;60667:26;;;;;;;60712:11;;60618:14;;;;;;;;-1:-1:-1;60712:22:0;-1:-1:-1;60712:22:0;60704:53;;;;;-1:-1:-1;;;60704:53:0;;;;;;;;;;;;-1:-1:-1;;;60704:53:0;;;;;;;;;;;;;;;60768:16;60779:4;60768:10;:16::i;:::-;60795:15;60813:67;60864:4;:15;;;60813:46;60854:4;60813:36;60829:4;:19;;;60813:4;:11;;;:15;;:36;;;;:::i;:67::-;60795:85;-1:-1:-1;60894:11:0;;60891:79;;60922:36;60938:10;60950:7;60922:15;:36::i;:::-;60983:11;;60980:151;;61025:11;;:24;;61041:7;61025:15;:24::i;:::-;61011:38;;61064:12;;:55;;-1:-1:-1;;;;;61064:12:0;61098:10;61111:7;61064:25;:55::i;:::-;61175:19;;;;61159:11;;:46;;61200:4;;61159:36;;:15;:36::i;:46::-;61141:15;;;:64;61221:35;;;;;;;;61242:4;;61230:10;;61221:35;;;;;;;;;60464:800;;;;;:::o;53818:25::-;;;;:::o;58660:862::-;58712:21;58736:8;58745:4;58736:14;;;;;;;;;;;;;;;;;;58712:38;;58781:4;:20;;;58765:12;:36;58761:75;;58818:7;;;58761:75;58865:12;;:37;;;-1:-1:-1;;;58865:37:0;;58896:4;58865:37;;;;;;58846:16;;-1:-1:-1;;;;;58865:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58865:37:0;;-1:-1:-1;58917:13:0;58913:102;;-1:-1:-1;58970:12:0;58947:20;;;;:35;58997:7;;58913:102;59025:18;59046:49;59060:4;:20;;;59082:12;59046:13;:49::i;:::-;59025:70;;59106:17;59126:69;59179:15;;59126:48;59158:4;:15;;;59126:27;59141:11;;59126:10;:14;;:27;;;;:::i;:69::-;59206:3;;59106:89;;-1:-1:-1;;;;;;59206:3:0;:8;59223:4;59230:17;59106:89;59244:2;59230:13;:17::i;:::-;59206:42;;;;;;;;;;;;;-1:-1:-1;;;;;59206:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;59259:3:0;;-1:-1:-1;;;;;59259:3:0;;-1:-1:-1;59259:8:0;;-1:-1:-1;59268:17:0;:9;59282:2;59268:13;:17::i;:::-;59259:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;59297:3:0;;59314:4;;-1:-1:-1;;;;;59297:3:0;;;;-1:-1:-1;59297:8:0;;-1:-1:-1;59314:4:0;59321:32;59335:17;:9;59349:2;59335:13;:17::i;:::-;59321:9;;:13;:32::i;:::-;59297:57;;;;;;;;;;;;;-1:-1:-1;;;;;59297:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59387:81;59411:56;59458:8;59411:42;59448:4;59411:32;59425:17;59439:2;59425:9;:13;;:17;;;;:::i;:::-;59411:9;;:13;:32::i;:56::-;59387:19;;;;;:23;:81::i;:::-;59365:19;;;:103;-1:-1:-1;;59502:12:0;59479:20;;;;:35;;;;-1:-1:-1;58660:862:0;;:::o;62978:356::-;63037:21;63061:8;63070:4;63061:14;;;;;;;;;;;;;;;;63110;;;:8;:14;;;;;;63125:10;63110:26;;;;;;;;63194:11;;63061:14;;;;;;;63147:12;;63061:14;;-1:-1:-1;63147:59:0;;-1:-1:-1;;;;;63147:12:0;;;;;63125:10;63147:25;:59::i;:::-;63258:11;;63222:48;;;;;;;63252:4;;63240:10;;63222:48;;;;;;;;;63295:1;63281:15;;;63307;;;;:19;-1:-1:-1;;62978:356:0:o;53138:18::-;;;-1:-1:-1;;;;;53138:18:0;;:::o;53298:26::-;;;;:::o;54683:123::-;21724:12;:10;:12::i;:::-;21714:6;;-1:-1:-1;;;;;21714:6:0;;;:22;;;21706:67;;;;;-1:-1:-1;;;21706:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21706:67:0;;;;;;;;;;;;;;;54763:16:::1;:35:::0;54683:123::o;58399:180::-;58461:8;:15;58444:14;58487:85;58515:6;58509:3;:12;58487:85;;;58545:15;58556:3;58545:10;:15::i;:::-;58523:5;;58487:85;;;;58399:180;:::o;55791:456::-;21724:12;:10;:12::i;:::-;21714:6;;-1:-1:-1;;;;;21714:6:0;;;:22;;;21706:67;;;;;-1:-1:-1;;;21706:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21706:67:0;;;;;;;;;;;;;;;55889:11:::1;55885:61;;;55917:17;:15;:17::i;:::-;55974:63;56025:11;55974:46;55994:8;56003:4;55994:14;;;;;;;;;;;;;;;;;;:25;;;55974:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;55956:15;:81;;;;56048:22;56073:8;56082:4;56073:14;;;;;;;;;;;;;;;;;;:25;;;56048:50;;56137:11;56109:8;56118:4;56109:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;56181:11;56163:14;:29;56159:81;;56209:19;:17;:19::i;22144:140::-:0;21724:12;:10;:12::i;:::-;21714:6;;-1:-1:-1;;;;;21714:6:0;;;:22;;;21706:67;;;;;-1:-1:-1;;;21706:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21706:67:0;;;;;;;;;;;;;;;22243:1:::1;22227:6:::0;;22206:40:::1;::::0;-1:-1:-1;;;;;22227:6:0;;::::1;::::0;22206:40:::1;::::0;22243:1;;22206:40:::1;22274:1;22257:19:::0;;-1:-1:-1;;;;;;22257:19:0::1;::::0;;22144:140::o;53386:35::-;;;;:::o;21502:79::-;21540:7;21567:6;-1:-1:-1;;;;;21567:6:0;21502:79;:::o;56787:143::-;56905:16;;56859:7;;56886:36;;:14;:3;56894:5;56886:7;:14::i;:36::-;56879:43;56787:143;-1:-1:-1;;;56787:143:0:o;53212:32::-;;;-1:-1:-1;;;;;53212:32:0;;:::o;53550:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;58074:239::-;58138:7;58157:21;58181:8;58190:3;58181:13;;;;;;;;;;;;;;;;;;58157:37;;58205:19;58227:49;58241:4;:20;;;58263:12;58227:13;:49::i;:::-;58205:71;58074:239;-1:-1:-1;;;;58074:239:0:o;59596:810::-;59673:9;59664:45;;;;;-1:-1:-1;;;59664:45:0;;;;;;;;;;;;-1:-1:-1;;;59664:45:0;;;;;;;;;;;;;;;59722:21;59746:8;59755:4;59746:14;;;;;;;;;;;;;;;;59795;;;:8;:14;;;;;;59810:10;59795:26;;;;;;;59746:14;;;;;;;;-1:-1:-1;59832:16:0;59804:4;59832:10;:16::i;:::-;59863:11;;:15;59859:234;;59895:15;59913:67;59964:4;:15;;;59913:46;59954:4;59913:36;59929:4;:19;;;59913:4;:11;;;:15;;:36;;;;:::i;:67::-;59895:85;-1:-1:-1;59998:11:0;;59995:87;;60030:36;60046:10;60058:7;60030:15;:36::i;:::-;59859:234;;60107:11;;60103:171;;60135:12;;:74;;-1:-1:-1;;;;;60135:12:0;60173:10;60194:4;60201:7;60135:29;:74::i;:::-;60238:11;;:24;;60254:7;60238:15;:24::i;:::-;60224:38;;60103:171;60318:19;;;;60302:11;;:46;;60343:4;;60302:36;;:15;:36::i;:46::-;60284:15;;;:64;60364:34;;;;;;;;60384:4;;60372:10;;60364:34;;;;;;;;;59596:810;;;;:::o;22439:109::-;21724:12;:10;:12::i;:::-;21714:6;;-1:-1:-1;;;;;21714:6:0;;;:22;;;21706:67;;;;;-1:-1:-1;;;21706:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21706:67:0;;;;;;;;;;;;;;;22512:28:::1;22531:8;22512:18;:28::i;20155:98::-:0;20235:10;20155:98;:::o;2294:471::-;2352:7;2597:6;2593:47;;-1:-1:-1;2627:1:0;2620:8;;2593:47;2664:5;;;2668:1;2664;:5;:1;2688:5;;;;;:10;2680:56;;;;-1:-1:-1;;;2680:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3241:132;3299:7;3326:39;3330:1;3333;3326:39;;;;;;;;;;;;;;;;;:3;:39::i;1370:136::-;1428:7;1455:43;1459:1;1462;1455:43;;;;;;;;;;;;;;;;;:3;:43::i;63449:117::-;63524:4;;:34;;;-1:-1:-1;;;63524:34:0;;-1:-1:-1;;;;;63524:34:0;;;;;;;;;;;;;;;:4;;;;;:20;;:34;;;;;:4;;:34;;;;;;;:4;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63449:117;;:::o;16055:211::-;16199:58;;;-1:-1:-1;;;;;16199:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16199:58:0;-1:-1:-1;;;16199:58:0;;;16172:86;;16192:5;;16172:19;:86::i;:::-;16055:211;;;:::o;906:181::-;964:7;996:5;;;1020:6;;;;1012:46;;;;;-1:-1:-1;;;1012:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;56255:453;56321:8;:15;56304:14;56395:1;56376:115;56404:6;56398:3;:12;56376:115;;;56443:36;56454:8;56463:3;56454:13;;;;;;;;;;;;;;;;;;:24;;;56443:6;:10;;:36;;;;:::i;:::-;56434:45;-1:-1:-1;56412:5:0;;56376:115;;;-1:-1:-1;56505:11:0;;56501:200;;56542:13;:6;56553:1;56542:10;:13::i;:::-;56533:22;;56588:55;56636:6;56588:43;56608:8;56617:1;56608:11;;;;;;;56588:55;56570:15;:73;;;;56683:6;56658:8;56667:1;56658:11;;;;;;;;;;;;;;;;;;:22;;:31;;;;56255:453;;:::o;16274:248::-;16445:68;;;-1:-1:-1;;;;;16445:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16445:68:0;-1:-1:-1;;;16445:68:0;;;16418:96;;16438:5;;16418:19;:96::i;22654:229::-;-1:-1:-1;;;;;22728:22:0;;22720:73;;;;-1:-1:-1;;;22720:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22830:6;;;22809:38;;-1:-1:-1;;;;;22809:38:0;;;;22830:6;;;22809:38;;;22858:6;:17;;-1:-1:-1;;;;;;22858:17:0;-1:-1:-1;;;;;22858:17:0;;;;;;;;;;22654:229::o;3869:312::-;3989:7;4024:12;4017:5;4009:28;;;;-1:-1:-1;;;4009:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4048:9;4064:1;4060;:5;;;;;;;3869:312;-1:-1:-1;;;;;3869:312:0:o;1809:226::-;1929:7;1965:12;1957:6;;;;1949:29;;;;-1:-1:-1;;;1949:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2001:5:0;;;1809:226::o;18617:807::-;19068:23;19094:69;19122:4;19094:69;;;;;;;;;;;;;;;;;19102:5;-1:-1:-1;;;;;19094:27:0;;;:69;;;;;:::i;:::-;19178:17;;19068:95;;-1:-1:-1;19178:21:0;19174:243;;19339:10;19328:30;;;;;;;;;;;;;;;-1:-1:-1;19328:30:0;19320:85;;;;-1:-1:-1;;;19320:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12978:230;13115:12;13147:53;13170:6;13178:4;13184:1;13187:12;14639;14672:18;14683:6;14672:10;:18::i;:::-;14664:60;;;;;-1:-1:-1;;;14664:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14798:12;14812:23;14839:6;-1:-1:-1;;;;;14839:11:0;14858:8;14868:4;14839:34;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14839:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14797:76;;;;14888:7;14884:598;;;14919:10;-1:-1:-1;14912:17:0;;-1:-1:-1;14912:17:0;14884:598;15036:17;;:21;15032:439;;15299:10;15293:17;15360:15;15347:10;15343:2;15339:19;15332:44;15247:148;15435:20;;-1:-1:-1;;;15435:20:0;;;;;;;;;;;;;;;;;15442:12;;15435:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9841:641;9901:4;10382:20;;10212:66;10431:23;;;;;;:42;;-1:-1:-1;;10458:15:0;;;10423:51;-1:-1:-1;;9841:641:0:o

Swarm Source

ipfs://4ab4fb7384d8009d2528bff3be599b5303798a6525036f7533e268d075ac8ca1
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading

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