Contract 0xc78f0ad92591ce4902653c5089c7358ced058721

 
 
Txn Hash
Block
From
To
Value [Txn Fee]
0xe6de85a9260f90244fded74afbafc9f856c82b0b7ac6e7087e1cfe809335652695469252021-07-28 11:48:5817 hrs 53 mins ago0x63c45aabd052e259ab33efcfacd41361d0ef69bf IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000789235
0x069d13ee60f16ef925fe2734081e3b2fdec8112021d122c844d926e63c834e2c95469142021-07-28 11:48:2517 hrs 54 mins ago0x63c45aabd052e259ab33efcfacd41361d0ef69bf IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.0006072
0xbf97aedd89e23af5be06fedbef47857719024ad90bc52001b0ef1486f4bb1ad195469082021-07-28 11:48:0717 hrs 54 mins ago0x63c45aabd052e259ab33efcfacd41361d0ef69bf IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000557135
0x0a177755592d6870ce3fff2e503dc8ceb1c33a545802187e5890b5478482d22595142402021-07-27 5:55:281 day 23 hrs ago0x74bcd4156c4ffa9a41bd1ee1677034a229971afe IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000632135
0x5bd281b8925d0cca6f2d415209992c631f04c61a2e1f6e65d3ee6109ec38bfcb95026002021-07-26 20:09:102 days 9 hrs ago0x8847bfd940d9ea6457f574349dda67e7f31ff7e3 IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.00055733
0x92b5912f74c6b9d8daf15187a85b85d53a598b59eeaeddac192c4e4ba316f26d94991282021-07-26 17:09:462 days 12 hrs ago0x29e9bb27b238b13a453355e4a2df193e31ad2080 IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000789055
0x31658eaf41c9b601b8008e74899c8480a6bd6d41f719c2be4cf2ae6cc2adcba294990982021-07-26 17:08:162 days 12 hrs ago0x29e9bb27b238b13a453355e4a2df193e31ad2080 IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000789175
0x221f6ad4dc7a425a9f1c5a427cc09bad9aeef9318f7b5cf8843d7e61a16ea44d94990932021-07-26 17:08:012 days 12 hrs ago0x29e9bb27b238b13a453355e4a2df193e31ad2080 IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000557605
0x035fef4ad99726fbd511e18e2626f48e9bcf78c321b68afcc832142550d7d89494964472021-07-26 14:49:452 days 14 hrs ago0x3e90386f0432d0dee38e954d8140ba50322e169d IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000789175
0xaff20ad329df78261307c7fe7a212f95f8c826b9704bf4de42c7d3d82c32258b94964252021-07-26 14:48:382 days 14 hrs ago0x3e90386f0432d0dee38e954d8140ba50322e169d IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000557135
0x7a302d23ef3091a33e0a137c128b15988e86b162ccd5a45996352cc420421b0094964252021-07-26 14:48:382 days 14 hrs ago0x3e90386f0432d0dee38e954d8140ba50322e169d IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000557135
0xd5dcf7f79ed7ce47753b8dba0013d89d375887fbc507f576653416a8b6e0dbd194964252021-07-26 14:48:382 days 14 hrs ago0x3e90386f0432d0dee38e954d8140ba50322e169d IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.0006072
0x1ab39b3559578b971539c33b4adc9dbac036677a509be907b7011308fb70d29b94911402021-07-26 10:12:432 days 19 hrs ago0x56f3cf50f6257ae4d8abb22f550db5136cb2f4ae IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000789175
0xcb93cdf5696281c8d88de2d0da872b6b3ab67bccbea0e7ea0d19a74629d08fa394911312021-07-26 10:12:142 days 19 hrs ago0x56f3cf50f6257ae4d8abb22f550db5136cb2f4ae IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000789175
0xa49444773567f503aad1d978deff186947641f97154f85b3dee26bd60d80a37094911182021-07-26 10:11:322 days 19 hrs ago0x56f3cf50f6257ae4d8abb22f550db5136cb2f4ae IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000557135
0xbf47dd508d6b9345284a2f09d855fe0a232b67cf8649ee74a5bc8646d8ab781f94903852021-07-26 9:32:482 days 20 hrs ago0xdf21a17ae0d15ec8d016784450f27481b0b47ef2 IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000644865
0xb5e72a2e94d1e4f404e79cfb13968c56aa68c608e20e5d51e0ffe737a484a1c194903562021-07-26 9:31:212 days 20 hrs ago0xdf21a17ae0d15ec8d016784450f27481b0b47ef2 IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000789175
0x7c639e32ca572d473ce0b43e8e4257c40b218191123d45f3b942b5560d782c0194903492021-07-26 9:30:542 days 20 hrs ago0xdf21a17ae0d15ec8d016784450f27481b0b47ef2 IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000789235
0x6b412ad1eb89709d242f47853bd1e3d3c905426c8b4326e44ff84fc401034f2794673312021-07-25 14:01:133 days 15 hrs ago0x74bcd4156c4ffa9a41bd1ee1677034a229971afe IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000632135
0xb4441037677fd87c22a4d286597a540f91d6c52fcfd2d981a9d7275ceb139b2994548132021-07-25 3:32:024 days 2 hrs ago0xe295cff351dfd2bcad9b8c81f7f8447469a92410 IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.00068158
0x16791996b9862d4b4c099cc3a4ed62a15187acaad34a69121d522dfa7038762394313712021-07-24 7:49:554 days 21 hrs ago0x10fcd764db3ce0d738a302b1b593b0ee7ebfbe8e IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.00064442
0x73bd441f7fd0582030a49cbd0d0f48edb24080592d3acbe91a3eb7833c1fcda894261752021-07-24 3:27:395 days 2 hrs ago0x2e7f15b69ad2d295acf569f560d04761d93f1bda IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000632135
0xabc48e345af950b55eb16e20f0d354f2fe06bba128cf8c34a567acd9bb6a8c0994261582021-07-24 3:26:485 days 2 hrs ago0x2e7f15b69ad2d295acf569f560d04761d93f1bda IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.00049862
0xbfb6d6f1bec33c6eba953648378a64d2cacd3a52deb90bc631d6b3340c75bf7794190752021-07-23 21:32:305 days 8 hrs ago0x74bcd4156c4ffa9a41bd1ee1677034a229971afe IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.000632135
0xd6de7ed5354b679bdfe159318f7ba270ba354eaa80faac70890cf00df5757ec094134062021-07-23 16:47:035 days 12 hrs ago0x6ba34a45be26a6dfd67bfcf966d61098e992d5f0 IN  0xc78f0ad92591ce4902653c5089c7358ced0587210 BNB0.0006067
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xf1ab78fadef411c29f9883e2685e1487118405263a156ff48b13db9bcc5eadba54710702021-03-07 11:46:27143 days 17 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x2061a33ffc1abaa10204ab97771809340d5fe9420 BNB
0xf1ab78fadef411c29f9883e2685e1487118405263a156ff48b13db9bcc5eadba54710702021-03-07 11:46:27143 days 17 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
0xf1ab78fadef411c29f9883e2685e1487118405263a156ff48b13db9bcc5eadba54710702021-03-07 11:46:27143 days 17 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
0xf1ab78fadef411c29f9883e2685e1487118405263a156ff48b13db9bcc5eadba54710702021-03-07 11:46:27143 days 17 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0xaea443b0b54e255dafecd6766c7d36d8df8f529e0 BNB
0x52872731a3bab29355fd34baa9163d19c4c7282aef05b5cb5400efbbfad9b50f54710692021-03-07 11:46:24143 days 17 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x2061a33ffc1abaa10204ab97771809340d5fe9420 BNB
0x52872731a3bab29355fd34baa9163d19c4c7282aef05b5cb5400efbbfad9b50f54710692021-03-07 11:46:24143 days 17 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
0x52872731a3bab29355fd34baa9163d19c4c7282aef05b5cb5400efbbfad9b50f54710692021-03-07 11:46:24143 days 17 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
0x52872731a3bab29355fd34baa9163d19c4c7282aef05b5cb5400efbbfad9b50f54710692021-03-07 11:46:24143 days 17 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0xa5a1e8855a0d4f6c7df6f1574cea79ba9ca47ff70 BNB
0xb03b09177c65e6bb0f670c1e784c46e2341f54f3032b2531410dd843a7adc01d54709512021-03-07 11:40:30143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x9aa251cfabda84f750dde8a227f9240ae11e9f8c0 BNB
0xb03b09177c65e6bb0f670c1e784c46e2341f54f3032b2531410dd843a7adc01d54709512021-03-07 11:40:30143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x2061a33ffc1abaa10204ab97771809340d5fe9420 BNB
0xb03b09177c65e6bb0f670c1e784c46e2341f54f3032b2531410dd843a7adc01d54709512021-03-07 11:40:30143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
0xb03b09177c65e6bb0f670c1e784c46e2341f54f3032b2531410dd843a7adc01d54709512021-03-07 11:40:30143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
0xb03b09177c65e6bb0f670c1e784c46e2341f54f3032b2531410dd843a7adc01d54709512021-03-07 11:40:30143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x9aa251cfabda84f750dde8a227f9240ae11e9f8c0 BNB
0x9b89a7e45f9828ac684ad870355cbe7c12e47fefcc060be6ea92ded60d64f7fe54709242021-03-07 11:39:09143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x0db5591ea716d2495860e1daa47114ca416f60550 BNB
0x9b89a7e45f9828ac684ad870355cbe7c12e47fefcc060be6ea92ded60d64f7fe54709242021-03-07 11:39:09143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x2061a33ffc1abaa10204ab97771809340d5fe9420 BNB
0x9b89a7e45f9828ac684ad870355cbe7c12e47fefcc060be6ea92ded60d64f7fe54709242021-03-07 11:39:09143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
0x9b89a7e45f9828ac684ad870355cbe7c12e47fefcc060be6ea92ded60d64f7fe54709242021-03-07 11:39:09143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
0x9b89a7e45f9828ac684ad870355cbe7c12e47fefcc060be6ea92ded60d64f7fe54709242021-03-07 11:39:09143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x0db5591ea716d2495860e1daa47114ca416f60550 BNB
0x93b283802b6fa92ff9ecfb8b1b15910bb0801b3ac6bb339cda48144a3dae095e54708752021-03-07 11:36:42143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x2061a33ffc1abaa10204ab97771809340d5fe9420 BNB
0x93b283802b6fa92ff9ecfb8b1b15910bb0801b3ac6bb339cda48144a3dae095e54708752021-03-07 11:36:42143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
0x93b283802b6fa92ff9ecfb8b1b15910bb0801b3ac6bb339cda48144a3dae095e54708752021-03-07 11:36:42143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
0x93b283802b6fa92ff9ecfb8b1b15910bb0801b3ac6bb339cda48144a3dae095e54708752021-03-07 11:36:42143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x0db5591ea716d2495860e1daa47114ca416f60550 BNB
0xc97158338fe99f6afbdea403839b3950da53cc9eeeeca29437e56b9e18ab3c1854708752021-03-07 11:36:42143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x2061a33ffc1abaa10204ab97771809340d5fe9420 BNB
0xc97158338fe99f6afbdea403839b3950da53cc9eeeeca29437e56b9e18ab3c1854708752021-03-07 11:36:42143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
0xc97158338fe99f6afbdea403839b3950da53cc9eeeeca29437e56b9e18ab3c1854708752021-03-07 11:36:42143 days 18 hrs ago 0xc78f0ad92591ce4902653c5089c7358ced058721 0x93f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-02-27
*/

// SPDX-License-Identifier: GPL-v3.0


pragma solidity 0.6.12;



library SafeMath {

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

        return c;
    }

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

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

        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {

        if (a == 0) {
            return 0;
        }

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

        return c;
    }

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

    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

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

    function min(uint256 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 IBEP20 {
    function totalSupply() external view returns (uint256);
    function decimals() external view returns (uint8);
    function symbol() external view returns (string memory);
    function name() external view returns (string memory);
    function getOwner() external view returns (address);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address _owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

library Address {

    function isContract(address account) internal view returns (bool) {
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

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

    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, 'Address: low-level call failed');
    }

    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

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

    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 {
             if (returndata.length > 0) {
         // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

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

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

    function safeApprove(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
    // solhint-disable-next-line max-line-length
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            'SafeBEP20: approve from non-zero to non-zero allowance'
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IBEP20 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(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(
            value,
            'SafeBEP20: decreased allowance below zero'
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function _callOptionalReturn(IBEP20 token, bytes memory data) private {

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


contract Context {
    constructor() internal {}

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

    function _msgData() internal view returns (bytes memory) {
        this;
        return msg.data;
    }
}

contract Ownable is Context {
    address private _owner;

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

    constructor() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    function owner() public view returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(_owner == _msgSender(), 'Ownable: caller is not the owner');
        _;
    }

    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


contract BEP20 is Context, IBEP20, 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;
    constructor(string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    function getOwner() external override view returns (address) {
        return owner();
    }

    function name() public override view returns (string memory) {
        return _name;
    }

    function decimals() public override view returns (uint8) {
        return _decimals;
    }

    function symbol() public override view returns (string memory) {
        return _symbol;
    }

    function totalSupply() public override view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public override view returns (uint256) {
        return _balances[account];
    }

    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public override view returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, 'BEP20: transfer amount exceeds allowance')
        );
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, 'BEP20: decreased allowance below zero')
        );
        return true;
    }

    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        return true;
    }


    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal {
        require(sender != address(0), 'BEP20: transfer from the zero address');
        require(recipient != address(0), 'BEP20: transfer to the zero address');

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

    function _mint(address account, uint256 amount) internal {
        require(account != address(0), 'BEP20: mint to the zero address');

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

    function _burn(address account, uint256 amount) internal {
        require(account != address(0), 'BEP20: burn from the zero address');

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

    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal {
        require(owner != address(0), 'BEP20: approve from the zero address');
        require(spender != address(0), 'BEP20: approve to the zero address');

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

    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, 'BEP20: burn amount exceeds allowance')
        );
    }
}

contract CheeseIndexToken is BEP20('CheeseSwap Index', 'CID') {
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }
    mapping (address => address) internal _delegates;
    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);
    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    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), "CID::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "CID::delegateBySig: invalid nonce");
        require(now <= expiry, "CID::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    function getCurrentVotes(address account)
        external
        view
        returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "CID::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 CIDs (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, "CID::_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;
    }
}

contract CheeseIndexSecondary is BEP20('CheeseSwap Secondary Index', 'CSI') {
    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

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


    CheeseIndexToken public cid;


    constructor(
        CheeseIndexToken _cid
    ) public {
        cid = _cid;
    }

    function safeCidTransfer(address _to, uint256 _amount) public onlyOwner {
        uint256 cidBal = cid.balanceOf(address(this));
        if (_amount > cidBal) {
            cid.transfer(_to, cidBal);
        } else {
            cid.transfer(_to, _amount);
        }
    }

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

    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }


    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), "CID::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "CID::delegateBySig: invalid nonce");
        require(now <= expiry, "CID::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    function getCurrentVotes(address account)
        external
        view
        returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "CID::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 CIDs (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, "CID::_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;
    }
}

interface IMigratorChef {

    function migrate(IBEP20 token) external returns (IBEP20);
}

contract MasterChef is Ownable {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

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

    CheeseIndexToken public cid;
    CheeseIndexSecondary public csi;
    address public devaddr;
    uint256 public cidPerBlock;
    uint256 public BONUS_MULTIPLIER = 1;
    IMigratorChef public migrator;
    PoolInfo[] public poolInfo;
    mapping (uint256 => mapping (address => UserInfo)) public userInfo;
    uint256 public totalAllocPoint = 0;
    uint256 public startBlock;

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

    constructor(
        CheeseIndexToken _cid,
        CheeseIndexSecondary _csi,
        address _devaddr,
        uint256 _cidPerBlock,
        uint256 _startBlock
    ) public {
        cid = _cid;
        csi = _csi;
        devaddr = _devaddr;
        cidPerBlock = _cidPerBlock;
        startBlock = _startBlock;

        poolInfo.push(PoolInfo({
            lpToken: _cid,
            allocPoint: 1000,
            lastRewardBlock: startBlock,
            accCidPerShare: 0
        }));

        totalAllocPoint = 1000;

    }

    function updateMultiplier(uint256 multiplierNumber) public onlyOwner {
        BONUS_MULTIPLIER = multiplierNumber;
    }

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

    function add(uint256 _allocPoint, IBEP20 _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,
            accCidPerShare: 0
        }));
        updateStakingPool();
    }

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

    function setMigrator(IMigratorChef _migrator) public onlyOwner {
        migrator = _migrator;
    }

    function migrate(uint256 _pid) public {
        require(address(migrator) != address(0), "migrate: no migrator");
        PoolInfo storage pool = poolInfo[_pid];
        IBEP20 lpToken = pool.lpToken;
        uint256 bal = lpToken.balanceOf(address(this));
        lpToken.safeApprove(address(migrator), bal);
        IBEP20 newLpToken = migrator.migrate(lpToken);
        require(bal == newLpToken.balanceOf(address(this)), "migrate: bad");
        pool.lpToken = newLpToken;
    }

    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        return _to.sub(_from).mul(BONUS_MULTIPLIER);
    }

    function pendingCid(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accCidPerShare = pool.accCidPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 cidReward = multiplier.mul(cidPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accCidPerShare = accCidPerShare.add(cidReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accCidPerShare).div(1e12).sub(user.rewardDebt);
    }

    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    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 cidReward = multiplier.mul(cidPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        cid.mint(devaddr, cidReward.div(10));
        cid.mint(address(csi), cidReward);
        pool.accCidPerShare = pool.accCidPerShare.add(cidReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    function deposit(uint256 _pid, uint256 _amount) public {

        require (_pid != 0, 'deposit CID 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.accCidPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeCidTransfer(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.accCidPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    function withdraw(uint256 _pid, uint256 _amount) public {

        require (_pid != 0, 'withdraw CID 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.accCidPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            safeCidTransfer(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.accCidPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    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.accCidPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeCidTransfer(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.accCidPerShare).div(1e12);

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

    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.accCidPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            safeCidTransfer(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.accCidPerShare).div(1e12);

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

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

    function safeCidTransfer(address _to, uint256 _amount) internal {
        csi.safeCidTransfer(_to, _amount);
    }

    function dev(address _devaddr) public {
        require(msg.sender == devaddr, "dev: wut?");
        devaddr = _devaddr;
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract CheeseIndexToken","name":"_cid","type":"address"},{"internalType":"contract CheeseIndexSecondary","name":"_csi","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"uint256","name":"_cidPerBlock","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 IBEP20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cid","outputs":[{"internalType":"contract CheeseIndexToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cidPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"csi","outputs":[{"internalType":"contract CheeseIndexSecondary","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"_amount","type":"uint256"}],"name":"leaveStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"contract IMigratorChef","name":"","type":"address"}],"stateMutability":"view","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":"pendingCid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accCidPerShare","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":[{"internalType":"contract IMigratorChef","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"","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"}]

60806040526001600555600060095534801561001a57600080fd5b506040516122ee3803806122ee833981810160405260a081101561003d57600080fd5b5080516020820151604083015160608401516080909401519293919290919060006100666101e0565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b03199081166001600160a01b03978816908117835560028054831697891697909717909655600380548216958816959095179094556004928355600a829055604080516080810182529586526103e86020870181815291870193845260006060880181815260078054958601815590915296517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688939095029283018054909616949097169390931790935590517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c689830155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a82015590517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b909101556009556101e4565b3390565b6120fb806101f36000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063630b5ba1116101045780638dbb1e3a116100a2578063aa3ec0a911610071578063aa3ec0a9146104b1578063d49e77cd146104b9578063e2bbb158146104c1578063f2fde38b146104e4576101cf565b80638dbb1e3a146104395780638f0784651461045c57806390340ca91461046457806393f1a40b1461046c576101cf565b80637cd07e47116100de5780637cd07e47146103df5780638aa28550146104035780638d88a90e1461040b5780638da5cb5b14610431576101cf565b8063630b5ba1146103a457806364482f79146103ac578063715018a6146103d7576101cf565b806341441d3b1161017157806348cd4cb11161014b57806348cd4cb11461034557806351eb05a61461034d5780635312ea8e1461036a5780635ffe614614610387576101cf565b806341441d3b146102e8578063441a3e7014610305578063454b060814610328576101cf565b80631526fe27116101ad5780631526fe271461023957806317caf6f1146102865780631eaaa0451461028e57806323cf3118146102c2576101cf565b8063081e3eda146101d45780630c886370146101ee5780631058d2811461021a575b600080fd5b6101dc61050a565b60408051918252519081900360200190f35b6101dc6004803603604081101561020457600080fd5b50803590602001356001600160a01b0316610510565b6102376004803603602081101561023057600080fd5b5035610686565b005b6102566004803603602081101561024f57600080fd5b503561085e565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6101dc61089f565b610237600480360360608110156102a457600080fd5b508035906001600160a01b03602082013516906040013515156108a5565b610237600480360360208110156102d857600080fd5b50356001600160a01b0316610a2b565b610237600480360360208110156102fe57600080fd5b5035610aa5565b6102376004803603604081101561031b57600080fd5b5080359060200135610c39565b6102376004803603602081101561033e57600080fd5b5035610dde565b6101dc61103a565b6102376004803603602081101561036357600080fd5b5035611040565b6102376004803603602081101561038057600080fd5b5035611266565b6102376004803603602081101561039d57600080fd5b5035611301565b61023761135e565b610237600480360360608110156103c257600080fd5b50803590602081013590604001351515611381565b61023761147f565b6103e7611521565b604080516001600160a01b039092168252519081900360200190f35b6101dc611530565b6102376004803603602081101561042157600080fd5b50356001600160a01b0316611536565b6103e76115a3565b6101dc6004803603604081101561044f57600080fd5b50803590602001356115b2565b6101dc6115cd565b6103e76115d3565b6104986004803603604081101561048257600080fd5b50803590602001356001600160a01b03166115e2565b6040805192835260208301919091528051918290030190f35b6103e7611606565b6103e7611615565b610237600480360360408110156104d757600080fd5b5080359060200135611624565b610237600480360360208110156104fa57600080fd5b50356001600160a01b0316611781565b60075490565b6000806007848154811061052057fe5b600091825260208083208784526008825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b15801561059e57600080fd5b505afa1580156105b2573d6000803e3d6000fd5b505050506040513d60208110156105c857600080fd5b50516002850154909150431180156105df57508015155b1561064b5760006105f48560020154436115b2565b90506000610627600954610621886001015461061b600454876117e290919063ffffffff16565b906117e2565b9061183b565b905061064661063f846106218464e8d4a510006117e2565b859061187d565b935050505b610679836001015461067364e8d4a510006106218688600001546117e290919063ffffffff16565b906118d7565b9450505050505b92915050565b6000600760008154811061069657fe5b600091825260208083203384527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c79091526040909220805460049092029092019250831115610721576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61072b6000611040565b6000610759826001015461067364e8d4a51000610621876003015487600001546117e290919063ffffffff16565b9050801561076b5761076b3382611919565b831561079557815461077d90856118d7565b82558254610795906001600160a01b0316338661198a565b600383015482546107b09164e8d4a5100091610621916117e2565b600183015560025460408051632770a7eb60e21b81523360048201526024810187905290516001600160a01b0390921691639dc29fac9160448082019260009290919082900301818387803b15801561080857600080fd5b505af115801561081c573d6000803e3d6000fd5b5050604080518781529051600093503392507ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a350505050565b6007818154811061086b57fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60095481565b6108ad6119e1565b6000546001600160a01b039081169116146108fd576040805162461bcd60e51b815260206004820181905260248201526000805160206120a6833981519152604482015290519081900360640190fd5b801561090b5761090b61135e565b6000600a54431161091e57600a54610920565b435b600954909150610930908561187d565b600955604080516080810182526001600160a01b0385811682526020820187815292820184815260006060840181815260078054600181018255925293517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600490920291820180546001600160a01b031916919094161790925592517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68982015591517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a830155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b90910155610a256119e5565b50505050565b610a336119e1565b6000546001600160a01b03908116911614610a83576040805162461bcd60e51b815260206004820181905260248201526000805160206120a6833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006007600081548110610ab557fe5b600091825260208083203384527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c790915260408320600490920201925090610afc90611040565b805415610b45576000610b31826001015461067364e8d4a51000610621876003015487600001546117e290919063ffffffff16565b90508015610b4357610b433382611919565b505b8215610b71578154610b62906001600160a01b0316333086611a87565b8054610b6e908461187d565b81555b60038201548154610b8c9164e8d4a5100091610621916117e2565b6001820155600254604080516340c10f1960e01b81523360048201526024810186905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b158015610be457600080fd5b505af1158015610bf8573d6000803e3d6000fd5b5050604080518681529051600093503392507f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050565b81610c8b576040805162461bcd60e51b815260206004820152601960248201527f77697468647261772043494420627920756e7374616b696e6700000000000000604482015290519081900360640190fd5b600060078381548110610c9a57fe5b600091825260208083208684526008825260408085203386529092529220805460049092029092019250831115610d0d576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610d1684611040565b6000610d44826001015461067364e8d4a51000610621876003015487600001546117e290919063ffffffff16565b90508015610d5657610d563382611919565b8315610d80578154610d6890856118d7565b82558254610d80906001600160a01b0316338661198a565b60038301548254610d9b9164e8d4a5100091610621916117e2565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b6006546001600160a01b0316610e32576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604482015290519081900360640190fd5b600060078281548110610e4157fe5b600091825260208083206004928302018054604080516370a0823160e01b81523095810195909552519195506001600160a01b0316939284926370a0823192602480840193829003018186803b158015610e9a57600080fd5b505afa158015610eae573d6000803e3d6000fd5b505050506040513d6020811015610ec457600080fd5b5051600654909150610ee3906001600160a01b03848116911683611ae1565b6006546040805163ce5494bb60e01b81526001600160a01b0385811660048301529151600093929092169163ce5494bb9160248082019260209290919082900301818787803b158015610f3557600080fd5b505af1158015610f49573d6000803e3d6000fd5b505050506040513d6020811015610f5f57600080fd5b5051604080516370a0823160e01b815230600482015290519192506001600160a01b038316916370a0823191602480820192602092909190829003018186803b158015610fab57600080fd5b505afa158015610fbf573d6000803e3d6000fd5b505050506040513d6020811015610fd557600080fd5b50518214611019576040805162461bcd60e51b815260206004820152600c60248201526b1b5a59dc985d194e8818985960a21b604482015290519081900360640190fd5b83546001600160a01b0319166001600160a01b039190911617909255505050565b600a5481565b60006007828154811061104f57fe5b90600052602060002090600402019050806002015443116110705750611263565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156110ba57600080fd5b505afa1580156110ce573d6000803e3d6000fd5b505050506040513d60208110156110e457600080fd5b50519050806110fa575043600290910155611263565b600061110a8360020154436115b2565b90506000611131600954610621866001015461061b600454876117e290919063ffffffff16565b6001546003549192506001600160a01b03908116916340c10f19911661115884600a61183b565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561119e57600080fd5b505af11580156111b2573d6000803e3d6000fd5b5050600154600254604080516340c10f1960e01b81526001600160a01b0392831660048201526024810187905290519190921693506340c10f199250604480830192600092919082900301818387803b15801561120e57600080fd5b505af1158015611222573d6000803e3d6000fd5b505050506112506112458461062164e8d4a51000856117e290919063ffffffff16565b60038601549061187d565b6003850155505043600290920191909155505b50565b60006007828154811061127557fe5b600091825260208083208584526008825260408085203380875293529093208054600490930290930180549094506112ba926001600160a01b0391909116919061198a565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b6113096119e1565b6000546001600160a01b03908116911614611359576040805162461bcd60e51b815260206004820181905260248201526000805160206120a6833981519152604482015290519081900360640190fd5b600555565b60075460005b8181101561137d5761137581611040565b600101611364565b5050565b6113896119e1565b6000546001600160a01b039081169116146113d9576040805162461bcd60e51b815260206004820181905260248201526000805160206120a6833981519152604482015290519081900360640190fd5b80156113e7576113e761135e565b6114248261141e600786815481106113fb57fe5b9060005260206000209060040201600101546009546118d790919063ffffffff16565b9061187d565b60098190555060006007848154811061143957fe5b9060005260206000209060040201600101549050826007858154811061145b57fe5b906000526020600020906004020160010181905550828114610a2557610a256119e5565b6114876119e1565b6000546001600160a01b039081169116146114d7576040805162461bcd60e51b815260206004820181905260248201526000805160206120a6833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6006546001600160a01b031681565b60055481565b6003546001600160a01b03163314611581576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b6005546000906115c69061061b84866118d7565b9392505050565b60045481565b6002546001600160a01b031681565b60086020908152600092835260408084209091529082529020805460019091015482565b6001546001600160a01b031681565b6003546001600160a01b031681565b8161166f576040805162461bcd60e51b81526020600482015260166024820152756465706f73697420434944206279207374616b696e6760501b604482015290519081900360640190fd5b60006007838154811061167e57fe5b600091825260208083208684526008825260408085203386529092529220600490910290910191506116af84611040565b8054156116f85760006116e4826001015461067364e8d4a51000610621876003015487600001546117e290919063ffffffff16565b905080156116f6576116f63382611919565b505b8215611724578154611715906001600160a01b0316333086611a87565b8054611721908461187d565b81555b6003820154815461173f9164e8d4a5100091610621916117e2565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b6117896119e1565b6000546001600160a01b039081169116146117d9576040805162461bcd60e51b815260206004820181905260248201526000805160206120a6833981519152604482015290519081900360640190fd5b61126381611bf4565b6000826117f157506000610680565b828202828482816117fe57fe5b04146115c65760405162461bcd60e51b815260040180806020018281038252602181526020018061204f6021913960400191505060405180910390fd5b60006115c683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611c94565b6000828201838110156115c6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006115c683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611d36565b6002546040805163d065853960e01b81526001600160a01b038581166004830152602482018590529151919092169163d065853991604480830192600092919082900301818387803b15801561196e57600080fd5b505af1158015611982573d6000803e3d6000fd5b505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526119dc908490611d90565b505050565b3390565b600754600060015b82811015611a3057611a2660078281548110611a0557fe5b9060005260206000209060040201600101548361187d90919063ffffffff16565b91506001016119ed565b50801561137d57611a4281600361183b565b9050611a598161141e60076000815481106113fb57fe5b600981905550806007600081548110611a6e57fe5b9060005260206000209060040201600101819055505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610a25908590611d90565b801580611b67575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611b3957600080fd5b505afa158015611b4d573d6000803e3d6000fd5b505050506040513d6020811015611b6357600080fd5b5051155b611ba25760405162461bcd60e51b81526004018080602001828103825260368152602001806120706036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526119dc908490611d90565b6001600160a01b038116611c395760405162461bcd60e51b81526004018080602001828103825260268152602001806120296026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008183611d205760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ce5578181015183820152602001611ccd565b50505050905090810190601f168015611d125780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611d2c57fe5b0495945050505050565b60008184841115611d885760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611ce5578181015183820152602001611ccd565b505050900390565b6060611de5826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e419092919063ffffffff16565b8051909150156119dc57808060200190516020811015611e0457600080fd5b50516119dc5760405162461bcd60e51b815260040180806020018281038252602a815260200180611fff602a913960400191505060405180910390fd5b6060611e508484600085611e58565b949350505050565b6060611e6385611fc5565b611eb4576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611ef35780518252601f199092019160209182019101611ed4565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611f55576040519150601f19603f3d011682016040523d82523d6000602084013e611f5a565b606091505b50915091508115611f6e579150611e509050565b805115611f7e5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611ce5578181015183820152602001611ccd565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611e5057505015159291505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666542455032303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212205a409ff18d75d9595ad3614587fbe2468f0fdc777dff5b82115196940a77b36264736f6c634300060c003300000000000000000000000093f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0000000000000000000000002061a33ffc1abaa10204ab97771809340d5fe942000000000000000000000000983e0b47b8096c8ac4c4fabca123056a44fbadbd00000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000000000000000000000000000000000000050b085

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

00000000000000000000000093f44521a0b6dde17e8c4bb8e85e8c215d2eef0e0000000000000000000000002061a33ffc1abaa10204ab97771809340d5fe942000000000000000000000000983e0b47b8096c8ac4c4fabca123056a44fbadbd00000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000000000000000000000000000000000000050b085

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000093f44521a0b6dde17e8c4bb8e85e8c215d2eef0e
Arg [1] : 0000000000000000000000002061a33ffc1abaa10204ab97771809340d5fe942
Arg [2] : 000000000000000000000000983e0b47b8096c8ac4c4fabca123056a44fbadbd
Arg [3] : 00000000000000000000000000000000000000000000000006f05b59d3b20000
Arg [4] : 000000000000000000000000000000000000000000000000000000000050b085


Deployed ByteCode Sourcemap

28921:9885:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30954:95;;;:::i;:::-;;;;;;;;;;;;;;;;33292:750;;;;;;;;;;;;;;;;-1:-1:-1;33292:750:0;;;;;;-1:-1:-1;;;;;33292:750:0;;:::i;37421:757::-;;;;;;;;;;;;;;;;-1:-1:-1;37421:757:0;;:::i;:::-;;29832:26;;;;;;;;;;;;;;;;-1:-1:-1;29832:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;29832:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29938:34;;;:::i;31057:542::-;;;;;;;;;;;;;;;;-1:-1:-1;31057:542:0;;;-1:-1:-1;;;;;31057:542:0;;;;;;;;;;;;:::i;32532:102::-;;;;;;;;;;;;;;;;-1:-1:-1;32532:102:0;-1:-1:-1;;;;;32532:102:0;;:::i;36643:770::-;;;;;;;;;;;;;;;;-1:-1:-1;36643:770:0;;:::i;35835:800::-;;;;;;;;;;;;;;;;-1:-1:-1;35835:800:0;;;;;;;:::i;32642:491::-;;;;;;;;;;;;;;;;-1:-1:-1;32642:491:0;;:::i;29979:25::-;;;:::i;34238:771::-;;;;;;;;;;;;;;;;-1:-1:-1;34238:771:0;;:::i;38186:356::-;;;;;;;;;;;;;;;;-1:-1:-1;38186:356:0;;:::i;30823:123::-;;;;;;;;;;;;;;;;-1:-1:-1;30823:123:0;;:::i;34050:180::-;;;:::i;31607:456::-;;;;;;;;;;;;;;;;-1:-1:-1;31607:456:0;;;;;;;;;;;;;;:::i;8946:140::-;;;:::i;29796:29::-;;;:::i;:::-;;;;-1:-1:-1;;;;;29796:29:0;;;;;;;;;;;;;;29754:35;;;:::i;38674:129::-;;;;;;;;;;;;;;;;-1:-1:-1;38674:129:0;-1:-1:-1;;;;;38674:129:0;;:::i;8732:79::-;;;:::i;33141:143::-;;;;;;;;;;;;;;;;-1:-1:-1;33141:143:0;;;;;;;:::i;29721:26::-;;;:::i;29654:31::-;;;:::i;29865:66::-;;;;;;;;;;;;;;;;-1:-1:-1;29865:66:0;;;;;;-1:-1:-1;;;;;29865:66:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;29620:27;;;:::i;29692:22::-;;;:::i;35017:810::-;;;;;;;;;;;;;;;;-1:-1:-1;35017:810:0;;;;;;;:::i;9094:109::-;;;;;;;;;;;;;;;;-1:-1:-1;9094:109:0;-1:-1:-1;;;;;9094:109:0;;:::i;30954:95::-;31026:8;:15;30954:95;:::o;33292:750::-;33364:7;33384:21;33408:8;33417:4;33408:14;;;;;;;;;;;;;;;;33457;;;:8;:14;;;;;;-1:-1:-1;;;;;33457:21:0;;;;;;;;;;;33408:14;;;;;;;33514:19;;;;33563:12;;:37;;-1:-1:-1;;;33563:37:0;;33594:4;33563:37;;;;;;;;;33408:14;;-1:-1:-1;33457:21:0;;33514:19;;33408:14;;33563:12;;;;;:22;;:37;;;;;33408:14;;33563:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33563:37:0;33630:20;;;;33563:37;;-1:-1:-1;33615:12:0;:35;:52;;;;-1:-1:-1;33654:13:0;;;33615:52;33611:344;;;33684:18;33705:49;33719:4;:20;;;33741:12;33705:13;:49::i;:::-;33684:70;;33769:17;33789:69;33842:15;;33789:48;33821:4;:15;;;33789:27;33804:11;;33789:10;:14;;:27;;;;:::i;:::-;:31;;:48::i;:::-;:52;;:69::i;:::-;33769:89;-1:-1:-1;33890:53:0;33909:33;33933:8;33909:19;33769:89;33923:4;33909:13;:19::i;:33::-;33890:14;;:18;:53::i;:::-;33873:70;;33611:344;;;33972:62;34018:4;:15;;;33972:41;34008:4;33972:31;33988:14;33972:4;:11;;;:15;;:31;;;;:::i;:41::-;:45;;:62::i;:::-;33965:69;;;;;;33292:750;;;;;:::o;37421:757::-;37478:21;37502:8;37511:1;37502:11;;;;;;;;;;;;;;;;37560:10;37548:23;;:11;:23;;;:11;:23;;;37590:11;;37502;;;;;;;;-1:-1:-1;37590:22:0;-1:-1:-1;37590:22:0;37582:53;;;;;-1:-1:-1;;;37582:53:0;;;;;;;;;;;;-1:-1:-1;;;37582:53:0;;;;;;;;;;;;;;;37646:13;37657:1;37646:10;:13::i;:::-;37670:15;37688:67;37739:4;:15;;;37688:46;37729:4;37688:36;37704:4;:19;;;37688:4;:11;;;:15;;:36;;;;:::i;:67::-;37670:85;-1:-1:-1;37769:11:0;;37766:79;;37797:36;37813:10;37825:7;37797:15;:36::i;:::-;37858:11;;37855:151;;37900:11;;:24;;37916:7;37900:15;:24::i;:::-;37886:38;;37939:12;;:55;;-1:-1:-1;;;;;37939:12:0;37973:10;37986:7;37939:25;:55::i;:::-;38050:19;;;;38034:11;;:46;;38075:4;;38034:36;;:15;:36::i;:46::-;38016:15;;;:64;38093:3;;:29;;;-1:-1:-1;;;38093:29:0;;38102:10;38093:29;;;;;;;;;;;;-1:-1:-1;;;;;38093:3:0;;;;:8;;:29;;;;;:3;;:29;;;;;;;;:3;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;38138:32:0;;;;;;;;38159:1;;-1:-1:-1;38147:10:0;;-1:-1:-1;38138:32:0;;;;;;;;;37421:757;;;;:::o;29832:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29832:26:0;;;;-1:-1:-1;29832:26:0;;;:::o;29938:34::-;;;;:::o;31057:542::-;8869:12;:10;:12::i;:::-;8859:6;;-1:-1:-1;;;;;8859:6:0;;;:22;;;8851:67;;;;;-1:-1:-1;;;8851:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8851:67:0;;;;;;;;;;;;;;;31158:11:::1;31154:61;;;31186:17;:15;:17::i;:::-;31225:23;31266:10;;31251:12;:25;:53;;31294:10;;31251:53;;;31279:12;31251:53;31333:15;::::0;31225:79;;-1:-1:-1;31333:32:0::1;::::0;31353:11;31333:19:::1;:32::i;:::-;31315:15;:50:::0;31390:170:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;31390:170:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;31390:170:0;;;;;;31376:8:::1;:185:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;31376:185:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;31572:19:::1;:17;:19::i;:::-;8929:1;31057:542:::0;;;:::o;32532:102::-;8869:12;:10;:12::i;:::-;8859:6;;-1:-1:-1;;;;;8859:6:0;;;:22;;;8851:67;;;;;-1:-1:-1;;;8851:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8851:67:0;;;;;;;;;;;;;;;32606:8:::1;:20:::0;;-1:-1:-1;;;;;;32606:20:0::1;-1:-1:-1::0;;;;;32606:20:0;;;::::1;::::0;;;::::1;::::0;;32532:102::o;36643:770::-;36700:21;36724:8;36733:1;36724:11;;;;;;;;;;;;;;;;36782:10;36770:23;;:11;:23;;;:11;:23;;36724:11;;;;;;-1:-1:-1;36770:23:0;36804:13;;:10;:13::i;:::-;36832:11;;:15;36828:234;;36864:15;36882:67;36933:4;:15;;;36882:46;36923:4;36882:36;36898:4;:19;;;36882:4;:11;;;:15;;:36;;;;:::i;:67::-;36864:85;-1:-1:-1;36967:11:0;;36964:87;;36999:36;37015:10;37027:7;36999:15;:36::i;:::-;36828:234;;37075:11;;37072:170;;37103:12;;:74;;-1:-1:-1;;;;;37103:12:0;37141:10;37162:4;37169:7;37103:29;:74::i;:::-;37206:11;;:24;;37222:7;37206:15;:24::i;:::-;37192:38;;37072:170;37286:19;;;;37270:11;;:46;;37311:4;;37270:36;;:15;:36::i;:46::-;37252:15;;;:64;37329:3;;:29;;;-1:-1:-1;;;37329:29:0;;37338:10;37329:29;;;;;;;;;;;;-1:-1:-1;;;;;37329:3:0;;;;:8;;:29;;;;;:3;;:29;;;;;;;;:3;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;37374:31:0;;;;;;;;37394:1;;-1:-1:-1;37382:10:0;;-1:-1:-1;37374:31:0;;;;;;;;;36643:770;;;:::o;35835:800::-;35913:9;35904:48;;;;;-1:-1:-1;;;35904:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;35965:21;35989:8;35998:4;35989:14;;;;;;;;;;;;;;;;36038;;;:8;:14;;;;;;36053:10;36038:26;;;;;;;36083:11;;35989:14;;;;;;;;-1:-1:-1;36083:22:0;-1:-1:-1;36083:22:0;36075:53;;;;;-1:-1:-1;;;36075:53:0;;;;;;;;;;;;-1:-1:-1;;;36075:53:0;;;;;;;;;;;;;;;36139:16;36150:4;36139:10;:16::i;:::-;36166:15;36184:67;36235:4;:15;;;36184:46;36225:4;36184:36;36200:4;:19;;;36184:4;:11;;;:15;;:36;;;;:::i;:67::-;36166:85;-1:-1:-1;36265:11:0;;36262:79;;36293:36;36309:10;36321:7;36293:15;:36::i;:::-;36354:11;;36351:151;;36396:11;;:24;;36412:7;36396:15;:24::i;:::-;36382:38;;36435:12;;:55;;-1:-1:-1;;;;;36435:12:0;36469:10;36482:7;36435:25;:55::i;:::-;36546:19;;;;36530:11;;:46;;36571:4;;36530:36;;:15;:36::i;:46::-;36512:15;;;:64;36592:35;;;;;;;;36613:4;;36601:10;;36592:35;;;;;;;;;35835:800;;;;;:::o;32642:491::-;32707:8;;-1:-1:-1;;;;;32707:8:0;32691:64;;;;;-1:-1:-1;;;32691:64:0;;;;;;;;;;;;-1:-1:-1;;;32691:64:0;;;;;;;;;;;;;;;32766:21;32790:8;32799:4;32790:14;;;;;;;;;;;;;;;;;;;;;32832:12;;32869:32;;;-1:-1:-1;;;32869:32:0;;32895:4;32869:32;;;;;;;;32790:14;;-1:-1:-1;;;;;;32832:12:0;;32790:14;32832:12;;32869:17;;:32;;;;;;;;;;32832:12;32869:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32869:32:0;32940:8;;32869:32;;-1:-1:-1;32912:43:0;;-1:-1:-1;;;;;32912:19:0;;;;32940:8;32869:32;32912:19;:43::i;:::-;32986:8;;:25;;;-1:-1:-1;;;32986:25:0;;-1:-1:-1;;;;;32986:25:0;;;;;;;;;32966:17;;32986:8;;;;;:16;;:25;;;;;;;;;;;;;;;32966:17;32986:8;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32986:25:0;33037:35;;;-1:-1:-1;;;33037:35:0;;33066:4;33037:35;;;;;;32986:25;;-1:-1:-1;;;;;;33037:20:0;;;;;:35;;;;;32986:25;;33037:35;;;;;;;;:20;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33037:35:0;33030:42;;33022:67;;;;;-1:-1:-1;;;33022:67:0;;;;;;;;;;;;-1:-1:-1;;;33022:67:0;;;;;;;;;;;;;;;33100:25;;-1:-1:-1;;;;;;33100:25:0;-1:-1:-1;;;;;33100:25:0;;;;;;;;-1:-1:-1;;;32642:491:0:o;29979:25::-;;;;:::o;34238:771::-;34290:21;34314:8;34323:4;34314:14;;;;;;;;;;;;;;;;;;34290:38;;34359:4;:20;;;34343:12;:36;34339:75;;34396:7;;;34339:75;34443:12;;:37;;;-1:-1:-1;;;34443:37:0;;34474:4;34443:37;;;;;;34424:16;;-1:-1:-1;;;;;34443:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34443:37:0;;-1:-1:-1;34495:13:0;34491:102;;-1:-1:-1;34548:12:0;34525:20;;;;:35;34575:7;;34491:102;34603:18;34624:49;34638:4;:20;;;34660:12;34624:13;:49::i;:::-;34603:70;;34684:17;34704:69;34757:15;;34704:48;34736:4;:15;;;34704:27;34719:11;;34704:10;:14;;:27;;;;:::i;:69::-;34784:3;;34793:7;;34684:89;;-1:-1:-1;;;;;;34784:3:0;;;;:8;;34793:7;34802:17;34684:89;34816:2;34802:13;:17::i;:::-;34784:36;;;;;;;;;;;;;-1:-1:-1;;;;;34784:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;34831:3:0;;34848;;34831:33;;;-1:-1:-1;;;34831:33:0;;-1:-1:-1;;;;;34848:3:0;;;34831:33;;;;;;;;;;;;:3;;;;;-1:-1:-1;34831:8:0;;-1:-1:-1;34831:33:0;;;;;:3;;:33;;;;;;;:3;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34897:58;34921:33;34945:8;34921:19;34935:4;34921:9;:13;;:19;;;;:::i;:33::-;34897:19;;;;;:23;:58::i;:::-;34875:19;;;:80;-1:-1:-1;;34989:12:0;34966:20;;;;:35;;;;-1:-1:-1;34238:771:0;;:::o;38186:356::-;38245:21;38269:8;38278:4;38269:14;;;;;;;;;;;;;;;;38318;;;:8;:14;;;;;;38333:10;38318:26;;;;;;;;38402:11;;38269:14;;;;;;;38355:12;;38269:14;;-1:-1:-1;38355:59:0;;-1:-1:-1;;;;;38355:12:0;;;;;38333:10;38355:25;:59::i;:::-;38466:11;;38430:48;;;;;;;38460:4;;38448:10;;38430:48;;;;;;;;;38503:1;38489:15;;;38515;;;;:19;-1:-1:-1;;38186:356:0:o;30823:123::-;8869:12;:10;:12::i;:::-;8859:6;;-1:-1:-1;;;;;8859:6:0;;;:22;;;8851:67;;;;;-1:-1:-1;;;8851:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8851:67:0;;;;;;;;;;;;;;;30903:16:::1;:35:::0;30823:123::o;34050:180::-;34112:8;:15;34095:14;34138:85;34166:6;34160:3;:12;34138:85;;;34196:15;34207:3;34196:10;:15::i;:::-;34174:5;;34138:85;;;;34050:180;:::o;31607:456::-;8869:12;:10;:12::i;:::-;8859:6;;-1:-1:-1;;;;;8859:6:0;;;:22;;;8851:67;;;;;-1:-1:-1;;;8851:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8851:67:0;;;;;;;;;;;;;;;31705:11:::1;31701:61;;;31733:17;:15;:17::i;:::-;31790:63;31841:11;31790:46;31810:8;31819:4;31810:14;;;;;;;;;;;;;;;;;;:25;;;31790:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;31772:15;:81;;;;31864:22;31889:8;31898:4;31889:14;;;;;;;;;;;;;;;;;;:25;;;31864:50;;31953:11;31925:8;31934:4;31925:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;31997:11;31979:14;:29;31975:81;;32025:19;:17;:19::i;8946:140::-:0;8869:12;:10;:12::i;:::-;8859:6;;-1:-1:-1;;;;;8859:6:0;;;:22;;;8851:67;;;;;-1:-1:-1;;;8851:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8851:67:0;;;;;;;;;;;;;;;9045:1:::1;9029:6:::0;;9008:40:::1;::::0;-1:-1:-1;;;;;9029:6:0;;::::1;::::0;9008:40:::1;::::0;9045:1;;9008:40:::1;9076:1;9059:19:::0;;-1:-1:-1;;;;;;9059:19:0::1;::::0;;8946:140::o;29796:29::-;;;-1:-1:-1;;;;;29796:29:0;;:::o;29754:35::-;;;;:::o;38674:129::-;38745:7;;-1:-1:-1;;;;;38745:7:0;38731:10;:21;38723:43;;;;;-1:-1:-1;;;38723:43:0;;;;;;;;;;;;-1:-1:-1;;;38723:43:0;;;;;;;;;;;;;;;38777:7;:18;;-1:-1:-1;;;;;;38777:18:0;-1:-1:-1;;;;;38777:18:0;;;;;;;;;;38674:129::o;8732:79::-;8770:7;8797:6;-1:-1:-1;;;;;8797:6:0;8732:79;:::o;33141:143::-;33259:16;;33213:7;;33240:36;;:14;:3;33248:5;33240:7;:14::i;:36::-;33233:43;33141:143;-1:-1:-1;;;33141:143:0:o;29721:26::-;;;;:::o;29654:31::-;;;-1:-1:-1;;;;;29654:31:0;;:::o;29865:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;29620:27::-;;;-1:-1:-1;;;;;29620:27:0;;:::o;29692:22::-;;;-1:-1:-1;;;;;29692:22:0;;:::o;35017:810::-;35094:9;35085:45;;;;;-1:-1:-1;;;35085:45:0;;;;;;;;;;;;-1:-1:-1;;;35085:45:0;;;;;;;;;;;;;;;35143:21;35167:8;35176:4;35167:14;;;;;;;;;;;;;;;;35216;;;:8;:14;;;;;;35231:10;35216:26;;;;;;;35167:14;;;;;;;;-1:-1:-1;35253:16:0;35225:4;35253:10;:16::i;:::-;35284:11;;:15;35280:234;;35316:15;35334:67;35385:4;:15;;;35334:46;35375:4;35334:36;35350:4;:19;;;35334:4;:11;;;:15;;:36;;;;:::i;:67::-;35316:85;-1:-1:-1;35419:11:0;;35416:87;;35451:36;35467:10;35479:7;35451:15;:36::i;:::-;35280:234;;35528:11;;35524:171;;35556:12;;:74;;-1:-1:-1;;;;;35556:12:0;35594:10;35615:4;35622:7;35556:29;:74::i;:::-;35659:11;;:24;;35675:7;35659:15;:24::i;:::-;35645:38;;35524:171;35739:19;;;;35723:11;;:46;;35764:4;;35723:36;;:15;:36::i;:46::-;35705:15;;;:64;35785:34;;;;;;;;35805:4;;35793:10;;35785:34;;;;;;;;;35017:810;;;;:::o;9094:109::-;8869:12;:10;:12::i;:::-;8859:6;;-1:-1:-1;;;;;8859:6:0;;;:22;;;8851:67;;;;;-1:-1:-1;;;8851:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8851:67:0;;;;;;;;;;;;;;;9167:28:::1;9186:8;9167:18;:28::i;666:252::-:0;724:7;750:6;746:47;;-1:-1:-1;780:1:0;773:8;;746:47;817:5;;;821:1;817;:5;:1;841:5;;;;;:10;833:56;;;;-1:-1:-1;;;833:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;926:132;984:7;1011:39;1015:1;1018;1011:39;;;;;;;;;;;;;;;;;:3;:39::i;99:181::-;157:7;189:5;;;213:6;;;;205:46;;;;;-1:-1:-1;;;205:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;288:136;346:7;373:43;377:1;380;373:43;;;;;;;;;;;;;;;;;:3;:43::i;38550:116::-;38625:3;;:33;;;-1:-1:-1;;;38625:33:0;;-1:-1:-1;;;;;38625:33:0;;;;;;;;;;;;;;;:3;;;;;:19;;:33;;;;;:3;;:33;;;;;;;:3;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38550:116;;:::o;6067:211::-;6211:58;;;-1:-1:-1;;;;;6211:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6211:58:0;-1:-1:-1;;;6211:58:0;;;6184:86;;6204:5;;6184:19;:86::i;:::-;6067:211;;;:::o;8185:98::-;8265:10;8185:98;:::o;32071:453::-;32137:8;:15;32120:14;32211:1;32192:115;32220:6;32214:3;:12;32192:115;;;32259:36;32270:8;32279:3;32270:13;;;;;;;;;;;;;;;;;;:24;;;32259:6;:10;;:36;;;;:::i;:::-;32250:45;-1:-1:-1;32228:5:0;;32192:115;;;-1:-1:-1;32321:11:0;;32317:200;;32358:13;:6;32369:1;32358:10;:13::i;:::-;32349:22;;32404:55;32452:6;32404:43;32424:8;32433:1;32424:11;;;;;;;32404:55;32386:15;:73;;;;32499:6;32474:8;32483:1;32474:11;;;;;;;;;;;;;;;;;;:22;;:31;;;;32071:453;;:::o;6286:248::-;6457:68;;;-1:-1:-1;;;;;6457:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6457:68:0;-1:-1:-1;;;6457:68:0;;;6430:96;;6450:5;;6430:19;:96::i;6542:446::-;6736:10;;;6735:62;;-1:-1:-1;6752:39:0;;;-1:-1:-1;;;6752:39:0;;6776:4;6752:39;;;;-1:-1:-1;;;;;6752:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6752:39:0;:44;6735:62;6713:166;;;;-1:-1:-1;;;6713:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6917:62;;;-1:-1:-1;;;;;6917:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6917:62:0;-1:-1:-1;;;6917:62:0;;;6890:90;;6910:5;;6890:19;:90::i;9211:229::-;-1:-1:-1;;;;;9285:22:0;;9277:73;;;;-1:-1:-1;;;9277:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9387:6;;;9366:38;;-1:-1:-1;;;;;9366:38:0;;;;9387:6;;;9366:38;;;9415:6;:17;;-1:-1:-1;;;;;;9415:17:0;-1:-1:-1;;;;;9415:17:0;;;;;;;;;;9211:229::o;1066:312::-;1186:7;1221:12;1214:5;1206:28;;;;-1:-1:-1;;;1206:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1245:9;1261:1;1257;:5;;;;;;;1066:312;-1:-1:-1;;;;;1066:312:0:o;432:226::-;552:7;588:12;580:6;;;;572:29;;;;-1:-1:-1;;;572:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;624:5:0;;;432:226::o;7734:385::-;7817:23;7843:69;7871:4;7843:69;;;;;;;;;;;;;;;;;7851:5;-1:-1:-1;;;;;7843:27:0;;;:69;;;;;:::i;:::-;7927:17;;7817:95;;-1:-1:-1;7927:21:0;7923:189;;8034:10;8023:30;;;;;;;;;;;;;;;-1:-1:-1;8023:30:0;8015:85;;;;-1:-1:-1;;;8015:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4243:230;4380:12;4412:53;4435:6;4443:4;4449:1;4452:12;4412:22;:53::i;:::-;4405:60;4243:230;-1:-1:-1;;;;4243:230:0:o;5116:852::-;5289:12;5322:18;5333:6;5322:10;:18::i;:::-;5314:60;;;;;-1:-1:-1;;;5314:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5448:12;5462:23;5489:6;-1:-1:-1;;;;;5489:11:0;5508:8;5518:4;5489:34;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5489:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5447:76;;;;5538:7;5534:427;;;5569:10;-1:-1:-1;5562:17:0;;-1:-1:-1;5562:17:0;5534:427;5617:17;;:21;5613:337;;5778:10;5772:17;5839:15;5826:10;5822:2;5818:19;5811:44;5726:148;5914:20;;-1:-1:-1;;;5914:20:0;;;;;;;;;;;;;;;;;5921:12;;5914:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3253:396;3313:4;3549:20;;3379:66;3598:23;;;;;;:42;;-1:-1:-1;;3625:15:0;;;3590:51;-1:-1:-1;;3253:396:0:o

Swarm Source

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