Contract 0x3A0a988D680dBBB02DECBfd35F9E0676B4bEc292 4

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x97b1845db44a7b3b38c4c3c9ea27326b6a3bdd772c33c7f272d475fb68a5c96bWithdraw118216022021-10-16 11:47:268 mins ago0x03ff6af23d954956874fb95609cc25ee6f71de5b IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.0006799
0xc97747604db9838fc01d272453effa43f7c022b73da632213a4641d781285d9eDeposit118215532021-10-16 11:44:5910 mins ago0x03ff6af23d954956874fb95609cc25ee6f71de5b IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000683215
0xc868b1121a975b1e81651b6f8ceb656f8f376404622f4e5bfa3a1a542ae25c38Mass Harvest118215502021-10-16 11:44:5011 mins ago0x03ff6af23d954956874fb95609cc25ee6f71de5b IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.00162764
0x2275ad655ac3a3b5b3a86e53fb8bef92053fb214060bca4dd413a6a65b543a0bMass Stake118214592021-10-16 11:40:1415 mins ago0x76a57d2518abd4ae2bd35b825209299ecc9ebd12 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.00250625
0xa938036904f291fbcb66655287862fe0aac828b78cce18401ad8b9607eff7eb9Deposit118214392021-10-16 11:39:1416 mins ago0x76a57d2518abd4ae2bd35b825209299ecc9ebd12 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000810615
0x64cdcbe5c9b40e3dcf5408fb6eef4dd197069e856583227d11a9779fb4a5dac1Deposit118213522021-10-16 11:34:5320 mins ago0x180aa36da381f84389e861a41d7160693ebf83cd IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000810675
0x13e2e07b880b5c166b5f47e189696be701872d8d59a8ad51a7c5cbf1615b8be1Deposit118213312021-10-16 11:33:5022 mins ago0x4d293a28244a4e9b46192a3c04e4fdc637d5f794 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.00065478
0x81c22be3846f6a83219b0941c56a87ad274feddb4f7aa7fb5fccbfb6a48b6ccfDeposit118213302021-10-16 11:33:4722 mins ago0x180aa36da381f84389e861a41d7160693ebf83cd IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.00075808
0xcddf53f0196a6e30384ca8c674e6b74ba20d237b78fd746b7917a741e4504586Deposit118212172021-10-16 11:28:0827 mins ago0x548e1f368058bb321a0ddd23b2fef1f75e4a7187 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.00068308
0xe51c7088263ad3edc468c98c6601e6d0c7d60bd20c8c9bc8361b5522bb70628fMass Stake118211462021-10-16 11:24:3531 mins ago0x4bc5853148d0ac3f849eea6f98420b0e2f9802b2 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.001275485
0x5cda28823665182cbd013b0dc1e4a6fe07c7bbfe5fb473c6cb937591023913daMass Stake118210892021-10-16 11:21:4434 mins ago0x1e81ea66c2d0d1aa88b5f63c310ae32c7658fd04 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.001126015
0x698969d1acc6e5d2836ec2e92a9068c3fcbc16f13bc336c6d5513dd7c784d0a7Mass Harvest118210752021-10-16 11:21:0234 mins ago0x648570656a67737734e735759aaaf52808965f60 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.00162764
0x2586dcc02199b10829070be58159481645b0dd185a3be6122e48088f77cea09aWithdraw118210632021-10-16 11:20:2635 mins ago0x4a2b5ac1028bb566a8d7d189440b23c2f85717d8 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000635995
0xba302ef4ea9dd12d94eb95839337b6ae6cb528f3e5a2d7ee9f25fdc38687fbe9Mass Harvest118210262021-10-16 11:18:3537 mins ago0x4a2b5ac1028bb566a8d7d189440b23c2f85717d8 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000678355
0x3da78cd23189a7491a7442d22c675f4b6960cb3921ada013cbadd9efbd6b6903Mass Stake118209262021-10-16 11:13:3542 mins ago0xefd67fef2a0800280076d5d008ef371080a2ebe7 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.001350485
0x3ef4f22dc4bd8747486c2bfbac4a548de58a3d14b783f690d25d0e055f277a3cMass Harvest118208162021-10-16 11:08:0547 mins ago0xb0720a40d6335df0ac90ff9e4b755217632ca78c IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000678355
0xeaaea91a7ebfa21ef0c2e242ead5a68652b88a07c5917aacebf166f447446df0Deposit118207912021-10-16 11:06:5049 mins ago0x289206d152b1208200499c736cab33e42b8dd4b0 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000899935
0x791a838deede24a956eb9fb81c677378908a6b83ecd38c97a84ff73d9b8ccc67Deposit118206272021-10-16 10:58:3857 mins ago0x289206d152b1208200499c736cab33e42b8dd4b0 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000974935
0x8b3a8ba133152f33cdaffeab697413a72f6fd7e70f3451835e7cd05d4f7d8026Deposit118205312021-10-16 10:53:501 hr 2 mins ago0x10e52fead2c608923fad2c0e08027c4791bf087b IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.00059798
0x10489305533d31ccc6659efb5a54b2874d17aabf47d8ca8f7058f878e0017298Mass Harvest118205242021-10-16 10:53:291 hr 2 mins ago0x10e52fead2c608923fad2c0e08027c4791bf087b IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.001819235
0x12899f73c634ab5405c8b10a307d9b317d157961410708733ca85522bbb27196Deposit118204592021-10-16 10:50:141 hr 5 mins ago0x1ce81fdc012b6962fdf13ef663c0476e0b805dcc IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000672845
0x308d0ea7c62eeddcd9530e2ee18aa6820f14ede25c4632d5034304a39c0fc7bdMass Stake118204242021-10-16 10:48:291 hr 7 mins ago0x9a5dbf9fbb77505cc638f0935e1bf8c895467e80 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.001126015
0x94397be2ee17240b10cc22c2a1d021b48911c46cf4fbf990221b2399d33ecb20Mass Harvest118203772021-10-16 10:46:081 hr 9 mins ago0x167ca61d08c2385bd6a7792169d8e4f77161408b IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000603355
0x3ae85ca7a210c98f088bccd9cb04a26a270e4f534b74561de9389dccd80ffbdbDeposit118203132021-10-16 10:42:561 hr 12 mins ago0x091e5780009f074c6ede9e25409299c51385ae4d IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000740015
0x6d956a5421caad60c1cb0ba6be56dfe5d5c4c5f9a1cecce0fd39710e3c5fc3c4Mass Harvest118202932021-10-16 10:41:561 hr 13 mins ago0x2976320ca285603682ea42fc0ac07cab67983da9 IN  0x3a0a988d680dbbb02decbfd35f9e0676b4bec2920 BNB0.000603355
[ Download CSV Export 
Parent Txn Hash Block From To Value
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 : 2000,
        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 = 2000;

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

            uint256 divMintFee = cssReward.mul(MINT_FEE).div(10000);

            accCssPerShare = accCssPerShare.add((cssReward.sub(divMintFee)).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.sub(devMintAmount).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 Security Audit

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"}]

61014060405260016005553480156200001757600080fd5b50604051620031dc380380620031dc833981810160405260808110156200003d57600080fd5b508051602082015160408301516060909301519192909160006200006062000314565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35083600160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555082600260006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081600360006101000a8154816001600160a01b0302191690836001600160a01b03160217905550670853a0d2313c0000600481905550806009819055506001600c6000866001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555060066040518060a00160405280866001600160a01b031681526020016107d081526020016009548152602001600081526020016000815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550602082015181600101556040820151816002015560608201518160030155608082015181600401555050600061012081815250506107d06008819055506000600b600080815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600b60006001815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600b60006002815260200190815260200160002060006101000a81548160ff02191690831515021790555042620d2f000160808181525050426301e133800160a08181525050426303c267000160c08181525050426305a39a800160e0818152505042630784ce000161010081815250505050505062000318565b3390565b60805160a05160c05160e0516101005161012051612e0c620003d0600039806109065280612236528061232e525080610dd95280610e145280611ba55280611be05280611cd552508061092a5280610d755280610db05280611b415280611b7c525080610d115280610d4c52806110b95280611add5280611b18525080610cad5280610ce85280611a795280611ab452806120e4525080610c4a5280610c8452806113ed5280611a165280611a505250612e0c6000f3fe608060405234801561001057600080fd5b50600436106102685760003560e01c80636fc67cc211610151578063ae8af9bc116100c3578063cdb05dd511610087578063cdb05dd51461074c578063d0d41fe114610754578063d7bf81a31461077a578063dc72bb9714610782578063f2fde38b1461079f578063fc3964ed146107c557610268565b8063ae8af9bc14610584578063b4c643b514610627578063c52988cc1461065e578063c8133f6714610701578063cbd258b51461072657610268565b80638dbdbe6d116101155780638dbdbe6d146104ab5780638f3eef5f146104dd57806393f1a40b1461050357806398969e82146105485780639ea71cf014610574578063a8b973a11461057c57610268565b80636fc67cc214610468578063715018a61461047057806373f0cc2d146104785780638da5cb5b146104805780638dbb1e3a1461048857610268565b806342f1d80b116101ea5780635a173256116101ae5780635a173256146103eb5780635bb493bd146103f35780635ffe6146146103fb57806362e006c714610418578063630b5ba11461045857806367bed16a1461046057610268565b806342f1d80b1461037e578063441a3e701461038657806348cd4cb1146103a957806351eb05a6146103b15780635312ea8e146103ce57610268565b806317caf6f11161023157806317caf6f11461035657806328e460ea1461035e5780632a453d80146103665780633ad10ef61461036e5780633c3e99ea1461037657610268565b80622dcfb91461026d578063081e3eda146102955780630cdb43c4146102af57806313cd95a5146102d35780631526fe2714610304575b600080fd5b6102936004803603602081101561028357600080fd5b50356001600160a01b03166107cd565b005b61029d610871565b60408051918252519081900360200190f35b6102b7610877565b604080516001600160a01b039092168252519081900360200190f35b6102f0600480360360208110156102e957600080fd5b5035610886565b604080519115158252519081900360200190f35b6103216004803603602081101561031a57600080fd5b503561089b565b604080516001600160a01b03909616865260208601949094528484019290925260608401526080830152519081900360a00190f35b61029d6108e3565b61029d6108e9565b61029d6108ef565b6102b76108f5565b61029d610904565b61029d610928565b6102936004803603604081101561039c57600080fd5b508035906020013561094c565b61029d610b3a565b610293600480360360208110156103c757600080fd5b5035610b40565b610293600480360360208110156103e457600080fd5b5035610fcd565b61029d6110b7565b61029d6110db565b6102936004803603602081101561041157600080fd5b50356110e0565b610293600480360360a081101561042e57600080fd5b508035906001600160a01b036020820135169060408101351515906060810135906080013561113d565b6102936113bd565b6102b76113dc565b61029d6113eb565b61029361140f565b6102b76114b1565b6102b76114c0565b61029d6004803603604081101561049e57600080fd5b50803590602001356114cf565b610293600480360360608110156104c157600080fd5b50803590602081013590604001356001600160a01b03166114ec565b610293600480360360208110156104f357600080fd5b50356001600160a01b0316611844565b61052f6004803603604081101561051957600080fd5b50803590602001356001600160a01b03166118e8565b6040805192835260208301919091528051918290030190f35b61029d6004803603604081101561055e57600080fd5b50803590602001356001600160a01b031661190c565b61029d611cd3565b61029d611cf7565b6102936004803603602081101561059a57600080fd5b8101906020810181356401000000008111156105b557600080fd5b8201836020820111156105c757600080fd5b803590602001918460208302840111640100000000831117156105e957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611cfd945050505050565b610293600480360360a081101561063d57600080fd5b50803590602081013590604081013515159060608101359060800135611db3565b6102936004803603602081101561067457600080fd5b81019060208101813564010000000081111561068f57600080fd5b8201836020820111156106a157600080fd5b803590602001918460208302840111640100000000831117156106c357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611f61945050505050565b6102936004803603604081101561071757600080fd5b5080359060200135151561201b565b6102f06004803603602081101561073c57600080fd5b50356001600160a01b03166120cd565b61029d6120e2565b6102936004803603602081101561076a57600080fd5b50356001600160a01b0316612106565b61029d6121aa565b6102936004803603602081101561079857600080fd5b50356121b0565b610293600480360360208110156107b557600080fd5b50356001600160a01b031661237c565b61029d612474565b6107d561247a565b6000546001600160a01b03908116911614610825576040805162461bcd60e51b81526020600482018190526024820152600080516020612db7833981519152604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b03831690811790915560405133907fc38d5241a0e3b11cbb7fa74cfaa9cf418dc3f696f245702ae5ac7ed98a745a9e90600090a350565b60065490565b600a546001600160a01b031681565b600b6020526000908152604090205460ff1681565b600681815481106108a857fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b60085481565b61017781565b60045481565b6002546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6006548290811061099a576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b6000600684815481106109a957fe5b600091825260208083208784526007825260408085203386529092529220805460059092029092019250841115610a1c576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610a2585610b40565b6000610a5f8260010154610a5964e8d4a51000610a538760030154876000015461247e90919063ffffffff16565b906124d7565b90612519565b90508015610ab157610a708161255b565b610a7a33826126c1565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b8415610adb578154610ac39086612519565b82558254610adb906001600160a01b03163387612851565b60038301548254610af69164e8d4a5100091610a539161247e565b6001830155604080518681529051879133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60095481565b60065481908110610b8e576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b600060068381548110610b9d57fe5b9060005260206000209060050201905080600201544311610bbe5750610fc9565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610c0857600080fd5b505afa158015610c1c573d6000803e3d6000fd5b505050506040513d6020811015610c3257600080fd5b5051905080610c48575043600290910155610fc9565b7f0000000000000000000000000000000000000000000000000000000000000000421015610c8157670853a0d2313c0000600455610e46565b427f0000000000000000000000000000000000000000000000000000000000000000108015610ccf57507f000000000000000000000000000000000000000000000000000000000000000042105b15610ce55767063eb89da4ed0000600455610e46565b427f0000000000000000000000000000000000000000000000000000000000000000108015610d3357507f000000000000000000000000000000000000000000000000000000000000000042105b15610d49576705b09cd3e5e90000600455610e46565b427f0000000000000000000000000000000000000000000000000000000000000000108015610d9757507f000000000000000000000000000000000000000000000000000000000000000042105b15610dad57670522810a26e50000600455610e46565b427f0000000000000000000000000000000000000000000000000000000000000000108015610dfb57507f000000000000000000000000000000000000000000000000000000000000000042105b15610e1157670494654067e10000600455610e46565b427f00000000000000000000000000000000000000000000000000000000000000001015610e46576704064976a8dd00006004555b6000610e568360020154436114cf565b90506000610e83600854610a538660010154610e7d6004548761247e90919063ffffffff16565b9061247e565b90506000610e99612710610a538461032061247e565b600154600254604080516340c10f1960e01b81526001600160a01b0392831660048201526024810185905290519394509116916340c10f199160448082019260009290919082900301818387803b158015610ef357600080fd5b505af1158015610f07573d6000803e3d6000fd5b50506001546001600160a01b031691506340c10f19905030610f298585612519565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610f6f57600080fd5b505af1158015610f83573d6000803e3d6000fd5b50505050610fb5610faa85610a5364e8d4a51000610e7d868861251990919063ffffffff16565b6003870154906128a3565b600386015550504360029093019290925550505b5050565b6006548190811061101b576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b60006006838154811061102a57fe5b6000918252602080832086845260078252604080852033808752935290932080546005909302909301805490945061106f926001600160a01b03919091169190612851565b80546040805191825251859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a36000808255600190910155505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b607d81565b6110e861247a565b6000546001600160a01b03908116911614611138576040805162461bcd60e51b81526020600482018190526024820152600080516020612db7833981519152604482015290519081900360640190fd5b600555565b61114561247a565b6000546001600160a01b03908116911614611195576040805162461bcd60e51b81526020600482018190526024820152600080516020612db7833981519152604482015290519081900360640190fd5b6001600160a01b0384166000908152600c6020526040902054849060ff1615611205576040805162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000604482015290519081900360640190fd5b600a8211156112455760405162461bcd60e51b815260040180806020018281038252603a815260200180612d5c603a913960400191505060405180910390fd5b8315611253576112536113bd565b600083156112615783611274565b600954431161127257600954611274565b435b60085490915061128490886128a3565b6008556001600160a01b039586166000818152600c602090815260408083208054600160ff199091168117909155815160a0810183529485529184019a8b528301938452606083018281526080840196875260068054928301815590925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600590930292830180546001600160a01b031916919099161790975596517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40880155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d418701555092517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d428501555050517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4390910155565b60065460005b81811015610fc9576113d481610b40565b6001016113c3565b6003546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b61141761247a565b6000546001600160a01b03908116911614611467576040805162461bcd60e51b81526020600482018190526024820152600080516020612db7833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001546001600160a01b031681565b6000546001600160a01b031690565b6005546000906114e390610e7d8486612519565b90505b92915050565b6006548390811061153a576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b60006006858154811061154957fe5b600091825260208083208884526007825260408085203386529092529220600260059092029092019081015490925043101580611584575084155b6115cc576040805162461bcd60e51b81526020600482015260146024820152731c1bdbdb08191a591b9d081cdd185c9d081e595d60621b604482015290519081900360640190fd5b6115d586610b40565b6000851180156115ef5750600a546001600160a01b031615155b801561160357506001600160a01b03841615155b1561167557600a54604080516315403fe160e21b81523360048201526001600160a01b03878116602483015291519190921691635500ff8491604480830192600092919082900301818387803b15801561165c57600080fd5b505af1158015611670573d6000803e3d6000fd5b505050505b8054156116fe5760006116aa8260010154610a5964e8d4a51000610a538760030154876000015461247e90919063ffffffff16565b905080156116fc576116bb8161255b565b6116c533826126c1565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b84156117e557815461171b906001600160a01b03163330886128fd565b6004820154156117d657600061174b620186a0610a53610177610e7d87600401548b61247e90919063ffffffff16565b90506000611772620186a0610a53607d610e7d88600401548c61247e90919063ffffffff16565b6003548554919250611791916001600160a01b03908116911684612851565b60025484546117ad916001600160a01b03918216911683612851565b6117cc81610a5984610a598b88600001546128a390919063ffffffff16565b8355506117e59050565b80546117e290866128a3565b81555b600382015481546118009164e8d4a5100091610a539161247e565b6001820155604080518681529051879133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050505050565b61184c61247a565b6000546001600160a01b0390811691161461189c576040805162461bcd60e51b81526020600482018190526024820152600080516020612db7833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b03831690811790915560405133907fefe191d36b9f8ee74a6a95afa1bce88e29be33cf3976724b8d77db7d1f2a348890600090a350565b60076020908152600092835260408084209091529082529020805460019091015482565b6006546000908390811061195d576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b60006006858154811061196c57fe5b600091825260208083208884526007825260408085206001600160a01b038a811687529084528186206005959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b1580156119e657600080fd5b505afa1580156119fa573d6000803e3d6000fd5b505050506040513d6020811015611a1057600080fd5b505190507f0000000000000000000000000000000000000000000000000000000000000000421015611a4d57670853a0d2313c0000600455611c12565b427f0000000000000000000000000000000000000000000000000000000000000000108015611a9b57507f000000000000000000000000000000000000000000000000000000000000000042105b15611ab15767063eb89da4ed0000600455611c12565b427f0000000000000000000000000000000000000000000000000000000000000000108015611aff57507f000000000000000000000000000000000000000000000000000000000000000042105b15611b15576705b09cd3e5e90000600455611c12565b427f0000000000000000000000000000000000000000000000000000000000000000108015611b6357507f000000000000000000000000000000000000000000000000000000000000000042105b15611b7957670522810a26e50000600455611c12565b427f0000000000000000000000000000000000000000000000000000000000000000108015611bc757507f000000000000000000000000000000000000000000000000000000000000000042105b15611bdd57670494654067e10000600455611c12565b427f00000000000000000000000000000000000000000000000000000000000000001015611c12576704064976a8dd00006004555b836002015443118015611c2457508015155b15611c9f576000611c398560020154436114cf565b90506000611c60600854610a538860010154610e7d6004548761247e90919063ffffffff16565b90506000611c76612710610a538461032061247e565b9050611c99611c9285610a5364e8d4a51000610e7d8787612519565b86906128a3565b94505050505b611cc78360010154610a5964e8d4a51000610a5386886000015461247e90919063ffffffff16565b98975050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60055481565b6001600052600b6020527f72c6bfb7988af3a1efa6568f02a999bc52252641c659d85961ca3d372b57d5cf5460ff16611d7d576040805162461bcd60e51b815260206004820152601e60248201527f4d6574686f64206e6f7420656e61626c656420696e20636f6e74726163740000604482015290519081900360640190fd5b805160005b81811015611dae57611da6838281518110611d9957fe5b60200260200101516121b0565b600101611d82565b505050565b611dbb61247a565b6000546001600160a01b03908116911614611e0b576040805162461bcd60e51b81526020600482018190526024820152600080516020612db7833981519152604482015290519081900360640190fd5b60065485908110611e59576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b600a821115611e995760405162461bcd60e51b815260040180806020018281038252603a815260200180612d5c603a913960400191505060405180910390fd5b8315611ea757611ea76113bd565b611ee485611ede60068981548110611ebb57fe5b90600052602060002090600502016001015460085461251990919063ffffffff16565b906128a3565b6008819055508460068781548110611ef857fe5b60009182526020909120600160059092020101558215611f36578260068781548110611f2057fe5b9060005260206000209060050201600201819055505b8160068781548110611f4457fe5b906000526020600020906005020160040181905550505050505050565b60008052600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f765460ff16611fe0576040805162461bcd60e51b815260206004820152601e60248201527f4d6574686f64206e6f7420656e61626c656420696e20636f6e74726163740000604482015290519081900360640190fd5b80516000805b828110156120155761200d848281518110611ffd57fe5b60200260200101516000846114ec565b600101611fe6565b50505050565b61202361247a565b6000546001600160a01b03908116911614612073576040805162461bcd60e51b81526020600482018190526024820152600080516020612db7833981519152604482015290519081900360640190fd5b6000828152600b6020908152604091829020805460ff1916841515908117909155825185815291820152815133927f3f08bf68fd393cc7db6fde85730b670e8c582044d4653fd15c7394276bb1cbec928290030190a25050565b600c6020526000908152604090205460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b61210e61247a565b6000546001600160a01b0390811691161461215e576040805162461bcd60e51b81526020600482018190526024820152600080516020612db7833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f618c54559e94f1499a808aad71ee8729f8e74e8c48e979616328ce493a1a52e790600090a350565b61032081565b600654819081106121fe576040805162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604482015290519081900360640190fd5b6002600052600b6020527fa50eece07c7db1631545c0069bd8f5f54d5935e215d59097edf258a44ba916345460ff16801561225957507f00000000000000000000000000000000000000000000000000000000000000008214155b61226257600080fd5b60008281526007602090815260408083203384529091529020805415611dae5760006006848154811061229157fe5b906000526020600020906005020190506122aa84610b40565b60006122d88360010154610a5964e8d4a51000610a538660030154886000015461247e90919063ffffffff16565b90508015612355576122e98161255b565b6122f333826126c1565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a26123557f00000000000000000000000000000000000000000000000000000000000000008260006114ec565b600382015483546123709164e8d4a5100091610a539161247e565b60018401555050505050565b61238461247a565b6000546001600160a01b039081169116146123d4576040805162461bcd60e51b81526020600482018190526024820152600080516020612db7833981519152604482015290519081900360640190fd5b6001600160a01b0381166124195760405162461bcd60e51b8152600401808060200182810382526026815260200180612d106026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6105dc81565b3390565b60008261248d575060006114e6565b8282028284828161249a57fe5b04146114e35760405162461bcd60e51b8152600401808060200182810382526021815260200180612d966021913960400191505060405180910390fd5b60006114e383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612957565b60006114e383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506129fb565b600061256f612710610a53846105dc61247e565b600a549091506000906001600160a01b03161561260057600a5460408051632087569360e01b815233600482015290516001600160a01b0390921691632087569391602480820192602092909190829003018186803b1580156125d157600080fd5b505afa1580156125e5573d6000803e3d6000fd5b505050506040513d60208110156125fb57600080fd5b505190505b6001600160a01b03811615611dae57600154604080516340c10f1960e01b81526001600160a01b03848116600483015260248201869052915191909216916340c10f1991604480830192600092919082900301818387803b15801561266457600080fd5b505af1158015612678573d6000803e3d6000fd5b50506040805185815290516001600160a01b03851693503392507f0a721ab4682ceb61c7e4d264ef879fc419a6d764b136e7d96ef54b2053c756739181900360200190a3505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561270c57600080fd5b505afa158015612720573d6000803e3d6000fd5b505050506040513d602081101561273657600080fd5b50519050808211156127ca576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561279857600080fd5b505af11580156127ac573d6000803e3d6000fd5b505050506040513d60208110156127c257600080fd5b50611dae9050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561282057600080fd5b505af1158015612834573d6000803e3d6000fd5b505050506040513d602081101561284a57600080fd5b5050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611dae908490612a55565b6000828201838110156114e3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612015908590612a55565b600081836129e35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156129a8578181015183820152602001612990565b50505050905090810190601f1680156129d55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816129ef57fe5b049150505b9392505050565b60008184841115612a4d5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156129a8578181015183820152602001612990565b505050900390565b6060612aaa826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612b069092919063ffffffff16565b805190915015611dae57808060200190516020811015612ac957600080fd5b5051611dae5760405162461bcd60e51b815260040180806020018281038252602a815260200180612ce6602a913960400191505060405180910390fd5b6060612b158484600085612b1d565b949350505050565b606082471015612b5e5760405162461bcd60e51b8152600401808060200182810382526026815260200180612d366026913960400191505060405180910390fd5b612b6785612c79565b612bb8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612bf75780518252601f199092019160209182019101612bd8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612c59576040519150601f19603f3d011682016040523d82523d6000602084013e612c5e565b606091505b5091509150612c6e828286612c7f565b979650505050505050565b3b151590565b60608315612c8e5750816129f4565b825115612c9e5782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156129a857818101518382015260200161299056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c46656520697320686967686572207468616e20616c6c6f7765643a206d75737420626520696e2072616e676520302d31302028302d3130302529536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220e508ecd2b164229d53e7c669173075fc31f57c5f68a6bb6cc77f7c2fcd0641ed64736f6c634300060c00330000000000000000000000003bc5798416c1122bcfd7cb0e055d50061f23850d000000000000000000000000c0e5ec2ad342f7edcaeacbef85e4ecde1e98af6d0000000000000000000000005f1b8c1865e01271fd095a0eae19a3d88d1971b60000000000000000000000000000000000000000000000000000000000000000

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

0000000000000000000000003bc5798416c1122bcfd7cb0e055d50061f23850d000000000000000000000000c0e5ec2ad342f7edcaeacbef85e4ecde1e98af6d0000000000000000000000005f1b8c1865e01271fd095a0eae19a3d88d1971b60000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _st (address): 0x3bc5798416c1122bcfd7cb0e055d50061f23850d
Arg [1] : _devAddress (address): 0xc0e5ec2ad342f7edcaeacbef85e4ecde1e98af6d
Arg [2] : _divPoolAddress (address): 0x5f1b8c1865e01271fd095a0eae19a3d88d1971b6
Arg [3] : _startBlock (uint256): 0

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000003bc5798416c1122bcfd7cb0e055d50061f23850d
Arg [1] : 000000000000000000000000c0e5ec2ad342f7edcaeacbef85e4ecde1e98af6d
Arg [2] : 0000000000000000000000005f1b8c1865e01271fd095a0eae19a3d88d1971b6
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
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.