Contract 0x36C0AA81C4711576270256a1118F35b3025d829B

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe24e7da2b3c48c132bbfa38d7ff1b766990cf926711f3b93ffcf1f765ae56e0bWithdraw260467732023-02-09 18:44:29226 days 12 hrs ago0x2c8cab98fa6322dd6d885221d8f5cc1db6947476 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.00418213866 26.94
0xef71abcc5a2a1c6f85a167b967ebd79514608debd2b70b939bbe4b63abcf6057Withdraw214100412022-10-22 22:45:27336 days 8 hrs ago0x4ff99787619274cca67ceb06aa332fd033221090 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0041141515 26.5
0xd9ee983a8e77165b9f56aa14bddf3b1587e0a6bdbf56f9be705de89289944470Withdraw211548102022-10-16 22:11:40342 days 9 hrs ago0x714caecfc9c146d8bc8845deb5574140e248992b IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.003778362527.5
0x2a528cdac74b9c1de6f17ab112b507354b774368c41e08a017f56f5f67fa48ffWithdraw211543642022-10-16 21:56:33342 days 9 hrs ago0x714caecfc9c146d8bc8845deb5574140e248992b IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.003799152527.5
0x447fa7e26cf7520e2efca22ee793b0a3b6defd96cfa488668ce73ab45d2a6d32Withdraw211327322022-10-16 9:38:59342 days 21 hrs ago0xc43e5c94f0fcf442db226ab78f4985607d366052 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.003691596975 27.425
0xf8625ac176ee865c95611507970c31f0699b464877f648e968c976a188a075c1Withdraw211327232022-10-16 9:38:41342 days 21 hrs ago0xc43e5c94f0fcf442db226ab78f4985607d366052 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0035868015 26.5
0x874c0e6d4f6cd471ae40ff4a4ac386087b31b60b7d2529c90a0eb64b11cbf869Withdraw211327132022-10-16 9:38:20342 days 21 hrs ago0xc43e5c94f0fcf442db226ab78f4985607d366052 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0040199175 26.5
0xc7fed9d99583d2bce75a9d93a5f51cd9214648c4c36ddf012276211fe434901bWithdraw211087752022-10-15 19:57:33343 days 11 hrs ago0x13f953ff0a90bb7515532b896444805db5bf9beb IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.003677087 26.5
0x992400f89fdd349d2f213c3556e545f3398f2f3a8497c0e4f14ca5e204977203Withdraw210913412022-10-15 10:03:31343 days 21 hrs ago0x7104a569eeacce4a4c63b14dc7fb22c7385adcf0 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0041144695 26.5
0x15d0db9ebd89b643b6f2da605ff2d3974fa613d392b88a752951936ad4f18bb5Withdraw210332132022-10-14 1:14:56345 days 6 hrs ago0x973ec591af024eace4b73f85526f6333734003d8 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.004884908696 31.616099572
0xc7fcaf98e966b39073aa39aff8c943571a6e5392db9e37aa6baca46a580da598Withdraw210165552022-10-13 15:44:37345 days 15 hrs ago0x0f8d94cea1eba9c582bbe800545ca91dfc39da18 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.00411617727
0xf15e5161d8bcda2760246b84a270c9d01b2c1a7d0fe136209d6e8de45116dc1cWithdraw210118562022-10-13 13:04:41345 days 18 hrs ago0xb0cd81388cd9fc9df90305a1be81498254c93f85 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0036610015 26.5
0x742f3420e4f646401f17e693745ccff3478a00af0973a330835f207df64d1509Withdraw209823902022-10-12 20:15:26346 days 11 hrs ago0xbeabad1d242f1413cf4ffdedaeca81c18238bd9a IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0044730675 26.5
0x5c52234b1073f209ce9f927f9880564ba5c493cf0bbd41e092b0759e6c2598faWithdraw209769252022-10-12 17:09:02346 days 14 hrs ago0xa74236331376a369a40b1c2bf82cc1ce46b22fd9 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.00412876969 27.211115
0x38740fa380e8ff1debc37bf1245cc987f4accf2c0e3eafe260f925f2e9e03685Withdraw209751092022-10-12 16:06:50346 days 15 hrs ago0x2c8cab98fa6322dd6d885221d8f5cc1db6947476 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0040947535 26.5
0xb8e23ad4d6208e905f87345bf8e153fdbf5871946a0405aa3c085ab79e654bcdWithdraw209744392022-10-12 15:43:50346 days 15 hrs ago0x230b5c79d945c47875f6d6b6a639e97ac693cb32 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0013137375 26.5
0x72bc4d7506f1745ed3932e636e7ec0ba7015c457c52b47629b8a78ebd5ee90eeWithdraw209743942022-10-12 15:42:16346 days 15 hrs ago0x230b5c79d945c47875f6d6b6a639e97ac693cb32 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0040941175 26.5
0x458d91fc496e8cd056dc49c3705a36e40cab3c6785b301317dababfe55cf99b3Withdraw209670482022-10-12 11:31:55346 days 19 hrs ago0xd4f17c243afcd516f706dfeb18f564c28f243225 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.033386769 219
0xf4de87efba4813bcba9c2e7b90b1082b9a7c33c04abe3179082da6690da531a8Withdraw209650032022-10-12 10:20:46346 days 20 hrs ago0x4d8002d7f5234c741a81da7fabf954042a1e1a94 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.00400626495 26.41
0x660a0974a0c42044ba832666e04ba4a386a3cbc8522e87c61a0b72171b5f129aWithdraw209636432022-10-12 9:33:49346 days 21 hrs ago0xb7db55e85e9ab2b800a52c936ce4ab33adb5fe6b IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0035871195 26.5
0x8ead9e0b653fdb1419d3f7eab1d0b42ba9dd5a29ac6c9b86f887687cd3ebb2e5Withdraw209636252022-10-12 9:33:10346 days 21 hrs ago0xb7db55e85e9ab2b800a52c936ce4ab33adb5fe6b IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.004161222675 27.425
0x8b7df1ec1802ee9ec6b3b839f10d13837f92b2873f538877caddcaefdb6283f2Withdraw209610632022-10-12 8:03:52346 days 23 hrs ago0x930715929a28f977be9f150bd4181da727a43811 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0040199175 26.5
0x0a5ad83ded420822b09474975cd8785cc5d06e5c27c36c1999e98c7dbc1ccc68Withdraw209597822022-10-12 7:19:01347 days ago0x3122706601c04d579c777fdf0ceefcca19b825f2 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.003788791175 27.425
0xfd0fe8453db3d1b01308ffcc3d6b57d6709a18c17d4c45ddffc5442ece067bf5Withdraw209597052022-10-12 7:16:21347 days 3 mins ago0xc581af28bb9ff37389ba166e792ad9460f696bb5 IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.0036613195 26.5
0xcee66edbf98a0e89c354f7dc02a309b73cf295bf562d472f346e9917b49b7c9bWithdraw209595522022-10-12 7:11:04347 days 8 mins ago0x1fa0dbb3343523c4a372dc1984a7db253780f4aa IN  0x36c0aa81c4711576270256a1118f35b3025d829b0 AVAX0.003091367499 27.2795
[ Download CSV Export 
Parent Txn Hash Block From To Value
Index Block
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BVICGenesis

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
byzantium EvmVersion
File 1 of 9 : BVICGenesis.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.13;

import "../utils/ContractGuard.sol";
import "../interfaces/IMainTokenV2.sol";
import "../lib/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

// Note that this pool has no minter key of BVICToken (rewards).
// Instead, the governance will call BVICToken distributeReward method and send reward to this pool at the beginning.
contract BVICGenesis is ContractGuard, Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    address public operator;

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

    // Info of each pool.
    struct PoolInfo {
        IERC20 token; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. BVICToken to distribute.
        uint256 lastRewardTime; // Last time that BVICToken distribution occurs.
        uint256 accBVICTokenPerShare; // Accumulated BVICToken per share, times 1e18. See below.
        bool isStarted; // if lastRewardBlock has passed
        bool isUpdated;
    }

    address public bvicToken;

    // 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 time when BVICToken mining starts.
    uint256 public poolStartTime;
    // The time when BVICToken mining ends.
    uint256 public poolEndTime;

    bool public updatedPoolNextPhase;

    // Total reward phase 2: 2.25 * 75% * 2/3 = 1.125
    uint256 public constant TOTAL_REWARD_POOL_5_NEXT_PHASE = 0.675 ether; // 60% of (75% of 2.25 * 2/3) BVIC-WBTC.e
    uint256 public constant TOTAL_REWARD_POOL_4_NEXT_PHASE = 0.0984375 ether; // 8.75% of (75% of 2.25 * 2/3) CHAM-WAVAX
    uint256 public constant TOTAL_REWARD_POOL_3_NEXT_PHASE = 0.0984375 ether; // 8.75% of (75% of 2.25 * 2/3) UVIC-USDC.e
    uint256 public constant TOTAL_REWARD_POOL_2_NEXT_PHASE = 0.0984375 ether; // 8.75% of (75% of 2.25 * 2/3) EVIC-WETH.e
    uint256 public constant TOTAL_REWARD_POOL_1_NEXT_PHASE = 0.0984375 ether; // 8.75% of (75% of 2.25 * 2/3) CHAM
    uint256 public constant TOTAL_REWARD_POOL_0_NEXT_PHASE = 0.05625 ether; // 5% of (75% of 2.25 * 2/3) WBTC.e

    uint256 public constant runningTime = 3 days;
    uint256 public constant TOTAL_USER_REWARD = 1.6875 ether; // 75% of 2.25 Token
    uint256 public constant TOTAL_POL_REWARD = 0.3375 ether; // 15% of 2.25 Token
    uint256 public constant TOTAL_DAO_REWARD = 0.225 ether; // 10% of 2.25 Token
    uint256 public bvicTokenPerSecondForUser;
    uint256 public bvicTokenPerSecondForPol;
    uint256 public bvicTokenPerSecondForDao;
    uint256 lastPolRewardTime;
    uint256 lastDaoRewardTime;

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

    constructor(address _token, uint256 _poolStartTime) {
        require(block.timestamp < _poolStartTime, "late");
        require(_token != address(0), "!_token");
        
        bvicToken = _token;
        totalAllocPoint = 0;
        updatedPoolNextPhase = false;
        poolStartTime = _poolStartTime;
        lastPolRewardTime = poolStartTime;
        poolEndTime = poolStartTime + runningTime;

        bvicTokenPerSecondForUser = TOTAL_USER_REWARD.div(runningTime); // 75% of Token / (2days * 24h * 60min * 60s)
        bvicTokenPerSecondForPol = TOTAL_POL_REWARD.div(runningTime); // 15% of Token / (2days * 24h * 60min * 60s)
        bvicTokenPerSecondForDao = TOTAL_DAO_REWARD.div(runningTime); // 10% of Token / (2days * 24h * 60min * 60s)

        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "GenesisPool: caller is not the operator");
        _;
    }

    function checkPoolDuplicate(IERC20 _token) internal view {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            require(poolInfo[pid].token != _token, "GenesisPool: existing pool?");
        }
    }

    // Add a new token to the pool. Can only be called by the owner.
    function add(
        uint256 _allocPoint,
        IERC20 _token,
        uint256 _lastRewardTime
    ) public onlyOperator {
        checkPoolDuplicate(_token);
        massUpdatePools();
        if (block.timestamp < poolStartTime) {
            // chef is sleeping
            if (_lastRewardTime == 0) {
                _lastRewardTime = poolStartTime;
            } else {
                if (_lastRewardTime < poolStartTime) {
                    _lastRewardTime = poolStartTime;
                }
            }
        } else {
            // chef is cooking
            if (_lastRewardTime == 0 || _lastRewardTime < block.timestamp) {
                _lastRewardTime = block.timestamp;
            }
        }
        bool _isStarted = (_lastRewardTime <= poolStartTime) || (_lastRewardTime <= block.timestamp);
        poolInfo.push(PoolInfo({token: _token, allocPoint: _allocPoint, lastRewardTime: _lastRewardTime, accBVICTokenPerShare: 0, isStarted: _isStarted, isUpdated: false}));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

    // Update the given pool's BVICToken allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint) public onlyOperator {
        massUpdatePools();
        PoolInfo storage pool = poolInfo[_pid];
        if (pool.isStarted) {
            totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(_allocPoint);
        }
        pool.allocPoint = _allocPoint;
        pool.isUpdated = true;
    }

    // Return accumulate rewards over the given _from to _to block.
    function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) {
        if (_fromTime >= _toTime) return 0;
        if (_toTime >= poolEndTime) {
            if (_fromTime >= poolEndTime) return 0;
            if (_fromTime <= poolStartTime) return poolEndTime.sub(poolStartTime).mul(bvicTokenPerSecondForUser);
            return poolEndTime.sub(_fromTime).mul(bvicTokenPerSecondForUser);
        } else {
            if (_toTime <= poolStartTime) return 0;
            if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(bvicTokenPerSecondForUser);
            return _toTime.sub(_fromTime).mul(bvicTokenPerSecondForUser);
        }
    }

    // View function to see pending BVICToken on frontend.
    function pending(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accBVICTokenPerShare = pool.accBVICTokenPerShare;
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _bvicTokenReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            accBVICTokenPerShare = accBVICTokenPerShare.add(_bvicTokenReward.mul(1e18).div(tokenSupply));
        }
        
        uint256 polReward = pendingPol(lastPolRewardTime, block.timestamp, _user);
        uint256 daoReward = pendingDao(lastDaoRewardTime, block.timestamp, _user);

        uint256 pendingUser = user.amount.mul(accBVICTokenPerShare).div(1e18).sub(user.rewardDebt);
        return pendingUser.add(polReward).add(daoReward);
    }

    function pendingPol(uint256 _fromTime, uint256 _toTime, address _user) internal view returns (uint256) {
        if (IMainTokenV2(bvicToken).isPolWallet(_user)) {
            if (_fromTime >= _toTime) return 0;
            if (_toTime >= poolEndTime) {
                if (_fromTime >= poolEndTime) return 0;
                if (_fromTime <= poolStartTime) return poolEndTime.sub(poolStartTime).mul(bvicTokenPerSecondForPol);
                return poolEndTime.sub(_fromTime).mul(bvicTokenPerSecondForPol);
            } else {
                if (_toTime <= poolStartTime) return 0;
                if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(bvicTokenPerSecondForPol);
                return _toTime.sub(_fromTime).mul(bvicTokenPerSecondForPol);
            }
        }

        return 0;
    }

    function pendingDao(uint256 _fromTime, uint256 _toTime, address _user) internal view returns (uint256) {
        if (IMainTokenV2(bvicToken).isDaoFund(_user)) {
            if (_fromTime >= _toTime) return 0;
            if (_toTime >= poolEndTime) {
                if (_fromTime >= poolEndTime) return 0;
                if (_fromTime <= poolStartTime) return poolEndTime.sub(poolStartTime).mul(bvicTokenPerSecondForDao);
                return poolEndTime.sub(_fromTime).mul(bvicTokenPerSecondForDao);
            } else {
                if (_toTime <= poolStartTime) return 0;
                if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(bvicTokenPerSecondForDao);
                return _toTime.sub(_fromTime).mul(bvicTokenPerSecondForDao);
            }
        }

        return 0;
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public onlyOperator {
        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) internal {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp <= pool.lastRewardTime) {
            return;
        }
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (tokenSupply == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }
        if (!pool.isStarted) {
            pool.isStarted = true;
            totalAllocPoint = totalAllocPoint.add(pool.allocPoint);
        }
        if (totalAllocPoint > 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _bvicTokenReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            pool.accBVICTokenPerShare = pool.accBVICTokenPerShare.add(_bvicTokenReward.mul(1e18).div(tokenSupply));
        }
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit LP tokens.
    function deposit(uint256 _pid, uint256 _amount) external onlyOneBlock {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 _pending = user.amount.mul(pool.accBVICTokenPerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safeBVICTokenTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }

        if (_amount > 0) {
            pool.token.safeTransferFrom(_sender, address(this), _amount);
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accBVICTokenPerShare).div(1e18);
        emit Deposit(_sender, _pid, _amount);
    }

    // Withdraw LP tokens.
    function withdraw(uint256 _pid, uint256 _amount) external onlyOneBlock {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 _pending = user.amount.mul(pool.accBVICTokenPerShare).div(1e18).sub(user.rewardDebt);
        uint256 _polReward = pendingPol(lastPolRewardTime, block.timestamp, _sender);
        uint256 _daoReward = pendingDao(lastDaoRewardTime, block.timestamp, _sender);
        uint256 _reward = 0;

        if (_polReward > 0) {
            _reward = _reward.add(_polReward);
            lastPolRewardTime = block.timestamp;
        }

        if (_daoReward > 0) {
            _reward = _reward.add(_daoReward);
            lastDaoRewardTime = block.timestamp;
        }

        if (_pending > 0) {
            _reward = _reward.add(_pending);
        }

        if (_reward > 0) {
            safeBVICTokenTransfer(_sender, _reward);
            emit RewardPaid(_sender, _reward);
        }

        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.token.safeTransfer(_sender, _amount);
        }
        
        user.rewardDebt = user.amount.mul(pool.accBVICTokenPerShare).div(1e18);
        emit Withdraw(_sender, _pid, _amount);
    }

    // Safe BVICToken transfer function, just in case a rounding error causes pool to not have enough BVICTokens.
    function safeBVICTokenTransfer(address _to, uint256 _amount) internal {
        uint256 _bvicTokenBalance = IERC20(bvicToken).balanceOf(address(this));
        if (_bvicTokenBalance > 0) {
            if (_amount > _bvicTokenBalance) {
                IERC20(bvicToken).safeTransfer(_to, _bvicTokenBalance);
            } else {
                IERC20(bvicToken).safeTransfer(_to, _amount);
            }
        }
    }

    function updatePoolNextPhase() external onlyOperator {
        require(!updatedPoolNextPhase, "only can update once");
        updatedPoolNextPhase = true;
        set(5, TOTAL_REWARD_POOL_5_NEXT_PHASE);
        set(4, TOTAL_REWARD_POOL_4_NEXT_PHASE);
        set(3, TOTAL_REWARD_POOL_3_NEXT_PHASE);
        set(2, TOTAL_REWARD_POOL_2_NEXT_PHASE);
        set(1, TOTAL_REWARD_POOL_1_NEXT_PHASE);
        set(0, TOTAL_REWARD_POOL_0_NEXT_PHASE);
    }

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

    function setPoolStartTime(uint256 _poolStartTime) external onlyOperator {
        require(block.timestamp < _poolStartTime, "late");
        require(block.timestamp < poolStartTime, "Pool is started. Not reset set time start");

        poolStartTime = _poolStartTime;
        poolEndTime = poolStartTime + runningTime;
        lastPolRewardTime = poolStartTime;
    }
}

File 2 of 9 : ContractGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.13;

contract ContractGuard {
    mapping(uint256 => mapping(address => bool)) private _status;

    function checkSameOriginReentranted() internal view returns (bool) {
        return _status[block.number][tx.origin];
    }

    function checkSameSenderReentranted() internal view returns (bool) {
        return _status[block.number][msg.sender];
    }

    modifier onlyOneBlock() {
        require(!checkSameOriginReentranted(), "ContractGuard: one block, one function");
        require(!checkSameSenderReentranted(), "ContractGuard: one block, one function");

        _status[block.number][tx.origin] = true;
        _status[block.number][msg.sender] = true;

        _;
    }
}

File 3 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity 0.8.13;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 9 : IMainTokenV2.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.13;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IMainTokenV2 is IERC20 {
    function grantRebaseExclusion(address account) external;
    function revokeRebaseExclusion(address account) external;
    function getExcluded() external view returns (address[] memory);
    function rebase(uint256 epoch, uint256 supplyDelta, bool negative) external returns (uint256);
    function rebaseSupply() external view returns (uint256);
    function isDaoFund(address _address) external view returns (bool);
    function isPolWallet(address _address) external view returns (bool);
    function getDaoFund() external view returns (address);
    function getPolWallet() external view returns (address);
    function mint(address recipient, uint256 amount) external returns (bool);
}

File 5 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 6 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

File 8 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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 9 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/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() {
        _transferOwnership(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "byzantium",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_poolStartTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","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":"TOTAL_DAO_REWARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_POL_REWARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_REWARD_POOL_0_NEXT_PHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_REWARD_POOL_1_NEXT_PHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_REWARD_POOL_2_NEXT_PHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_REWARD_POOL_3_NEXT_PHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_REWARD_POOL_4_NEXT_PHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_REWARD_POOL_5_NEXT_PHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_USER_REWARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_lastRewardTime","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bvicToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bvicTokenPerSecondForDao","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bvicTokenPerSecondForPol","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bvicTokenPerSecondForUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTime","type":"uint256"},{"internalType":"uint256","name":"_toTime","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pending","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accBVICTokenPerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"},{"internalType":"bool","name":"isUpdated","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"runningTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolStartTime","type":"uint256"}],"name":"setPoolStartTime","outputs":[],"stateMutability":"nonpayable","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":[],"name":"updatePoolNextPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updatedPoolNextPhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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"}]

60806040523480156200001157600080fd5b506040516200248538038062002485833981016040819052620000349162000285565b6200005a6200004b6401000000006200021a810204565b6401000000006200021e810204565b804210620000d0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000c79060208082526004908201527f6c61746500000000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390fd5b600160a060020a03821662000142576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f215f746f6b656e000000000000000000000000000000000000000000000000006044820152606401620000c7565b60038054600160a060020a031916600160a060020a03841617905560006006556009805460ff191690556007819055600d819055620001856203f48082620002c1565b600855620001ad67176b344f2a78c0006203f4806401000000006200143d6200027082021704565b600a55620001d56704af0a763bb1c0006203f4806401000000006200143d6200027082021704565b600b55620001fd67031f5c4ed27680006203f4806401000000006200143d6200027082021704565b600c55505060028054600160a060020a031916331790556200033d565b3390565b60018054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006200027e828462000301565b9392505050565b600080604083850312156200029957600080fd5b8251600160a060020a0381168114620002b157600080fd5b6020939093015192949293505050565b60008219821115620002fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500190565b60008262000338577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b612138806200034d6000396000f3fe608060405234801561001057600080fd5b5060043610610223576000357c01000000000000000000000000000000000000000000000000000000009004806374305f5c11610137578063aa91f1d5116100ca578063e2bbb15811610099578063e2bbb1581461044b578063e4c75c271461045e578063eaf63b2314610471578063f2fde38b14610479578063fa78c3351461048c57600080fd5b8063aa91f1d514610228578063b9955e3914610426578063d48f18fa14610439578063de471f661461044257600080fd5b806392c1f8ef1161010657806392c1f8ef146103bd57806393f1a40b146103cc578063943f013d14610413578063a2c6b1971461041d57600080fd5b806374305f5c1461037757806375d323fe1461038a57806382330ef31461039d5780638da5cb5b146103ac57600080fd5b80635312ea8e116101ba578063630b5ba111610189578063630b5ba11461035e5780636e271dd5146103665780636e344c7e14610228578063715018a61461036f57806373b148801461022857600080fd5b80635312ea8e146103085780635546a6f61461031b578063570ca7351461032a5780635f96dc111461035557600080fd5b8063231f0c6a116101f6578063231f0c6a146102b657806324252545146102c95780633e3313d9146102e6578063441a3e70146102f557600080fd5b80630ca54560146102285780631526fe271461024a57806317caf6f1146102985780631ab06ee5146102a1575b600080fd5b61023767015db8627c13d80081565b6040519081526020015b60405180910390f35b61025d610258366004611dbd565b61049a565b60408051600160a060020a039097168752602087019590955293850192909252606084015215156080830152151560a082015260c001610241565b61023760065481565b6102b46102af366004611dd6565b6104f1565b005b6102376102c4366004611dd6565b6105a6565b6009546102d69060ff1681565b6040519015158152602001610241565b61023767031f5c4ed276800081565b6102b4610303366004611dd6565b61066b565b6102b4610316366004611dbd565b610953565b6102376704af0a763bb1c00081565b60025461033d90600160a060020a031681565b604051600160a060020a039091168152602001610241565b61023760075481565b6102b4610a9f565b61023760085481565b6102b4610af7565b60035461033d90600160a060020a031681565b6102b4610398366004611dbd565b610b60565b61023767176b344f2a78c00081565b600154600160a060020a031661033d565b61023767095e14ec7763800081565b6103fe6103da366004611e0d565b60056020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610241565b6102376203f48081565b610237600a5481565b6102b4610434366004611e3d565b610c79565b610237600c5481565b610237600b5481565b6102b4610459366004611dd6565b610e81565b61023761046c366004611e0d565b6110a9565b6102b4611254565b6102b4610487366004611e75565b611355565b61023766c7d713b49da00081565b600481815481106104aa57600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154600160a060020a0390931694509092909160ff8082169161010090041686565b600254600160a060020a031633146105275760405160e560020a62461bcd02815260040161051e90611e92565b60405180910390fd5b61052f610a9f565b60006004838154811061054457610544611eef565b60009182526020909120600590910201600481015490915060ff161561058b5761058782610581836001015460065461145090919063ffffffff16565b9061145c565b6006555b6001810191909155600401805461ff00191661010017905550565b60008183106105b757506000610665565b600854821061061f5760085483106105d157506000610665565b6007548311610604576105fd600a546105f760075460085461145090919063ffffffff16565b90611468565b9050610665565b6105fd600a546105f78560085461145090919063ffffffff16565b600754821161063057506000610665565b6007548311610654576105fd600a546105f76007548561145090919063ffffffff16565b600a546105fd906105f78486611450565b92915050565b4360009081526020818152604080832032845290915290205460ff16156106a75760405160e560020a62461bcd02815260040161051e90611f1e565b4360009081526020818152604080832033845290915290205460ff16156106e35760405160e560020a62461bcd02815260040161051e90611f1e565b436000908152602081815260408083203284529091528082208054600160ff1991821681179092553380855292842080549091169091179055600480549192918590811061073357610733611eef565b6000918252602080832087845260058083526040808620600160a060020a03891687529093529190932080549290910290920192508411156107ba5760405160e560020a62461bcd02815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015260640161051e565b6107c385611474565b600061080082600101546107fa670de0b6b3a76400006107f48760030154876000015461146890919063ffffffff16565b9061143d565b90611450565b90506000610811600d5442876115e5565b90506000610822600e544288611733565b90506000821561083d57610836818461145c565b42600d5590505b81156108545761084d818361145c565b42600e5590505b831561086757610864818561145c565b90505b80156108bb576108778782611870565b86600160a060020a03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516108b291815260200190565b60405180910390a25b87156108e55784546108cd9089611450565b855585546108e590600160a060020a0316888a611935565b6003860154855461090391670de0b6b3a7640000916107f491611468565b60018601556040518881528990600160a060020a038916907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a3505050505050505050565b4360009081526020818152604080832032845290915290205460ff161561098f5760405160e560020a62461bcd02815260040161051e90611f1e565b4360009081526020818152604080832033845290915290205460ff16156109cb5760405160e560020a62461bcd02815260040161051e90611f1e565b436000908152602081815260408083203284529091528082208054600160ff19918216811790925533845291832080549092161790556004805483908110610a1557610a15611eef565b60009182526020808320858452600580835260408086203380885294528520805486825560018201969096559302018054909450919291610a6291600160a060020a039091169083611935565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a350505050565b600254600160a060020a03163314610acc5760405160e560020a62461bcd02815260040161051e90611e92565b60045460005b81811015610af357610ae381611474565b610aec81611faa565b9050610ad2565b5050565b600154600160a060020a03163314610b545760405160e560020a62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051e565b610b5e60006119de565b565b600254600160a060020a03163314610b8d5760405160e560020a62461bcd02815260040161051e90611e92565b804210610be15760405160e560020a62461bcd02815260040161051e9060208082526004908201527f6c61746500000000000000000000000000000000000000000000000000000000604082015260600190565b6007544210610c5b5760405160e560020a62461bcd02815260206004820152602960248201527f506f6f6c20697320737461727465642e204e6f7420726573657420736574207460448201527f696d652073746172740000000000000000000000000000000000000000000000606482015260840161051e565b6007819055610c6d6203f48082611fc3565b60085550600754600d55565b600254600160a060020a03163314610ca65760405160e560020a62461bcd02815260040161051e90611e92565b610caf82611a3d565b610cb7610a9f565b600754421015610ce65780600003610cd25750600754610cfa565b600754811015610ce157506007545b610cfa565b801580610cf257504281105b15610cfa5750425b600060075482111580610d0d5750428211155b6040805160c081018252600160a060020a03808716825260208201888152928201868152600060608401818152861580156080870190815260a08701848152600480546001810182559552965160059094027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810180549590971673ffffffffffffffffffffffffffffffffffffffff199095169490941790955595517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c83015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d82015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e82015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f9091018054925115156101000261ff00199215159290921661ffff1990931692909217179055909150610e7b57600654610e77908561145c565b6006555b50505050565b4360009081526020818152604080832032845290915290205460ff1615610ebd5760405160e560020a62461bcd02815260040161051e90611f1e565b4360009081526020818152604080832033845290915290205460ff1615610ef95760405160e560020a62461bcd02815260040161051e90611f1e565b436000908152602081815260408083203284529091528082208054600160ff19918216811790925533808552928420805490911690911790556004805491929185908110610f4957610f49611eef565b6000918252602080832087845260058083526040808620600160a060020a03891687529093529190932091029091019150610f8385611474565b805415611013576000610fbb82600101546107fa670de0b6b3a76400006107f48760030154876000015461146890919063ffffffff16565b9050801561101157610fcd8482611870565b83600160a060020a03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04868260405161100891815260200190565b60405180910390a25b505b831561103f57815461103090600160a060020a0316843087611ae2565b805461103c908561145c565b81555b6003820154815461105d91670de0b6b3a7640000916107f491611468565b60018201556040518481528590600160a060020a038516907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a35050505050565b600080600484815481106110bf576110bf611eef565b6000918252602080832087845260058083526040808620600160a060020a038a811688529452808620949091029091016003810154815492517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291965093949291909116906370a0823190602401602060405180830381865afa158015611152573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111769190611fdb565b905083600201544211801561118a57508015155b156111e757600061119f8560020154426105a6565b905060006111c06006546107f488600101548561146890919063ffffffff16565b90506111e26111db846107f484670de0b6b3a7640000611468565b859061145c565b935050505b60006111f6600d5442896115e5565b90506000611207600e54428a611733565b9050600061123686600101546107fa670de0b6b3a76400006107f4898b6000015461146890919063ffffffff16565b905061124682610581838661145c565b9a9950505050505050505050565b600254600160a060020a031633146112815760405160e560020a62461bcd02815260040161051e90611e92565b60095460ff16156112d75760405160e560020a62461bcd02815260206004820152601460248201527f6f6e6c792063616e20757064617465206f6e6365000000000000000000000000604482015260640161051e565b6009805460ff191660011790556112f7600567095e14ec776380006104f1565b61130a600467015db8627c13d8006104f1565b61131d600367015db8627c13d8006104f1565b611330600267015db8627c13d8006104f1565b611343600167015db8627c13d8006104f1565b610b5e600066c7d713b49da0006104f1565b600154600160a060020a031633146113b25760405160e560020a62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051e565b600160a060020a0381166114315760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161051e565b61143a816119de565b50565b60006114498284611ff4565b9392505050565b6000611449828461202f565b60006114498284611fc3565b60006114498284612046565b60006004828154811061148957611489611eef565b90600052602060002090600502019050806002015442116114a8575050565b80546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600091600160a060020a0316906370a0823190602401602060405180830381865afa158015611509573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152d9190611fdb565b90508060000361154257504260029091015550565b600482015460ff166115735760048201805460ff1916600190811790915582015460065461156f9161145c565b6006555b600654156115da57600061158b8360020154426105a6565b905060006115ac6006546107f486600101548561146890919063ffffffff16565b90506115d26115c7846107f484670de0b6b3a7640000611468565b60038601549061145c565b600385015550505b504260029091015550565b6003546040517fba7d3829000000000000000000000000000000000000000000000000000000008152600160a060020a038381166004830152600092169063ba7d382990602401602060405180830381865afa158015611649573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166d9190612065565b156117295782841061168157506000611449565b60085483106116e357600854841061169b57506000611449565b60075484116116c8576116c1600b546105f760075460085461145090919063ffffffff16565b9050611449565b6116c1600b546105f78660085461145090919063ffffffff16565b60075483116116f457506000611449565b6007548411611718576116c1600b546105f76007548661145090919063ffffffff16565b600b546116c1906105f78587611450565b5060009392505050565b6003546040517f05fa791f000000000000000000000000000000000000000000000000000000008152600160a060020a03838116600483015260009216906305fa791f90602401602060405180830381865afa158015611797573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bb9190612065565b15611729578284106117cf57506000611449565b600854831061182a5760085484106117e957506000611449565b600754841161180f576116c1600c546105f760075460085461145090919063ffffffff16565b6116c1600c546105f78660085461145090919063ffffffff16565b600754831161183b57506000611449565b600754841161185f576116c1600c546105f76007548661145090919063ffffffff16565b600c546116c1906105f78587611450565b6003546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600091600160a060020a0316906370a0823190602401602060405180830381865afa1580156118d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f69190611fdb565b9050801561191d57808211156119225760035461191d90600160a060020a03168483611935565b505050565b60035461191d90600160a060020a031684845b604051600160a060020a03831660248201526044810182905261191d9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611b33565b60018054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60045460005b8181101561191d5782600160a060020a031660048281548110611a6857611a68611eef565b6000918252602090912060059091020154600160a060020a031603611ad25760405160e560020a62461bcd02815260206004820152601b60248201527f47656e65736973506f6f6c3a206578697374696e6720706f6f6c3f0000000000604482015260640161051e565b611adb81611faa565b9050611a43565b604051600160a060020a0380851660248301528316604482015260648101829052610e7b9085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161197a565b6000611b88826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525085600160a060020a0316611c1b9092919063ffffffff16565b80519091501561191d5780806020019051810190611ba69190612065565b61191d5760405160e560020a62461bcd02815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161051e565b6060611c2a8484600085611c32565b949350505050565b60603031831115611cae5760405160e560020a62461bcd02815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161051e565b600160a060020a0385163b611d085760405160e560020a62461bcd02815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161051e565b60008086600160a060020a03168587604051611d2491906120b3565b60006040518083038185875af1925050503d8060008114611d61576040519150601f19603f3d011682016040523d82523d6000602084013e611d66565b606091505b5091509150611d76828286611d81565b979650505050505050565b60608315611d90575081611449565b825115611da05782518084602001fd5b8160405160e560020a62461bcd02815260040161051e91906120cf565b600060208284031215611dcf57600080fd5b5035919050565b60008060408385031215611de957600080fd5b50508035926020909101359150565b600160a060020a038116811461143a57600080fd5b60008060408385031215611e2057600080fd5b823591506020830135611e3281611df8565b809150509250929050565b600080600060608486031215611e5257600080fd5b833592506020840135611e6481611df8565b929592945050506040919091013590565b600060208284031215611e8757600080fd5b813561144981611df8565b60208082526027908201527f47656e65736973506f6f6c3a2063616c6c6572206973206e6f7420746865206f60408201527f70657261746f7200000000000000000000000000000000000000000000000000606082015260800190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60208082526026908201527f436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e6520667560408201527f6e6374696f6e0000000000000000000000000000000000000000000000000000606082015260800190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600060018201611fbc57611fbc611f7b565b5060010190565b60008219821115611fd657611fd6611f7b565b500190565b600060208284031215611fed57600080fd5b5051919050565b60008261202a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60008282101561204157612041611f7b565b500390565b600081600019048311821515161561206057612060611f7b565b500290565b60006020828403121561207757600080fd5b8151801515811461144957600080fd5b60005b838110156120a257818101518382015260200161208a565b83811115610e7b5750506000910152565b600082516120c5818460208701612087565b9190910192915050565b60208152600082518060208401526120ee816040850160208701612087565b601f01601f1916919091016040019291505056fea26469706673582212202e64ae68492e0b5550a3cda1b48c3be534bdb80a1b726aead614488d63a8217664736f6c634300080d00330000000000000000000000003cd3d19ab5e88a07dbbc683ff0a7ed38e833fd3e0000000000000000000000000000000000000000000000000000000063417450

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

0000000000000000000000003cd3d19ab5e88a07dbbc683ff0a7ed38e833fd3e0000000000000000000000000000000000000000000000000000000063417450

-----Decoded View---------------
Arg [0] : _token (address): 0x3cd3d19ab5e88a07dbbc683ff0a7ed38e833fd3e
Arg [1] : _poolStartTime (uint256): 1665234000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003cd3d19ab5e88a07dbbc683ff0a7ed38e833fd3e
Arg [1] : 0000000000000000000000000000000000000000000000000000000063417450


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.