Contract 0x535874bfbecac5f235717faea7c26d01c67b38c5 1

 

Contract Overview

CZodiac: TigZ Token
Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xab1e20fb97a2dce61f2fa8379bf3424fba5e193e4a02f62f638a755dd633ca55Approve121520292021-10-28 2:37:066 hrs 35 mins ago0x835c4f6104103e8d8c9a340c173640f5bcf8a123 IN  CZodiac: TigZ Token0 BNB0.0001246
0xee1968618147419bfa5aa2322dabbd527c258e6dbfab6249e0f07999fd32f704Approve121520152021-10-28 2:36:246 hrs 36 mins ago0x835c4f6104103e8d8c9a340c173640f5bcf8a123 IN  CZodiac: TigZ Token0 BNB0.0000728
0xb2f64b62b605d264c484ba21f31c451eb9b2550bcd5cbd750494fa5225976eceApprove121519122021-10-28 2:31:156 hrs 41 mins ago0x619d2f2ffa6193f2cadac51107bf2be27000d8bf IN  CZodiac: TigZ Token0 BNB0.00022252
0x912d1fa7265a90262ea986bfa6aeb5512b394423225558b4879a13518d34fbedApprove121492842021-10-28 0:19:428 hrs 52 mins ago0x8e3bcef6f6d7dee9fca955e23332b4746866f7a5 IN  CZodiac: TigZ Token0 BNB0.00022252
0x4446773786a230cb1746d3db0ea7eadf46c452e2767297b1aa0dde1cb6dfb34dApprove121436912021-10-27 19:39:5713 hrs 32 mins ago0x9a42f238a61ea49474480701bad4af6da91ed9e3 IN  CZodiac: TigZ Token0 BNB0.00022252
0x0f03c1c74e15a7412689ac8a57a1113e02562a701687e2c8bf65fc20527534eeApprove121435642021-10-27 19:33:3613 hrs 38 mins ago0xc13196f6fec6ffbd3194adf78f64b420875a1761 IN  CZodiac: TigZ Token0 BNB0.00022252
0xefd8aff68c478f882f7c9b7fadaef54c0becea97b8589c08f7c98d40453c2468Transfer121435272021-10-27 19:31:4513 hrs 40 mins ago0x083226eb6904f32afe54fdb2766485a4858b6498 IN  CZodiac: TigZ Token0 BNB0.002393855
0x7f5c929594b6935391aac5a1f6ee0171637f8fd3c3381b682b3015943882d52aTransfer121435112021-10-27 19:30:5713 hrs 41 mins ago0xb10673dea699dd470909e4bce8585138f35c3ffc IN  CZodiac: TigZ Token0 BNB0.002393915
0x5c3441099ed606e5494ac6d454d46221e4e2b33155d78e6c817ea7a8997cd716Approve121389952021-10-27 15:44:5217 hrs 27 mins ago0x0fdebc97b614baf8d1782c88f76964a50f43b150 IN  CZodiac: TigZ Token0 BNB0.00022252
0x408417bebb0d64b04cf554e6eeaa2457ffb91300aa5b6274d2117606c4da1cbaApprove121353872021-10-27 12:34:2020 hrs 38 mins ago0x521ec4a336c3948afbab8eedc0da472c628be8ad IN  CZodiac: TigZ Token0 BNB0.00022252
0xe8c32195140e02706f976a733cfc6ad2e968fbd5ef37dcf0af339225289eff88Approve121246552021-10-27 3:23:301 day 5 hrs ago0x9ca19b2f77fbcc8979ca370444b9a790fb330732 IN  CZodiac: TigZ Token0 BNB0.00022252
0xb12585085a96d812e3111a97dddaa8ad6422be888a6a70df1e4e6d69e73bd937Approve120833892021-10-25 16:47:432 days 16 hrs ago0x703a3240266a1b1f9fa72c6520634a65745fdca0 IN  CZodiac: TigZ Token0 BNB0.00022252
0xd06f3add161ed4cbd240084bc9571702ec15bc962f2e441e804bfcfa7a03035cTransfer120490602021-10-24 11:45:113 days 21 hrs ago0x126e34b92588858d48583e228a922fd564ed7074 IN  CZodiac: TigZ Token0 BNB0.002393675
0x8ee6b46d7d592bf74b9b781adedbc214f08a0a011b01b49cace77838bf03dc29Approve120299702021-10-23 19:45:274 days 13 hrs ago0x92a859e0e8758ae73ba0a5f6c28783c375e2a1d6 IN  CZodiac: TigZ Token0 BNB0.00022252
0xfa2e91297d233ccdcf9640eecb2824e23d2935cff76a5b4e4a4cec2d78fd3d11Approve120216522021-10-23 12:46:164 days 20 hrs ago0x40a5b6fa3578b288c9c94d7b5dfe32d9ce240853 IN  CZodiac: TigZ Token0 BNB0.000074256
0x2faa703c1efc8be6d96312888b61c41b4eabd60531e88068234ef48054814a4eApprove119804002021-10-22 1:45:336 days 7 hrs ago0x38cc5038c0223e6dffd6d6bdf40f57e33bf4ebc6 IN  CZodiac: TigZ Token0 BNB0.00012652
0x9923817d2da76a68d20693b3d4f678a00602ca1d16795a2ad70ce4d74cf6d6d3Approve119803802021-10-22 1:44:336 days 7 hrs ago0x38cc5038c0223e6dffd6d6bdf40f57e33bf4ebc6 IN  CZodiac: TigZ Token0 BNB0.00022252
0x5b3f6ca4d615c2685c046fc56c1b64e2de305f088849a348618560cb8f03fb7eApprove119795352021-10-22 1:01:046 days 8 hrs ago0x9fc58d3e0d4a37b3174801856c3208072be829cb IN  CZodiac: TigZ Token0 BNB0.00022252
0xa1b19fc1b6ab20f2ab97c0834de25a45905a627531f0b4a1693bd942c02fb0a9Approve119600792021-10-21 8:27:307 days 44 mins ago0x75ae2dda76aea5d7ecb0fd205efbfe989c8b986e IN  CZodiac: TigZ Token0 BNB0.00022252
0x5e1a968e365fc2099df664ae33f0853693a58209845e066b190a9dcc354c49e4Approve119599582021-10-21 8:20:517 days 51 mins ago0x75ae2dda76aea5d7ecb0fd205efbfe989c8b986e IN  CZodiac: TigZ Token0 BNB0.00022252
0x7fa0deb6c7daef5de321448ad1a6aeeee4263c8025432b2eaae8b4084718fe60Approve119570512021-10-21 5:54:577 days 3 hrs ago0x1295e84b580f03f8e24dbf8f42d5314b072402aa IN  CZodiac: TigZ Token0 BNB0.00022252
0xc1dbdaf8f9ae59038f607a1bf91327c0c45b1b62782b5cff1474c51bd89adab3Approve119348752021-10-20 11:12:477 days 21 hrs ago0x05c1617576bfb36411e561e299a3d73a9dbce09e IN  CZodiac: TigZ Token0 BNB0.00022252
0xe2a65ccbaaf975cdb161fb721ac823c235b453645f3ce3b1b5d4fe020293849cApprove119282852021-10-20 5:39:418 days 3 hrs ago0x29a481c872db9af5e6db3d4c5ec198b800df6177 IN  CZodiac: TigZ Token0 BNB0.00022252
0x75e8c1486649da61a658c15f218ee3e88e9638f8b334fc61438c32c4c881a6feApprove119252362021-10-20 3:07:138 days 6 hrs ago0xcbf762827d716bb2617704f2bb5abca53329caaa IN  CZodiac: TigZ Token0 BNB0.00022252
0xdc3e602f89aa7b2d50e9e47a1be7c23577590477a44b75872707402763a37b66Approve119162952021-10-19 19:22:508 days 13 hrs ago0x6b9d632d5c9ec40658508c6537de2e2a9b3103bd IN  CZodiac: TigZ Token0 BNB0.000267024
[ Download CSV Export 

OVERVIEW

TigZodiac is the second of 12 zodiac tokens by the CZodiac community. Every 30 days the zodiacs are swapped for the next. It is a reflect token with airdrops, lotteries, new defi products, and NFTs.

Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CZodiacToken

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-06-14
*/

/*
SPDX-License-Identifier: GPL-3.0

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░██████████████████████████████████████████████████████████████████████████████████████████████████████████░░
░░█░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░█░░░░░░░░░░░░███░░░░░░░░░░█░░░░░░░░░░░░░░█░░░░░░░░░░░░░░█░░
░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀░░░░█░░▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░
░░█░░▄▀░░░░░░░░░░█░░░░░░░░░░░░▄▀▄▀░░█░░▄▀░░░░░░▄▀░░█░░▄▀░░░░▄▀▄▀░░█░░░░▄▀░░░░█░░▄▀░░░░░░▄▀░░█░░▄▀░░░░░░░░░░█░░
░░█░░▄▀░░█████████████████░░░░▄▀░░░░█░░▄▀░░██░░▄▀░░█░░▄▀░░██░░▄▀░░███░░▄▀░░███░░▄▀░░██░░▄▀░░█░░▄▀░░█████████░░
░░█░░▄▀░░███████████████░░░░▄▀░░░░███░░▄▀░░██░░▄▀░░█░░▄▀░░██░░▄▀░░███░░▄▀░░███░░▄▀░░░░░░▄▀░░█░░▄▀░░█████████░░
░░█░░▄▀░░█████████████░░░░▄▀░░░░█████░░▄▀░░██░░▄▀░░█░░▄▀░░██░░▄▀░░███░░▄▀░░███░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀░░█████████░░
░░█░░▄▀░░███████████░░░░▄▀░░░░███████░░▄▀░░██░░▄▀░░█░░▄▀░░██░░▄▀░░███░░▄▀░░███░░▄▀░░░░░░▄▀░░█░░▄▀░░█████████░░
░░█░░▄▀░░█████████░░░░▄▀░░░░█████████░░▄▀░░██░░▄▀░░█░░▄▀░░██░░▄▀░░███░░▄▀░░███░░▄▀░░██░░▄▀░░█░░▄▀░░█████████░░
░░█░░▄▀░░░░░░░░░░█░░▄▀▄▀░░░░░░░░░░░░█░░▄▀░░░░░░▄▀░░█░░▄▀░░░░▄▀▄▀░░█░░░░▄▀░░░░█░░▄▀░░██░░▄▀░░█░░▄▀░░░░░░░░░░█░░
░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀░░░░█░░▄▀▄▀▄▀░░█░░▄▀░░██░░▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░
░░█░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░█░░░░░░░░░░░░███░░░░░░░░░░█░░░░░░██░░░░░░█░░░░░░░░░░░░░░█░░
░░██████████████████████████████████████████████████████████████████████████████████████████████████████████░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░█████╗░░░░█████╗░░░░█████╗░░░░█████╗░░░░█████╗░░░░█████╗░░░░█████╗░░░░█████╗░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░██╔══██╗░░██╔══██╗░░██╔══██╗░░██╔══██╗░░██╔══██╗░░██╔══██╗░░██╔══██╗░░██╔══██╗░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░██╔══██╗░░██╔══██╗░░██╔══██╗░░██╔══██╗░░██╔══██╗░░██╔══██╗░░██╔══██╗░░██╔══██░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░╚█████╔╝░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░╚════╝░░░░╚════╝░░░░╚════╝░░░░╚════╝░░░░╚════╝░░░░╚════╝░░░░╚════╝░░░░╚════╝░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋░░
░░╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏┓╋╋╋╋╋╋╋╋╋┏┓╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋░░
░░╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏━┳━┫┗┓╋╋┏┓┏┳┳━┫┣┳┳┓╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋░░
░░╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┃╋┃┻┫┏┫╋╋┃┗┫┃┃━┫━┫┃┃╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋░░
░░╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣┓┣━┻━┛╋╋┗━┻━┻━┻┻╋┓┃╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋░░
░░╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗━┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗━┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋░░
░░╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

Authored by Plastic Digits
Credit to reflect.finance, split.network, bubbadefi.finance

*/

pragma solidity ^0.8.0;

/*
 * @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 meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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


// File @openzeppelin/contracts/utils/math/[email protected]


pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

    /**
     * @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 a - b;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * 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).
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

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


// File @openzeppelin/contracts/utils/[email protected]


pragma solidity ^0.8.0;

/**
 * @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) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/access/[email protected]


pragma solidity ^0.8.0;

/**
 * @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.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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


// File @openzeppelin/contracts/token/ERC20/[email protected]


pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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


// File interfaces/IUniswapV2Pair.sol

pragma solidity ^0.8.4;

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

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}


// File interfaces/IUniswapV2Factory.sol

pragma solidity ^0.8.4;

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

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

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

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

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}


// File interfaces/IUniswapV2Router01.sol

pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}


// File interfaces/IUniswapV2Router02.sol

pragma solidity ^0.8.4;
interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}


// File contracts/AutoFarm.sol

// Authored by Plastic Digits
pragma solidity ^0.8.4;
contract AutoFarm is Context, Ownable {
    using SafeMath for uint256;
    using Address for address;

    IUniswapV2Pair[] public pairs;
    mapping(uint8 => uint8) public weights;
    mapping(IUniswapV2Pair => uint8) public indexes;
    uint16 public totalWeight;
    uint8 public totalPairs;
    IERC20 public czodiac;

    constructor() Ownable() {}

    function setPairs(
        IUniswapV2Pair[] calldata _pairs,
        uint8[] calldata _weights
    ) public onlyOwner {
        for (uint8 i; i < _pairs.length; i++) {
            IUniswapV2Pair pair = _pairs[i];
            require(
                totalWeight + _weights[i] > totalWeight || _weights[i] == 0,
                "AutoFarm: total weight overflow"
            );

            //For new pair
            if (pairs.length == 0 || pairs[indexes[pair]] != pair) {
                totalWeight = totalWeight + _weights[i];
                indexes[pair] = uint8(pairs.length);
                pairs.push(pair);
                require(
                    totalPairs + 1 > totalPairs,
                    "AutoFarm: total pairs overflow"
                );
                totalPairs = totalPairs + 1;
            } else {
                totalWeight =
                    totalWeight -
                    weights[indexes[pair]] +
                    _weights[i];
            }

            weights[indexes[pair]] = _weights[i];
        }
    }

    function setCzodiac(IERC20 _czodiac) external onlyOwner {
        czodiac = _czodiac;
    }

    function distribute() external {
        uint256 available = czodiac.balanceOf(address(this));
        require(available > 0, "AutoFarm: Nothing to distribute");
        for (uint8 i; i < pairs.length; i++) {
            czodiac.transfer(
                address(pairs[i]),
                uint256(weights[indexes[pairs[i]]]).mul(available).div(
                    uint256(totalWeight)
                )
            );
            pairs[i].sync();
        }
    }

    function withdrawToken(IERC20 _token) external onlyOwner {
        _token.transfer(owner(), _token.balanceOf(address(this)));
    }
}


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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


// File @openzeppelin/contracts/token/ERC20/[email protected]


pragma solidity ^0.8.0;



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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

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

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

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

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

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

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

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


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]


pragma solidity ^0.8.0;


/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        _approve(account, _msgSender(), currentAllowance - amount);
        _burn(account, amount);
    }
}


// File @openzeppelin/contracts/security/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]


pragma solidity ^0.8.0;


/**
 * @dev ERC20 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC20Pausable is ERC20, Pausable {
    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        require(!paused(), "ERC20Pausable: token transfer while paused");
    }
}


// File @openzeppelin/contracts/utils/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}


// File @openzeppelin/contracts/utils/introspection/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}


// File @openzeppelin/contracts/utils/introspection/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}


// File @openzeppelin/contracts/access/[email protected]


pragma solidity ^0.8.0;



/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);
    function getRoleAdmin(bytes32 role) external view returns (bytes32);
    function grantRole(bytes32 role, address account) external;
    function revokeRole(bytes32 role, address account) external;
    function renounceRole(bytes32 role, address account) external;
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping (address => bool) members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId
            || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if(!hasRole(role, account)) {
            revert(string(abi.encodePacked(
                "AccessControl: account ",
                Strings.toHexString(uint160(account), 20),
                " is missing role ",
                Strings.toHexString(uint256(role), 32)
            )));
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}


// File @openzeppelin/contracts/utils/structs/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

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

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

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

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

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

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

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

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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


// File @openzeppelin/contracts/access/[email protected]


pragma solidity ^0.8.0;


/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable {
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping (bytes32 => EnumerableSet.AddressSet) private _roleMembers;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControlEnumerable).interfaceId
            || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {grantRole} to track enumerable memberships
     */
    function grantRole(bytes32 role, address account) public virtual override {
        super.grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {revokeRole} to track enumerable memberships
     */
    function revokeRole(bytes32 role, address account) public virtual override {
        super.revokeRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {renounceRole} to track enumerable memberships
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        super.renounceRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {_setupRole} to track enumerable memberships
     */
    function _setupRole(bytes32 role, address account) internal virtual override {
        super._setupRole(role, account);
        _roleMembers[role].add(account);
    }
}


// File @openzeppelin/contracts/token/ERC20/presets/[email protected]


pragma solidity ^0.8.0;





/**
 * @dev {ERC20} token, including:
 *
 *  - ability for holders to burn (destroy) their tokens
 *  - a minter role that allows for token minting (creation)
 *  - a pauser role that allows to stop all token transfers
 *
 * This contract uses {AccessControl} to lock permissioned functions using the
 * different roles - head to its documentation for details.
 *
 * The account that deploys the contract will be granted the minter and pauser
 * roles, as well as the default admin role, which will let it grant both minter
 * and pauser roles to other accounts.
 */
contract ERC20PresetMinterPauser is Context, AccessControlEnumerable, ERC20Burnable, ERC20Pausable {
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");

    /**
     * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the
     * account that deploys the contract.
     *
     * See {ERC20-constructor}.
     */
    constructor(string memory name, string memory symbol) ERC20(name, symbol) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(PAUSER_ROLE, _msgSender());
    }

    /**
     * @dev Creates `amount` new tokens for `to`.
     *
     * See {ERC20-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the `MINTER_ROLE`.
     */
    function mint(address to, uint256 amount) public virtual {
        require(hasRole(MINTER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have minter role to mint");
        _mint(to, amount);
    }

    /**
     * @dev Pauses all token transfers.
     *
     * See {ERC20Pausable} and {Pausable-_pause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function pause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to pause");
        _pause();
    }

    /**
     * @dev Unpauses all token transfers.
     *
     * See {ERC20Pausable} and {Pausable-_unpause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function unpause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to unpause");
        _unpause();
    }

    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20, ERC20Pausable) {
        super._beforeTokenTransfer(from, to, amount);
    }
}


// File contracts/CZFarm.sol

// Authored by Plastic Digits
pragma solidity ^0.8.4;
contract CZFarm is Context, ERC20PresetMinterPauser, Ownable {
    constructor() ERC20PresetMinterPauser("CZFarm", "CZF") Ownable() {}
}


// File contracts/CZFarmMaster.sol

// Authored by Plastic Digits
// Credit to Wex/WaultSwap, Synthetix
pragma solidity ^0.8.4;
contract CZFarmMaster is Ownable {
    using SafeMath for uint256;

    struct UserInfo {
        uint256 amount;
        uint256 rewardDebt;
        uint256 pendingRewards;
    }

    struct PoolInfo {
        IERC20 lpToken;
        uint256 allocPoint;
        uint256 lastRewardBlock;
        uint256 accCzfPerShare;
    }

    CZFarm public czf;
    uint256 public czfPerBlock;

    PoolInfo[] public poolInfo;
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    uint256 public totalAllocPoint = 0;
    uint256 public startBlock;

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

    constructor(
        CZFarm _czf,
        uint256 _czfPerBlock,
        uint256 _startBlock
    ) {
        czf = _czf;
        czfPerBlock = _czfPerBlock;
        startBlock = _startBlock;
    }

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

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

    function add(
        uint256 _allocPoint,
        IERC20 _lpToken,
        bool _withUpdate
    ) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock =
            block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(
            PoolInfo({
                lpToken: _lpToken,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accCzfPerShare: 0
            })
        );
    }

    function set(
        uint256 _pid,
        uint256 _allocPoint,
        bool _withUpdate
    ) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(
            _allocPoint
        );
        poolInfo[_pid].allocPoint = _allocPoint;
    }

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

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

    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 czfReward =
            multiplier.mul(czfPerBlock).mul(pool.allocPoint).div(
                totalAllocPoint
            );
        czf.mint(address(this), czfReward);
        pool.accCzfPerShare = pool.accCzfPerShare.add(
            czfReward.mul(1e12).div(lpSupply)
        );
        pool.lastRewardBlock = block.number;
    }

    function deposit(
        uint256 _pid,
        uint256 _amount,
        bool _withdrawRewards
    ) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending =
                user.amount.mul(pool.accCzfPerShare).div(1e12).sub(
                    user.rewardDebt
                );

            if (pending > 0) {
                user.pendingRewards = user.pendingRewards.add(pending);

                if (_withdrawRewards) {
                    safeCzfTransfer(msg.sender, user.pendingRewards);
                    emit Claim(msg.sender, _pid, user.pendingRewards);
                    user.pendingRewards = 0;
                }
            }
        }
        if (_amount > 0) {
            require(pool.lpToken.transferFrom(
                address(msg.sender),
                address(this),
                _amount
            ),"CZFarmMaster: Transfer failed");
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accCzfPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    function withdraw(
        uint256 _pid,
        uint256 _amount,
        bool _withdrawRewards
    ) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "CZFarmMaster: balance too low");
        updatePool(_pid);
        uint256 pending =
            user.amount.mul(pool.accCzfPerShare).div(1e12).sub(user.rewardDebt);
        if (pending > 0) {
            user.pendingRewards = user.pendingRewards.add(pending);

            if (_withdrawRewards) {
                safeCzfTransfer(msg.sender, user.pendingRewards);
                emit Claim(msg.sender, _pid, user.pendingRewards);
                user.pendingRewards = 0;
            }
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            require(pool.lpToken.transfer(address(msg.sender), _amount),"CZFarmMaster: Transfer failed");
        }
        user.rewardDebt = user.amount.mul(pool.accCzfPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(pool.lpToken.transfer(address(msg.sender), user.amount),"CZFarmMaster: Transfer failed");
        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
        user.amount = 0;
        user.rewardDebt = 0;
        user.pendingRewards = 0;
    }

    function claim(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        uint256 pending =
            user.amount.mul(pool.accCzfPerShare).div(1e12).sub(user.rewardDebt);
        if (pending > 0 || user.pendingRewards > 0) {
            user.pendingRewards = user.pendingRewards.add(pending);
            safeCzfTransfer(msg.sender, user.pendingRewards);
            emit Claim(msg.sender, _pid, user.pendingRewards);
            user.pendingRewards = 0;
        }
        user.rewardDebt = user.amount.mul(pool.accCzfPerShare).div(1e12);
    }

    function safeCzfTransfer(address _to, uint256 _amount) internal {
        uint256 czfBal = czf.balanceOf(address(this));
        if (_amount > czfBal) {
            czf.transfer(_to, czfBal);
        } else {
            czf.transfer(_to, _amount);
        }
    }

    function setCzfPerBlock(uint256 _czfPerBlock) public onlyOwner {
        require(_czfPerBlock > 0, "CZFarmMaster: czfPerBlock cannot be 0");
        czfPerBlock = _czfPerBlock;
    }
}


// File contracts/CzodiacToken.sol

pragma solidity ^0.8.4;
contract CZodiacToken is Context, IERC20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    struct TValues {
        uint256 tTransferAmount;
        uint256 tHolderReward;
        uint256 tBurn;
        uint256 tLpReward;
        uint256 tDevReward;
    }

    struct RValues {
        uint256 rate;
        uint256 rAmount;
        uint256 rTransferAmount;
        uint256 tTransferAmount;
        uint256 rFee;
        uint256 tFee;
        uint256 rBurn;
        uint256 rLpReward;
        uint256 rDevReward;
    }

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

    mapping(address => bool) private _isExcludedFromFee;

    mapping(address => bool) private _isExcluded;
    address[] private _excluded;

    uint256 private constant MAX = ~uint256(0);
    uint256 private _tTotal;
    uint256 private _rTotal;

    string public name;
    string public symbol;
    uint8 public constant decimals = 18;

    bool public globalRewardsEnabled;
    bool public areTransfersEnabled;

    //01.00%
    uint256 private constant _holderRewardBasis = 50;

    //00.30%
    uint256 private constant _burnBasis = 20;

    //00.50%
    uint256 private constant _lpRewardBasis = 150;

    //00.20%
    uint256 private constant _devRewardBasis = 30;

    uint256 private constant _swapBasisRate = 80000;

    //tracks the total amount of token rewarded to liquidity providers
    uint256 public totalLiquidityProviderRewards;

    address public autoFarm;
    IERC20 public immutable prevCzodiac;
    IERC20 public nextCzodiac;

    uint256 public immutable swapStartTimestamp;
    uint256 public immutable swapEndTimestamp;

    event HolderRewardsEvent(uint256 tokenAmount);
    event LPRewardsEvent(uint256 tokenAmount);
    event DevRewardsEvent(uint256 tokenAmount);
    event BurnEvent(uint256 tokenAmount);
    event Creation(
        address _autofarm,
        IERC20 _prevCzodiac,
        string _name,
        string _symbol,
        uint256 _totalSupply,
        uint256 _swapStartTimestamp,
        uint256 _swapEndTimestamp
    );
    event Swap(address _swapper, uint256 _amountToBurn, uint256 _amountToMint);

    constructor(
        address _autoFarm,
        IERC20 _prevCzodiac,
        string memory _name,
        string memory _symbol,
        uint256 _swapStartTimestamp,
        uint256 _swapEndTimestamp
    ) {
        name = _name;
        symbol = _symbol;
        prevCzodiac = _prevCzodiac;
        swapStartTimestamp = _swapStartTimestamp;
        swapEndTimestamp = _swapEndTimestamp;
        autoFarm = _autoFarm;

        if (address(_prevCzodiac) == address(0)) {
            _tTotal = 8 * 10**12 * 10**18;
            _rTotal = (MAX - (MAX % _tTotal));
            _rOwned[_msgSender()] = _rTotal;
            // Do not enable global rewards until the liquidity has been added to prevent low price.
            // Disable transfers except for owner to allow creation of initial liquidity pools safely.
        } else {
            _tTotal = _prevCzodiac.totalSupply().mul(10000).div(_swapBasisRate);
            _rTotal = (MAX - (MAX % _tTotal));
            _rOwned[address(this)] = _rTotal;
            areTransfersEnabled = true;
            globalRewardsEnabled = true;
        }

        //exclude owner, contract, burn address from fee & rewards
        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;
        _isExcludedFromFee[address(0)] = true;
        _isExcludedFromFee[_autoFarm] = true;

        excludeFromReward(owner());
        excludeFromReward(address(this));
        excludeFromReward(address(0));
        excludeFromReward(_autoFarm);

        emit Creation(
            _autoFarm,
            _prevCzodiac,
            _name,
            _symbol,
            _tTotal,
            _swapStartTimestamp,
            _swapEndTimestamp
        );
    }

    function swapFor(address[] calldata swappers) external onlyOwner {
        for (uint16 i; i < swappers.length; i++) {
            _swap(swappers[i]);
        }
    }

    function swap() external {
        _swap(_msgSender());
    }

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

    function balanceOf(address account) public view override returns (uint256) {
        if (_isExcluded[account]) return _tOwned[account];
        return tokenFromReflection(_rOwned[account]);
    }

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

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

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

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(sender, recipient, amount);
        if (_msgSender() != address(nextCzodiac))
            _approve(
                sender,
                _msgSender(),
                _allowances[sender][_msgSender()].sub(
                    amount,
                    "ERC20: transfer amount exceeds allowance"
                )
            );
        return true;
    }

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

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

    function isExcludedFromReward(address account) public view returns (bool) {
        return _isExcluded[account];
    }

    function deliver(uint256 tAmount) public {
        address sender = _msgSender();
        require(
            !_isExcluded[sender],
            "Excluded addresses cannot call this function"
        );
        (, RValues memory values) = _getValues(tAmount, true);
        _rOwned[sender] = _rOwned[sender].sub(values.rAmount);
        _rTotal = _rTotal.sub(values.rAmount);
        emit HolderRewardsEvent(tAmount);
    }

    function reflectionFromToken(uint256 tAmount, bool deductTransferFee)
        public
        view
        returns (uint256)
    {
        require(tAmount <= _tTotal, "Amount must be less than supply");
        (, RValues memory values) = _getValues(tAmount, true);
        if (!deductTransferFee) {
            return values.rAmount;
        } else {
            return values.rTransferAmount;
        }
    }

    function tokenFromReflection(uint256 rAmount)
        public
        view
        returns (uint256)
    {
        require(
            rAmount <= _rTotal,
            "Amount must be less than total reflections"
        );
        uint256 currentRate = _getRate();
        return rAmount.div(currentRate);
    }

    function excludeFromReward(address account) public onlyOwner() {
        require(!_isExcluded[account], "Account is already excluded");
        if (_rOwned[account] > 0) {
            _tOwned[account] = tokenFromReflection(_rOwned[account]);
        }
        _isExcluded[account] = true;
        _excluded.push(account);
    }

    function includeInReward(address account) external onlyOwner() {
        require(_isExcluded[account], "Account is already excluded");
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_excluded[i] == account) {
                _excluded[i] = _excluded[_excluded.length - 1];
                _tOwned[account] = 0;
                _isExcluded[account] = false;
                _excluded.pop();
                break;
            }
        }
    }

    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) private {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) private {
        require(
            areTransfersEnabled || from == owner() || to == owner(),
            "CZodiac: Transfers not yet enabled"
        );
        require(amount > 0, "Transfer amount must be greater than zero");

        //indicates if fee should be deducted from transfer
        bool takeFee = true;

        // if global fees disabled, or if any account belongs to _isExcludedFromFee account then remove the fee
        if (
            _isExcludedFromFee[from] ||
            _isExcludedFromFee[to] ||
            !globalRewardsEnabled
        ) {
            takeFee = false;
        }

        //transfer amount, it will take tax, burn, liquidity fee
        _tokenTransfer(from, to, amount, takeFee);
    }

    //this method is responsible for taking all fee, if takeFee is true
    function _tokenTransfer(
        address sender,
        address recipient,
        uint256 amount,
        bool takeFee
    ) private {
        if (_isExcluded[sender] && !_isExcluded[recipient]) {
            _transferFromExcluded(sender, recipient, amount, takeFee);
        } else if (!_isExcluded[sender] && _isExcluded[recipient]) {
            _transferToExcluded(sender, recipient, amount, takeFee);
        } else if (!_isExcluded[sender] && !_isExcluded[recipient]) {
            _transferStandard(sender, recipient, amount, takeFee);
        } else if (_isExcluded[sender] && _isExcluded[recipient]) {
            _transferBothExcluded(sender, recipient, amount, takeFee);
        } else {
            _transferStandard(sender, recipient, amount, takeFee);
        }
    }

    function _transferStandard(
        address sender,
        address recipient,
        uint256 tAmount,
        bool takeFee
    ) private {
        (TValues memory tValues, RValues memory rValues) =
            _getValues(tAmount, takeFee);
        _rOwned[sender] = _rOwned[sender].sub(rValues.rAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rValues.rTransferAmount);
        _takeLpAndDevRewards(tValues.tLpReward, tValues.tDevReward);
        _reflectFee(
            rValues.rFee,
            rValues.rBurn,
            tValues.tHolderReward,
            tValues.tBurn
        );
        emit Transfer(sender, recipient, tValues.tTransferAmount);
    }

    function _transferToExcluded(
        address sender,
        address recipient,
        uint256 tAmount,
        bool takeFee
    ) private {
        (TValues memory tValues, RValues memory rValues) =
            _getValues(tAmount, takeFee);
        _rOwned[sender] = _rOwned[sender].sub(rValues.rAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tValues.tTransferAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rValues.rTransferAmount);
        _takeLpAndDevRewards(tValues.tLpReward, tValues.tDevReward);
        _reflectFee(
            rValues.rFee,
            rValues.rBurn,
            tValues.tHolderReward,
            tValues.tBurn
        );
        emit Transfer(sender, recipient, tValues.tTransferAmount);
    }

    function _transferFromExcluded(
        address sender,
        address recipient,
        uint256 tAmount,
        bool takeFee
    ) private {
        (TValues memory tValues, RValues memory rValues) =
            _getValues(tAmount, takeFee);
        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rValues.rAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rValues.rTransferAmount);
        _takeLpAndDevRewards(tValues.tLpReward, tValues.tDevReward);
        _reflectFee(
            rValues.rFee,
            rValues.rBurn,
            tValues.tHolderReward,
            tValues.tBurn
        );
        emit Transfer(sender, recipient, tValues.tTransferAmount);
    }

    function _transferBothExcluded(
        address sender,
        address recipient,
        uint256 tAmount,
        bool takeFee
    ) private {
        (TValues memory tValues, RValues memory rValues) =
            _getValues(tAmount, takeFee);
        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rValues.rAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tValues.tTransferAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rValues.rTransferAmount);
        _takeLpAndDevRewards(tValues.tLpReward, tValues.tDevReward);
        _reflectFee(
            rValues.rFee,
            rValues.rBurn,
            tValues.tHolderReward,
            tValues.tBurn
        );
        emit Transfer(sender, recipient, tValues.tTransferAmount);
    }

    function _reflectFee(
        uint256 rFee,
        uint256 rBurn,
        uint256 tFee,
        uint256 tBurn
    ) private {
        _rTotal = _rTotal.sub(rFee).sub(rBurn);
        _tTotal = _tTotal.sub(tBurn);
        emit HolderRewardsEvent(tFee);
        emit BurnEvent(tBurn);
    }

    function _getValues(uint256 tAmount, bool takeFee)
        private
        view
        returns (TValues memory tValues, RValues memory rValues)
    {
        tValues = _getTValues(tAmount, takeFee);
        rValues = _getRValues(tAmount, tValues);
    }

    function _getTValues(uint256 tAmount, bool takeFee)
        private
        pure
        returns (TValues memory values)
    {
        values.tHolderReward = takeFee ? calculateHolderReward(tAmount) : 0;
        values.tBurn = takeFee ? calculateBurn(tAmount) : 0;
        values.tLpReward = takeFee ? calculateLpReward(tAmount) : 0;
        values.tDevReward = takeFee ? calculateDevReward(tAmount) : 0;
        values.tTransferAmount = tAmount
            .sub(values.tHolderReward)
            .sub(values.tBurn)
            .sub(values.tLpReward)
            .sub(values.tDevReward);
    }

    function _getRValues(uint256 tAmount, TValues memory tValues)
        private
        view
        returns (RValues memory values)
    {
        values.rate = _getRate();
        values.rAmount = tAmount.mul(values.rate);
        values.rFee = tValues.tHolderReward.mul(values.rate);
        values.rBurn = tValues.tBurn.mul(values.rate);
        values.rLpReward = tValues.tLpReward.mul(values.rate);
        values.rDevReward = tValues.tDevReward.mul(values.rate);
        values.rTransferAmount = values
            .rAmount
            .sub(values.rFee)
            .sub(values.rBurn)
            .sub(values.rLpReward)
            .sub(values.rDevReward);
    }

    function _getRate() private view returns (uint256) {
        (uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
        return rSupply.div(tSupply);
    }

    function _getCurrentSupply() private view returns (uint256, uint256) {
        uint256 rSupply = _rTotal;
        uint256 tSupply = _tTotal;
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (
                _rOwned[_excluded[i]] > rSupply ||
                _tOwned[_excluded[i]] > tSupply
            ) return (_rTotal, _tTotal);
            rSupply = rSupply.sub(_rOwned[_excluded[i]]);
            tSupply = tSupply.sub(_tOwned[_excluded[i]]);
        }
        if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
        return (rSupply, tSupply);
    }

    function _takeLpAndDevRewards(uint256 tLiquidity, uint256 tDevRewards)
        private
    {
        uint256 currentRate = _getRate();

        //take lp providers reward
        uint256 rLiquidity = tLiquidity.mul(currentRate);
        _rOwned[autoFarm] = _rOwned[autoFarm].add(rLiquidity);
        if (_isExcluded[autoFarm])
            _tOwned[autoFarm] = _tOwned[autoFarm].add(tLiquidity);
        emit LPRewardsEvent(tLiquidity);

        //take dev rewards
        uint256 rDevRewards = tDevRewards.mul(currentRate);
        _rOwned[owner()] = _rOwned[owner()].add(rDevRewards);
        if (_isExcluded[owner()])
            _tOwned[owner()] = _tOwned[owner()].add(tDevRewards);
        emit DevRewardsEvent(tDevRewards);
    }

    function _swap(address swapper) private {
        require(
            address(prevCzodiac) != address(0),
            "CzodiacToken: No previous czodiac"
        );
        require(
            block.timestamp >= swapStartTimestamp,
            "CzodiacToken: Swap not yet open"
        );
        require(
            block.timestamp <= swapEndTimestamp,
            "CzodiacToken: Swap closed"
        );
        uint256 amountToBurn = prevCzodiac.balanceOf(swapper);
        require(
            amountToBurn > 0,
            "CzodiacToken: No tokens to swap from previous contract"
        );
        uint256 amountToMint = amountToBurn.mul(10000).div(_swapBasisRate);
        prevCzodiac.transferFrom(swapper, address(this), amountToBurn);
        _transfer(address(this), swapper, amountToMint);
        emit Swap(swapper, amountToBurn, amountToMint);
    }

    function calculateHolderReward(uint256 _amount)
        private
        pure
        returns (uint256)
    {
        return _amount.mul(_holderRewardBasis).div(10**4);
    }

    function calculateBurn(uint256 _amount) private pure returns (uint256) {
        return _amount.mul(_burnBasis).div(10**4);
    }

    function calculateLpReward(uint256 _amount) private pure returns (uint256) {
        return _amount.mul(_lpRewardBasis).div(10**4);
    }

    function calculateDevReward(uint256 _amount)
        private
        pure
        returns (uint256)
    {
        return _amount.mul(_devRewardBasis).div(10**4);
    }

    function isExcludedFromFee(address account) public view returns (bool) {
        return _isExcludedFromFee[account];
    }

    function excludeFromFee(address account) external onlyOwner {
        _isExcludedFromFee[account] = true;
    }

    function includeInFee(address account) external onlyOwner {
        _isExcludedFromFee[account] = false;
    }

    function setNextCzodiac(IERC20 _nextCzodiac) external onlyOwner {
        _isExcludedFromFee[address(_nextCzodiac)];
        nextCzodiac = _nextCzodiac;
    }

    function setGlobalRewardsEnabled(bool _globalRewardsEnabled)
        external
        onlyOwner
    {
        globalRewardsEnabled = _globalRewardsEnabled;
    }

    function setTransfersEnabled(bool _areTransfersEnabled) external onlyOwner {
        areTransfersEnabled = _areTransfersEnabled;
    }

    function setAutoFarm(address _autoFarm) external onlyOwner {
        autoFarm = _autoFarm;
    }

    function withdrawToken(IERC20 _token) external onlyOwner {
        _token.transfer(owner(), _token.balanceOf(address(this)));
    }
}


// File contracts/CZUsd.sol

// Authored by Plastic Digits
pragma solidity ^0.8.4;
contract CZUsd is Context, ERC20PresetMinterPauser, Ownable {
    using Address for address;

    IERC20 private busd;

    //Backing
    uint256 totalBusdBacking;

    //Withdraws
    mapping(uint256 => Withdraws) private userWithdraws;
    struct Withdraws {
        uint256 request;
        address requester;
        bool isFilled;
    }
    uint256 public totalWithdraws;

    //BUSD Farmer
    address public farmer;

    event WithdrawRequest(address user, uint256 id, uint256 amount);
    event FillRequest(uint256 id);
    event UpdateRewardPerSecond(uint256 valueWad, uint256 period);
    event RewardAdded(uint256 reward);

    constructor(
        string memory _name,
        string memory _symbol,
        address _farmer,
        IERC20 _busd
    ) ERC20PresetMinterPauser(_name, _symbol) Ownable() {
        busd = _busd;
        farmer = _farmer;
    }

    function deposit(uint256 _wadBusd) external {
        require(busd.transferFrom(_msgSender(), farmer, _wadBusd),"CZUsd: busd transfer failed");
        _mint(_msgSender(), _wadBusd);
    }

    function withdrawRequest(uint256 _wadZusd) external {
        require(
            _wadZusd >= 10 ether,
            "CZUsd: Must request a minimum of 10 zusd"
        );
        _burn(_msgSender(), _wadZusd);
        Withdraws storage withdraws = userWithdraws[totalWithdraws];
        withdraws.request = _wadZusd;
        withdraws.requester = _msgSender();
        totalWithdraws++;
        emit WithdrawRequest(_msgSender(), totalWithdraws - 1, _wadZusd);
        if(busd.balanceOf(address(this)) >= _wadZusd)
            _fillRequest(totalWithdraws - 1, address(this));
    }

    function fillAllRequests() external {
        fillRequests(0,totalWithdraws);
    }

    function fillRequests(uint256 start, uint256 finish) public {
        for (uint256 i; i < finish-start; i++) {
            _fillRequest(i + start,_msgSender());
        }
    }

    function fillSpecificRequest(uint256 _id) external {
        _fillRequest(_id,_msgSender());
    }

    function recoverERC20(address tokenAddress) external onlyOwner {
        require(IERC20(tokenAddress).transfer(
            owner(),
            IERC20(tokenAddress).balanceOf(address(this))
        ),"CZUsd: Recover failed.");
    }

    function setTotalBusdBacking(uint256 _wad) external {
        require(_msgSender() == farmer, "CZUsd: Sender must be farmer");
        totalBusdBacking = _wad;
    }

    function setFarmer(address _farmer) external {
        require(_msgSender() == farmer || _msgSender() == owner(), "CZUsd: Sender must be farmer");
        farmer = _farmer;
    }

    function totalBusdWithdrawsRequested() public view {
        uint256 total;
        for (uint256 i; i < totalWithdraws; i++) {
            if(!userWithdraws[i].isFilled)
                total += userWithdraws[i].request;
        }
    }

    function _fillRequest(uint256 _id, address _by) internal {
        Withdraws storage withdraws = userWithdraws[_id];
        if(withdraws.isFilled == true) return;
        withdraws.isFilled = true;
        require(busd.transferFrom(_by, withdraws.requester, withdraws.request),"CZUsd: busd transfer failed");
        emit FillRequest(_id);
    }
}


// File @chainlink/contracts/src/v0.8/interfaces/[email protected]

pragma solidity ^0.8.0;

interface AggregatorV3Interface {

  function decimals()
    external
    view
    returns (
      uint8
    );

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

  function version()
    external
    view
    returns (
      uint256
    );

  // getRoundData and latestRoundData should both raise "No data present"
  // if they do not have data to report, instead of returning unset values
  // which could be misinterpreted as actual reported values.
  function getRoundData(
    uint80 _roundId
  )
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );

  function latestRoundData()
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );

}


// File contracts/PriceConsumer.sol

// Authored by Plastic Digits
pragma solidity ^0.8.4;
contract PriceConsumer {
    AggregatorV3Interface internal priceFeed;

    constructor(address _priceFeedAggregator) {
        priceFeed = AggregatorV3Interface(_priceFeedAggregator);
    }

    /**
     * Returns the latest price
     */
    function getPrice() public view returns (uint256) {
        (
            ,
            //roundID
            int256 price, //startedAt //timeStamp
            ,
            ,

        ) =
            //answeredInRound
            priceFeed.latestRoundData();
        require(price > 0, "PriceConsumer: Negative Price.");
        return uint256(price);
    }

    /**
     * Returns the latest price
     */
    function getDecimals() public view returns (uint8) {
        return priceFeed.decimals();
    }
}


// File @openzeppelin/contracts/utils/math/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}


// File @openzeppelin/contracts/token/ERC20/utils/[email protected]


pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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


// File contracts/CZUsdBorrow.sol

// Authored by Plastic Digits
// Credit to Alchemix
pragma solidity ^0.8.4;
contract CZUsdBorrow is Context, Ownable, PriceConsumer {
    using SafeERC20 for IERC20;
    using SafeERC20 for IERC20Metadata;
    using SafeERC20 for ERC20PresetMinterPauser;
    using Address for address;

    IERC20Metadata public collateralAsset;
    ERC20PresetMinterPauser public czusd;

    mapping(address => BalanceSheet) public balanceSheets;
    struct BalanceSheet {
        uint128 collateral;
        uint128 borrow;
    }

    uint256 public feeBasis = 500;
    address public farmer;

    constructor(
        ERC20PresetMinterPauser _czusd,
        IERC20Metadata _collateralAsset,
        address _linkUsdPriceFeed
    ) PriceConsumer(_linkUsdPriceFeed) {
        collateralAsset = _collateralAsset;
        czusd = _czusd;
        farmer = msg.sender;
    }

    function collateralValue(address _for) public view returns (uint256 value) {
        return
            (balanceSheets[_for].collateral * getPrice()) /
            10**(getDecimals() + collateralAsset.decimals());
    }

    function setFeeBasis(uint256 _value) external onlyOwner {
        feeBasis = _value;
    }

    function deposit(uint128 _amount) public {
        depositFor(_msgSender(), _amount);
    }

    function borrow(uint128 _amount) public {
        borrowFor(_msgSender(), _amount);
    }

    function repay(uint128 _amount) public {
        repayFor(_msgSender(), _amount);
    }

    //TODO: add withdraw

    function depositFor(address _for, uint128 _amount) public {
        collateralAsset.safeTransferFrom(
            _msgSender(),
            address(this),
            uint256(_amount)
        );
        BalanceSheet storage balanceSheet = balanceSheets[_for];
        balanceSheet.collateral += _amount;
    }

    function borrowFor(address _for, uint128 _amount) public {
        BalanceSheet storage balanceSheet = balanceSheets[_for];
        uint128 value = uint128(collateralValue(_for));
        require(
            value >= balanceSheet.borrow + _amount,
            "CZUsdBorrow: Not enough collateral."
        );
        balanceSheet.borrow += _amount;

        uint256 fee = (_amount * feeBasis) / 10000;
        czusd.mint(_for, _amount - fee);
        czusd.mint(farmer, fee);
    }

    function repayFor(address _for, uint128 _amount) public {
        czusd.burnFrom(_msgSender(), uint256(_amount));
        BalanceSheet storage balanceSheet = balanceSheets[_for];
        balanceSheet.borrow -= _amount;
    }

    //TODO: Add withdrawFor

    function recoverERC20(address tokenAddress) external {
        require(_msgSender() == farmer, "Sender must be farmer");
        require(tokenAddress != address(this), "Cannot withdraw zusd");
        IERC20(tokenAddress).safeTransfer(
            farmer,
            IERC20(tokenAddress).balanceOf(address(this))
        );
    }

    function changeFarmer(address _to) external onlyOwner {
        farmer = _to;
    }
}


// File contracts/CZUsdBorrowBnb.sol

// Authored by Plastic Digits
// Credit to Alchemix
pragma solidity ^0.8.4;
contract CZUsdBorrowBnb is CZUsdBorrow {
    constructor(
        ERC20PresetMinterPauser _czusd,
        IERC20Metadata _WBNB,
        address _usdPriceFeedForBNB
    ) CZUsdBorrow(_czusd, _WBNB, _usdPriceFeedForBNB) {}

    //TODO: Add BNB wrap/unwrap
}


// File contracts/LockedSale.sol

// Authored by Plastic Digits
pragma solidity ^0.8.4;
contract LockedSale is Context, Ownable {
    using Address for address;
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    uint256 public startTime;
    uint256 public endTime;
    uint256 public minPurchase;
    uint256 public maxPurchase;
    uint256 public maxSaleSize;
    uint256 public tokensForSale;

    IERC20 token;

    bool public whitelistRequired = true;

    uint256 public totalBuyers;
    uint256 public totalPurchases;

    mapping(address => bool) public _isWhitelisted;
    mapping(address => uint256) public deposits;
    mapping(address => uint256) public buyerIndex;
    address[] public buyers;

    uint256 public distributedCount;

    event SetState(
        uint256 _startTime,
        uint256 _endTime,
        uint256 _minPurchase,
        uint256 _maxPurchase,
        uint256 _tokensForSale,
        IERC20 _token
    );

    event Whitelist(address _buyer);
    event Unwhitelist(address _buyer);
    event Deposit(address _buyer, uint256 _value);

    constructor(
        uint256 _startTime,
        uint256 _endTime,
        uint256 _minPurchase,
        uint256 _maxPurchase,
        uint256 _tokensForSale,
        uint256 _maxSaleSize,
        IERC20 _token
    ) Ownable() {
        setState(
            _startTime,
            _endTime,
            _minPurchase,
            _maxPurchase,
            _tokensForSale,
            _maxSaleSize,
            _token
        );
    }

    receive() external payable {
        _deposit(_msgSender());
    }

    function setState(
        uint256 _startTime,
        uint256 _endTime,
        uint256 _minPurchase,
        uint256 _maxPurchase,
        uint256 _tokensForSale,
        uint256 _maxSaleSize,
        IERC20 _token
    ) public onlyOwner {
        require(_startTime < _endTime, "LockedSale: Start must be before end.");
        require(
            _minPurchase < _maxPurchase,
            "LockedSale: Minimum purchase must be less than or equal to maximum purchase."
        );

        startTime = _startTime;
        endTime = _endTime;
        minPurchase = _minPurchase;
        maxPurchase = _maxPurchase;
        tokensForSale = _tokensForSale;
        maxSaleSize = _maxSaleSize;
        token = _token;

        emit SetState(
            _startTime,
            _endTime,
            _minPurchase,
            _maxPurchase,
            _tokensForSale,
            _token
        );
    }

    function setWhitelistRequired(bool _value) external onlyOwner {
        whitelistRequired = _value;
    }

    function isWhitelisted(address _buyer) public view returns (bool) {
        if (!whitelistRequired) return true;
        return _isWhitelisted[_buyer];
    }

    function getState()
        external
        view
        returns (
            uint256 _startTime,
            uint256 _endTime,
            uint256 _minPurchase,
            uint256 _maxPurchase,
            uint256 _tokensForSale,
            IERC20 _token,
            uint256 _totalBuyers,
            uint256 _totalPurchases
        )
    {
        _startTime = startTime;
        _endTime = endTime;
        _minPurchase = minPurchase;
        _maxPurchase = maxPurchase;
        _tokensForSale = tokensForSale;
        _token = token;
        _totalBuyers = totalBuyers;
        _totalPurchases = totalPurchases;
    }

    function whitelist(address[] calldata _buyers) external onlyOwner {
        for (uint256 i = 0; i < _buyers.length; i++) {
            _isWhitelisted[_buyers[i]] = true;
            emit Whitelist(_buyers[i]);
        }
    }

    function unwhitelist(address[] calldata _buyers) external onlyOwner {
        for (uint256 i = 0; i < _buyers.length; i++) {
            _isWhitelisted[_buyers[i]] = false;
            emit Unwhitelist(_buyers[i]);
        }
    }

    function deposit() external payable {
        _deposit(_msgSender());
    }

    function depositFor(address _buyer) external payable {
        _deposit(_buyer);
    }

    function distribute(uint256 _count) external onlyOwner {
        if (_count.add(distributedCount) > buyers.length) {
            _count = buyers.length.sub(distributedCount);
        }
        uint256 rateWad = tokensForSale.mul(10**18).div(maxSaleSize);
        for (
            uint256 i = distributedCount;
            i < distributedCount.add(_count);
            i++
        ) {
            _distribute(i, rateWad);
        }
        distributedCount = distributedCount.add(_count);
    }

    function withdraw() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    function withdrawToken(IERC20 _token) external onlyOwner {
        _token.transfer(owner(), _token.balanceOf(address(this)));
    }

    function _distribute(uint256 _index, uint256 _rateWad) internal {
        address account = buyers[_index];
        token.safeTransfer(
            account,
            deposits[account].mul(_rateWad).div(10**18)
        );
    }

    function _deposit(address _buyer) internal {
        require(isWhitelisted(_buyer), "LockedSale: Buyer is not whitelisted");
        require(block.timestamp >= startTime, "LockedSale: Sale not yet open.");
        require(block.timestamp <= endTime, "LockedSale: Sale has closed.");
        require(
            msg.value >= minPurchase && msg.value > 0,
            "LockedSale: Cannot buy less than minPurchase."
        );
        if (deposits[_buyer] == 0) {
            buyers.push(_buyer);
            buyerIndex[_buyer] = totalBuyers;
            totalBuyers = totalBuyers.add(1);
        }
        deposits[_buyer] = deposits[_buyer].add(msg.value);
        totalPurchases = totalPurchases.add(msg.value);
        require(
            deposits[_buyer] <= maxPurchase,
            "LockedSale: Cannot buy more than maxPurchase."
        );
        require(
            totalPurchases <= maxSaleSize,
            "LockedSale: Cannot buy more than maxSaleSize."
        );
        emit Deposit(_buyer, msg.value);
    }
}


// File contracts/Checkpoints.sol

// Authored by Plastic Digits
// Credit to minime token
pragma solidity ^0.8.4;

library Checkpoints {
    struct Checkpoint {
        uint128 fromTime;
        uint128 value;
    }

    function getCheckpointValueAt(
        Checkpoint[] storage checkpoints,
        uint256 _time
    ) internal view returns (uint256) {
        // This case should be handled by caller
        if (checkpoints.length == 0) return 0;

        // Use the latest checkpoint
        if (_time >= checkpoints[checkpoints.length - 1].fromTime)
            return checkpoints[checkpoints.length - 1].value;

        // Use the oldest checkpoint
        if (_time < checkpoints[0].fromTime) return checkpoints[0].value;

        // Binary search of the value in the array
        uint256 min = 0;
        uint256 max = checkpoints.length - 1;
        while (max > min) {
            uint256 mid = (max + min + 1) / 2;
            if (checkpoints[mid].fromTime <= _time) {
                min = mid;
            } else {
                max = mid - 1;
            }
        }
        return checkpoints[min].value;
    }

    function updateCheckpointValueAtNow(
        Checkpoint[] storage checkpoints,
        uint256 _oldValue,
        uint256 _value
    ) internal {
        require(_value <= ~uint128(0));
        require(_oldValue <= ~uint128(0));

        if (checkpoints.length == 0) {
            Checkpoint storage genesis = checkpoints[checkpoints.length + 1];
            genesis.fromTime = uint128(block.timestamp - 1);
            genesis.value = uint128(_oldValue);
        }

        if (checkpoints[checkpoints.length - 1].fromTime < block.timestamp) {
            Checkpoint storage newCheckPoint =
                checkpoints[checkpoints.length + 1];
            newCheckPoint.fromTime = uint128(block.timestamp);
            newCheckPoint.value = uint128(_value);
        } else {
            Checkpoint storage oldCheckPoint =
                checkpoints[checkpoints.length - 1];
            oldCheckPoint.value = uint128(_value);
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_autoFarm","type":"address"},{"internalType":"contract IERC20","name":"_prevCzodiac","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_swapStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"_swapEndTimestamp","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"BurnEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_autofarm","type":"address"},{"indexed":false,"internalType":"contract IERC20","name":"_prevCzodiac","type":"address"},{"indexed":false,"internalType":"string","name":"_name","type":"string"},{"indexed":false,"internalType":"string","name":"_symbol","type":"string"},{"indexed":false,"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_swapStartTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_swapEndTimestamp","type":"uint256"}],"name":"Creation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"DevRewardsEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"HolderRewardsEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"LPRewardsEvent","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":false,"internalType":"address","name":"_swapper","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amountToBurn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountToMint","type":"uint256"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"areTransfersEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoFarm","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"}],"name":"deliver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"globalRewardsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextCzodiac","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prevCzodiac","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"},{"internalType":"bool","name":"deductTransferFee","type":"bool"}],"name":"reflectionFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_autoFarm","type":"address"}],"name":"setAutoFarm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_globalRewardsEnabled","type":"bool"}],"name":"setGlobalRewardsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_nextCzodiac","type":"address"}],"name":"setNextCzodiac","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_areTransfersEnabled","type":"bool"}],"name":"setTransfersEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEndTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"swappers","type":"address[]"}],"name":"swapFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLiquidityProviderRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b5060405162003369380380620033698339810160408190526200003491620008f0565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35083516200008a906009906020870190620007bb565b508251620000a090600a906020860190620007bb565b50606085901b6001600160601b03191660805260a082905260c0819052600d80546001600160a01b0319166001600160a01b038881169190911790915585166200012e576c64f964e68233a76f52000000006007819055620001059060001962000b1e565b620001139060001962000a76565b60088190553360009081526001602052604090205562000220565b620001da62013880620001c6612710886001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200017757600080fd5b505afa1580156200018c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001b2919062000994565b6200034860201b620012281790919060201c565b6200035d60201b620012341790919060201c565b6007819055620001ed9060001962000b1e565b620001fb9060001962000a76565b600881905530600090815260016020526040902055600b805461ffff19166101011790555b600160046000620002396000546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff1996871617905530815260049093528183208054851660019081179091557f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec8054861682179055908a16835291208054909216179055620002d3620002cd6000546001600160a01b031690565b6200036b565b620002de306200036b565b620002ea60006200036b565b620002f5866200036b565b7fef59e4ec077c19dee64cbac06276a805f12e0f5b3c1d21f43c82fdfdfa884013868686866007548787604051620003349796959493929190620009db565b60405180910390a150505050505062000b90565b600062000356828462000a54565b9392505050565b600062000356828462000a3d565b6000546001600160a01b03163314620003cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615620004365760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401620003c2565b6001600160a01b0381166000908152600160205260409020541562000493576001600160a01b0381166000908152600160205260409020546200047990620004f9565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b6000600854821115620005625760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401620003c2565b60006200056e6200058a565b90506200035681846200035d60201b620012341790919060201c565b6000808062000598620005bd565b91509150620005b681836200035d60201b620012341790919060201c565b9250505090565b6008546007546000918291825b6006548110156200076d57826001600060068481548110620005fc57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806200067757508160026000600684815481106200065057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b156200068e57600854600754945094505050509091565b620006f16001600060068481548110620006b857634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352828101939093526040909101902054859162001240620007ad821b17901c565b92506200075660026000600684815481106200071d57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352828101939093526040909101902054849162001240620007ad821b17901c565b915080620007648162000b00565b915050620005ca565b506200078c6007546008546200035d60201b620012341790919060201c565b821015620007a4576008546007549350935050509091565b90939092509050565b600062000356828462000a76565b828054620007c99062000ac3565b90600052602060002090601f016020900481019282620007ed576000855562000838565b82601f106200080857805160ff191683800117855562000838565b8280016001018555821562000838579182015b82811115620008385782518255916020019190600101906200081b565b50620008469291506200084a565b5090565b5b808211156200084657600081556001016200084b565b600082601f83011262000872578081fd5b81516001600160401b03808211156200088f576200088f62000b61565b604051601f8301601f19908116603f01168101908282118183101715620008ba57620008ba62000b61565b81604052838152866020858801011115620008d3578485fd5b620008e684602083016020890162000a90565b9695505050505050565b60008060008060008060c0878903121562000909578182fd5b8651620009168162000b77565b6020880151909650620009298162000b77565b60408801519095506001600160401b038082111562000946578384fd5b620009548a838b0162000861565b955060608901519150808211156200096a578384fd5b506200097989828a0162000861565b9350506080870151915060a087015190509295509295509295565b600060208284031215620009a6578081fd5b5051919050565b60008151808452620009c781602086016020860162000a90565b601f01601f19169290920160200192915050565b6001600160a01b0388811682528716602082015260e06040820181905260009062000a0990830188620009ad565b828103606084015262000a1d8188620009ad565b6080840196909652505060a081019290925260c090910152949350505050565b60008262000a4f5762000a4f62000b4b565b500490565b600081600019048311821515161562000a715762000a7162000b35565b500290565b60008282101562000a8b5762000a8b62000b35565b500390565b60005b8381101562000aad57818101518382015260200162000a93565b8381111562000abd576000848401525b50505050565b600181811c9082168062000ad857607f821691505b6020821081141562000afa57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000b175762000b1762000b35565b5060010190565b60008262000b305762000b3062000b4b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811462000b8d57600080fd5b50565b60805160601c60a05160c05161278362000be66000396000818161027d01526116750152600081816104d201526116050152600081816103f80152818161158501528181611705015261183c01526127836000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80636993eb591161013057806395d89b41116100b8578063c365c6901161007c578063c365c6901461052d578063cedff53914610536578063dd62ed3e14610549578063ea2f0b3714610582578063f2fde38b1461059557600080fd5b806395d89b41146104c557806398b0eb18146104cd578063a457c2d7146104f4578063a9059cbb14610507578063abfda7b81461051a57600080fd5b80637adc55d2116100ff5780637adc55d21461045a5780638119c0651461046d57806388f820201461047557806389476069146104a15780638da5cb5b146104b457600080fd5b80636993eb59146103f35780636d37261c1461043257806370a082311461043f578063715018a61461045257600080fd5b80633685d419116101be5780634549b039116101825780634549b0391461037b57806351fc680c1461038e57806352390c02146103a15780635342acb4146103b457806368cfbb7d146103e057600080fd5b80633685d4191461031d578063379ef1951461033057806339509351146103425780633bd5d17314610355578063437823ec1461036857600080fd5b806321f7f26a1161020557806321f7f26a146102b557806323b872dd146102ca57806326b9ce13146102dd5780632d838119146102f0578063313ce5671461030357600080fd5b806306fdde0314610237578063095ea7b3146102555780630bd622e01461027857806318160ddd146102ad575b600080fd5b61023f6105a8565b60405161024c9190612556565b60405180910390f35b61026861026336600461242f565b610636565b604051901515815260200161024c565b61029f7f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161024c565b60075461029f565b6102c86102c336600461239b565b61064d565b005b6102686102d83660046123ef565b6106a8565b6102c86102eb3660046124ca565b61072c565b61029f6102fe366004612502565b610770565b61030b601281565b60405160ff909116815260200161024c565b6102c861032b36600461239b565b6107f4565b600b5461026890610100900460ff1681565b61026861035036600461242f565b6109e3565b6102c8610363366004612502565b610a19565b6102c861037636600461239b565b610b32565b61029f610389366004612532565b610b80565b6102c861039c36600461245a565b610bff565b6102c86103af36600461239b565b610c90565b6102686103c236600461239b565b6001600160a01b031660009081526004602052604090205460ff1690565b6102c86103ee36600461239b565b610de3565b61041a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161024c565b600b546102689060ff1681565b61029f61044d36600461239b565b610e2f565b6102c8610e8e565b600d5461041a906001600160a01b031681565b6102c8610f02565b61026861048336600461239b565b6001600160a01b031660009081526005602052604090205460ff1690565b6102c86104af36600461239b565b610f0d565b6000546001600160a01b031661041a565b61023f61104d565b61029f7f000000000000000000000000000000000000000000000000000000000000000081565b61026861050236600461242f565b61105a565b61026861051536600461242f565b6110a9565b6102c86105283660046124ca565b6110b6565b61029f600c5481565b600e5461041a906001600160a01b031681565b61029f6105573660046123b7565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6102c861059036600461239b565b6110f3565b6102c86105a336600461239b565b61113e565b600980546105b59061264c565b80601f01602080910402602001604051908101604052809291908181526020018280546105e19061264c565b801561062e5780601f106106035761010080835404028352916020019161062e565b820191906000526020600020905b81548152906001019060200180831161061157829003601f168201915b505050505081565b600061064333848461124c565b5060015b92915050565b6000546001600160a01b031633146106805760405162461bcd60e51b8152600401610677906125a9565b60405180910390fd5b6001600160a01b031660008190526004602052600e80546001600160a01b0319169091179055565b60006106b5848484611370565b600e546001600160a01b0316336001600160a01b03161461072257610722843361071d85604051806060016040528060288152602001612701602891396001600160a01b038a16600090815260036020908152604080832033845290915290205491906114cf565b61124c565b5060019392505050565b6000546001600160a01b031633146107565760405162461bcd60e51b8152600401610677906125a9565b600b80549115156101000261ff0019909216919091179055565b60006008548211156107d75760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610677565b60006107e16114fb565b90506107ed8382611234565b9392505050565b6000546001600160a01b0316331461081e5760405162461bcd60e51b8152600401610677906125a9565b6001600160a01b03811660009081526005602052604090205460ff166108865760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610677565b60005b6006548110156109df57816001600160a01b0316600682815481106108be57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614156109cd57600680546108e990600190612635565b8154811061090757634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600680546001600160a01b03909216918390811061094157634e487b7160e01b600052603260045260246000fd5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600282526040808220829055600590925220805460ff1916905560068054806109a757634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555050565b806109d7816126a9565b915050610889565b5050565b3360008181526003602090815260408083206001600160a01b0387168452909152812054909161064391859061071d908661151e565b3360008181526005602052604090205460ff1615610a8e5760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b6064820152608401610677565b6000610a9b83600161152a565b6020808201516001600160a01b03861660009081526001909252604090912054919350610ac89250611240565b6001600160a01b038316600090815260016020908152604090912091909155810151600854610af691611240565b6008556040518381527f814ebaaf67c81d4582b58af5e9d82eb8b79f5b1be362a835e9d06c092bb8ae35906020015b60405180910390a1505050565b6000546001600160a01b03163314610b5c5760405162461bcd60e51b8152600401610677906125a9565b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6000600754831115610bd45760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610677565b6000610be184600161152a565b91505082610bf457602001519050610647565b604001519050610647565b6000546001600160a01b03163314610c295760405162461bcd60e51b8152600401610677906125a9565b60005b61ffff8116821115610c8b57610c7983838361ffff16818110610c5f57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c74919061239b565b611583565b80610c8381612687565b915050610c2c565b505050565b6000546001600160a01b03163314610cba5760405162461bcd60e51b8152600401610677906125a9565b6001600160a01b03811660009081526005602052604090205460ff1615610d235760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610677565b6001600160a01b03811660009081526001602052604090205415610d7d576001600160a01b038116600090815260016020526040902054610d6390610770565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b6000546001600160a01b03163314610e0d5760405162461bcd60e51b8152600401610677906125a9565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811660009081526005602052604081205460ff1615610e6c57506001600160a01b031660009081526002602052604090205490565b6001600160a01b03821660009081526001602052604090205461064790610770565b6000546001600160a01b03163314610eb85760405162461bcd60e51b8152600401610677906125a9565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610f0b33611583565b565b6000546001600160a01b03163314610f375760405162461bcd60e51b8152600401610677906125a9565b806001600160a01b031663a9059cbb610f586000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610f9757600080fd5b505afa158015610fab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fcf919061251a565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561101557600080fd5b505af1158015611029573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109df91906124e6565b600a80546105b59061264c565b6000610643338461071d85604051806060016040528060258152602001612729602591393360009081526003602090815260408083206001600160a01b038d16845290915290205491906114cf565b6000610643338484611370565b6000546001600160a01b031633146110e05760405162461bcd60e51b8152600401610677906125a9565b600b805460ff1916911515919091179055565b6000546001600160a01b0316331461111d5760405162461bcd60e51b8152600401610677906125a9565b6001600160a01b03166000908152600460205260409020805460ff19169055565b6000546001600160a01b031633146111685760405162461bcd60e51b8152600401610677906125a9565b6001600160a01b0381166111cd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610677565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006107ed8284612616565b60006107ed82846125f6565b60006107ed8284612635565b6001600160a01b0383166112ae5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610677565b6001600160a01b03821661130f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610677565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600b54610100900460ff168061139357506000546001600160a01b038481169116145b806113ab57506000546001600160a01b038381169116145b6114025760405162461bcd60e51b815260206004820152602260248201527f435a6f646961633a205472616e7366657273206e6f742079657420656e61626c604482015261195960f21b6064820152608401610677565b600081116114645760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610677565b6001600160a01b03831660009081526004602052604090205460019060ff16806114a657506001600160a01b03831660009081526004602052604090205460ff165b806114b45750600b5460ff16155b156114bd575060005b6114c98484848461190d565b50505050565b600081848411156114f35760405162461bcd60e51b81526004016106779190612556565b505050900390565b6000806000611508611a66565b90925090506115178282611234565b9250505090565b60006107ed82846125de565b61155c6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b61156461234f565b61156e8484611c20565b915061157a8483611cfb565b90509250929050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116035760405162461bcd60e51b815260206004820152602160248201527f437a6f64696163546f6b656e3a204e6f2070726576696f757320637a6f6469616044820152606360f81b6064820152608401610677565b7f00000000000000000000000000000000000000000000000000000000000000004210156116735760405162461bcd60e51b815260206004820152601f60248201527f437a6f64696163546f6b656e3a2053776170206e6f7420796574206f70656e006044820152606401610677565b7f00000000000000000000000000000000000000000000000000000000000000004211156116e35760405162461bcd60e51b815260206004820152601960248201527f437a6f64696163546f6b656e3a205377617020636c6f736564000000000000006044820152606401610677565b6040516370a0823160e01b81526001600160a01b0382811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319060240160206040518083038186803b15801561174957600080fd5b505afa15801561175d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611781919061251a565b9050600081116117f25760405162461bcd60e51b815260206004820152603660248201527f437a6f64696163546f6b656e3a204e6f20746f6b656e7320746f207377617020604482015275199c9bdb481c1c995d9a5bdd5cc818dbdb9d1c9858dd60521b6064820152608401610677565b600061180d6201388061180784612710611228565b90611234565b6040516323b872dd60e01b81526001600160a01b038581166004830152306024830152604482018590529192507f0000000000000000000000000000000000000000000000000000000000000000909116906323b872dd90606401602060405180830381600087803b15801561188257600080fd5b505af1158015611896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ba91906124e6565b506118c6308483611370565b604080516001600160a01b0385168152602081018490529081018290527f77f92a1b6a1a11de8ca49515ad4c1fad45632dd3442167d74b90b304a3c7a75890606001610b25565b6001600160a01b03841660009081526005602052604090205460ff16801561194e57506001600160a01b03831660009081526005602052604090205460ff16155b156119645761195f84848484611dab565b6114c9565b6001600160a01b03841660009081526005602052604090205460ff161580156119a557506001600160a01b03831660009081526005602052604090205460ff165b156119b65761195f84848484611eec565b6001600160a01b03841660009081526005602052604090205460ff161580156119f857506001600160a01b03831660009081526005602052604090205460ff16155b15611a095761195f84848484611f97565b6001600160a01b03841660009081526005602052604090205460ff168015611a4957506001600160a01b03831660009081526005602052604090205460ff165b15611a5a5761195f84848484611fd4565b6114c984848484611f97565b6008546007546000918291825b600654811015611bf057826001600060068481548110611aa357634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020541180611b1c5750816002600060068481548110611af557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15611b3257600854600754945094505050509091565b611b866001600060068481548110611b5a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020548490611240565b9250611bdc6002600060068481548110611bb057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020548390611240565b915080611be8816126a9565b915050611a73565b50600754600854611c0091611234565b821015611c17576008546007549350935050509091565b90939092509050565b611c526040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b81611c5e576000611c67565b611c678361203e565b602082015281611c78576000611c81565b611c8183612051565b604082015281611c92576000611c9b565b611c9b83612064565b606082015281611cac576000611cb5565b611cb583612077565b816080018181525050611cf38160800151611ced8360600151611ced8560400151611ced87602001518a61124090919063ffffffff16565b90611240565b815292915050565b611d0361234f565b611d0b6114fb565b808252611d19908490611228565b602080830191909152815190830151611d3191611228565b608082015280516040830151611d4691611228565b60c082015280516060830151611d5b91611228565b60e082015280516080830151611d7091611228565b610100820181905260e082015160c083015160808401516020850151611da09493611ced93909284928391611240565b604082015292915050565b600080611db8848461152a565b6001600160a01b0388166000908152600260205260409020549193509150611de09085611240565b6001600160a01b03871660009081526002602090815260408083209390935583810151600190915291902054611e1591611240565b6001600160a01b03808816600090815260016020526040808220939093558383015191881681529190912054611e4a9161151e565b6001600160a01b03861660009081526001602052604090205560608201516080830151611e77919061208a565b611e9381608001518260c00151846020015185604001516122b7565b846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460000151604051611edc91815260200190565b60405180910390a3505050505050565b600080611ef9848461152a565b6020808201516001600160a01b038a1660009081526001909252604090912054929450909250611f299190611240565b6001600160a01b0380881660009081526001602090815260408083209490945585519289168252600290529190912054611f629161151e565b6001600160a01b03861660009081526002602090815260408083209390935583830151600190915291902054611e4a9161151e565b600080611fa4848461152a565b6020808201516001600160a01b038a1660009081526001909252604090912054929450909250611e159190611240565b600080611fe1848461152a565b6001600160a01b03881660009081526002602052604090205491935091506120099085611240565b6001600160a01b03871660009081526002602090815260408083209390935583810151600190915291902054611f2991611240565b6000610647612710611807846032611228565b6000610647612710611807846014611228565b6000610647612710611807846096611228565b600061064761271061180784601e611228565b60006120946114fb565b905060006120a28483611228565b600d546001600160a01b03166000908152600160205260409020549091506120ca908261151e565b600d80546001600160a01b03908116600090815260016020908152604080832095909555925490911681526005909152205460ff161561214557600d546001600160a01b0316600090815260026020526040902054612129908561151e565b600d546001600160a01b03166000908152600260205260409020555b6040518481527fd406b979023ee5180af4d6164fb89dface51bd729e58ef5667ac342ba8581b479060200160405180910390a160006121848484611228565b90506121c081600160006121a06000546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020549061151e565b600160006121d66000546001600160a01b031690565b6001600160a01b03166001600160a01b0316815260200190815260200160002081905550600560006122106000546001600160a01b031690565b6001600160a01b0316815260208101919091526040016000205460ff161561227d5761224c84600260006121a06000546001600160a01b031690565b600260006122626000546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020555b6040518481527f71fad2f1374eb8196db44c3f105545d67f49a5930da98ea68733442f01ffc01e9060200160405180910390a15050505050565b6122d083611ced8660085461124090919063ffffffff16565b6008556007546122e09082611240565b6007556040518281527f814ebaaf67c81d4582b58af5e9d82eb8b79f5b1be362a835e9d06c092bb8ae359060200160405180910390a16040518181527f991fb44d2c8cd80b16ea9ff6558dc4b9e52ee1495bd40a0842c60268f9d964009060200160405180910390a150505050565b6040518061012001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000602082840312156123ac578081fd5b81356107ed816126da565b600080604083850312156123c9578081fd5b82356123d4816126da565b915060208301356123e4816126da565b809150509250929050565b600080600060608486031215612403578081fd5b833561240e816126da565b9250602084013561241e816126da565b929592945050506040919091013590565b60008060408385031215612441578182fd5b823561244c816126da565b946020939093013593505050565b6000806020838503121561246c578182fd5b823567ffffffffffffffff80821115612483578384fd5b818501915085601f830112612496578384fd5b8135818111156124a4578485fd5b8660208260051b85010111156124b8578485fd5b60209290920196919550909350505050565b6000602082840312156124db578081fd5b81356107ed816126f2565b6000602082840312156124f7578081fd5b81516107ed816126f2565b600060208284031215612513578081fd5b5035919050565b60006020828403121561252b578081fd5b5051919050565b60008060408385031215612544578182fd5b8235915060208301356123e4816126f2565b6000602080835283518082850152825b8181101561258257858101830151858201604001528201612566565b818111156125935783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156125f1576125f16126c4565b500190565b60008261261157634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612630576126306126c4565b500290565b600082821015612647576126476126c4565b500390565b600181811c9082168061266057607f821691505b6020821081141561268157634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff8083168181141561269f5761269f6126c4565b6001019392505050565b60006000198214156126bd576126bd6126c4565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146126ef57600080fd5b50565b80151581146126ef57600080fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220e7370af60fe40743d8e6ec8749943eb8f9b42cdc4ca65904c6b35f656292cbbf64736f6c63430008040033000000000000000000000000340674e7ab3eede434f319ecf13094176e98c4e700000000000000000000000058a39ceecc7b5b1497c39fa8e12dd781c4fafafc00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000060d456740000000000000000000000000000000000000000000000000000000060dee274000000000000000000000000000000000000000000000000000000000000000b54696765725a6f6469616300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045469675a00000000000000000000000000000000000000000000000000000000

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

000000000000000000000000340674e7ab3eede434f319ecf13094176e98c4e700000000000000000000000058a39ceecc7b5b1497c39fa8e12dd781c4fafafc00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000060d456740000000000000000000000000000000000000000000000000000000060dee274000000000000000000000000000000000000000000000000000000000000000b54696765725a6f6469616300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045469675a00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _autoFarm (address): 0x340674e7ab3eede434f319ecf13094176e98c4e7
Arg [1] : _prevCzodiac (address): 0x58a39ceecc7b5b1497c39fa8e12dd781c4fafafc
Arg [2] : _name (string): TigerZodiac
Arg [3] : _symbol (string): TigZ
Arg [4] : _swapStartTimestamp (uint256): 1624528500
Arg [5] : _swapEndTimestamp (uint256): 1625219700

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000340674e7ab3eede434f319ecf13094176e98c4e7
Arg [1] : 00000000000000000000000058a39ceecc7b5b1497c39fa8e12dd781c4fafafc
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 0000000000000000000000000000000000000000000000000000000060d45674
Arg [5] : 0000000000000000000000000000000000000000000000000000000060dee274
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [7] : 54696765725a6f64696163000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 5469675a00000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

94470:19956:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95481:18;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;99555:193;;;;;;:::i;:::-;;:::i;:::-;;;5042:14:1;;5035:22;5017:41;;5005:2;4990:18;99555:193:0;4972:92:1;96263:41:0;;;;;;;;11513:25:1;;;11501:2;11486:18;96263:41:0;11468:76:1;98847:95:0;98927:7;;98847:95;;113697:161;;;;;;:::i;:::-;;:::i;:::-;;99756:529;;;;;;:::i;:::-;;:::i;114040:136::-;;;;;;:::i;:::-;;:::i;102007:322::-;;;;;;:::i;:::-;;:::i;95533:35::-;;95566:2;95533:35;;;;;11721:4:1;11709:17;;;11691:36;;11679:2;11664:18;95533:35:0;11646:87:1;102679:479:0;;;;;;:::i;:::-;;:::i;95616:31::-;;;;;;;;;;;;100293:300;;;;;;:::i;:::-;;:::i;101137:433::-;;;;;;:::i;:::-;;:::i;113456:113::-;;;;;;:::i;:::-;;:::i;101578:421::-;;;;;;:::i;:::-;;:::i;98599:169::-;;;;;;:::i;:::-;;:::i;102337:334::-;;;;;;:::i;:::-;;:::i;113324:124::-;;;;;;:::i;:::-;-1:-1:-1;;;;;113413:27:0;113389:4;113413:27;;;:18;:27;;;;;;;;;113324:124;114184:98;;;;;;:::i;:::-;;:::i;96137:35::-;;;;;;;;-1:-1:-1;;;;;3824:32:1;;;3806:51;;3794:2;3779:18;96137:35:0;3761:102:1;95577:32:0;;;;;;;;;98950:198;;;;;;:::i;:::-;;:::i;27883:148::-;;;:::i;96107:23::-;;;;;-1:-1:-1;;;;;96107:23:0;;;98776:63;;;:::i;101009:120::-;;;;;;:::i;:::-;-1:-1:-1;;;;;101101:20:0;101077:4;101101:20;;;:11;:20;;;;;;;;;101009:120;114290:133;;;;;;:::i;:::-;;:::i;27232:87::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;27232:87;;95506:20;;;:::i;96213:43::-;;;;;100601:400;;;;;;:::i;:::-;;:::i;99156:199::-;;;;;;:::i;:::-;;:::i;113866:166::-;;;;;;:::i;:::-;;:::i;96054:44::-;;;;;;96179:25;;;;;-1:-1:-1;;;;;96179:25:0;;;99363:184;;;;;;:::i;:::-;-1:-1:-1;;;;;99512:18:0;;;99480:7;99512:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;99363:184;113577:112;;;;;;:::i;:::-;;:::i;28186:244::-;;;;;;:::i;:::-;;:::i;95481:18::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;99555:193::-;99657:4;99679:39;10745:10;99702:7;99711:6;99679:8;:39::i;:::-;-1:-1:-1;99736:4:0;99555:193;;;;;:::o;113697:161::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;113772:41:0::1;;::::0;;;:18:::1;:41;::::0;113824:11:::1;:26:::0;;-1:-1:-1;;;;;;113824:26:0::1;::::0;;::::1;::::0;;113697:161::o;99756:529::-;99888:4;99905:36;99915:6;99923:9;99934:6;99905:9;:36::i;:::-;99980:11;;-1:-1:-1;;;;;99980:11:0;10745:10;-1:-1:-1;;;;;99956:36:0;;99952:303;;100007:248;100034:6;10745:10;100090:150;100150:6;100090:150;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;100090:19:0;;;;;;:11;:19;;;;;;;;10745:10;100090:33;;;;;;;;;;:37;:150::i;:::-;100007:8;:248::i;:::-;-1:-1:-1;100273:4:0;99756:529;;;;;:::o;114040:136::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;114126:19:::1;:42:::0;;;::::1;;;;-1:-1:-1::0;;114126:42:0;;::::1;::::0;;;::::1;::::0;;114040:136::o;102007:322::-;102101:7;102159;;102148;:18;;102126:110;;;;-1:-1:-1;;;102126:110:0;;6455:2:1;102126:110:0;;;6437:21:1;6494:2;6474:18;;;6467:30;6533:34;6513:18;;;6506:62;-1:-1:-1;;;6584:18:1;;;6577:40;6634:19;;102126:110:0;6427:232:1;102126:110:0;102247:19;102269:10;:8;:10::i;:::-;102247:32;-1:-1:-1;102297:24:0;:7;102247:32;102297:11;:24::i;:::-;102290:31;102007:322;-1:-1:-1;;;102007:322:0:o;102679:479::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;102761:20:0;::::1;;::::0;;;:11:::1;:20;::::0;;;;;::::1;;102753:60;;;::::0;-1:-1:-1;;;102753:60:0;;7676:2:1;102753:60:0::1;::::0;::::1;7658:21:1::0;7715:2;7695:18;;;7688:30;7754:29;7734:18;;;7727:57;7801:18;;102753:60:0::1;7648:177:1::0;102753:60:0::1;102829:9;102824:327;102848:9;:16:::0;102844:20;::::1;102824:327;;;102906:7;-1:-1:-1::0;;;;;102890:23:0::1;:9;102900:1;102890:12;;;;;;-1:-1:-1::0;;;102890:12:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;102890:12:0::1;:23;102886:254;;;102949:9;102959:16:::0;;:20:::1;::::0;102978:1:::1;::::0;102959:20:::1;:::i;:::-;102949:31;;;;;;-1:-1:-1::0;;;102949:31:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;102934:9:::1;:12:::0;;-1:-1:-1;;;;;102949:31:0;;::::1;::::0;102944:1;;102934:12;::::1;;;-1:-1:-1::0;;;102934:12:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;;;;::::1;:46:::0;;-1:-1:-1;;;;;;102934:46:0::1;-1:-1:-1::0;;;;;102934:46:0;;::::1;;::::0;;102999:16;;::::1;::::0;;:7:::1;:16:::0;;;;;;:20;;;103038:11:::1;:20:::0;;;;:28;;-1:-1:-1;;103038:28:0::1;::::0;;103085:9:::1;:15:::0;;;::::1;;-1:-1:-1::0;;;103085:15:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;;-1:-1:-1;;103085:15:0;;;;;-1:-1:-1;;;;;;103085:15:0::1;::::0;;;;;102824:327:::1;102679:479:::0;:::o;102886:254::-:1;102866:3:::0;::::1;::::0;::::1;:::i;:::-;;;;102824:327;;;;102679:479:::0;:::o;100293:300::-;10745:10;100408:4;100502:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;100502:34:0;;;;;;;;;;100408:4;;100430:133;;100480:7;;100502:50;;100541:10;100502:38;:50::i;101137:433::-;10745:10;101189:14;101252:19;;;:11;:19;;;;;;;;101251:20;101229:114;;;;-1:-1:-1;;;101229:114:0;;11156:2:1;101229:114:0;;;11138:21:1;11195:2;11175:18;;;11168:30;11234:34;11214:18;;;11207:62;-1:-1:-1;;;11285:18:1;;;11278:42;11337:19;;101229:114:0;11128:234:1;101229:114:0;101357:21;101382:25;101393:7;101402:4;101382:10;:25::i;:::-;101456:14;;;;;-1:-1:-1;;;;;101436:15:0;;;;;;:7;:15;;;;;;;;101354:53;;-1:-1:-1;101436:35:0;;-1:-1:-1;101436:19:0;:35::i;:::-;-1:-1:-1;;;;;101418:15:0;;;;;;:7;:15;;;;;;;;:53;;;;101504:14;;;101492:7;;:27;;:11;:27::i;:::-;101482:7;:37;101535:27;;11513:25:1;;;101535:27:0;;11501:2:1;11486:18;101535:27:0;;;;;;;;101137:433;;;:::o;113456:113::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;113527:27:0::1;;::::0;;;:18:::1;:27;::::0;;;;:34;;-1:-1:-1;;113527:34:0::1;113557:4;113527:34;::::0;;113456:113::o;101578:421::-;101696:7;101740;;101729;:18;;101721:62;;;;-1:-1:-1;;;101721:62:0;;8032:2:1;101721:62:0;;;8014:21:1;8071:2;8051:18;;;8044:30;8110:33;8090:18;;;8083:61;8161:18;;101721:62:0;8004:181:1;101721:62:0;101797:21;101822:25;101833:7;101842:4;101822:10;:25::i;:::-;101794:53;;;101863:17;101858:134;;101904:14;;;;-1:-1:-1;101897:21:0;;101858:134;101958:22;;;;-1:-1:-1;101951:29:0;;98599:169;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;98680:8:::1;98675:86;98690:19;::::0;::::1;::::0;-1:-1:-1;98675:86:0::1;;;98731:18;98737:8;;98746:1;98737:11;;;;;;;-1:-1:-1::0;;;98737:11:0::1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;98731:5;:18::i;:::-;98711:3:::0;::::1;::::0;::::1;:::i;:::-;;;;98675:86;;;;98599:169:::0;;:::o;102337:334::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;102420:20:0;::::1;;::::0;;;:11:::1;:20;::::0;;;;;::::1;;102419:21;102411:61;;;::::0;-1:-1:-1;;;102411:61:0;;7676:2:1;102411:61:0::1;::::0;::::1;7658:21:1::0;7715:2;7695:18;;;7688:30;7754:29;7734:18;;;7727:57;7801:18;;102411:61:0::1;7648:177:1::0;102411:61:0::1;-1:-1:-1::0;;;;;102487:16:0;::::1;102506:1;102487:16:::0;;;:7:::1;:16;::::0;;;;;:20;102483:109:::1;;-1:-1:-1::0;;;;;102563:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;102543:37:::1;::::0;:19:::1;:37::i;:::-;-1:-1:-1::0;;;;;102524:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;:56;102483:109:::1;-1:-1:-1::0;;;;;102602:20:0::1;;::::0;;;:11:::1;:20;::::0;;;;:27;;-1:-1:-1;;102602:27:0::1;102625:4;102602:27:::0;;::::1;::::0;;;102640:9:::1;:23:::0;;;;::::1;::::0;;;;;;::::1;::::0;;-1:-1:-1;;;;;;102640:23:0::1;::::0;;::::1;::::0;;102337:334::o;114184:98::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;114254:8:::1;:20:::0;;-1:-1:-1;;;;;;114254:20:0::1;-1:-1:-1::0;;;;;114254:20:0;;;::::1;::::0;;;::::1;::::0;;114184:98::o;98950:198::-;-1:-1:-1;;;;;99040:20:0;;99016:7;99040:20;;;:11;:20;;;;;;;;99036:49;;;-1:-1:-1;;;;;;99069:16:0;;;;;:7;:16;;;;;;;98950:198::o;99036:49::-;-1:-1:-1;;;;;99123:16:0;;;;;;:7;:16;;;;;;99103:37;;:19;:37::i;27883:148::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;27990:1:::1;27974:6:::0;;27953:40:::1;::::0;-1:-1:-1;;;;;27974:6:0;;::::1;::::0;27953:40:::1;::::0;27990:1;;27953:40:::1;28021:1;28004:19:::0;;-1:-1:-1;;;;;;28004:19:0::1;::::0;;27883:148::o;98776:63::-;98812:19;10745:10;98731:5:::1;:18::i;98812:19::-:0;98776:63::o;114290:133::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;114358:6:::1;-1:-1:-1::0;;;;;114358:15:0::1;;114374:7;27278::::0;27305:6;-1:-1:-1;;;;;27305:6:0;;27232:87;114374:7:::1;114383:31;::::0;-1:-1:-1;;;114383:31:0;;114408:4:::1;114383:31;::::0;::::1;3806:51:1::0;-1:-1:-1;;;;;114383:16:0;::::1;::::0;::::1;::::0;3779:18:1;;114383:31:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;114358:57;::::0;-1:-1:-1;;;;;;114358:57:0::1;::::0;;;;;;-1:-1:-1;;;;;4440:32:1;;;114358:57:0::1;::::0;::::1;4422:51:1::0;4489:18;;;4482:34;4395:18;;114358:57:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;95506:20::-:0;;;;;;;:::i;100601:400::-;100721:4;100743:228;10745:10;100793:7;100815:145;100872:15;100815:145;;;;;;;;;;;;;;;;;10745:10;100815:25;;;;:11;:25;;;;;;;;-1:-1:-1;;;;;100815:34:0;;;;;;;;;;;;:38;:145::i;99156:199::-;99261:4;99283:42;10745:10;99307:9;99318:6;99283:9;:42::i;113866:166::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;113980:20:::1;:44:::0;;-1:-1:-1;;113980:44:0::1;::::0;::::1;;::::0;;;::::1;::::0;;113866:166::o;113577:112::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;113646:27:0::1;113676:5;113646:27:::0;;;:18:::1;:27;::::0;;;;:35;;-1:-1:-1;;113646:35:0::1;::::0;;113577:112::o;28186:244::-;27278:7;27305:6;-1:-1:-1;;;;;27305:6:0;10745:10;27452:23;27444:68;;;;-1:-1:-1;;;27444:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;28275:22:0;::::1;28267:73;;;::::0;-1:-1:-1;;;28267:73:0;;6866:2:1;28267:73:0::1;::::0;::::1;6848:21:1::0;6905:2;6885:18;;;6878:30;6944:34;6924:18;;;6917:62;-1:-1:-1;;;6995:18:1;;;6988:36;7041:19;;28267:73:0::1;6838:228:1::0;28267:73:0::1;28377:6;::::0;;28356:38:::1;::::0;-1:-1:-1;;;;;28356:38:0;;::::1;::::0;28377:6;::::1;::::0;28356:38:::1;::::0;::::1;28405:6;:17:::0;;-1:-1:-1;;;;;;28405:17:0::1;-1:-1:-1::0;;;;;28405:17:0;;;::::1;::::0;;;::::1;::::0;;28186:244::o;14549:98::-;14607:7;14634:5;14638:1;14634;:5;:::i;14948:98::-;15006:7;15033:5;15037:1;15033;:5;:::i;14192:98::-;14250:7;14277:5;14281:1;14277;:5;:::i;103166:371::-;-1:-1:-1;;;;;103293:19:0;;103285:68;;;;-1:-1:-1;;;103285:68:0;;10391:2:1;103285:68:0;;;10373:21:1;10430:2;10410:18;;;10403:30;10469:34;10449:18;;;10442:62;-1:-1:-1;;;10520:18:1;;;10513:34;10564:19;;103285:68:0;10363:226:1;103285:68:0;-1:-1:-1;;;;;103372:21:0;;103364:68;;;;-1:-1:-1;;;103364:68:0;;7273:2:1;103364:68:0;;;7255:21:1;7312:2;7292:18;;;7285:30;7351:34;7331:18;;;7324:62;-1:-1:-1;;;7402:18:1;;;7395:32;7444:19;;103364:68:0;7245:224:1;103364:68:0;-1:-1:-1;;;;;103445:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;103497:32;;11513:25:1;;;103497:32:0;;11486:18:1;103497:32:0;;;;;;;103166:371;;;:::o;103545:847::-;103681:19;;;;;;;;:38;;-1:-1:-1;27278:7:0;27305:6;-1:-1:-1;;;;;103704:15:0;;;27305:6;;103704:15;103681:38;:55;;;-1:-1:-1;27278:7:0;27305:6;-1:-1:-1;;;;;103723:13:0;;;27305:6;;103723:13;103681:55;103659:139;;;;-1:-1:-1;;;103659:139:0;;8392:2:1;103659:139:0;;;8374:21:1;8431:2;8411:18;;;8404:30;8470:34;8450:18;;;8443:62;-1:-1:-1;;;8521:18:1;;;8514:32;8563:19;;103659:139:0;8364:224:1;103659:139:0;103826:1;103817:6;:10;103809:64;;;;-1:-1:-1;;;103809:64:0;;9981:2:1;103809:64:0;;;9963:21:1;10020:2;10000:18;;;9993:30;10059:34;10039:18;;;10032:62;-1:-1:-1;;;10110:18:1;;;10103:39;10159:19;;103809:64:0;9953:231:1;103809:64:0;-1:-1:-1;;;;;104110:24:0;;103947:12;104110:24;;;:18;:24;;;;;;103962:4;;104110:24;;;:63;;-1:-1:-1;;;;;;104151:22:0;;;;;;:18;:22;;;;;;;;104110:63;:101;;;-1:-1:-1;104191:20:0;;;;104190:21;104110:101;104092:173;;;-1:-1:-1;104248:5:0;104092:173;104343:41;104358:4;104364:2;104368:6;104376:7;104343:14;:41::i;:::-;103545:847;;;;:::o;16090:206::-;16176:7;16237:12;16229:6;;;;16221:29;;;;-1:-1:-1;;;16221:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;16272:5:0;;;16090:206::o;110232:164::-;110274:7;110295:15;110312;110331:19;:17;:19::i;:::-;110294:56;;-1:-1:-1;110294:56:0;-1:-1:-1;110368:20:0;110294:56;;110368:11;:20::i;:::-;110361:27;;;;110232:164;:::o;13811:98::-;13869:7;13896:5;13900:1;13896;:5;:::i;108657:261::-;108757:22;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108757:22:0;108781;;:::i;:::-;108831:29;108843:7;108852;108831:11;:29::i;:::-;108821:39;;108881:29;108893:7;108902;108881:11;:29::i;:::-;108871:39;;108657:261;;;;;:::o;111776:886::-;111857:11;-1:-1:-1;;;;;111849:34:0;111827:117;;;;-1:-1:-1;;;111827:117:0;;8795:2:1;111827:117:0;;;8777:21:1;8834:2;8814:18;;;8807:30;8873:34;8853:18;;;8846:62;-1:-1:-1;;;8924:18:1;;;8917:31;8965:19;;111827:117:0;8767:223:1;111827:117:0;111996:18;111977:15;:37;;111955:118;;;;-1:-1:-1;;;111955:118:0;;10796:2:1;111955:118:0;;;10778:21:1;10835:2;10815:18;;;10808:30;10874:33;10854:18;;;10847:61;10925:18;;111955:118:0;10768:181:1;111955:118:0;112125:16;112106:15;:35;;112084:110;;;;-1:-1:-1;;;112084:110:0;;6101:2:1;112084:110:0;;;6083:21:1;6140:2;6120:18;;;6113:30;6179:27;6159:18;;;6152:55;6224:18;;112084:110:0;6073:175:1;112084:110:0;112228:30;;-1:-1:-1;;;112228:30:0;;-1:-1:-1;;;;;3824:32:1;;;112228:30:0;;;3806:51:1;112205:20:0;;112228:11;:21;;;;;;3779:18:1;;112228:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;112205:53;;112306:1;112291:12;:16;112269:120;;;;-1:-1:-1;;;112269:120:0;;9197:2:1;112269:120:0;;;9179:21:1;9236:2;9216:18;;;9209:30;9275:34;9255:18;;;9248:62;-1:-1:-1;;;9326:18:1;;;9319:52;9388:19;;112269:120:0;9169:244:1;112269:120:0;112400:20;112423:43;95968:5;112423:23;:12;112440:5;112423:16;:23::i;:::-;:27;;:43::i;:::-;112477:62;;-1:-1:-1;;;112477:62:0;;-1:-1:-1;;;;;4126:15:1;;;112477:62:0;;;4108:34:1;112519:4:0;4158:18:1;;;4151:43;4210:18;;;4203:34;;;112400:66:0;;-1:-1:-1;112477:11:0;:24;;;;;;4043:18:1;;112477:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;112550:47;112568:4;112575:7;112584:12;112550:9;:47::i;:::-;112613:41;;;-1:-1:-1;;;;;4747:32:1;;4729:51;;4811:2;4796:18;;4789:34;;;4839:18;;;4832:34;;;112613:41:0;;4717:2:1;4702:18;112613:41:0;4684:188:1;104473:800:0;-1:-1:-1;;;;;104628:19:0;;;;;;:11;:19;;;;;;;;:46;;;;-1:-1:-1;;;;;;104652:22:0;;;;;;:11;:22;;;;;;;;104651:23;104628:46;104624:642;;;104691:57;104713:6;104721:9;104732:6;104740:7;104691:21;:57::i;:::-;104624:642;;;-1:-1:-1;;;;;104771:19:0;;;;;;:11;:19;;;;;;;;104770:20;:46;;;;-1:-1:-1;;;;;;104794:22:0;;;;;;:11;:22;;;;;;;;104770:46;104766:500;;;104833:55;104853:6;104861:9;104872:6;104880:7;104833:19;:55::i;104766:500::-;-1:-1:-1;;;;;104911:19:0;;;;;;:11;:19;;;;;;;;104910:20;:47;;;;-1:-1:-1;;;;;;104935:22:0;;;;;;:11;:22;;;;;;;;104934:23;104910:47;104906:360;;;104974:53;104992:6;105000:9;105011:6;105019:7;104974:17;:53::i;104906:360::-;-1:-1:-1;;;;;105049:19:0;;;;;;:11;:19;;;;;;;;:45;;;;-1:-1:-1;;;;;;105072:22:0;;;;;;:11;:22;;;;;;;;105049:45;105045:221;;;105111:57;105133:6;105141:9;105152:6;105160:7;105111:21;:57::i;105045:221::-;105201:53;105219:6;105227:9;105238:6;105246:7;105201:17;:53::i;110404:605::-;110502:7;;110538;;110455;;;;;110556:338;110580:9;:16;110576:20;;110556:338;;;110664:7;110640;:21;110648:9;110658:1;110648:12;;;;;;-1:-1:-1;;;110648:12:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;110648:12:0;110640:21;;;;;;;;;;;;;:31;;:83;;;110716:7;110692;:21;110700:9;110710:1;110700:12;;;;;;-1:-1:-1;;;110700:12:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;110700:12:0;110692:21;;;;;;;;;;;;;:31;110640:83;110618:146;;;110747:7;;110756;;110739:25;;;;;;;110404:605;;:::o;110618:146::-;110789:34;110801:7;:21;110809:9;110819:1;110809:12;;;;;;-1:-1:-1;;;110809:12:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;110809:12:0;110801:21;;;;;;;;;;;;;110789:7;;:11;:34::i;:::-;110779:44;;110848:34;110860:7;:21;110868:9;110878:1;110868:12;;;;;;-1:-1:-1;;;110868:12:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;110868:12:0;110860:21;;;;;;;;;;;;;110848:7;;:11;:34::i;:::-;110838:44;-1:-1:-1;110598:3:0;;;;:::i;:::-;;;;110556:338;;;-1:-1:-1;110930:7:0;;110918;;:20;;:11;:20::i;:::-;110908:7;:30;110904:61;;;110948:7;;110957;;110940:25;;;;;;110404:605;;:::o;110904:61::-;110984:7;;110993;;-1:-1:-1;110404:605:0;-1:-1:-1;110404:605:0:o;108926:607::-;109027:21;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109027:21:0;109089:7;:44;;109132:1;109089:44;;;109099:30;109121:7;109099:21;:30::i;:::-;109066:20;;;:67;109159:7;:36;;109194:1;109159:36;;;109169:22;109183:7;109169:13;:22::i;:::-;109144:12;;;:51;109225:7;:40;;109264:1;109225:40;;;109235:26;109253:7;109235:17;:26::i;:::-;109206:16;;;:59;109296:7;:41;;109336:1;109296:41;;;109306:27;109325:7;109306:18;:27::i;:::-;109276:6;:17;;:61;;;;;109373:152;109507:6;:17;;;109373:115;109471:6;:16;;;109373:79;109439:6;:12;;;109373:47;109399:6;:20;;;109373:7;:25;;:47;;;;:::i;:::-;:65;;:79::i;:152::-;109348:177;;:6;108926:607;-1:-1:-1;;108926:607:0:o;109541:683::-;109652:21;;:::i;:::-;109705:10;:8;:10::i;:::-;109691:24;;;109743;;:7;;:11;:24::i;:::-;109726:14;;;;:41;;;;109818:11;;109792:21;;;;:38;;:25;:38::i;:::-;109778:11;;;:52;109874:11;;109856:13;;;;:30;;:17;:30::i;:::-;109841:12;;;:45;109938:11;;109916:17;;;;:34;;:21;:34::i;:::-;109897:16;;;:53;110004:11;;109981:18;;;;:35;;:22;:35::i;:::-;109961:17;;;:55;;;110162:16;;;;110130:12;;;;110099:11;;;;110052:28;;;;:164;;109961:55;110052:127;;110162:16;;110052:127;;;;:46;:59::i;:164::-;110027:22;;;:189;:6;109541:683;-1:-1:-1;;109541:683:0:o;106756:750::-;106916:22;106940;106979:28;106990:7;106999;106979:10;:28::i;:::-;-1:-1:-1;;;;;107036:15:0;;;;;;:7;:15;;;;;;106915:92;;-1:-1:-1;106915:92:0;-1:-1:-1;107036:28:0;;107056:7;107036:19;:28::i;:::-;-1:-1:-1;;;;;107018:15:0;;;;;;:7;:15;;;;;;;;:46;;;;107113:15;;;;107093:7;:15;;;;;;;:36;;:19;:36::i;:::-;-1:-1:-1;;;;;107075:15:0;;;;;;;:7;:15;;;;;;:54;;;;107184:23;;;;107161:18;;;;;;;;;;:47;;:22;:47::i;:::-;-1:-1:-1;;;;;107140:18:0;;;;;;:7;:18;;;;;:68;107240:17;;;;107259:18;;;;107219:59;;107240:17;107219:20;:59::i;:::-;107289:141;107315:7;:12;;;107342:7;:13;;;107370:7;:21;;;107406:7;:13;;;107289:11;:141::i;:::-;107463:9;-1:-1:-1;;;;;107446:52:0;107455:6;-1:-1:-1;;;;;107446:52:0;;107474:7;:23;;;107446:52;;;;11513:25:1;;11501:2;11486:18;;11468:76;107446:52:0;;;;;;;;106756:750;;;;;;:::o;105978:770::-;106136:22;106160;106199:28;106210:7;106219;106199:10;:28::i;:::-;106276:15;;;;;-1:-1:-1;;;;;106256:15:0;;;;;;:7;:15;;;;;;;;106135:92;;-1:-1:-1;106135:92:0;;-1:-1:-1;106256:36:0;;:15;:19;:36::i;:::-;-1:-1:-1;;;;;106238:15:0;;;;;;;:7;:15;;;;;;;;:54;;;;106347:23;;106324:18;;;;;:7;:18;;;;;;;:47;;:22;:47::i;:::-;-1:-1:-1;;;;;106303:18:0;;;;;;:7;:18;;;;;;;;:68;;;;106426:23;;;;106403:7;:18;;;;;;;:47;;:22;:47::i;105281:689::-;105437:22;105461;105500:28;105511:7;105520;105500:10;:28::i;:::-;105577:15;;;;;-1:-1:-1;;;;;105557:15:0;;;;;;:7;:15;;;;;;;;105436:92;;-1:-1:-1;105436:92:0;;-1:-1:-1;105557:36:0;;:15;:19;:36::i;107514:829::-;107674:22;107698;107737:28;107748:7;107757;107737:10;:28::i;:::-;-1:-1:-1;;;;;107794:15:0;;;;;;:7;:15;;;;;;107673:92;;-1:-1:-1;107673:92:0;-1:-1:-1;107794:28:0;;107814:7;107794:19;:28::i;:::-;-1:-1:-1;;;;;107776:15:0;;;;;;:7;:15;;;;;;;;:46;;;;107871:15;;;;107851:7;:15;;;;;;;:36;;:19;:36::i;112670:179::-;112767:7;112799:42;112835:5;112799:31;:7;95716:2;112799:11;:31::i;112857:131::-;112919:7;112946:34;112974:5;112946:23;:7;95779:2;112946:11;:23::i;112996:139::-;113062:7;113089:38;113121:5;113089:27;:7;95846:3;113089:11;:27::i;113143:173::-;113237:7;113269:39;113302:5;113269:28;:7;95915:2;113269:11;:28::i;111017:751::-;111121:19;111143:10;:8;:10::i;:::-;111121:32;-1:-1:-1;111202:18:0;111223:27;:10;111121:32;111223:14;:27::i;:::-;111289:8;;-1:-1:-1;;;;;111289:8:0;111281:17;;;;:7;:17;;;;;;111202:48;;-1:-1:-1;111281:33:0;;111202:48;111281:21;:33::i;:::-;111269:8;;;-1:-1:-1;;;;;111269:8:0;;;111261:17;;;;:7;:17;;;;;;;;:53;;;;111341:8;;;;;111329:21;;:11;:21;;;;;;;111325:93;;;111393:8;;-1:-1:-1;;;;;111393:8:0;111385:17;;;;:7;:17;;;;;;:33;;111407:10;111385:21;:33::i;:::-;111373:8;;-1:-1:-1;;;;;111373:8:0;111365:17;;;;:7;:17;;;;;:53;111325:93;111434:26;;11513:25:1;;;111434:26:0;;11501:2:1;11486:18;111434:26:0;;;;;;;111501:19;111523:28;:11;111539;111523:15;:28::i;:::-;111501:50;;111581:33;111602:11;111581:7;:16;111589:7;27278;27305:6;-1:-1:-1;;;;;27305:6:0;;27232:87;111589:7;-1:-1:-1;;;;;111581:16:0;;;;;;;;;;;;-1:-1:-1;111581:16:0;;;:20;:33::i;:::-;111562:7;:16;111570:7;27278;27305:6;-1:-1:-1;;;;;27305:6:0;;27232:87;111570:7;-1:-1:-1;;;;;111562:16:0;-1:-1:-1;;;;;111562:16:0;;;;;;;;;;;;:52;;;;111629:11;:20;111641:7;27278;27305:6;-1:-1:-1;;;;;27305:6:0;;27232:87;111641:7;-1:-1:-1;;;;;111629:20:0;;;;;;;;;;;;-1:-1:-1;111629:20:0;;;;111625:91;;;111683:33;111704:11;111683:7;:16;111691:7;27278;27305:6;-1:-1:-1;;;;;27305:6:0;;27232:87;111683:33;111664:7;:16;111672:7;27278;27305:6;-1:-1:-1;;;;;27305:6:0;;27232:87;111672:7;-1:-1:-1;;;;;111664:16:0;;;;;;;;;;;;-1:-1:-1;111664:16:0;:52;111625:91;111732:28;;11513:25:1;;;111732:28:0;;11501:2:1;11486:18;111732:28:0;;;;;;;111017:751;;;;;:::o;108351:298::-;108502:28;108524:5;108502:17;108514:4;108502:7;;:11;;:17;;;;:::i;:28::-;108492:7;:38;108551:7;;:18;;108563:5;108551:11;:18::i;:::-;108541:7;:28;108585:24;;11513:25:1;;;108585:24:0;;11501:2:1;11486:18;108585:24:0;;;;;;;108625:16;;11513:25:1;;;108625:16:0;;11501:2:1;11486:18;108625:16:0;;;;;;;108351:298;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:257:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:31;235:5;210:31;:::i;276:398::-;344:6;352;405:2;393:9;384:7;380:23;376:32;373:2;;;426:6;418;411:22;373:2;470:9;457:23;489:31;514:5;489:31;:::i;:::-;539:5;-1:-1:-1;596:2:1;581:18;;568:32;609:33;568:32;609:33;:::i;:::-;661:7;651:17;;;363:311;;;;;:::o;679:466::-;756:6;764;772;825:2;813:9;804:7;800:23;796:32;793:2;;;846:6;838;831:22;793:2;890:9;877:23;909:31;934:5;909:31;:::i;:::-;959:5;-1:-1:-1;1016:2:1;1001:18;;988:32;1029:33;988:32;1029:33;:::i;:::-;783:362;;1081:7;;-1:-1:-1;;;1135:2:1;1120:18;;;;1107:32;;783:362::o;1150:325::-;1218:6;1226;1279:2;1267:9;1258:7;1254:23;1250:32;1247:2;;;1300:6;1292;1285:22;1247:2;1344:9;1331:23;1363:31;1388:5;1363:31;:::i;:::-;1413:5;1465:2;1450:18;;;;1437:32;;-1:-1:-1;;;1237:238:1:o;1480:665::-;1566:6;1574;1627:2;1615:9;1606:7;1602:23;1598:32;1595:2;;;1648:6;1640;1633:22;1595:2;1693:9;1680:23;1722:18;1763:2;1755:6;1752:14;1749:2;;;1784:6;1776;1769:22;1749:2;1827:6;1816:9;1812:22;1802:32;;1872:7;1865:4;1861:2;1857:13;1853:27;1843:2;;1899:6;1891;1884:22;1843:2;1944;1931:16;1970:2;1962:6;1959:14;1956:2;;;1991:6;1983;1976:22;1956:2;2049:7;2044:2;2034:6;2031:1;2027:14;2023:2;2019:23;2015:32;2012:45;2009:2;;;2075:6;2067;2060:22;2009:2;2111;2103:11;;;;;2133:6;;-1:-1:-1;1585:560:1;;-1:-1:-1;;;;1585:560:1:o;2150:251::-;2206:6;2259:2;2247:9;2238:7;2234:23;2230:32;2227:2;;;2280:6;2272;2265:22;2227:2;2324:9;2311:23;2343:28;2365:5;2343:28;:::i;2406:255::-;2473:6;2526:2;2514:9;2505:7;2501:23;2497:32;2494:2;;;2547:6;2539;2532:22;2494:2;2584:9;2578:16;2603:28;2625:5;2603:28;:::i;2942:190::-;3001:6;3054:2;3042:9;3033:7;3029:23;3025:32;3022:2;;;3075:6;3067;3060:22;3022:2;-1:-1:-1;3103:23:1;;3012:120;-1:-1:-1;3012:120:1:o;3137:194::-;3207:6;3260:2;3248:9;3239:7;3235:23;3231:32;3228:2;;;3281:6;3273;3266:22;3228:2;-1:-1:-1;3309:16:1;;3218:113;-1:-1:-1;3218:113:1:o;3336:319::-;3401:6;3409;3462:2;3450:9;3441:7;3437:23;3433:32;3430:2;;;3483:6;3475;3468:22;3430:2;3524:9;3511:23;3501:33;;3584:2;3573:9;3569:18;3556:32;3597:28;3619:5;3597:28;:::i;5291:603::-;5403:4;5432:2;5461;5450:9;5443:21;5493:6;5487:13;5536:6;5531:2;5520:9;5516:18;5509:34;5561:4;5574:140;5588:6;5585:1;5582:13;5574:140;;;5683:14;;;5679:23;;5673:30;5649:17;;;5668:2;5645:26;5638:66;5603:10;;5574:140;;;5732:6;5729:1;5726:13;5723:2;;;5802:4;5797:2;5788:6;5777:9;5773:22;5769:31;5762:45;5723:2;-1:-1:-1;5878:2:1;5857:15;-1:-1:-1;;5853:29:1;5838:45;;;;5885:2;5834:54;;5412:482;-1:-1:-1;;;5412:482:1:o;9418:356::-;9620:2;9602:21;;;9639:18;;;9632:30;9698:34;9693:2;9678:18;;9671:62;9765:2;9750:18;;9592:182::o;11738:128::-;11778:3;11809:1;11805:6;11802:1;11799:13;11796:2;;;11815:18;;:::i;:::-;-1:-1:-1;11851:9:1;;11786:80::o;11871:217::-;11911:1;11937;11927:2;;-1:-1:-1;;;11962:31:1;;12016:4;12013:1;12006:15;12044:4;11969:1;12034:15;11927:2;-1:-1:-1;12073:9:1;;11917:171::o;12093:168::-;12133:7;12199:1;12195;12191:6;12187:14;12184:1;12181:21;12176:1;12169:9;12162:17;12158:45;12155:2;;;12206:18;;:::i;:::-;-1:-1:-1;12246:9:1;;12145:116::o;12266:125::-;12306:4;12334:1;12331;12328:8;12325:2;;;12339:18;;:::i;:::-;-1:-1:-1;12376:9:1;;12315:76::o;12396:380::-;12475:1;12471:12;;;;12518;;;12539:2;;12593:4;12585:6;12581:17;12571:27;;12539:2;12646;12638:6;12635:14;12615:18;12612:38;12609:2;;;12692:10;12687:3;12683:20;12680:1;12673:31;12727:4;12724:1;12717:15;12755:4;12752:1;12745:15;12609:2;;12451:325;;;:::o;12781:197::-;12819:3;12847:6;12888:2;12881:5;12877:14;12915:2;12906:7;12903:15;12900:2;;;12921:18;;:::i;:::-;12970:1;12957:15;;12827:151;-1:-1:-1;;;12827:151:1:o;12983:135::-;13022:3;-1:-1:-1;;13043:17:1;;13040:2;;;13063:18;;:::i;:::-;-1:-1:-1;13110:1:1;13099:13;;13030:88::o;13123:127::-;13184:10;13179:3;13175:20;13172:1;13165:31;13215:4;13212:1;13205:15;13239:4;13236:1;13229:15;13255:131;-1:-1:-1;;;;;13330:31:1;;13320:42;;13310:2;;13376:1;13373;13366:12;13310:2;13300:86;:::o;13391:118::-;13477:5;13470:13;13463:21;13456:5;13453:32;13443:2;;13499:1;13496;13489:12

Swarm Source

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