Contract 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a

Txn Hash
Block
From
To
Value [Txn Fee]
0x1557ab7a2514ad29180acdf2426050fee744bb69f2e96150cc9e8ba1c08d6f9489523172021-05-18 14:47:4469 days 4 hrs ago0x288ae6c4fcb11771359f9ee33855043e76c0a8fa IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00034473
0xff001c2b29f74a4b54d3bc0fccad48f4954b8dfeb42473892299865779a3009b89523122021-05-18 14:47:2969 days 4 hrs ago0x288ae6c4fcb11771359f9ee33855043e76c0a8fa IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00034495
0x55a73526d88c2398d3f17086e7f5e5e728d9bb68ab577cdad0dbb7b4ce9c10dd89243652021-05-17 15:30:0870 days 4 hrs ago0x288ae6c4fcb11771359f9ee33855043e76c0a8fa IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00127531
0x23a7b179a085aba184f2cfd6fe8765b4e3668b22ac6f324c71b81d2ba66c255b89243482021-05-17 15:29:1770 days 4 hrs ago0x288ae6c4fcb11771359f9ee33855043e76c0a8fa IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00111427
0x521144a7a4861e1ea22d01128f5d9cf7a8afa43b75d406cfc2bc3ad17170492889243152021-05-17 15:27:3870 days 4 hrs ago0x288ae6c4fcb11771359f9ee33855043e76c0a8fa IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00027433
0xde85ed1d8b78c4eb0061acd7751a13a953530d173ea46473f0f3396ded6036c989240622021-05-17 15:14:5970 days 4 hrs ago0x288ae6c4fcb11771359f9ee33855043e76c0a8fa IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00027433
0x902779ea9c2bedbbd67b94d7923ceec6b5744f726d19ef95a6a297fa46331b4488320762021-05-14 10:35:2973 days 9 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00092528
0x0fffc28ad87e9f65b3a2ce649a108a4f273809924eb53074db44cab7eca5cf1088313602021-05-14 9:59:4173 days 9 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00071474
0x58946058fbd8980c95102b499a1945eb72649af76441db6488eaf6f5b1ef010588312532021-05-14 9:54:2073 days 9 hrs ago0x288ae6c4fcb11771359f9ee33855043e76c0a8fa IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00119012
0x1984bab9b352111b909299f24520e6608e1b03005a467226399fe000285f1f2888303202021-05-14 9:07:4173 days 10 hrs ago0x4e36d2b4556d768205b8f5f2af19846847e162df IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00127531
0x653091948cbf1e8f59e4e9f80b96b61409ca1473573cf5c2fdfaa73ae8d67b7c88302052021-05-14 9:01:5673 days 10 hrs ago0x4e36d2b4556d768205b8f5f2af19846847e162df IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00111427
0x4c4ed1061145ff2e2faffb708375d7de68f38a9fc12267473b885ea8655545c888295012021-05-14 8:26:4473 days 11 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00111427
0x55a5b99f4461ba95f43f2ce4b055fe458e9da14dd49f275c8b27585d77bb6ecb88294572021-05-14 8:24:3273 days 11 hrs ago0x288ae6c4fcb11771359f9ee33855043e76c0a8fa IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00111427
0x575e2b6fbf23c8b04287c823190777e22222b8b1a5a3e67bc2d31670f8dd178288288312021-05-14 7:53:1473 days 11 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00121242
0x00866f56c34108586047ae7cb0f8e433bd48b8e797e1c8622473f32ba4e6ab7e88282652021-05-14 7:24:5673 days 12 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00111427
0x4a33b786d48b1d5bf63df768c72b35d99def56fb0808c13e04da643f9b76e23b88282282021-05-14 7:23:0573 days 12 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00121242
0xd81d90836b5efab506f69ffa3735c99643c5c05bf271073d278b6c8712530e8f88282172021-05-14 7:22:3273 days 12 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00121242
0x0c3be91c7d5f626ebbd8a26f6e7817fe85780a6f04657d5589c2959bca1e3a9c88281902021-05-14 7:21:0973 days 12 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00183987
0xf3a61a66be28a8cc0696ed5be910db480b51df17c06fbc11809e28b42e48eb2c88280732021-05-14 7:15:1773 days 12 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00111427
0xedeab934c24f14c23d26732659bcab6aeb98d0f53ca87d29c24d77ae95de945188280582021-05-14 7:14:3273 days 12 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00142531
0x570ffd489e4224486a8fa7fe3d2dede97237156ec875104e7c35d76009d6585488280302021-05-14 7:13:0873 days 12 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00111427
0x221c88c89c7b9cbd1739724ae7d699c97e5b3737ebc1757c84be1161a1da144888279752021-05-14 7:10:2373 days 12 hrs ago0x14c2dc5a2da77f041051990eac2192c3122525a7 IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00111427
0x880fb6b679d49a0cbd1f4ea12ab0911fe8fcdb5be191a7f15148e9a4f13dfbb688269672021-05-14 6:19:5973 days 13 hrs ago0x4e36d2b4556d768205b8f5f2af19846847e162df IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00142507
0x4087339020cf2d5ae33e673ce1151cd3a91d49e9ea63cd206d71f50ea9cc5c6088269502021-05-14 6:19:0873 days 13 hrs ago0x4e36d2b4556d768205b8f5f2af19846847e162df IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00142507
0x6ccc160dd0d03503421a00ef826b05ccf2934dbb91acda08fa8273215dd6e92a88269342021-05-14 6:18:2073 days 13 hrs ago0x4e36d2b4556d768205b8f5f2af19846847e162df IN  0xbd7b5746f269f142d8928e8df2a030baa7a33d8a0 BNB0.00111427
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x1557ab7a2514ad29180acdf2426050fee744bb69f2e96150cc9e8ba1c08d6f9489523172021-05-18 14:47:4469 days 4 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xcd607d819e63d4a56b470e9d5f6c4bbf4849a1380 BNB
0xff001c2b29f74a4b54d3bc0fccad48f4954b8dfeb42473892299865779a3009b89523122021-05-18 14:47:2969 days 4 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0x31508f0098a2566074eccc94a0900721386d0c4b0 BNB
0x55a73526d88c2398d3f17086e7f5e5e728d9bb68ab577cdad0dbb7b4ce9c10dd89243652021-05-17 15:30:0870 days 4 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xf3531a1c93056ec6fb59a358b2007eca0a2ebe9f0 BNB
0x55a73526d88c2398d3f17086e7f5e5e728d9bb68ab577cdad0dbb7b4ce9c10dd89243652021-05-17 15:30:0870 days 4 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xcd607d819e63d4a56b470e9d5f6c4bbf4849a1380 BNB
0x55a73526d88c2398d3f17086e7f5e5e728d9bb68ab577cdad0dbb7b4ce9c10dd89243652021-05-17 15:30:0870 days 4 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0x31508f0098a2566074eccc94a0900721386d0c4b0 BNB
0x55a73526d88c2398d3f17086e7f5e5e728d9bb68ab577cdad0dbb7b4ce9c10dd89243652021-05-17 15:30:0870 days 4 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0x31508f0098a2566074eccc94a0900721386d0c4b0 BNB
0x55a73526d88c2398d3f17086e7f5e5e728d9bb68ab577cdad0dbb7b4ce9c10dd89243652021-05-17 15:30:0870 days 4 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xf3531a1c93056ec6fb59a358b2007eca0a2ebe9f0 BNB
0x23a7b179a085aba184f2cfd6fe8765b4e3668b22ac6f324c71b81d2ba66c255b89243482021-05-17 15:29:1770 days 4 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xcd607d819e63d4a56b470e9d5f6c4bbf4849a1380 BNB
0x23a7b179a085aba184f2cfd6fe8765b4e3668b22ac6f324c71b81d2ba66c255b89243482021-05-17 15:29:1770 days 4 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0x31508f0098a2566074eccc94a0900721386d0c4b0 BNB
0x23a7b179a085aba184f2cfd6fe8765b4e3668b22ac6f324c71b81d2ba66c255b89243482021-05-17 15:29:1770 days 4 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0x31508f0098a2566074eccc94a0900721386d0c4b0 BNB
0x23a7b179a085aba184f2cfd6fe8765b4e3668b22ac6f324c71b81d2ba66c255b89243482021-05-17 15:29:1770 days 4 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xf3531a1c93056ec6fb59a358b2007eca0a2ebe9f0 BNB
0x902779ea9c2bedbbd67b94d7923ceec6b5744f726d19ef95a6a297fa46331b4488320762021-05-14 10:35:2973 days 9 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0x31508f0098a2566074eccc94a0900721386d0c4b0 BNB
0x902779ea9c2bedbbd67b94d7923ceec6b5744f726d19ef95a6a297fa46331b4488320762021-05-14 10:35:2973 days 9 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0x31508f0098a2566074eccc94a0900721386d0c4b0 BNB
0x902779ea9c2bedbbd67b94d7923ceec6b5744f726d19ef95a6a297fa46331b4488320762021-05-14 10:35:2973 days 9 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xf0f8e42720672aff4923975118efc9e942a29a2f0 BNB
0x0fffc28ad87e9f65b3a2ce649a108a4f273809924eb53074db44cab7eca5cf1088313602021-05-14 9:59:4173 days 9 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xf0f8e42720672aff4923975118efc9e942a29a2f0 BNB
0x0fffc28ad87e9f65b3a2ce649a108a4f273809924eb53074db44cab7eca5cf1088313602021-05-14 9:59:4173 days 9 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xf0f8e42720672aff4923975118efc9e942a29a2f0 BNB
0x1984bab9b352111b909299f24520e6608e1b03005a467226399fe000285f1f2888303202021-05-14 9:07:4173 days 10 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xf3531a1c93056ec6fb59a358b2007eca0a2ebe9f0 BNB
0x1984bab9b352111b909299f24520e6608e1b03005a467226399fe000285f1f2888303202021-05-14 9:07:4173 days 10 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xcd607d819e63d4a56b470e9d5f6c4bbf4849a1380 BNB
0x1984bab9b352111b909299f24520e6608e1b03005a467226399fe000285f1f2888303202021-05-14 9:07:4173 days 10 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0x31508f0098a2566074eccc94a0900721386d0c4b0 BNB
0x1984bab9b352111b909299f24520e6608e1b03005a467226399fe000285f1f2888303202021-05-14 9:07:4173 days 10 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0x31508f0098a2566074eccc94a0900721386d0c4b0 BNB
0x1984bab9b352111b909299f24520e6608e1b03005a467226399fe000285f1f2888303202021-05-14 9:07:4173 days 10 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xf3531a1c93056ec6fb59a358b2007eca0a2ebe9f0 BNB
0x653091948cbf1e8f59e4e9f80b96b61409ca1473573cf5c2fdfaa73ae8d67b7c88302052021-05-14 9:01:5673 days 10 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xcd607d819e63d4a56b470e9d5f6c4bbf4849a1380 BNB
0x653091948cbf1e8f59e4e9f80b96b61409ca1473573cf5c2fdfaa73ae8d67b7c88302052021-05-14 9:01:5673 days 10 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0x31508f0098a2566074eccc94a0900721386d0c4b0 BNB
0x653091948cbf1e8f59e4e9f80b96b61409ca1473573cf5c2fdfaa73ae8d67b7c88302052021-05-14 9:01:5673 days 10 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0x31508f0098a2566074eccc94a0900721386d0c4b0 BNB
0x653091948cbf1e8f59e4e9f80b96b61409ca1473573cf5c2fdfaa73ae8d67b7c88302052021-05-14 9:01:5673 days 10 hrs ago 0xbd7b5746f269f142d8928e8df2a030baa7a33d8a 0xf3531a1c93056ec6fb59a358b2007eca0a2ebe9f0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FruitsFarmPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity)

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

/**
 *Submitted for verification at BscScan.com on 2020-09-22
*/
// SPDX-License-Identifier: UNLICENSED

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 IBEP20 {
    /**
     * @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 SafeBEP20
 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
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));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IBEP20 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),
            '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));
    }

    /**
     * @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(IBEP20 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, 'SafeBEP20: low-level call failed');
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), 'SafeBEP20: BEP20 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 {IBEP20} 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 {BEP20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-BEP20-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 BEP20 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 {IBEP20-approve}.
 */
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;

    /**
     * @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 {BEP20-totalSupply}.
     */
    function totalSupply() public override view returns (uint256) {
        return _totalSupply;
    }

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

    /**
     * @dev See {BEP20-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 {BEP20-allowance}.
     */
    function allowance(address owner, address spender) public override view returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {BEP20-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 {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * 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, 'BEP20: 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 {BEP20-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 {BEP20-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, 'BEP20: decreased allowance below zero')
        );
        return true;
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        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), '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);
    }

    /** @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), 'BEP20: 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), '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);
    }

    /**
     * @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), '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);
    }

    /**
     * @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, 'BEP20: burn amount exceeds allowance')
        );
    }
}

// CakeToken with Governance.
contract FruitsToken is BEP20('FruitsSwap Token2', 'Fruits2') {
    /// @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);
    }

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

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

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

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

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

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

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

    /// @notice A record of states for signing / validating signatures
    mapping (address => 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), "Fruits::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "Fruits::delegateBySig: invalid nonce");
        require(now <= expiry, "Fruits::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, "Fruits::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) / uint32(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 Fruitss (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, "Fruits::_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;
    }
}

// SyrupBar with Governance.
contract SyrupBar is BEP20('SyrupBar Token', 'SYRUP') {
    /// @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);
    }

    // The CAKE TOKEN!
    FruitsToken public cake;


    constructor(
        FruitsToken _cake
    ) public {
        cake = _cake;
    }

    // Safe cake transfer function, just in case if rounding error causes pool to not have enough CAKEs.
    function safeCakeTransfer(address _to, uint256 _amount) public onlyOwner {
        uint256 cakeBal = cake.balanceOf(address(this));
        if (_amount > cakeBal) {
            cake.transfer(_to, cakeBal);
        } else {
            cake.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

    // @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), "CAKE::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "CAKE::delegateBySig: invalid nonce");
        require(now <= expiry, "CAKE::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, "CAKE::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 CAKEs (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, "CAKE::_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;
    }
}

// import "@nomiclabs/buidler/console.sol";
interface IMigratorChef {
    // Perform LP token migration from legacy PancakeSwap to CakeSwap.
    // Take the current LP token address and return the new LP token address.
    // Migrator should have full access to the caller's LP token.
    // Return the new LP token address.
    //
    // XXX Migrator must have allowance access to PancakeSwap LP tokens.
    // CakeSwap must mint EXACTLY the same amount of CakeSwap LP tokens or
    // else something bad will happen. Traditional PancakeSwap does not
    // do that so be careful!
    function migrate(IBEP20 token) external returns (IBEP20);
}

// MasterChef is the master of Cake. He can make Cake and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once CAKE is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract FruitsFarmPool is Ownable {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

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

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

    // The CAKE TOKEN!
    FruitsToken public cake;
    // The SYRUP TOKEN!
    SyrupBar public syrup;
    // Dev address.
    address public devaddr;
    // CAKE tokens created per block.
    uint256 public cakePerBlock;
    // Bonus muliplier for early cake makers.
    uint256 public BONUS_MULTIPLIER = 1;
    // The migrator contract. It has a lot of power. Can only be set through governance (owner).
    IMigratorChef public migrator;

    // 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 CAKE mining starts.
    uint256 public startBlock;

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

    constructor() public {
         

        totalAllocPoint = 1000; 
        cake = FruitsToken(0x31508f0098A2566074EcCC94a0900721386D0C4b);
        syrup = SyrupBar(0xcD607D819E63D4a56b470E9D5F6c4BBf4849a138);
        devaddr = 0x7a104231a1EAC1C4E91436218Cf7adAc6267C7cf;
        cakePerBlock = 40000000000000000000;
        startBlock = block.number; 
        
        // staking pool
        poolInfo.push(PoolInfo({
            lpToken: IBEP20(cake),
            allocPoint: 1000,
            lastRewardBlock: startBlock,
            accCakePerShare: 0
        }));
         

    }
    
    function transferOwnership_cake(address newOwner) public onlyOwner {
       cake.transferOwnership(newOwner);
    }

    function transferOwnership_syrup(address newOwner) public onlyOwner {
       syrup.transferOwnership(newOwner);
    }

    function owner_cake() public view returns (address) {
        return cake.owner();
    }
    function owner_syrup() public view returns (address) {
        return syrup.owner();
    }
    
    
    function mint_cake(address _to, uint256 _amount) public onlyOwner {
         cake.mint(_to, _amount);
    }
    
    function mint_syrup(address _to, uint256 _amount) public onlyOwner {
         syrup.mint(_to, _amount);
    }
    
    function setCakeToken(FruitsToken _cake) public onlyOwner {
         cake = _cake;
         poolInfo[0].lpToken = IBEP20(cake);
    }
    function setSyrup(SyrupBar _syrup) public onlyOwner {
         syrup = _syrup;
    }
    function setCDevaddr(address _devaddr) public onlyOwner {
         devaddr = _devaddr;
    }
    function setCakePerBlock(uint256 _cakePerBlock) public onlyOwner {
         cakePerBlock = _cakePerBlock;
    }
    function setStartBlock(uint256 _startBlock) public onlyOwner {
         startBlock = _startBlock;
    }

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

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

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    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,
            accCakePerShare: 0
        }));
        updateStakingPool();
    }

    // Update the given pool's CAKE 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;
        }
    }

    // Set the migrator contract. Can only be called by the owner.
    function setMigrator(IMigratorChef _migrator) public onlyOwner {
        migrator = _migrator;
    }

    // Migrate lp token to another lp contract. Can be called by anyone. We trust that migrator contract is good.
    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;
    }

    // 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 CAKEs on frontend.
    function pendingCake(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accCakePerShare = pool.accCakePerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 cakeReward = multiplier.mul(cakePerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accCakePerShare = accCakePerShare.add(cakeReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accCakePerShare).div(1e12).sub(user.rewardDebt);
    }

    // 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 cakeReward = multiplier.mul(cakePerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        cake.mint(devaddr, cakeReward.div(10));
        cake.mint(address(syrup), cakeReward);
        pool.accCakePerShare = pool.accCakePerShare.add(cakeReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for CAKE allocation.
    function deposit(uint256 _pid, uint256 _amount) public {

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

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

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

    // Stake CAKE tokens to MasterChef
    function enterStaking_1(uint256 _amount) public {
        //PoolInfo storage pool = poolInfo[0];
        IBEP20 cake2 = IBEP20(0x3c3d5F2e530b7eB7D4E740dd73306D51998B3041);
        cake2.safeTransferFrom(address(msg.sender), address(this), _amount);
    }
    
    // Stake CAKE tokens to MasterChef
    function enterStaking_2(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.accCakePerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeCakeTransfer(msg.sender, pending);
            }
        }
        if(_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = user.amount.add(_amount);
        } 
    }
    
    // Stake CAKE tokens to MasterChef
    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.accCakePerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeCakeTransfer(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.accCakePerShare).div(1e12);

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

    // Withdraw CAKE tokens from STAKING.
    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.accCakePerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            safeCakeTransfer(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.accCakePerShare).div(1e12);

        syrup.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 cake transfer function, just in case if rounding error causes pool to not have enough CAKEs.
    function safeCakeTransfer(address _to, uint256 _amount) internal {
        syrup.safeCakeTransfer(_to, _amount);
    }

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

Contract ABI

[{"inputs":[],"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":"cake","outputs":[{"internalType":"contract FruitsToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cakePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_amount","type":"uint256"}],"name":"enterStaking_1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"enterStaking_2","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":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint_cake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint_syrup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner_cake","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner_syrup","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingCake","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":"accCakePerShare","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":"address","name":"_devaddr","type":"address"}],"name":"setCDevaddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cakePerBlock","type":"uint256"}],"name":"setCakePerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract FruitsToken","name":"_cake","type":"address"}],"name":"setCakeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMigratorChef","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"name":"setStartBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract SyrupBar","name":"_syrup","type":"address"}],"name":"setSyrup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"syrup","outputs":[{"internalType":"contract SyrupBar","name":"","type":"address"}],"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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership_cake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership_syrup","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"}]

60806040526001600555600060095534801561001a57600080fd5b5060006100256101dc565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506103e86009819055600180546001600160a01b03199081167331508f0098a2566074eccc94a0900721386d0c4b1780835560028054831673cd607d819e63d4a56b470e9d5f6c4bbf4849a138179055600380548316737a104231a1eac1c4e91436218cf7adac6267c7cf17905568022b1c8c1227a00000600490815543600a819055604080516080810182526001600160a01b039485168152602081019788529081019182526000606082018181526007805498890181559091529051959092027fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6888101805496909416959094169490941790915592517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68982015590517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a82015590517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b909101556101e0565b3390565b6129dc806101ef6000396000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c806364482f79116101465780638da5cb5b116100c3578063d49e77cd11610087578063d49e77cd14610697578063dce174841461069f578063dd61791a146106a7578063e2bbb158146106cd578063f2fde38b146106f0578063f35e4a6e146107165761025e565b80638da5cb5b146105de5780638dbb1e3a146105e657806393f1a40b14610609578063a16041d21461064e578063af118aae1461066b5761025e565b80638023e7a31161010a5780638023e7a31461059857806386a952c4146105a05780638aa28550146105a85780638ae1ff6e146105b05780638d88a90e146105b85761025e565b806364482f79146104f55780636d20c19914610520578063715018a6146105465780637c10c7d21461054e5780637cd07e47146105745761025e565b806323cf3118116101df57806348cd4cb1116101a357806348cd4cb11461046257806351eb05a61461046a5780635312ea8e1461048757806356a1af9c146104a45780635ffe6146146104d0578063630b5ba1146104ed5761025e565b806323cf3118146103c257806341441d3b146103e8578063441a3e7014610405578063454b06081461042857806346301b80146104455761025e565b80631526fe27116102265780631526fe27146102ed57806317caf6f11461033a5780631aea02ad146103425780631e929889146103685780631eaaa0451461038e5761025e565b80630755e0b614610263578063081e3eda1461027d5780631058d28114610285578063106ed5fa146102a45780631175a1dd146102c1575b600080fd5b61026b610733565b60408051918252519081900360200190f35b61026b610739565b6102a26004803603602081101561029b57600080fd5b503561073f565b005b6102a2600480360360208110156102ba57600080fd5b5035610923565b61026b600480360360408110156102d757600080fd5b50803590602001356001600160a01b0316610980565b61030a6004803603602081101561030357600080fd5b5035610aea565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b61026b610b2b565b6102a26004803603602081101561035857600080fd5b50356001600160a01b0316610b31565b6102a26004803603602081101561037e57600080fd5b50356001600160a01b0316610bf2565b6102a2600480360360608110156103a457600080fd5b508035906001600160a01b0360208201351690604001351515610cae565b6102a2600480360360208110156103d857600080fd5b50356001600160a01b0316610e34565b6102a2600480360360208110156103fe57600080fd5b5035610eae565b6102a26004803603604081101561041b57600080fd5b5080359060200135611042565b6102a26004803603602081101561043e57600080fd5b50356111e7565b6102a26004803603602081101561045b57600080fd5b5035611443565b61026b611468565b6102a26004803603602081101561048057600080fd5b503561146e565b6102a26004803603602081101561049d57600080fd5b5035611694565b6102a2600480360360408110156104ba57600080fd5b506001600160a01b03813516906020013561172f565b6102a2600480360360208110156104e657600080fd5b50356117f8565b6102a2611855565b6102a26004803603606081101561050b57600080fd5b50803590602081013590604001351515611874565b6102a26004803603602081101561053657600080fd5b50356001600160a01b0316611972565b6102a2611a18565b6102a26004803603602081101561056457600080fd5b50356001600160a01b0316611aba565b61057c611b34565b604080516001600160a01b039092168252519081900360200190f35b61057c611b43565b61057c611bb9565b61026b611bc8565b61057c611bce565b6102a2600480360360208110156105ce57600080fd5b50356001600160a01b0316611c13565b61057c611c80565b61026b600480360360408110156105fc57600080fd5b5080359060200135611c8f565b6106356004803603604081101561061f57600080fd5b50803590602001356001600160a01b0316611caa565b6040805192835260208301919091528051918290030190f35b6102a26004803603602081101561066457600080fd5b5035611cce565b6102a26004803603604081101561068157600080fd5b506001600160a01b038135169060200135611d9f565b61057c611e4c565b61057c611e5b565b6102a2600480360360208110156106bd57600080fd5b50356001600160a01b0316611e6a565b6102a2600480360360408110156106e357600080fd5b5080359060200135611ec2565b6102a26004803603602081101561070657600080fd5b50356001600160a01b0316612026565b6102a26004803603602081101561072c57600080fd5b5035612087565b60045481565b60075490565b6000600760008154811061074f57fe5b600091825260208083203384527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c790915260409092208054600490920290920192508311156107da576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6107e4600061146e565b600061081e826001015461081864e8d4a51000610812876003015487600001546120e490919063ffffffff16565b9061213d565b9061217f565b905080156108305761083033826121c1565b831561085a578154610842908561217f565b8255825461085a906001600160a01b03163386612216565b600383015482546108759164e8d4a5100091610812916120e4565b600183015560025460408051632770a7eb60e21b81523360048201526024810187905290516001600160a01b0390921691639dc29fac9160448082019260009290919082900301818387803b1580156108cd57600080fd5b505af11580156108e1573d6000803e3d6000fd5b5050604080518781529051600093503392507ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a350505050565b61092b612268565b6000546001600160a01b0390811691161461097b576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b600455565b6000806007848154811061099057fe5b600091825260208083208784526008825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b158015610a0e57600080fd5b505afa158015610a22573d6000803e3d6000fd5b505050506040513d6020811015610a3857600080fd5b5051600285015490915043118015610a4f57508015155b15610ab5576000610a64856002015443611c8f565b90506000610a916009546108128860010154610a8b600454876120e490919063ffffffff16565b906120e4565b9050610ab0610aa9846108128464e8d4a510006120e4565b859061226c565b935050505b610add836001015461081864e8d4a510006108128688600001546120e490919063ffffffff16565b9450505050505b92915050565b60078181548110610af757fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60095481565b610b39612268565b6000546001600160a01b03908116911614610b89576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b6001546040805163f2fde38b60e01b81526001600160a01b0384811660048301529151919092169163f2fde38b91602480830192600092919082900301818387803b158015610bd757600080fd5b505af1158015610beb573d6000803e3d6000fd5b5050505050565b610bfa612268565b6000546001600160a01b03908116911614610c4a576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b038381169190911791829055600780549290911691600090610c7d57fe5b6000918252602090912060049091020180546001600160a01b0319166001600160a01b039290921691909117905550565b610cb6612268565b6000546001600160a01b03908116911614610d06576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b8015610d1457610d14611855565b6000600a544311610d2757600a54610d29565b435b600954909150610d39908561226c565b600955604080516080810182526001600160a01b0385811682526020820187815292820184815260006060840181815260078054600181018255925293517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600490920291820180546001600160a01b031916919094161790925592517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68982015591517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a830155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b90910155610e2e6122c6565b50505050565b610e3c612268565b6000546001600160a01b03908116911614610e8c576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006007600081548110610ebe57fe5b600091825260208083203384527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c790915260408320600490920201925090610f059061146e565b805415610f4e576000610f3a826001015461081864e8d4a51000610812876003015487600001546120e490919063ffffffff16565b90508015610f4c57610f4c33826121c1565b505b8215610f7a578154610f6b906001600160a01b0316333086612368565b8054610f77908461226c565b81555b60038201548154610f959164e8d4a5100091610812916120e4565b6001820155600254604080516340c10f1960e01b81523360048201526024810186905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b158015610fed57600080fd5b505af1158015611001573d6000803e3d6000fd5b5050604080518681529051600093503392507f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050565b81611094576040805162461bcd60e51b815260206004820152601a60248201527f77697468647261772043414b4520627920756e7374616b696e67000000000000604482015290519081900360640190fd5b6000600783815481106110a357fe5b600091825260208083208684526008825260408085203386529092529220805460049092029092019250831115611116576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61111f8461146e565b600061114d826001015461081864e8d4a51000610812876003015487600001546120e490919063ffffffff16565b9050801561115f5761115f33826121c1565b8315611189578154611171908561217f565b82558254611189906001600160a01b03163386612216565b600383015482546111a49164e8d4a5100091610812916120e4565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b6006546001600160a01b031661123b576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604482015290519081900360640190fd5b60006007828154811061124a57fe5b600091825260208083206004928302018054604080516370a0823160e01b81523095810195909552519195506001600160a01b0316939284926370a0823192602480840193829003018186803b1580156112a357600080fd5b505afa1580156112b7573d6000803e3d6000fd5b505050506040513d60208110156112cd57600080fd5b50516006549091506112ec906001600160a01b038481169116836123c2565b6006546040805163ce5494bb60e01b81526001600160a01b0385811660048301529151600093929092169163ce5494bb9160248082019260209290919082900301818787803b15801561133e57600080fd5b505af1158015611352573d6000803e3d6000fd5b505050506040513d602081101561136857600080fd5b5051604080516370a0823160e01b815230600482015290519192506001600160a01b038316916370a0823191602480820192602092909190829003018186803b1580156113b457600080fd5b505afa1580156113c8573d6000803e3d6000fd5b505050506040513d60208110156113de57600080fd5b50518214611422576040805162461bcd60e51b815260206004820152600c60248201526b1b5a59dc985d194e8818985960a21b604482015290519081900360640190fd5b83546001600160a01b0319166001600160a01b039190911617909255505050565b733c3d5f2e530b7eb7d4e740dd73306d51998b304161146481333085612368565b5050565b600a5481565b60006007828154811061147d57fe5b906000526020600020906004020190508060020154431161149e5750611691565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156114e857600080fd5b505afa1580156114fc573d6000803e3d6000fd5b505050506040513d602081101561151257600080fd5b5051905080611528575043600290910155611691565b6000611538836002015443611c8f565b9050600061155f6009546108128660010154610a8b600454876120e490919063ffffffff16565b6001546003549192506001600160a01b03908116916340c10f19911661158684600a61213d565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156115cc57600080fd5b505af11580156115e0573d6000803e3d6000fd5b5050600154600254604080516340c10f1960e01b81526001600160a01b0392831660048201526024810187905290519190921693506340c10f199250604480830192600092919082900301818387803b15801561163c57600080fd5b505af1158015611650573d6000803e3d6000fd5b5050505061167e6116738461081264e8d4a51000856120e490919063ffffffff16565b60038601549061226c565b6003850155505043600290920191909155505b50565b6000600782815481106116a357fe5b600091825260208083208584526008825260408085203380875293529093208054600490930290930180549094506116e8926001600160a01b03919091169190612216565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b611737612268565b6000546001600160a01b03908116911614611787576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b600254604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b1580156117dc57600080fd5b505af11580156117f0573d6000803e3d6000fd5b505050505050565b611800612268565b6000546001600160a01b03908116911614611850576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b600555565b60075460005b818110156114645761186c8161146e565b60010161185b565b61187c612268565b6000546001600160a01b039081169116146118cc576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b80156118da576118da611855565b61191782611911600786815481106118ee57fe5b90600052602060002090600402016001015460095461217f90919063ffffffff16565b9061226c565b60098190555060006007848154811061192c57fe5b9060005260206000209060040201600101549050826007858154811061194e57fe5b906000526020600020906004020160010181905550828114610e2e57610e2e6122c6565b61197a612268565b6000546001600160a01b039081169116146119ca576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b6002546040805163f2fde38b60e01b81526001600160a01b0384811660048301529151919092169163f2fde38b91602480830192600092919082900301818387803b158015610bd757600080fd5b611a20612268565b6000546001600160a01b03908116911614611a70576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b611ac2612268565b6000546001600160a01b03908116911614611b12576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031681565b60025460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b916004808301926020929190829003018186803b158015611b8857600080fd5b505afa158015611b9c573d6000803e3d6000fd5b505050506040513d6020811015611bb257600080fd5b5051905090565b6002546001600160a01b031681565b60055481565b60015460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b916004808301926020929190829003018186803b158015611b8857600080fd5b6003546001600160a01b03163314611c5e576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b600554600090611ca390610a8b848661217f565b9392505050565b60086020908152600092835260408084209091529082529020805460019091015482565b60006007600081548110611cde57fe5b600091825260208083203384527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c790915260408320600490920201925090611d259061146e565b805415611d6e576000611d5a826001015461081864e8d4a51000610812876003015487600001546120e490919063ffffffff16565b90508015611d6c57611d6c33826121c1565b505b8215611d9a578154611d8b906001600160a01b0316333086612368565b8054611d97908461226c565b81555b505050565b611da7612268565b6000546001600160a01b03908116911614611df7576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b600154604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b1580156117dc57600080fd5b6003546001600160a01b031681565b6001546001600160a01b031681565b611e72612268565b6000546001600160a01b03908116911614611c5e576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b81611f14576040805162461bcd60e51b815260206004820152601760248201527f6465706f7369742043414b45206279207374616b696e67000000000000000000604482015290519081900360640190fd5b600060078381548110611f2357fe5b60009182526020808320868452600882526040808520338652909252922060049091029091019150611f548461146e565b805415611f9d576000611f89826001015461081864e8d4a51000610812876003015487600001546120e490919063ffffffff16565b90508015611f9b57611f9b33826121c1565b505b8215611fc9578154611fba906001600160a01b0316333086612368565b8054611fc6908461226c565b81555b60038201548154611fe49164e8d4a5100091610812916120e4565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b61202e612268565b6000546001600160a01b0390811691161461207e576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b611691816124d5565b61208f612268565b6000546001600160a01b039081169116146120df576040805162461bcd60e51b81526020600482018190526024820152600080516020612987833981519152604482015290519081900360640190fd5b600a55565b6000826120f357506000610ae4565b8282028284828161210057fe5b0414611ca35760405162461bcd60e51b81526004018080602001828103825260218152602001806129306021913960400191505060405180910390fd5b6000611ca383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612575565b6000611ca383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612617565b600254604080516328b9b77360e21b81526001600160a01b038581166004830152602482018590529151919092169163a2e6ddcc91604480830192600092919082900301818387803b1580156117dc57600080fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611d9a908490612671565b3390565b600082820183811015611ca3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600754600060015b8281101561231157612307600782815481106122e657fe5b9060005260206000209060040201600101548361226c90919063ffffffff16565b91506001016122ce565b5080156114645761232381600361213d565b905061233a8161191160076000815481106118ee57fe5b60098190555080600760008154811061234f57fe5b9060005260206000209060040201600101819055505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610e2e908590612671565b801580612448575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561241a57600080fd5b505afa15801561242e573d6000803e3d6000fd5b505050506040513d602081101561244457600080fd5b5051155b6124835760405162461bcd60e51b81526004018080602001828103825260368152602001806129516036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611d9a908490612671565b6001600160a01b03811661251a5760405162461bcd60e51b815260040180806020018281038252602681526020018061290a6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081836126015760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125c65781810151838201526020016125ae565b50505050905090810190601f1680156125f35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161260d57fe5b0495945050505050565b600081848411156126695760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156125c65781810151838201526020016125ae565b505050900390565b60606126c6826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166127229092919063ffffffff16565b805190915015611d9a578080602001905160208110156126e557600080fd5b5051611d9a5760405162461bcd60e51b815260040180806020018281038252602a8152602001806128e0602a913960400191505060405180910390fd5b60606127318484600085612739565b949350505050565b6060612744856128a6565b612795576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106127d45780518252601f1990920191602091820191016127b5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612836576040519150601f19603f3d011682016040523d82523d6000602084013e61283b565b606091505b5091509150811561284f5791506127319050565b80511561285f5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156125c65781810151838201526020016125ae565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061273157505015159291505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666542455032303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212200d8ac7476b15cf315cece4acfcfc04bcd095b3674ecbc150466675dc5ee2cef964736f6c634300060c0033

Deployed ByteCode Sourcemap

52716:14451:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54275:27;;;:::i;:::-;;;;;;;;;;;;;;;;57193:95;;;:::i;65556:762::-;;;;;;;;;;;;;;;;-1:-1:-1;65556:762:0;;:::i;:::-;;56830:113;;;;;;;;;;;;;;;;-1:-1:-1;56830:113:0;;:::i;60088:759::-;;;;;;;;;;;;;;;;-1:-1:-1;60088:759:0;;;;;;-1:-1:-1;;;;;60088:759:0;;:::i;54561:26::-;;;;;;;;;;;;;;;;-1:-1:-1;54561:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;54561:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54804:34;;;:::i;55794:117::-;;;;;;;;;;;;;;;;-1:-1:-1;55794:117:0;-1:-1:-1;;;;;55794:117:0;;:::i;56496:136::-;;;;;;;;;;;;;;;;-1:-1:-1;56496:136:0;-1:-1:-1;;;;;56496:136:0;;:::i;57457:543::-;;;;;;;;;;;;;;;;-1:-1:-1;57457:543:0;;;-1:-1:-1;;;;;57457:543:0;;;;;;;;;;;;:::i;59089:102::-;;;;;;;;;;;;;;;;-1:-1:-1;59089:102:0;-1:-1:-1;;;;;59089:102:0;;:::i;64730:775::-;;;;;;;;;;;;;;;;-1:-1:-1;64730:775:0;;:::i;62905:804::-;;;;;;;;;;;;;;;;-1:-1:-1;62905:804:0;;;;;;;:::i;59314:491::-;;;;;;;;;;;;;;;;-1:-1:-1;59314:491:0;;:::i;63757:258::-;;;;;;;;;;;;;;;;-1:-1:-1;63757:258:0;;:::i;54895:25::-;;;:::i;61188:782::-;;;;;;;;;;;;;;;;-1:-1:-1;61188:782:0;;:::i;66389:356::-;;;;;;;;;;;;;;;;-1:-1:-1;66389:356:0;;:::i;56373:111::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;56373:111:0;;;;;;;;:::i;57062:123::-;;;;;;;;;;;;;;;;-1:-1:-1;57062:123:0;;:::i;60930:180::-;;;:::i;58096:456::-;;;;;;;;;;;;;;;;-1:-1:-1;58096:456:0;;;;;;;;;;;;;;:::i;55919:119::-;;;;;;;;;;;;;;;;-1:-1:-1;55919:119:0;-1:-1:-1;;;;;55919:119:0;;:::i;22181:140::-;;;:::i;56638:86::-;;;;;;;;;;;;;;;;-1:-1:-1;56638:86:0;-1:-1:-1;;;;;56638:86:0;;:::i;54496:29::-;;;:::i;:::-;;;;-1:-1:-1;;;;;54496:29:0;;;;;;;;;;;;;;56142:92;;;:::i;54158:21::-;;;:::i;54356:35::-;;;:::i;56046:90::-;;;:::i;67035:129::-;;;;;;;;;;;;;;;;-1:-1:-1;67035:129:0;-1:-1:-1;;;;;67035:129:0;;:::i;21539:79::-;;;:::i;59881:143::-;;;;;;;;;;;;;;;;-1:-1:-1;59881:143:0;;;;;;;:::i;54643:66::-;;;;;;;;;;;;;;;;-1:-1:-1;54643:66:0;;;;;;-1:-1:-1;;;;;54643:66:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;64067:611;;;;;;;;;;;;;;;;-1:-1:-1;64067:611:0;;:::i;56252:109::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;56252:109:0;;;;;;;;:::i;54207:22::-;;;:::i;54103:23::-;;;:::i;56730:94::-;;;;;;;;;;;;;;;;-1:-1:-1;56730:94:0;-1:-1:-1;;;;;56730:94:0;;:::i;62039:814::-;;;;;;;;;;;;;;;;-1:-1:-1;62039:814:0;;;;;;;:::i;22476:109::-;;;;;;;;;;;;;;;;-1:-1:-1;22476:109:0;-1:-1:-1;;;;;22476:109:0;;:::i;56949:105::-;;;;;;;;;;;;;;;;-1:-1:-1;56949:105:0;;:::i;54275:27::-;;;;:::o;57193:95::-;57265:8;:15;57193:95;:::o;65556:762::-;65613:21;65637:8;65646:1;65637:11;;;;;;;;;;;;;;;;65695:10;65683:23;;:11;:23;;;:11;:23;;;65725:11;;65637;;;;;;;;-1:-1:-1;65725:22:0;-1:-1:-1;65725:22:0;65717:53;;;;;-1:-1:-1;;;65717:53:0;;;;;;;;;;;;-1:-1:-1;;;65717:53:0;;;;;;;;;;;;;;;65781:13;65792:1;65781:10;:13::i;:::-;65805:15;65823:68;65875:4;:15;;;65823:47;65865:4;65823:37;65839:4;:20;;;65823:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47::i;:::-;:51;;:68::i;:::-;65805:86;-1:-1:-1;65905:11:0;;65902:80;;65933:37;65950:10;65962:7;65933:16;:37::i;:::-;65995:11;;65992:151;;66037:11;;:24;;66053:7;66037:15;:24::i;:::-;66023:38;;66076:12;;:55;;-1:-1:-1;;;;;66076:12:0;66110:10;66123:7;66076:25;:55::i;:::-;66187:20;;;;66171:11;;:47;;66213:4;;66171:37;;:15;:37::i;:47::-;66153:15;;;:65;66231:5;;:31;;;-1:-1:-1;;;66231:31:0;;66242:10;66231:31;;;;;;;;;;;;-1:-1:-1;;;;;66231:5:0;;;;:10;;:31;;;;;:5;;:31;;;;;;;;:5;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;66278:32:0;;;;;;;;66299:1;;-1:-1:-1;66287:10:0;;-1:-1:-1;66278:32:0;;;;;;;;;65556:762;;;;:::o;56830:113::-;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;56907:12:::1;:28:::0;56830:113::o;60088:759::-;60161:7;60181:21;60205:8;60214:4;60205:14;;;;;;;;;;;;;;;;60254;;;:8;:14;;;;;;-1:-1:-1;;;;;60254:21:0;;;;;;;;;;;60205:14;;;;;;;60312:20;;;;60362:12;;:37;;-1:-1:-1;;;60362:37:0;;60393:4;60362:37;;;;;;;;;60205:14;;-1:-1:-1;60254:21:0;;60312:20;;60205:14;;60362:12;;;;;:22;;:37;;;;;60205:14;;60362:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60362:37:0;60429:20;;;;60362:37;;-1:-1:-1;60414:12:0;:35;:52;;;;-1:-1:-1;60453:13:0;;;60414:52;60410:349;;;60483:18;60504:49;60518:4;:20;;;60540:12;60504:13;:49::i;:::-;60483:70;;60568:18;60589:70;60643:15;;60589:49;60622:4;:15;;;60589:28;60604:12;;60589:10;:14;;:28;;;;:::i;:::-;:32;;:49::i;:70::-;60568:91;-1:-1:-1;60692:55:0;60712:34;60737:8;60712:20;60568:91;60727:4;60712:14;:20::i;:34::-;60692:15;;:19;:55::i;:::-;60674:73;;60410:349;;;60776:63;60823:4;:15;;;60776:42;60813:4;60776:32;60792:15;60776:4;:11;;;:15;;:32;;;;:::i;:63::-;60769:70;;;;;;60088:759;;;;;:::o;54561:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;54561:26:0;;;;-1:-1:-1;54561:26:0;;;:::o;54804:34::-;;;;:::o;55794:117::-;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;55871:4:::1;::::0;:32:::1;::::0;;-1:-1:-1;;;55871:32:0;;-1:-1:-1;;;;;55871:32:0;;::::1;;::::0;::::1;::::0;;;:4;;;::::1;::::0;:22:::1;::::0;:32;;;;;:4:::1;::::0;:32;;;;;;;:4;;:32;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;55794:117:::0;:::o;56496:136::-;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;56566:4:::1;:12:::0;;-1:-1:-1;;;;;;56566:12:0::1;-1:-1:-1::0;;;;;56566:12:0;;::::1;::::0;;;::::1;::::0;;;;56590:8:::1;:11:::0;;56619:4;;;::::1;::::0;-1:-1:-1;;56590:11:0::1;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:34:::0;;-1:-1:-1;;;;;;56590:34:0::1;-1:-1:-1::0;;;;;56590:34:0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;56496:136:0:o;57457:543::-;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;57558:11:::1;57554:61;;;57586:17;:15;:17::i;:::-;57625:23;57666:10;;57651:12;:25;:53;;57694:10;;57651:53;;;57679:12;57651:53;57733:15;::::0;57625:79;;-1:-1:-1;57733:32:0::1;::::0;57753:11;57733:19:::1;:32::i;:::-;57715:15;:50:::0;57790:171:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;57790:171:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;57790:171:0;;;;;;57776:8:::1;:186:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;57776:186:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;57973:19:::1;:17;:19::i;:::-;21821:1;57457:543:::0;;;:::o;59089:102::-;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;59163:8:::1;:20:::0;;-1:-1:-1;;;;;;59163:20:0::1;-1:-1:-1::0;;;;;59163:20:0;;;::::1;::::0;;;::::1;::::0;;59089:102::o;64730:775::-;64787:21;64811:8;64820:1;64811:11;;;;;;;;;;;;;;;;64869:10;64857:23;;:11;:23;;;:11;:23;;64811:11;;;;;;-1:-1:-1;64857:23:0;64891:13;;:10;:13::i;:::-;64919:11;;:15;64915:236;;64951:15;64969:68;65021:4;:15;;;64969:47;65011:4;64969:37;64985:4;:20;;;64969:4;:11;;;:15;;:37;;;;:::i;:68::-;64951:86;-1:-1:-1;65055:11:0;;65052:88;;65087:37;65104:10;65116:7;65087:16;:37::i;:::-;64915:236;;65164:11;;65161:170;;65192:12;;:74;;-1:-1:-1;;;;;65192:12:0;65230:10;65251:4;65258:7;65192:29;:74::i;:::-;65295:11;;:24;;65311:7;65295:15;:24::i;:::-;65281:38;;65161:170;65375:20;;;;65359:11;;:47;;65401:4;;65359:37;;:15;:37::i;:47::-;65341:15;;;:65;65419:5;;:31;;;-1:-1:-1;;;65419:31:0;;65430:10;65419:31;;;;;;;;;;;;-1:-1:-1;;;;;65419:5:0;;;;:10;;:31;;;;;:5;;:31;;;;;;;;:5;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;65466:31:0;;;;;;;;65486:1;;-1:-1:-1;65474:10:0;;-1:-1:-1;65466:31:0;;;;;;;;;64730:775;;;:::o;62905:804::-;62983:9;62974:49;;;;;-1:-1:-1;;;62974:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;63036:21;63060:8;63069:4;63060:14;;;;;;;;;;;;;;;;63109;;;:8;:14;;;;;;63124:10;63109:26;;;;;;;63154:11;;63060:14;;;;;;;;-1:-1:-1;63154:22:0;-1:-1:-1;63154:22:0;63146:53;;;;;-1:-1:-1;;;63146:53:0;;;;;;;;;;;;-1:-1:-1;;;63146:53:0;;;;;;;;;;;;;;;63210:16;63221:4;63210:10;:16::i;:::-;63237:15;63255:68;63307:4;:15;;;63255:47;63297:4;63255:37;63271:4;:20;;;63255:4;:11;;;:15;;:37;;;;:::i;:68::-;63237:86;-1:-1:-1;63337:11:0;;63334:80;;63365:37;63382:10;63394:7;63365:16;:37::i;:::-;63427:11;;63424:151;;63469:11;;:24;;63485:7;63469:15;:24::i;:::-;63455:38;;63508:12;;:55;;-1:-1:-1;;;;;63508:12:0;63542:10;63555:7;63508:25;:55::i;:::-;63619:20;;;;63603:11;;:47;;63645:4;;63603:37;;:15;:37::i;:47::-;63585:15;;;:65;63666:35;;;;;;;;63687:4;;63675:10;;63666:35;;;;;;;;;62905:804;;;;;:::o;59314:491::-;59379:8;;-1:-1:-1;;;;;59379:8:0;59363:64;;;;;-1:-1:-1;;;59363:64:0;;;;;;;;;;;;-1:-1:-1;;;59363:64:0;;;;;;;;;;;;;;;59438:21;59462:8;59471:4;59462:14;;;;;;;;;;;;;;;;;;;;;59504:12;;59541:32;;;-1:-1:-1;;;59541:32:0;;59567:4;59541:32;;;;;;;;59462:14;;-1:-1:-1;;;;;;59504:12:0;;59462:14;59504:12;;59541:17;;:32;;;;;;;;;;59504:12;59541:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59541:32:0;59612:8;;59541:32;;-1:-1:-1;59584:43:0;;-1:-1:-1;;;;;59584:19:0;;;;59612:8;59541:32;59584:19;:43::i;:::-;59658:8;;:25;;;-1:-1:-1;;;59658:25:0;;-1:-1:-1;;;;;59658:25:0;;;;;;;;;59638:17;;59658:8;;;;;:16;;:25;;;;;;;;;;;;;;;59638:17;59658:8;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59658:25:0;59709:35;;;-1:-1:-1;;;59709:35:0;;59738:4;59709:35;;;;;;59658:25;;-1:-1:-1;;;;;;59709:20:0;;;;;:35;;;;;59658:25;;59709:35;;;;;;;;:20;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59709:35:0;59702:42;;59694:67;;;;;-1:-1:-1;;;59694:67:0;;;;;;;;;;;;-1:-1:-1;;;59694:67:0;;;;;;;;;;;;;;;59772:25;;-1:-1:-1;;;;;;59772:25:0;-1:-1:-1;;;;;59772:25:0;;;;;;;;-1:-1:-1;;;59314:491:0:o;63757:258::-;63886:42;63940:67;63886:42;63971:10;63992:4;63999:7;63940:22;:67::i;:::-;63757:258;;:::o;54895:25::-;;;;:::o;61188:782::-;61240:21;61264:8;61273:4;61264:14;;;;;;;;;;;;;;;;;;61240:38;;61309:4;:20;;;61293:12;:36;61289:75;;61346:7;;;61289:75;61393:12;;:37;;;-1:-1:-1;;;61393:37:0;;61424:4;61393:37;;;;;;61374:16;;-1:-1:-1;;;;;61393:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61393:37:0;;-1:-1:-1;61445:13:0;61441:102;;-1:-1:-1;61498:12:0;61475:20;;;;:35;61525:7;;61441:102;61553:18;61574:49;61588:4;:20;;;61610:12;61574:13;:49::i;:::-;61553:70;;61634:18;61655:70;61709:15;;61655:49;61688:4;:15;;;61655:28;61670:12;;61655:10;:14;;:28;;;;:::i;:70::-;61736:4;;61746:7;;61634:91;;-1:-1:-1;;;;;;61736:4:0;;;;:9;;61746:7;61755:18;61634:91;61770:2;61755:14;:18::i;:::-;61736:38;;;;;;;;;;;;;-1:-1:-1;;;;;61736:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;61785:4:0;;61803:5;;61785:37;;;-1:-1:-1;;;61785:37:0;;-1:-1:-1;;;;;61803:5:0;;;61785:37;;;;;;;;;;;;:4;;;;;-1:-1:-1;61785:9:0;;-1:-1:-1;61785:37:0;;;;;:4;;:37;;;;;;;:4;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61856:60;61881:34;61906:8;61881:20;61896:4;61881:10;:14;;:20;;;;:::i;:34::-;61856:20;;;;;:24;:60::i;:::-;61833:20;;;:83;-1:-1:-1;;61950:12:0;61927:20;;;;:35;;;;-1:-1:-1;61188:782:0;;:::o;66389:356::-;66448:21;66472:8;66481:4;66472:14;;;;;;;;;;;;;;;;66521;;;:8;:14;;;;;;66536:10;66521:26;;;;;;;;66605:11;;66472:14;;;;;;;66558:12;;66472:14;;-1:-1:-1;66558:59:0;;-1:-1:-1;;;;;66558:12:0;;;;;66536:10;66558:25;:59::i;:::-;66669:11;;66633:48;;;;;;;66663:4;;66651:10;;66633:48;;;;;;;;;66706:1;66692:15;;;66718;;;;:19;-1:-1:-1;;66389:356:0:o;56373:111::-;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;56452:5:::1;::::0;:24:::1;::::0;;-1:-1:-1;;;56452:24:0;;-1:-1:-1;;;;;56452:24:0;;::::1;;::::0;::::1;::::0;;;;;;;;;:5;;;::::1;::::0;:10:::1;::::0;:24;;;;;:5:::1;::::0;:24;;;;;;;:5;;:24;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;56373:111:::0;;:::o;57062:123::-;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;57142:16:::1;:35:::0;57062:123::o;60930:180::-;60992:8;:15;60975:14;61018:85;61046:6;61040:3;:12;61018:85;;;61076:15;61087:3;61076:10;:15::i;:::-;61054:5;;61018:85;;58096:456;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;58194:11:::1;58190:61;;;58222:17;:15;:17::i;:::-;58279:63;58330:11;58279:46;58299:8;58308:4;58299:14;;;;;;;;;;;;;;;;;;:25;;;58279:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;58261:15;:81;;;;58353:22;58378:8;58387:4;58378:14;;;;;;;;;;;;;;;;;;:25;;;58353:50;;58442:11;58414:8;58423:4;58414:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;58486:11;58468:14;:29;58464:81;;58514:19;:17;:19::i;55919:119::-:0;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;55997:5:::1;::::0;:33:::1;::::0;;-1:-1:-1;;;55997:33:0;;-1:-1:-1;;;;;55997:33:0;;::::1;;::::0;::::1;::::0;;;:5;;;::::1;::::0;:23:::1;::::0;:33;;;;;:5:::1;::::0;:33;;;;;;;:5;;:33;::::1;;::::0;::::1;;;;::::0;::::1;22181:140:::0;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;22280:1:::1;22264:6:::0;;22243:40:::1;::::0;-1:-1:-1;;;;;22264:6:0;;::::1;::::0;22243:40:::1;::::0;22280:1;;22243:40:::1;22311:1;22294:19:::0;;-1:-1:-1;;;;;;22294:19:0::1;::::0;;22181:140::o;56638:86::-;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;56702:5:::1;:14:::0;;-1:-1:-1;;;;;;56702:14:0::1;-1:-1:-1::0;;;;;56702:14:0;;;::::1;::::0;;;::::1;::::0;;56638:86::o;54496:29::-;;;-1:-1:-1;;;;;54496:29:0;;:::o;56142:92::-;56213:5;;:13;;;-1:-1:-1;;;56213:13:0;;;;56186:7;;-1:-1:-1;;;;;56213:5:0;;:11;;:13;;;;;;;;;;;;;;:5;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56213:13:0;;-1:-1:-1;56142:92:0;:::o;54158:21::-;;;-1:-1:-1;;;;;54158:21:0;;:::o;54356:35::-;;;;:::o;56046:90::-;56116:4;;:12;;;-1:-1:-1;;;56116:12:0;;;;56089:7;;-1:-1:-1;;;;;56116:4:0;;:10;;:12;;;;;;;;;;;;;;:4;:12;;;;;;;;;;67035:129;67106:7;;-1:-1:-1;;;;;67106:7:0;67092:10;:21;67084:43;;;;;-1:-1:-1;;;67084:43:0;;;;;;;;;;;;-1:-1:-1;;;67084:43:0;;;;;;;;;;;;;;;67138:7;:18;;-1:-1:-1;;;;;;67138:18:0;-1:-1:-1;;;;;67138:18:0;;;;;;;;;;67035:129::o;21539:79::-;21577:7;21604:6;-1:-1:-1;;;;;21604:6:0;21539:79;:::o;59881:143::-;59999:16;;59953:7;;59980:36;;:14;:3;59988:5;59980:7;:14::i;:36::-;59973:43;59881:143;-1:-1:-1;;;59881:143:0:o;54643:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;64067:611::-;64126:21;64150:8;64159:1;64150:11;;;;;;;;;;;;;;;;64208:10;64196:23;;:11;:23;;;:11;:23;;64150:11;;;;;;-1:-1:-1;64196:23:0;64230:13;;:10;:13::i;:::-;64258:11;;:15;64254:236;;64290:15;64308:68;64360:4;:15;;;64308:47;64350:4;64308:37;64324:4;:20;;;64308:4;:11;;;:15;;:37;;;;:::i;:68::-;64290:86;-1:-1:-1;64394:11:0;;64391:88;;64426:37;64443:10;64455:7;64426:16;:37::i;:::-;64254:236;;64503:11;;64500:170;;64531:12;;:74;;-1:-1:-1;;;;;64531:12:0;64569:10;64590:4;64597:7;64531:29;:74::i;:::-;64634:11;;:24;;64650:7;64634:15;:24::i;:::-;64620:38;;64500:170;64067:611;;;:::o;56252:109::-;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;56330:4:::1;::::0;:23:::1;::::0;;-1:-1:-1;;;56330:23:0;;-1:-1:-1;;;;;56330:23:0;;::::1;;::::0;::::1;::::0;;;;;;;;;:4;;;::::1;::::0;:9:::1;::::0;:23;;;;;:4:::1;::::0;:23;;;;;;;:4;;:23;::::1;;::::0;::::1;;;;::::0;::::1;54207:22:::0;;;-1:-1:-1;;;;;54207:22:0;;:::o;54103:23::-;;;-1:-1:-1;;;;;54103:23:0;;:::o;56730:94::-;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;62039:814;62116:9;62107:46;;;;;-1:-1:-1;;;62107:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;62166:21;62190:8;62199:4;62190:14;;;;;;;;;;;;;;;;62239;;;:8;:14;;;;;;62254:10;62239:26;;;;;;;62190:14;;;;;;;;-1:-1:-1;62276:16:0;62248:4;62276:10;:16::i;:::-;62307:11;;:15;62303:236;;62339:15;62357:68;62409:4;:15;;;62357:47;62399:4;62357:37;62373:4;:20;;;62357:4;:11;;;:15;;:37;;;;:::i;:68::-;62339:86;-1:-1:-1;62443:11:0;;62440:88;;62475:37;62492:10;62504:7;62475:16;:37::i;:::-;62303:236;;62553:11;;62549:171;;62581:12;;:74;;-1:-1:-1;;;;;62581:12:0;62619:10;62640:4;62647:7;62581:29;:74::i;:::-;62684:11;;:24;;62700:7;62684:15;:24::i;:::-;62670:38;;62549:171;62764:20;;;;62748:11;;:47;;62790:4;;62748:37;;:15;:37::i;:47::-;62730:15;;;:65;62811:34;;;;;;;;62831:4;;62819:10;;62811:34;;;;;;;;;62039:814;;;;:::o;22476:109::-;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;22549:28:::1;22568:8;22549:18;:28::i;56949:105::-:0;21761:12;:10;:12::i;:::-;21751:6;;-1:-1:-1;;;;;21751:6:0;;;:22;;;21743:67;;;;;-1:-1:-1;;;21743:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21743:67:0;;;;;;;;;;;;;;;57022:10:::1;:24:::0;56949:105::o;2372:471::-;2430:7;2675:6;2671:47;;-1:-1:-1;2705:1:0;2698:8;;2671:47;2742:5;;;2746:1;2742;:5;:1;2766:5;;;;;:10;2758:56;;;;-1:-1:-1;;;2758:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3319:132;3377:7;3404:39;3408:1;3411;3404:39;;;;;;;;;;;;;;;;;:3;:39::i;1448:136::-;1506:7;1533:43;1537:1;1540;1533:43;;;;;;;;;;;;;;;;;:3;:43::i;66859:120::-;66935:5;;:36;;;-1:-1:-1;;;66935:36:0;;-1:-1:-1;;;;;66935:36:0;;;;;;;;;;;;;;;:5;;;;;:22;;:36;;;;;:5;;:36;;;;;;;:5;;:36;;;;;;;;;;16145:211;16289:58;;;-1:-1:-1;;;;;16289:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16289:58:0;-1:-1:-1;;;16289:58:0;;;16262:86;;16282:5;;16262:19;:86::i;20189:98::-;20269:10;20189:98;:::o;984:181::-;1042:7;1074:5;;;1098:6;;;;1090:46;;;;;-1:-1:-1;;;1090:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;58560:453;58626:8;:15;58609:14;58700:1;58681:115;58709:6;58703:3;:12;58681:115;;;58748:36;58759:8;58768:3;58759:13;;;;;;;;;;;;;;;;;;:24;;;58748:6;:10;;:36;;;;:::i;:::-;58739:45;-1:-1:-1;58717:5:0;;58681:115;;;-1:-1:-1;58810:11:0;;58806:200;;58847:13;:6;58858:1;58847:10;:13::i;:::-;58838:22;;58893:55;58941:6;58893:43;58913:8;58922:1;58913:11;;;;;;;58893:55;58875:15;:73;;;;58988:6;58963:8;58972:1;58963:11;;;;;;;;;;;;;;;;;;:22;;:31;;;;58560:453;;:::o;16364:248::-;16535:68;;;-1:-1:-1;;;;;16535:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16535:68:0;-1:-1:-1;;;16535:68:0;;;16508:96;;16528:5;;16508:19;:96::i;16881:670::-;17299:10;;;17298:62;;-1:-1:-1;17315:39:0;;;-1:-1:-1;;;17315:39:0;;17339:4;17315:39;;;;-1:-1:-1;;;;;17315:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17315:39:0;:44;17298:62;17276:166;;;;-1:-1:-1;;;17276:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17480:62;;;-1:-1:-1;;;;;17480:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17480:62:0;-1:-1:-1;;;17480:62:0;;;17453:90;;17473:5;;17453:19;:90::i;22691:229::-;-1:-1:-1;;;;;22765:22:0;;22757:73;;;;-1:-1:-1;;;22757:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22867:6;;;22846:38;;-1:-1:-1;;;;;22846:38:0;;;;22867:6;;;22846:38;;;22895:6;:17;;-1:-1:-1;;;;;;22895:17:0;-1:-1:-1;;;;;22895:17:0;;;;;;;;;;22691:229::o;3947:312::-;4067:7;4102:12;4095:5;4087:28;;;;-1:-1:-1;;;4087:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4126:9;4142:1;4138;:5;;;;;;;3947:312;-1:-1:-1;;;;;3947:312:0:o;1887:226::-;2007:7;2043:12;2035:6;;;;2027:29;;;;-1:-1:-1;;;2027:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2079:5:0;;;1887:226::o;18680:774::-;19104:23;19130:69;19158:4;19130:69;;;;;;;;;;;;;;;;;19138:5;-1:-1:-1;;;;;19130:27:0;;;:69;;;;;:::i;:::-;19214:17;;19104:95;;-1:-1:-1;19214:21:0;19210:237;;19369:10;19358:30;;;;;;;;;;;;;;;-1:-1:-1;19358:30:0;19350:85;;;;-1:-1:-1;;;19350:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13066:230;13203:12;13235:53;13258:6;13266:4;13272:1;13275:12;13235:22;:53::i;:::-;13228:60;13066:230;-1:-1:-1;;;;13066:230:0:o;14554:1020::-;14727:12;14760:18;14771:6;14760:10;:18::i;:::-;14752:60;;;;;-1:-1:-1;;;14752:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14886:12;14900:23;14927:6;-1:-1:-1;;;;;14927:11:0;14946:8;14956:4;14927:34;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14927:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14885:76;;;;14976:7;14972:595;;;15007:10;-1:-1:-1;15000:17:0;;-1:-1:-1;15000:17:0;14972:595;15121:17;;:21;15117:439;;15384:10;15378:17;15445:15;15432:10;15428:2;15424:19;15417:44;15332:148;15520:20;;-1:-1:-1;;;15520:20:0;;;;;;;;;;;;;;;;;15527:12;;15520:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9929:641;9989:4;10470:20;;10300:66;10519:23;;;;;;:42;;-1:-1:-1;;10546:15:0;;;10511:51;-1:-1:-1;;9929:641:0:o

Swarm Source

ipfs://0d8ac7476b15cf315cece4acfcfc04bcd095b3674ecbc150466675dc5ee2cef9
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading