Contract 0x74A9313f40b04b906Eb9D357C0F277e648eD7480

Contract Overview

Balance:
0 BNB

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3916fa0a6139a6c039f1272b8e4e5ecefd629685caf8b9488bc3bb843b0c97e8Mass Harvest91855942021-05-26 17:39:52151 days 8 hrs ago0xf69458887f2f25b7b4a0b76f818fed76aa1ecba6 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00024184
0x6d8fec9d77c4acbedd627b06b964ca0d262299244b808c7e23996c366e9e8b41Withdraw83245532021-04-26 19:04:10181 days 6 hrs ago0x13d1a1beb117b1d14b91919c21218dfb14ab7c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00126962
0x26c95c38c9465db03eec3c36d1c8cd5e7cea2709711e28f05aa9f07e488004b4Withdraw83243372021-04-26 18:53:22181 days 6 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00126974
0x7a22ebae964e997f83639bb071eca634c3006dd8fe32075733c57a60e721c983Mass Harvest83214222021-04-26 16:27:37181 days 9 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00120434
0x984c2c810026e1d4990a95cfc78c92b95542971aa33c4bb7e95f85529a24b0d7Mass Harvest83212992021-04-26 16:21:28181 days 9 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00120461
0x3b82829208a7c21dcf9ec86147abee355ae7bf94d9f2f09d7ffb883de7781594Mass Stake83212622021-04-26 16:19:37181 days 9 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00022755
0x4ae6f1c3b4e520d95d0b52cbea77b530b911e56a5ca953c68fb40a48ff858e01Mass Stake83212492021-04-26 16:18:58181 days 9 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00022755
0xce0f40e657388b008ef17a3d0dfa8321d66ca53f8a022978ca111dffcdd4dac8Mass Stake83210812021-04-26 16:10:34181 days 9 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00224729
0xe39248908a788858d48617474d6fed6657f69d551d7b7c2ec37fe75c83c5ef1eDeposit83210612021-04-26 16:09:34181 days 9 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00134969
0xac9ef0c079b6a0d8545bbe0a38c531eceae2081595699cc7126d479c7081a774Deposit83201312021-04-26 15:23:04181 days 10 hrs ago0x13d1a1beb117b1d14b91919c21218dfb14ab7c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00134957
0xd9bb572991edfeff3753de0f3e9f69f811f4b3856376313f829819a1f28269e5Withdraw83199862021-04-26 15:15:49181 days 10 hrs ago0x3bedf54d9fc3484ec25a2ebc52c35744fbe7e04f IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00128973
0xfaf5d2d140a922b567ed0e35c4a686214cc42e6a71a0ddc3dd7589f3fe06eac6Withdraw83198292021-04-26 15:07:58181 days 10 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00111962
0xeba497ecc997858c5672e02b010cf903de1928365a61894c01561a1c8d89b2c7Withdraw83198242021-04-26 15:07:43181 days 10 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00111974
0xa76ff6d8cde43ebddebe4a50943ac9a176bae8ac790352a978e682962f23ca2cDeposit83198202021-04-26 15:07:31181 days 10 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00119332
0xb61ce2f0590c8a6d6cd9f9873bd3d3dc95982922824d5767624786ed02c38927Deposit83186302021-04-26 14:08:01181 days 11 hrs ago0x3bedf54d9fc3484ec25a2ebc52c35744fbe7e04f IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00136379
0x4c545e2f71ba75920afeebe5547f496b8a369fc5dbd080291aa0a466e5d2a020Deposit83185862021-04-26 14:05:31181 days 11 hrs ago0x3bedf54d9fc3484ec25a2ebc52c35744fbe7e04f IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00138731
0x963dae0055f84f18ff50d8428a4e249a4fa8b7d5137e4ecaad25ee9ea9ebe074Deposit83178412021-04-26 13:28:16181 days 12 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00134021
0x8190e3959c7f34bac1d00965b432272952dd69968d30a6bb5571887b7965d7bfWithdraw83175062021-04-26 13:11:31181 days 12 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00111962
0x28a9b1376ce089ca8c42c40c11158d47c59c5fc1a4649faef4a73ac54c4c3a5aWithdraw83172562021-04-26 12:59:01181 days 12 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00141999
0xf46bc20210c7691490e50e19c8e3f0528618fff6aa582653fe534ce8e1462db1Deposit83137532021-04-26 10:03:52181 days 15 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00130719
0x00a7dd5e66775f2d7d31b1e634d376bf2905843b607ba585d4cfe52d9b6983f7Deposit83137132021-04-26 10:01:52181 days 15 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00134969
0x67cb2f598fd4a451b1ba69e8a2cf05a3bf1a88a1f84ffea869985b74f4813ac8Deposit83130522021-04-26 9:28:49181 days 16 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00134021
0x4307687ece73b1c7f2e98b826e34caf37786273113aecee557b9fb6020abb69eWithdraw83129082021-04-26 9:21:37181 days 16 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00126974
0x2b70ccdd0c60585539bc140d24d25d7c7f02fb26fa602873a107ae9a7e15d979Deposit83127392021-04-26 9:13:10181 days 16 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00144839
0xc65ac7a4992ffe42fcd4631360f8c01d6feed40d0a3a612076a813951472234dDeposit83127042021-04-26 9:11:25181 days 16 hrs ago0xdd094342c13f9e4340e2c07c63d9fd98e7ba1c63 IN  0x74a9313f40b04b906eb9d357c0f277e648ed74800 BNB0.00144827
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x6d8fec9d77c4acbedd627b06b964ca0d262299244b808c7e23996c366e9e8b4183245532021-04-26 19:04:10181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0xd7091edeab124cf8cd14c349089209863e454a3a0 BNB
0x6d8fec9d77c4acbedd627b06b964ca0d262299244b808c7e23996c366e9e8b4183245532021-04-26 19:04:10181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x6d8fec9d77c4acbedd627b06b964ca0d262299244b808c7e23996c366e9e8b4183245532021-04-26 19:04:10181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x6d8fec9d77c4acbedd627b06b964ca0d262299244b808c7e23996c366e9e8b4183245532021-04-26 19:04:10181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x84a36d764889deb889265f222962705c072423eb0 BNB
0x6d8fec9d77c4acbedd627b06b964ca0d262299244b808c7e23996c366e9e8b4183245532021-04-26 19:04:10181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x6d8fec9d77c4acbedd627b06b964ca0d262299244b808c7e23996c366e9e8b4183245532021-04-26 19:04:10181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x6d8fec9d77c4acbedd627b06b964ca0d262299244b808c7e23996c366e9e8b4183245532021-04-26 19:04:10181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0xd7091edeab124cf8cd14c349089209863e454a3a0 BNB
0x26c95c38c9465db03eec3c36d1c8cd5e7cea2709711e28f05aa9f07e488004b483243372021-04-26 18:53:22181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0xd7091edeab124cf8cd14c349089209863e454a3a0 BNB
0x26c95c38c9465db03eec3c36d1c8cd5e7cea2709711e28f05aa9f07e488004b483243372021-04-26 18:53:22181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x26c95c38c9465db03eec3c36d1c8cd5e7cea2709711e28f05aa9f07e488004b483243372021-04-26 18:53:22181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x26c95c38c9465db03eec3c36d1c8cd5e7cea2709711e28f05aa9f07e488004b483243372021-04-26 18:53:22181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x84a36d764889deb889265f222962705c072423eb0 BNB
0x26c95c38c9465db03eec3c36d1c8cd5e7cea2709711e28f05aa9f07e488004b483243372021-04-26 18:53:22181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x26c95c38c9465db03eec3c36d1c8cd5e7cea2709711e28f05aa9f07e488004b483243372021-04-26 18:53:22181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x26c95c38c9465db03eec3c36d1c8cd5e7cea2709711e28f05aa9f07e488004b483243372021-04-26 18:53:22181 days 6 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0xd7091edeab124cf8cd14c349089209863e454a3a0 BNB
0x7a22ebae964e997f83639bb071eca634c3006dd8fe32075733c57a60e721c98383214222021-04-26 16:27:37181 days 9 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x7a22ebae964e997f83639bb071eca634c3006dd8fe32075733c57a60e721c98383214222021-04-26 16:27:37181 days 9 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x7a22ebae964e997f83639bb071eca634c3006dd8fe32075733c57a60e721c98383214222021-04-26 16:27:37181 days 9 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x84a36d764889deb889265f222962705c072423eb0 BNB
0x7a22ebae964e997f83639bb071eca634c3006dd8fe32075733c57a60e721c98383214222021-04-26 16:27:37181 days 9 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x7a22ebae964e997f83639bb071eca634c3006dd8fe32075733c57a60e721c98383214222021-04-26 16:27:37181 days 9 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x7a22ebae964e997f83639bb071eca634c3006dd8fe32075733c57a60e721c98383214222021-04-26 16:27:37181 days 9 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0xd7091edeab124cf8cd14c349089209863e454a3a0 BNB
0x984c2c810026e1d4990a95cfc78c92b95542971aa33c4bb7e95f85529a24b0d783212992021-04-26 16:21:28181 days 9 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x984c2c810026e1d4990a95cfc78c92b95542971aa33c4bb7e95f85529a24b0d783212992021-04-26 16:21:28181 days 9 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x984c2c810026e1d4990a95cfc78c92b95542971aa33c4bb7e95f85529a24b0d783212992021-04-26 16:21:28181 days 9 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x84a36d764889deb889265f222962705c072423eb0 BNB
0x984c2c810026e1d4990a95cfc78c92b95542971aa33c4bb7e95f85529a24b0d783212992021-04-26 16:21:28181 days 9 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
0x984c2c810026e1d4990a95cfc78c92b95542971aa33c4bb7e95f85529a24b0d783212992021-04-26 16:21:28181 days 9 hrs ago 0x74a9313f40b04b906eb9d357c0f277e648ed7480 0x88b24495e1e632be0f0bb40467e0ad1a145fe4f90 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterCSS

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 9 : MasterCSS.sol
// SPDX-License-Identifier: MIT
import './libraries/SafeMath.sol';
import './interfaces/IBEP20.sol';
import './libraries/BEP20.sol';
import './CSSToken.sol';
import './libraries/SafeBEP20.sol';

pragma solidity 0.6.12;

//  referral
interface CssReferral {
    function setCssReferral(address farmer, address referrer) external;

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

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

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

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

    // The CSS TOKEN!
    CssToken public st;

    //steps in time to change cssPerBlock
    uint256 public immutable timeFirstStep;
    uint256 public immutable timeSecondStep;
    uint256 public immutable timeThirdStep;
    uint256 public immutable timeForthStep;
    uint256 public immutable timeFifthStep;

    // Dev address
    address public devAddress;
    // Treasury address
    address public divPoolAddress;
    // CSS tokens created per block.
    uint256 public cssPerBlock;

    // Multiplier that can be use to multiply all farm rewards (allocationPoints)
    uint256 public bonusMultiplier = 1;

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

    // Mint fee that is fixed on 8%
    uint256 public constant MINT_FEE = 800;

    // Referral fee that is fixed on 15%
    uint256 public constant DIV_REFERRAL_FEE = 1500;

    //Fees to dev and treasury (3,75% and 1,25%)
    uint256 public constant DIV_POOL_FEE = 375;
    uint256 public constant DIV_DEV_FEE = 125;

    // Pool Id of stake token - CSS
    uint256 public immutable stakePoolId;

    // Referral contract address
    address public rewardReferral;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event ReferralPaid(address indexed user, address indexed userTo, uint256 reward);
    event Burned(uint256 reward);
    event SetRewardReferralAddress(address indexed sender, address indexed referralAddress);
    event SetDevPoolAddress(address indexed sender, address indexed divPoolAddress);
    event SetDevAddress(address indexed sender, address indexed devAddress);
    event SetEnableMethod(address indexed sender, uint256 methodId, bool enabled);

    mapping(uint256 => bool) public enableMethod;

    constructor(
        CssToken _st,
        address _devAddress,
        address _divPoolAddress,
        uint256 _startBlock
    ) public {
        st = _st;
        devAddress = _devAddress;
        divPoolAddress = _divPoolAddress;
        cssPerBlock = 6*10**17;
        startBlock = _startBlock;


        // adds CSS as first pool token with pid = 0
        poolExistence[_st] = true;
        poolInfo.push(PoolInfo({
            lpToken: _st,
            allocPoint: 1500,
            lastRewardBlock: startBlock,
            accCssPerShare: 0,
            fee: 0
        }));

        // stakePoolId cannot be changed afterwards
        stakePoolId = 0;

        // Must be the sum of all allocation points in all pools. Initially 1500 because of stake CssToken  pool
        totalAllocPoint = 1500;

        enableMethod[0] = false;
        enableMethod[1] = false;
        enableMethod[2] = true;

        timeFirstStep = now + 10 days;
        timeSecondStep = now + 365 days;
        timeThirdStep = now + 730 days;
        timeForthStep = now + 1095 days;
        timeFifthStep = now + 1460 days;
    }

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

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

    //used to prevent LP token duplication
    mapping(IBEP20 => bool) public poolExistence;
    modifier nonDuplicated(IBEP20 _lpToken) {
        require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated");
        _;
    }

    //validated if the pool with _pid exists
    modifier validatePoolByPid(uint256 _pid) {
        require (_pid < poolInfo . length , "Pool does not exist") ;
        _;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // Each LP token address can be added only once- safeguarded by poolExistence
    function add(uint256 _allocPoint, IBEP20 _lpToken, bool _withUpdate, uint256 __lastRewardBlock, uint256 __fee) public onlyOwner nonDuplicated(_lpToken) {

        // if _fee == 10 then 100% of dev and treasury fee is applied, if _fee = 5 then 50% discount, if 0 , no fee
        require(__fee <= 10, "Fee is higher than allowed: must be in range 0-10 (0-100%)");

        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = __lastRewardBlock == 0 ? block.number > startBlock ? block.number : startBlock : __lastRewardBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolExistence[_lpToken] = true;
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accCssPerShare: 0,
            fee:__fee
        }));
    }

    // Update the given pool's CSS allocation point. Can only be called by the owner. If update lastrewardblock, need update pools
    function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate, uint256 __lastRewardBloc, uint256 __fee) public onlyOwner validatePoolByPid(_pid) {
        // if _fee == 10 then 100% of dev and treasury fee is applied, if _fee = 5 then 50% discount, if 0 , no fee
        require(__fee <= 10, "Fee is higher than allowed: must be in range 0-10 (0-100%)");

        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
        if (__lastRewardBloc > 0)
            poolInfo[_pid].lastRewardBlock = __lastRewardBloc;

        poolInfo[_pid].fee = __fee;
    }

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

    // View function to see pending tokens on frontend.
    function pendingReward(uint256 _pid, address _user) external validatePoolByPid(_pid) validatePoolByPid(_pid) returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accCssPerShare = pool.accCssPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));

        if(now < timeFirstStep)
            cssPerBlock = 6*10**17;
        else if(timeFirstStep < now && now < timeSecondStep)
            cssPerBlock = 45*10**16;
        else if(timeSecondStep < now && now < timeThirdStep)
            cssPerBlock = 41*10**16;
        else if(timeThirdStep < now && now < timeForthStep)
            cssPerBlock = 37*10**16;
        else if(timeForthStep < now && now < timeFifthStep)
            cssPerBlock = 33*10**16;
        else if(timeFifthStep < now)
            cssPerBlock = 29*10**16;

        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 cssReward = multiplier.mul(cssPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accCssPerShare = accCssPerShare.add(cssReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accCssPerShare).div(1e12).sub(user.rewardDebt);
    }

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

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid)  validatePoolByPid(_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;
        }

        if(now < timeFirstStep)
            cssPerBlock = 6*10**17;
        else if(timeFirstStep < now && now < timeSecondStep)
            cssPerBlock = 45*10**16;
        else if(timeSecondStep < now && now < timeThirdStep)
            cssPerBlock = 41*10**16;
        else if(timeThirdStep < now && now < timeForthStep)
            cssPerBlock = 37*10**16;
        else if(timeForthStep < now && now < timeFifthStep)
            cssPerBlock = 33*10**16;
        else if(timeFifthStep < now)
            cssPerBlock = 29*10**16;

        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 cssReward = multiplier.mul(cssPerBlock).mul(pool.allocPoint).div(totalAllocPoint);

        uint256 devMintAmount = cssReward.mul(MINT_FEE).div(10000);
        //mint to dev - fixed 8%
        st.mint(devAddress, devMintAmount);

        //mint to sender - fixed 92%
        st.mint(address(this), cssReward.sub(devMintAmount));

        pool.accCssPerShare = pool.accCssPerShare.add(cssReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Harvest All Rewards pools where user has pending balance at same time!  Be careful of gas spending!
    function massHarvest(uint256[] memory idsx) public {
        require(enableMethod[0], "Method not enabled in contract");

        uint256 idxlength = idsx.length;
        address nulladdress = address(0);
        for (uint256 i = 0; i < idxlength; i++) {
            deposit(idsx[i], 0, nulladdress);
        }

    }

    // Stake All Rewards to stakepool all pools where user has pending balance at same time!  Be careful of gas spending!
    function massStake(uint256[] memory idsx) public {
        require(enableMethod[1], "Method not enabled in contract");
        uint256 idxlength = idsx.length;
        for (uint256 i = 0; i < idxlength; i++) {
            stakeReward(idsx[i]);
        }
    }

    // Deposit LP tokens to MasterCSS for CSS allocation.
    function deposit(uint256 _pid, uint256 _amount, address referrer) validatePoolByPid(_pid)  public {


        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        // anti -backdoor
        require((block.number >= pool.lastRewardBlock || _amount == 0), "pool didnt start yet");

        updatePool(_pid);
        if (_amount > 0 && rewardReferral != address(0) && referrer != address(0)) {
            CssReferral(rewardReferral).setCssReferral(msg.sender, referrer);
        }

        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accCssPerShare).div(1e12).sub(user.rewardDebt);
            if (pending > 0) {
                payRefFees(pending);
                safeTransfer(msg.sender, pending);
                emit RewardPaid(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            if (pool.fee > 0) {
                // if pool.fee = 10 ==>  375 * 10/100000 = 3,75% fee
                // if pool.fee = 5 ==>  375 * 5/100000 = 1,875% fee
                // if pool.fee = 0 ==>  375 * 0/100000 = 0 fee
                uint256 treasuryFee = _amount.mul(pool.fee).mul(DIV_POOL_FEE).div(100000);
                uint256 devFee = _amount.mul(pool.fee).mul(DIV_DEV_FEE).div(100000);

                pool.lpToken.safeTransfer(divPoolAddress, treasuryFee);
                pool.lpToken.safeTransfer(devAddress, devFee);

                user.amount = user.amount.add(_amount).sub(treasuryFee).sub(devFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }

        user.rewardDebt = user.amount.mul(pool.accCssPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // user can choose autoStake reward to stake pool instead just harvest
    function stakeReward(uint256 _pid) validatePoolByPid(_pid) public {
        require(enableMethod[2] && _pid != stakePoolId);

        UserInfo storage user = userInfo[_pid][msg.sender];

        if (user.amount > 0) {
            PoolInfo storage pool = poolInfo[_pid];

            updatePool(_pid);

            uint256 pending = user.amount.mul(pool.accCssPerShare).div(1e12).sub(user.rewardDebt);
            if (pending > 0) {
                payRefFees(pending);

                safeTransfer(msg.sender, pending);
                emit RewardPaid(msg.sender, pending);

                deposit(stakePoolId, pending, address(0));

            }
            user.rewardDebt = user.amount.mul(pool.accCssPerShare).div(1e12);
        }

    }

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


        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accCssPerShare).div(1e12).sub(user.rewardDebt);
        if (pending > 0) {
            payRefFees(pending);

            safeTransfer(msg.sender, pending);
            emit RewardPaid(msg.sender, pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accCssPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    function payRefFees(uint256 pending) internal
    {
        uint256 toReferral = pending.mul(DIV_REFERRAL_FEE).div(10000);
        // 15%

        address referrer = address(0);
        if (rewardReferral != address(0)) {
            referrer = CssReferral(rewardReferral).getCssReferral(msg.sender);
        }

        if (referrer != address(0)) {// send commission to referrer
            st.mint(referrer, toReferral);
            emit ReferralPaid(msg.sender, referrer, toReferral);
        }
    }


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

    function safeTransfer(address _to, uint256 _amount) internal {
        uint256 sbal = st.balanceOf(address(this));
        if (_amount > sbal) {
            st.transfer(_to, sbal);
        } else {
            st.transfer(_to, _amount);
        }
    }

    function setDivPoolAddress(address _divPoolAddress) public onlyOwner {
        divPoolAddress = _divPoolAddress;
        emit SetDevPoolAddress(msg.sender, _divPoolAddress);
    }

    // Update dev address by the previous dev.
    function setDevAddress(address _devaddr) public onlyOwner {
        devAddress = _devaddr;
        emit SetDevAddress(msg.sender, _devaddr);
    }

    function setEnableMethod(uint256 _id, bool enabled) public onlyOwner
    {
        enableMethod[_id] = enabled;
        emit SetEnableMethod(msg.sender, _id, enabled);
    }

    function setRewardReferral(address _rewardReferral) external onlyOwner {
        rewardReferral = _rewardReferral;
        emit SetRewardReferralAddress(msg.sender, _rewardReferral);
    }

}

File 2 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

File 3 of 9 : IBEP20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.4;

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 9 : BEP20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.0;

import './Ownable.sol';
import './Context.sol';
import '../interfaces/IBEP20.sol';
import './SafeMath.sol';

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

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

    /**
    * @dev Returns the number of decimals used to get its user representation.
    */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, 'BEP20: burn amount exceeds allowance'));
    }
}

File 5 of 9 : CSSToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

import "./libraries/BEP20.sol";

// CoinSwap Token with Governance.
contract CssToken is BEP20('CoinSwap Token', 'CSS') {
    
    uint256 private constant _initialSupply = 400000*10**18;
    uint256 private constant _maxSupply = 19999999*10**18;
    
    constructor() public {
        _mint(msg.sender, _initialSupply);
    }
    
    function mint(address _to, uint256 _amount) public onlyOwner {
        
        uint256 currentSupply = totalSupply();
        uint256 totalAmount = currentSupply.add(_amount);
        
        require(totalAmount <= _maxSupply, "HardCap: overflow");
        
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

    mapping (address => address) internal _delegates;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

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

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

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

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

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

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

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

File 6 of 9 : SafeBEP20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;

import "../interfaces/IBEP20.sol";
import "./SafeMath.sol";
import "./Address.sol";

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

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

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

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

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

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

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

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

File 7 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;

import "./Context.sol";
/**
 * @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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public 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 8 of 9 : Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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 GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

File 9 of 9 : Address.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <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);
    }

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"contract CssToken","name":"_st","type":"address"},{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"address","name":"_divPoolAddress","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"userTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"ReferralPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"devAddress","type":"address"}],"name":"SetDevAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"divPoolAddress","type":"address"}],"name":"SetDevPoolAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"methodId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SetEnableMethod","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"referralAddress","type":"address"}],"name":"SetRewardReferralAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"DIV_DEV_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DIV_POOL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DIV_REFERRAL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"__lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"__fee","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bonusMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cssPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"referrer","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"divPoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"enableMethod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"idsx","type":"uint256[]"}],"name":"massHarvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"idsx","type":"uint256[]"}],"name":"massStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accCssPerShare","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardReferral","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"__lastRewardBloc","type":"uint256"},{"internalType":"uint256","name":"__fee","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_divPoolAddress","type":"address"}],"name":"setDivPoolAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setEnableMethod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardReferral","type":"address"}],"name":"setRewardReferral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"st","outputs":[{"internalType":"contract CssToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakePoolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"stakeReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeFifthStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeFirstStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeForthStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeSecondStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeThirdStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"multiplierNumber","type":"uint256"}],"name":"updateMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61014060405260016005553480156200001757600080fd5b506040516200320c3803806200320c833981810160405260808110156200003d57600080fd5b508051602082015160408301516060909301519192909160006200006062000314565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35083600160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555082600260006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081600360006101000a8154816001600160a01b0302191690836001600160a01b03160217905550670853a0d2313c0000600481905550806009819055506001600c6000866001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555060066040518060a00160405280866001600160a01b031681526020016105dc81526020016009548152602001600081526020016000815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550602082015181600101556040820151816002015560608201518160030155608082015181600401555050600061012081815250506105dc6008819055506000600b600080815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600b60006001815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600b60006002815260200190815260200160002060006101000a81548160ff02191690831515021790555042620d2f000160808181525050426301e133800160a08181525050426303c267000160c08181525050426305a39a800160e0818152505042630784ce000161010081815250505050505062000318565b3390565b60805160a05160c05160e0516101005161012051612e3c620003d0600039806109065280612266528061235e525080610dd95280610e145280611bef5280611c2a5280611d0552508061092a5280610d755280610db05280611b8b5280611bc6525080610d115280610d4c52806110b55280611b275280611b62525080610cad5280610ce85280611ac35280611afe5280612114525080610c4a5280610c8452806113e95280611a605280611a9a5250612e3c6000f3fe608060405234801561001057600080fd5b50600436106102685760003560e01c80636fc67cc211610151578063ae8af9bc116100c3578063cdb05dd511610087578063cdb05dd51461074c578063d0d41fe114610754578063d7bf81a31461077a578063dc72bb9714610782578063f2fde38b1461079f578063fc3964ed146107c557610268565b8063ae8af9bc14610584578063b4c643b514610627578063c52988cc1461065e578063c8133f6714610701578063cbd258b51461072657610268565b80638dbdbe6d116101155780638dbdbe6d146104ab5780638f3eef5f146104dd57806393f1a40b1461050357806398969e82146105485780639ea71cf014610574578063a8b973a11461057c57610268565b80636fc67cc214610468578063715018a61461047057806373f0cc2d146104785780638da5cb5b146104805780638dbb1e3a1461048857610268565b806342f1d80b116101ea5780635a173256116101ae5780635a173256146103eb5780635bb493bd146103f35780635ffe6146146103fb57806362e006c714610418578063630b5ba11461045857806367bed16a1461046057610268565b806342f1d80b1461037e578063441a3e701461038657806348cd4cb1146103a957806351eb05a6146103b15780635312ea8e146103ce57610268565b806317caf6f11161023157806317caf6f11461035657806328e460ea1461035e5780632a453d80146103665780633ad10ef61461036e5780633c3e99ea1461037657610268565b80622dcfb91461026d578063081e3eda146102955780630cdb43c4146102af57806313cd95a5146102d35780631526fe2714610304575b600080fd5b6102936004803603602081101561028357600080fd5b50356001600160a01b03166107cd565b005b61029d610871565b60408051918252519081900360200190f35b6102b7610877565b604080516001600160a01b039092168252519081900360200190f35b6102f0600480360360208110156102e957600080fd5b5035610886565b604080519115158252519081900360200190f35b6103216004803603602081101561031a57600080fd5b503561089b565b604080516001600160a01b03909616865260208601949094528484019290925260608401526080830152519081900360a00190f35b61029d6108e3565b61029d6108e9565b61029d6108ef565b6102b76108f5565b61029d610904565b61029d610928565b6102936004803603604081101561039c57600080fd5b508035906020013561094c565b61029d610b3a565b610293600480360360208110156103c757600080fd5b5035610b40565b610293600480360360208110156103e457600080fd5b5035610fc9565b61029d6110b3565b61029d6110d7565b6102936004803603602081101561041157600080fd5b50356110dc565b610293600480360360a081101561042e57600080fd5b508035906001600160a01b0360208201351690604081013515159060608101359060800135611139565b6102936113b9565b6102b76113d8565b61029d6113e7565b61029361140b565b6102b76114ad565b6102b76114bc565b61029d6004803603604081101561049e57600080fd5b50803590602001356114cb565b610293600480360360608110156104c157600080fd5b50803590602081013590604001356001600160a01b03166114e8565b610293600480360360208110156104f357600080fd5b50356001600160a01b0316611840565b61052f6004803603604081101561051957600080fd5b50803590602001356001600160a01b03166118e4565b6040805192835260208301919091528051918290030190f35b61029d6004803603604081101561055e57600080fd5b50803590602001356001600160a01b0316611908565b61029d611d03565b61029d611d27565b6102936004803603602081101561059a57600080fd5b8101906020810181356401000000008111156105b557600080fd5b8201836020820111156105c757600080fd5b803590602001918460208302840111640100000000831117156105e957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611d2d945050505050565b610293600480360360a081101561063d57600080fd5b50803590602081013590604081013515159060608101359060800135611de3565b6102936004803603602081101561067457600080fd5b81019060208101813564010000000081111561068f57600080fd5b8201836020820111156106a157600080fd5b803590602001918460208302840111640100000000831117156106c357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611f91945050505050565b6102936004803603604081101561071757600080fd5b5080359060200135151561204b565b6102f06004803603602081101561073c57600080fd5b50356001600160a01b03166120fd565b61029d612112565b6102936004803603602081101561076a57600080fd5b50356001600160a01b0316612136565b61029d6121da565b6102936004803603602081101561079857600080fd5b50356121e0565b610293600480360360208110156107b557600080fd5b50356001600160a01b03166123ac565b61029d6124a4565b6107d56124aa565b6000546001600160a01b03908116911614610825576040805162461bcd60e51b81526020600482018190526024820152600080516020612de7833981519152604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b03831690811790915560405133907fc38d5241a0e3b11cbb7fa74cfaa9cf418dc3f696f245702ae5ac7ed98a745a9e90600090a350565b60065490565b600a546001600160a01b031681565b600b6020526000908152604090205460ff1681565b600681815481106108a857fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b60085481565b61017781565b60045481565b6002546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6006548290811061099a576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b6000600684815481106109a957fe5b600091825260208083208784526007825260408085203386529092529220805460059092029092019250841115610a1c576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610a2585610b40565b6000610a5f8260010154610a5964e8d4a51000610a53876003015487600001546124ae90919063ffffffff16565b90612507565b90612549565b90508015610ab157610a708161258b565b610a7a33826126f1565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b8415610adb578154610ac39086612549565b82558254610adb906001600160a01b03163387612881565b60038301548254610af69164e8d4a5100091610a53916124ae565b6001830155604080518681529051879133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60095481565b60065481908110610b8e576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b600060068381548110610b9d57fe5b9060005260206000209060050201905080600201544311610bbe5750610fc5565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610c0857600080fd5b505afa158015610c1c573d6000803e3d6000fd5b505050506040513d6020811015610c3257600080fd5b5051905080610c48575043600290910155610fc5565b7f0000000000000000000000000000000000000000000000000000000000000000421015610c8157670853a0d2313c0000600455610e46565b427f0000000000000000000000000000000000000000000000000000000000000000108015610ccf57507f000000000000000000000000000000000000000000000000000000000000000042105b15610ce55767063eb89da4ed0000600455610e46565b427f0000000000000000000000000000000000000000000000000000000000000000108015610d3357507f000000000000000000000000000000000000000000000000000000000000000042105b15610d49576705b09cd3e5e90000600455610e46565b427f0000000000000000000000000000000000000000000000000000000000000000108015610d9757507f000000000000000000000000000000000000000000000000000000000000000042105b15610dad57670522810a26e50000600455610e46565b427f0000000000000000000000000000000000000000000000000000000000000000108015610dfb57507f000000000000000000000000000000000000000000000000000000000000000042105b15610e1157670494654067e10000600455610e46565b427f00000000000000000000000000000000000000000000000000000000000000001015610e46576704064976a8dd00006004555b6000610e568360020154436114cb565b90506000610e83600854610a538660010154610e7d600454876124ae90919063ffffffff16565b906124ae565b90506000610e99612710610a53846103206124ae565b600154600254604080516340c10f1960e01b81526001600160a01b0392831660048201526024810185905290519394509116916340c10f199160448082019260009290919082900301818387803b158015610ef357600080fd5b505af1158015610f07573d6000803e3d6000fd5b50506001546001600160a01b031691506340c10f19905030610f298585612549565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610f6f57600080fd5b505af1158015610f83573d6000803e3d6000fd5b50505050610fb1610fa685610a5364e8d4a51000866124ae90919063ffffffff16565b6003870154906128d3565b600386015550504360029093019290925550505b5050565b60065481908110611017576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b60006006838154811061102657fe5b6000918252602080832086845260078252604080852033808752935290932080546005909302909301805490945061106b926001600160a01b03919091169190612881565b80546040805191825251859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a36000808255600190910155505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b607d81565b6110e46124aa565b6000546001600160a01b03908116911614611134576040805162461bcd60e51b81526020600482018190526024820152600080516020612de7833981519152604482015290519081900360640190fd5b600555565b6111416124aa565b6000546001600160a01b03908116911614611191576040805162461bcd60e51b81526020600482018190526024820152600080516020612de7833981519152604482015290519081900360640190fd5b6001600160a01b0384166000908152600c6020526040902054849060ff1615611201576040805162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000604482015290519081900360640190fd5b600a8211156112415760405162461bcd60e51b815260040180806020018281038252603a815260200180612d8c603a913960400191505060405180910390fd5b831561124f5761124f6113b9565b6000831561125d5783611270565b600954431161126e57600954611270565b435b60085490915061128090886128d3565b6008556001600160a01b039586166000818152600c602090815260408083208054600160ff199091168117909155815160a0810183529485529184019a8b528301938452606083018281526080840196875260068054928301815590925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600590930292830180546001600160a01b031916919099161790975596517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40880155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d418701555092517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d428501555050517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4390910155565b60065460005b81811015610fc5576113d081610b40565b6001016113bf565b6003546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6114136124aa565b6000546001600160a01b03908116911614611463576040805162461bcd60e51b81526020600482018190526024820152600080516020612de7833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001546001600160a01b031681565b6000546001600160a01b031690565b6005546000906114df90610e7d8486612549565b90505b92915050565b60065483908110611536576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b60006006858154811061154557fe5b600091825260208083208884526007825260408085203386529092529220600260059092029092019081015490925043101580611580575084155b6115c8576040805162461bcd60e51b81526020600482015260146024820152731c1bdbdb08191a591b9d081cdd185c9d081e595d60621b604482015290519081900360640190fd5b6115d186610b40565b6000851180156115eb5750600a546001600160a01b031615155b80156115ff57506001600160a01b03841615155b1561167157600a54604080516315403fe160e21b81523360048201526001600160a01b03878116602483015291519190921691635500ff8491604480830192600092919082900301818387803b15801561165857600080fd5b505af115801561166c573d6000803e3d6000fd5b505050505b8054156116fa5760006116a68260010154610a5964e8d4a51000610a53876003015487600001546124ae90919063ffffffff16565b905080156116f8576116b78161258b565b6116c133826126f1565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b84156117e1578154611717906001600160a01b031633308861292d565b6004820154156117d2576000611747620186a0610a53610177610e7d87600401548b6124ae90919063ffffffff16565b9050600061176e620186a0610a53607d610e7d88600401548c6124ae90919063ffffffff16565b600354855491925061178d916001600160a01b03908116911684612881565b60025484546117a9916001600160a01b03918216911683612881565b6117c881610a5984610a598b88600001546128d390919063ffffffff16565b8355506117e19050565b80546117de90866128d3565b81555b600382015481546117fc9164e8d4a5100091610a53916124ae565b6001820155604080518681529051879133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050505050565b6118486124aa565b6000546001600160a01b03908116911614611898576040805162461bcd60e51b81526020600482018190526024820152600080516020612de7833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b03831690811790915560405133907fefe191d36b9f8ee74a6a95afa1bce88e29be33cf3976724b8d77db7d1f2a348890600090a350565b60076020908152600092835260408084209091529082529020805460019091015482565b60065460009083908110611959576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b600654849081106119a7576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b6000600686815481106119b657fe5b600091825260208083208984526007825260408085206001600160a01b038b811687529084528186206005959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b158015611a3057600080fd5b505afa158015611a44573d6000803e3d6000fd5b505050506040513d6020811015611a5a57600080fd5b505190507f0000000000000000000000000000000000000000000000000000000000000000421015611a9757670853a0d2313c0000600455611c5c565b427f0000000000000000000000000000000000000000000000000000000000000000108015611ae557507f000000000000000000000000000000000000000000000000000000000000000042105b15611afb5767063eb89da4ed0000600455611c5c565b427f0000000000000000000000000000000000000000000000000000000000000000108015611b4957507f000000000000000000000000000000000000000000000000000000000000000042105b15611b5f576705b09cd3e5e90000600455611c5c565b427f0000000000000000000000000000000000000000000000000000000000000000108015611bad57507f000000000000000000000000000000000000000000000000000000000000000042105b15611bc357670522810a26e50000600455611c5c565b427f0000000000000000000000000000000000000000000000000000000000000000108015611c1157507f000000000000000000000000000000000000000000000000000000000000000042105b15611c2757670494654067e10000600455611c5c565b427f00000000000000000000000000000000000000000000000000000000000000001015611c5c576704064976a8dd00006004555b836002015443118015611c6e57508015155b15611cce576000611c838560020154436114cb565b90506000611caa600854610a538860010154610e7d600454876124ae90919063ffffffff16565b9050611cc9611cc284610a538464e8d4a510006124ae565b85906128d3565b935050505b611cf68360010154610a5964e8d4a51000610a538688600001546124ae90919063ffffffff16565b9998505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60055481565b6001600052600b6020527f72c6bfb7988af3a1efa6568f02a999bc52252641c659d85961ca3d372b57d5cf5460ff16611dad576040805162461bcd60e51b815260206004820152601e60248201527f4d6574686f64206e6f7420656e61626c656420696e20636f6e74726163740000604482015290519081900360640190fd5b805160005b81811015611dde57611dd6838281518110611dc957fe5b60200260200101516121e0565b600101611db2565b505050565b611deb6124aa565b6000546001600160a01b03908116911614611e3b576040805162461bcd60e51b81526020600482018190526024820152600080516020612de7833981519152604482015290519081900360640190fd5b60065485908110611e89576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b600a821115611ec95760405162461bcd60e51b815260040180806020018281038252603a815260200180612d8c603a913960400191505060405180910390fd5b8315611ed757611ed76113b9565b611f1485611f0e60068981548110611eeb57fe5b90600052602060002090600502016001015460085461254990919063ffffffff16565b906128d3565b6008819055508460068781548110611f2857fe5b60009182526020909120600160059092020101558215611f66578260068781548110611f5057fe5b9060005260206000209060050201600201819055505b8160068781548110611f7457fe5b906000526020600020906005020160040181905550505050505050565b60008052600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f765460ff16612010576040805162461bcd60e51b815260206004820152601e60248201527f4d6574686f64206e6f7420656e61626c656420696e20636f6e74726163740000604482015290519081900360640190fd5b80516000805b828110156120455761203d84828151811061202d57fe5b60200260200101516000846114e8565b600101612016565b50505050565b6120536124aa565b6000546001600160a01b039081169116146120a3576040805162461bcd60e51b81526020600482018190526024820152600080516020612de7833981519152604482015290519081900360640190fd5b6000828152600b6020908152604091829020805460ff1916841515908117909155825185815291820152815133927f3f08bf68fd393cc7db6fde85730b670e8c582044d4653fd15c7394276bb1cbec928290030190a25050565b600c6020526000908152604090205460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b61213e6124aa565b6000546001600160a01b0390811691161461218e576040805162461bcd60e51b81526020600482018190526024820152600080516020612de7833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f618c54559e94f1499a808aad71ee8729f8e74e8c48e979616328ce493a1a52e790600090a350565b61032081565b6006548190811061222e576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b6002600052600b6020527fa50eece07c7db1631545c0069bd8f5f54d5935e215d59097edf258a44ba916345460ff16801561228957507f00000000000000000000000000000000000000000000000000000000000000008214155b61229257600080fd5b60008281526007602090815260408083203384529091529020805415611dde576000600684815481106122c157fe5b906000526020600020906005020190506122da84610b40565b60006123088360010154610a5964e8d4a51000610a53866003015488600001546124ae90919063ffffffff16565b90508015612385576123198161258b565b61232333826126f1565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a26123857f00000000000000000000000000000000000000000000000000000000000000008260006114e8565b600382015483546123a09164e8d4a5100091610a53916124ae565b60018401555050505050565b6123b46124aa565b6000546001600160a01b03908116911614612404576040805162461bcd60e51b81526020600482018190526024820152600080516020612de7833981519152604482015290519081900360640190fd5b6001600160a01b0381166124495760405162461bcd60e51b8152600401808060200182810382526026815260200180612d406026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6105dc81565b3390565b6000826124bd575060006114e2565b828202828482816124ca57fe5b04146114df5760405162461bcd60e51b8152600401808060200182810382526021815260200180612dc66021913960400191505060405180910390fd5b60006114df83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612987565b60006114df83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612a2b565b600061259f612710610a53846105dc6124ae565b600a549091506000906001600160a01b03161561263057600a5460408051632087569360e01b815233600482015290516001600160a01b0390921691632087569391602480820192602092909190829003018186803b15801561260157600080fd5b505afa158015612615573d6000803e3d6000fd5b505050506040513d602081101561262b57600080fd5b505190505b6001600160a01b03811615611dde57600154604080516340c10f1960e01b81526001600160a01b03848116600483015260248201869052915191909216916340c10f1991604480830192600092919082900301818387803b15801561269457600080fd5b505af11580156126a8573d6000803e3d6000fd5b50506040805185815290516001600160a01b03851693503392507f0a721ab4682ceb61c7e4d264ef879fc419a6d764b136e7d96ef54b2053c756739181900360200190a3505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561273c57600080fd5b505afa158015612750573d6000803e3d6000fd5b505050506040513d602081101561276657600080fd5b50519050808211156127fa576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156127c857600080fd5b505af11580156127dc573d6000803e3d6000fd5b505050506040513d60208110156127f257600080fd5b50611dde9050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561285057600080fd5b505af1158015612864573d6000803e3d6000fd5b505050506040513d602081101561287a57600080fd5b5050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611dde908490612a85565b6000828201838110156114df576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612045908590612a85565b60008183612a135760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156129d85781810151838201526020016129c0565b50505050905090810190601f168015612a055780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581612a1f57fe5b049150505b9392505050565b60008184841115612a7d5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156129d85781810151838201526020016129c0565b505050900390565b6060612ada826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612b369092919063ffffffff16565b805190915015611dde57808060200190516020811015612af957600080fd5b5051611dde5760405162461bcd60e51b815260040180806020018281038252602a815260200180612d16602a913960400191505060405180910390fd5b6060612b458484600085612b4d565b949350505050565b606082471015612b8e5760405162461bcd60e51b8152600401808060200182810382526026815260200180612d666026913960400191505060405180910390fd5b612b9785612ca9565b612be8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612c275780518252601f199092019160209182019101612c08565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612c89576040519150601f19603f3d011682016040523d82523d6000602084013e612c8e565b606091505b5091509150612c9e828286612caf565b979650505050505050565b3b151590565b60608315612cbe575081612a24565b825115612cce5782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156129d85781810151838201526020016129c056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c46656520697320686967686572207468616e20616c6c6f7765643a206d75737420626520696e2072616e676520302d31302028302d3130302529536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122051264ba69b5c34a573096771693dec0ad192efc09fa968825f2a47ab91e299d064736f6c634300060c003300000000000000000000000088b24495e1e632be0f0bb40467e0ad1a145fe4f9000000000000000000000000228c58ca2e55821727417a7675454259f0735b89000000000000000000000000e69ec7ca6838d6ed238a42a22654cfde1f4834880000000000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000088b24495e1e632be0f0bb40467e0ad1a145fe4f9000000000000000000000000228c58ca2e55821727417a7675454259f0735b89000000000000000000000000e69ec7ca6838d6ed238a42a22654cfde1f4834880000000000000000000000000000000000000000000000000000000000000000
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000088b24495e1e632be0f0bb40467e0ad1a145fe4f9
Arg [1] : 000000000000000000000000228c58ca2e55821727417a7675454259f0735b89
Arg [2] : 000000000000000000000000e69ec7ca6838d6ed238a42a22654cfde1f483488
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading