Contract 0x752feacfda5c3b440fd6d40ecf338a86b568c2d2 2

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7a551cf3f2a1a8e6701533976fbec6e8e8a82fe3f32160d76ee4c3f645d54adaWithdraw206649502022-10-05 5:46:5026 mins ago0x4d60d71f411ab671f614ed0ec5b71beedb46287d IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.0031740905 26.5
0x1b3936261a8b0e84cecdd536482367be850b44850d6afff164c64b531ee616baDeposit206649302022-10-05 5:46:1027 mins ago0x900f83e229518068451ddc742328c5f67deee1d6 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003246303 26.5
0x22fa569d97d71c9a1b81fbd3dfe667c2efc249a099c99e88862e3684bad4e5cbWithdraw206647422022-10-05 5:39:4334 mins ago0xac3e406118e87dc7cae7dfc67ba7ecf40cbc6065 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.0031740905 26.5
0x9943540c6201ace8d7519d9c61779b55aec99d134964a8b342f02cf44335e0feDeposit206647192022-10-05 5:38:5734 mins ago0x8bc924d00880b2609e859f21c3ef56184eb546c9 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.002788171 26.5
0x240bfab384044f37e433a2225c4c79e85691f6f2663c0a4f43a51590a39017a6Deposit206646302022-10-05 5:35:4338 mins ago0x8bc924d00880b2609e859f21c3ef56184eb546c9 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003246303 26.5
0xcb5b96fa8b12943db859d6fa1db9be179f62c7f0d9e1d5f6f3aa279945702f23Deposit206646022022-10-05 5:34:4139 mins ago0xf8c34ead6f6fc03837a93ca5252fa0b7b50fcdbf IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003246303 26.5
0xda37923119b05c9955611a79a6205f7bb114983405c1f8c6c49ad5f4b4cda5cfDeposit206643212022-10-05 5:25:0048 mins ago0xe2c8781e73844f38fd80b5cdc971561d516cb4cb IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003246303 26.5
0x2579ea6c78e1917a5d45838849b19880797dad0e855aafdc404ecb121900506eDeposit206640612022-10-05 5:15:5957 mins ago0x4694bd0bb2178c65397c4f59cd1b7b3d78d4c94b IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.002788171 26.5
0xf5aa3a5ded04baa434e4172081ab12b6d7dce4386aecf6c15590c52e8554a896Deposit206638952022-10-05 5:10:141 hr 3 mins ago0xfa713713b1acd89a00e6b35512161630d5ea90de IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003105959 26.5
0x2777fda511eccc07eb07a38dd50ff55933694997308512501c2ede688f675008Deposit206638912022-10-05 5:10:061 hr 3 mins ago0xc59df331531fbaea476ca77b183c2745d9e98bae IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003246303 26.5
0x02f28105e742dda0e072fef0a9917f9e21d6ac4aa18a33f69d4ca45d539d6120Deposit206635692022-10-05 4:58:551 hr 14 mins ago0x4f371bd08d55dc0ebe0fd9894e75cbbb4d8dea40 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003106277 26.5
0x463ae70e470e615880ddb809a9d110aacc2784b5a3da1a255fcaf4f2e29cf15aWithdraw206635422022-10-05 4:58:011 hr 15 mins ago0x00914036f80bfd8d4c6120b7deb808b20168cab8 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.0031740905 26.5
0xe1c604ab8a5750434ed13821cf460778be37a7d9d4678fbd4d206f05a90916f6Withdraw206635262022-10-05 4:57:291 hr 16 mins ago0xf8c34ead6f6fc03837a93ca5252fa0b7b50fcdbf IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.002313079 26.5
0x723021b8af3ca6e969866ac4222fdd6ad892bb9f9ea1572398cd02bd85b4bb38Deposit206634732022-10-05 4:55:431 hr 18 mins ago0x5be98192ba7e065d9e7158b4a317ff6366c194ed IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003246303 26.5
0xc057dd05726c69888627ba329b2df63aeb342577e820f4a383da0d456cdada64Withdraw206634192022-10-05 4:53:551 hr 19 mins ago0x6c4529e615b21b662b4103a916188c0813ecadde IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003294197527.5
0xc67871c52298aa73cec60abe0f8cf5457e8cb95f21c40948fc5a6b738bb19725Deposit206633562022-10-05 4:51:381 hr 22 mins ago0x16b54cf771a30769ae378175811cafa1968f4f43 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003381665 26.5
0x7c82475356fad572244226a623fb5286ceba87a0d61fdd80d8cfab50ea655d5aDeposit206632032022-10-05 4:46:231 hr 27 mins ago0x0e94d71ec889d300f826949413d7ad7997baae3f IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003246303 26.5
0x9c934d8a5f3d2510b4e646359207267f827c61cf6f1bc847fa20355f7d09c5faDeposit206631592022-10-05 4:44:541 hr 28 mins ago0xbc33e39966b839903d0e388a687a0d03efe5bf55 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003246303 26.5
0x50cb0d4831d7866cf55d75dc75d826c1af4ffa8dfa149bc9fcfb78addf6a3f94Deposit206631142022-10-05 4:43:231 hr 30 mins ago0x31cd785b11beaffc42d3f9461b245f891922e09c IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003246303 26.5
0xa3ca8b48ba582a395698abcdaae93517014003afef4d40015a941a3ce9ec8b12Deposit206630092022-10-05 4:39:391 hr 34 mins ago0xeffb3e47a591c2f2fd13440022b9e82d94cda087 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.00330020388 26.94
0x7455e13af6ebdde9e58b6f9588eda0614949626b1d2686761abf248df1e91d7aDeposit206629852022-10-05 4:38:511 hr 34 mins ago0x7cb552152e2b28f9f6911c51b69b0d8d1fadafe1 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003246303 26.5
0x068363b7d56e9dfff03d87b6896bbb88f6fe1cfde3a3c1a85cf3adb5e51b89e1Deposit206629622022-10-05 4:38:021 hr 35 mins ago0xa4bdc287db34da34b0e3fc5edc7391f65fdfa9d1 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.002928515 26.5
0x8bd9c039de5272eb4d2dbafbab71bba12b7643ac958e2c94d751084ea031ca19Withdraw206628722022-10-05 4:34:571 hr 38 mins ago0xb1915bea468ba8c82284295ad1b89bc5575284da IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003422825 25
0xed4dbe4182ab19b4945ef70f914408681c1d052644f4956f6b2a956fb2453be2Deposit206627332022-10-05 4:30:031 hr 43 mins ago0xa4bdc287db34da34b0e3fc5edc7391f65fdfa9d1 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.003106277 26.5
0xe34c0818477796272dd64759bd142d39fbf8e19d58a3e93e7cf611cb7ca62df4Deposit206627232022-10-05 4:29:421 hr 44 mins ago0xb032cf86fcb3eafb04261688c5cdcf3c00718b33 IN  0x752feacfda5c3b440fd6d40ecf338a86b568c2d20 AVAX0.0034378134 26.94
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
WShareRewardPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : WShareRewardPool.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";

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

    // governance
    address public operator;
    address public daoFund;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP 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. wSHAREs to distribute per block.
        uint256 lastRewardTime; // Last time that wSHAREs distribution occurs.
        uint256 accWSharePerShare; // Accumulated wSHAREs per share, times 1e18. See below.
        bool isStarted; // if lastRewardTime has passed
    }

    IERC20 public wShare;

    // 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 = 0;

    // The time when wSHARE mining starts.
    uint256 public poolStartTime;

    // The time when wSHARE mining ends.
    uint256 public poolEndTime;

    uint256 public wSharePerSecond;
    uint256 public runningTime = 365 days;
    uint256 public constant TOTAL_REWARDS = 50000 ether;

    bool enableTaxes = true;
    uint256[] public stakingTires = [1 weeks, 2 weeks, 3 weeks, 4 weeks, 5 weeks];
    uint256[] public withdrawTaxTires = [500, 400, 300, 200, 100];

    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 _wShare,
        address _daoFund,
        uint256 _poolStartTime
    ) public {
        require(block.timestamp < _poolStartTime, "late");
        require(_wShare != address(0), "_wShare");
        require(_daoFund != address(0), "_daoFund");
        wShare = IERC20(_wShare);
        daoFund = _daoFund;
        wSharePerSecond = TOTAL_REWARDS.div(365).div(24).div(60).div(60);   
        poolStartTime = _poolStartTime;
        poolEndTime = poolStartTime + runningTime;
        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "WShareRewardPool: 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, "WShareRewardPool: existing pool?");
        }
    }

    // Add a new lp to the pool. Can only be called by the owner.
    function add(
        uint256 _allocPoint,
        IERC20 _token,
        bool _withUpdate,
        uint256 _lastRewardTime
    ) public onlyOperator {
        checkPoolDuplicate(_token);
        if (_withUpdate) {
            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,
            accWSharePerShare : 0,
            isStarted : _isStarted
            }));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

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

    // 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(wSharePerSecond);
            return poolEndTime.sub(_fromTime).mul(wSharePerSecond);
        } else {
            if (_toTime <= poolStartTime) return 0;
            if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(wSharePerSecond);
            return _toTime.sub(_fromTime).mul(wSharePerSecond);
        }
    }

    // View function to see pending wSHAREs on frontend.
    function pendingShare(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accWSharePerShare = pool.accWSharePerShare;
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _wShareReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            accWSharePerShare = accWSharePerShare.add(_wShareReward.mul(1e18).div(tokenSupply));
        }
        return user.amount.mul(accWSharePerShare).div(1e18).sub(user.rewardDebt);
    }

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

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.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 _wShareReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            pool.accWSharePerShare = pool.accWSharePerShare.add(_wShareReward.mul(1e18).div(tokenSupply));
        }
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit LP tokens.
    function deposit(uint256 _pid, uint256 _amount) public {
        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.accWSharePerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safeWShareTransfer(_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.accWSharePerShare).div(1e18);
        emit Deposit(_sender, _pid, _amount);
    }

    function setTaxesStatus(bool _enableTaxes) external onlyOperator {
        enableTaxes = _enableTaxes;
    }

    function setStakingTiersEntry(uint8 _index, uint256 _value) external onlyOperator {
        require(_index >= 0, "Index has to be higher than 0");
        require(_index < stakingTires.length, "Index has to be lower than count of tiers");
        if (_index > 0) {
            require(_value < stakingTires[_index - 1]);
        }

        if (_index < stakingTires.length - 1) {
            require(_value > stakingTires[_index + 1]);
        }

        stakingTires[_index] = _value;
    }

    function setTaxTiersEntry(uint8 _index, uint256 _value) external onlyOperator {
        require(_index >= 0, "Index has to be higher than 0");
        require(_index < withdrawTaxTires.length, "Index has to be lower than count of tiers");
        require(_value >= 10 && _value <= 2000, "_value: out of range"); // [0.1%, 20%]
        withdrawTaxTires[_index] = _value;
    }

    function getWithdrawFeePercent() public view returns (uint256) {
        if (poolStartTime > block.timestamp) {
            return 0;
        }

        uint256 timePassed = block.timestamp - poolStartTime;
        uint256 taxPercent;
        for (uint256 i = 0; i < stakingTires.length; i++) {
            if (timePassed <= stakingTires[i]) {
                taxPercent = withdrawTaxTires[i];
                break;
            }
        }

        return taxPercent;
    }

    // Withdraw LP tokens.
    function withdraw(uint256 _pid, uint256 _amount) public {
        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.accWSharePerShare).div(1e18).sub(user.rewardDebt);
        if (_pending > 0) {
            safeWShareTransfer(_sender, _pending);
            emit RewardPaid(_sender, _pending);
        }

        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);

            uint256 taxAmount = _amount.mul(getWithdrawFeePercent()).div(10000);
            if (enableTaxes && taxAmount != 0) {
                pool.token.safeTransfer(daoFund, taxAmount);
                pool.token.safeTransfer(_sender, _amount.sub(taxAmount));
            } else {
                pool.token.safeTransfer(_sender, _amount);
            }
        }

        user.rewardDebt = user.amount.mul(pool.accWSharePerShare).div(1e18);
        emit Withdraw(_sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 _amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;

        uint256 taxAmount = _amount.mul(getWithdrawFeePercent()).div(10000);
        pool.token.safeTransfer(daoFund, taxAmount);
        pool.token.safeTransfer(msg.sender, _amount.sub(taxAmount));

        emit EmergencyWithdraw(msg.sender, _pid, _amount);
    }

    // Safe wShare transfer function, just in case if rounding error causes pool to not have enough wSHAREs.
    function safeWShareTransfer(address _to, uint256 _amount) internal {
        uint256 _wShareBal = wShare.balanceOf(address(this));
        if (_wShareBal > 0) {
            if (_amount > _wShareBal) {
                wShare.safeTransfer(_to, _wShareBal);
            } else {
                wShare.safeTransfer(_to, _amount);
            }
        }
    }

    function setOperator(address _operator) external onlyOperator {
        operator = _operator;
    }

    function setDaoFund(address _daoFund) external onlyOperator {
        daoFund = _daoFund;
    }

    function governanceRecoverUnsupported(IERC20 _token, uint256 amount, address to) external onlyOperator {
        if (block.timestamp < poolEndTime + 10 days) {
            // do not allow to drain core token (wSHARE or lps) if less than 10 days after pool ends
            require(_token != wShare, "wShare");
            uint256 length = poolInfo.length;
            for (uint256 pid = 0; pid < length; ++pid) {
                PoolInfo storage pool = poolInfo[pid];
                require(_token != pool.token, "pool.token");
            }
        }
        _token.safeTransfer(to, amount);
    }
}

File 2 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 3 of 5 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    using Address for address;

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

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

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

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

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: 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(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

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

File 4 of 5 : 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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        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) {
        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) {
        // 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) {
        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) {
        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) {
        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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 5 of 5 : 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);
    }

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

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

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

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

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_wShare","type":"address"},{"internalType":"address","name":"_daoFund","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":"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_REWARDS","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":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastRewardTime","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"daoFund","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"getWithdrawFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingShare","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":"accWSharePerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"address","name":"_daoFund","type":"address"}],"name":"setDaoFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_index","type":"uint8"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setStakingTiersEntry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_index","type":"uint8"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setTaxTiersEntry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enableTaxes","type":"bool"}],"name":"setTaxesStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingTires","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":"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":[],"name":"wShare","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wSharePerSecond","outputs":[{"internalType":"uint256","name":"","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"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawTaxTires","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

600060059081556301e13380600955600a805460ff1916600117905561012060405262093a8060809081526212750060a052621baf8060c0526224ea0060e052622e2480610100526200005691600b9190620002ad565b506040805160a0810182526101f48152610190602082015261012c9181019190915260c86060820152606460808201526200009690600c90600562000304565b50348015620000a457600080fd5b50604051620020a5380380620020a583398181016040526060811015620000ca57600080fd5b508051602082015160409092015190919042811162000119576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b0383166200015f576040805162461bcd60e51b81526020600482015260076024820152665f77536861726560c81b604482015290519081900360640190fd5b6001600160a01b038216620001a6576040805162461bcd60e51b815260206004820152600860248201526717d9185bd19d5b9960c21b604482015290519081900360640190fd5b600280546001600160a01b03199081166001600160a01b0386811691909117909255600180549091169184169190911790556200021b603c620002078181601881690a968163f0a57b40000061016d62000244602090811b620015f717901c565b6200024460201b620015f71790919060201c565b6008556006819055600954016007555050600080546001600160a01b031916331790556200035f565b60008082116200029b576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381620002a557fe5b049392505050565b828054828255906000526020600020908101928215620002f2579160200282015b82811115620002f2578251829062ffffff16905591602001919060010190620002ce565b506200030092915062000348565b5090565b828054828255906000526020600020908101928215620002f2579160200282015b82811115620002f2578251829061ffff1690559160200191906001019062000325565b5b8082111562000300576000815560010162000349565b611d36806200036f6000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c806354575af4116101045780638d934f74116100a2578063b334988011610071578063b3349880146104cb578063b3ab15fb146104d3578063cf4b55cb146104f9578063e2bbb15814610525576101cf565b80638d934f741461043c57806393f1a40b14610444578063943f013d1461048957806396805e5414610491576101cf565b8063630b5ba1116100de578063630b5ba1146104055780636e271dd51461040d57806370251b8d146104155780637a42481a1461041d576101cf565b806354575af4146103a3578063570ca735146103d95780635f96dc11146103fd576101cf565b80631c6e253f11610171578063441a3e701161014b578063441a3e7014610320578063497b21db1461034357806351eb05a6146103695780635312ea8e14610386576101cf565b80631c6e253f146102ba578063231f0c6a146102d75780632c559d27146102fa576101cf565b80631526fe27116101ad5780631526fe271461023357806317caf6f1146102875780631ab06ee51461028f5780631b920038146102b2576101cf565b806304567280146101d4578063070889b21461020357806309cf60911461022b575b600080fd5b6101f1600480360360208110156101ea57600080fd5b5035610548565b60408051918252519081900360200190f35b6102296004803603604081101561021957600080fd5b5060ff8135169060200135610566565b005b6101f161066e565b6102506004803603602081101561024957600080fd5b503561067c565b604080516001600160a01b039096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b6101f16106c7565b610229600480360360408110156102a557600080fd5b50803590602001356106cd565b6101f161077b565b6101f1600480360360208110156102d057600080fd5b5035610781565b6101f1600480360360408110156102ed57600080fd5b508035906020013561078e565b6102296004803603602081101561031057600080fd5b50356001600160a01b0316610853565b6102296004803603604081101561033657600080fd5b50803590602001356108be565b6102296004803603604081101561035957600080fd5b5060ff8135169060200135610af1565b6102296004803603602081101561037f57600080fd5b5035610bfa565b6102296004803603602081101561039c57600080fd5b5035610d58565b610229600480360360608110156103b957600080fd5b506001600160a01b03813581169160208101359160409091013516610e20565b6103e1610f68565b604080516001600160a01b039092168252519081900360200190f35b6101f1610f77565b610229610f7d565b6101f1610fa0565b6103e1610fa6565b6102296004803603602081101561043357600080fd5b50351515610fb5565b6103e1611011565b6104706004803603604081101561045a57600080fd5b50803590602001356001600160a01b0316611020565b6040805192835260208301919091528051918290030190f35b6101f1611044565b610229600480360360808110156104a757600080fd5b508035906001600160a01b036020820135169060408101351515906060013561104a565b6101f1611247565b610229600480360360208110156104e957600080fd5b50356001600160a01b03166112bb565b6101f16004803603604081101561050f57600080fd5b50803590602001356001600160a01b0316611326565b6102296004803603604081101561053b57600080fd5b5080359060200135611487565b600b818154811061055557fe5b600091825260209091200154905081565b6000546001600160a01b031633146105af5760405162461bcd60e51b815260040180806020018281038252602c815260200180611c61602c913960400191505060405180910390fd5b600c5460ff8316106105f25760405162461bcd60e51b8152600401808060200182810382526029815260200180611cae6029913960400191505060405180910390fd5b600a811015801561060557506107d08111155b61064d576040805162461bcd60e51b81526020600482015260146024820152735f76616c75653a206f7574206f662072616e676560601b604482015290519081900360640190fd5b80600c8360ff168154811061065e57fe5b6000918252602090912001555050565b690a968163f0a57b40000081565b6003818154811061068957fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60055481565b6000546001600160a01b031633146107165760405162461bcd60e51b815260040180806020018281038252602c815260200180611c61602c913960400191505060405180910390fd5b61071e610f7d565b60006003838154811061072d57fe5b60009182526020909120600590910201600481015490915060ff1615610774576107708261076a836001015460055461165e90919063ffffffff16565b906116bb565b6005555b6001015550565b60085481565b600c818154811061055557fe5b600081831061079f5750600061084d565b60075482106108075760075483106107b95750600061084d565b60065483116107ec576107e56008546107df60065460075461165e90919063ffffffff16565b9061171c565b905061084d565b6107e56008546107df8560075461165e90919063ffffffff16565b60065482116108185750600061084d565b600654831161083c576107e56008546107df6006548561165e90919063ffffffff16565b6008546107e5906107df848661165e565b92915050565b6000546001600160a01b0316331461089c5760405162461bcd60e51b815260040180806020018281038252602c815260200180611c61602c913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60003390506000600384815481106108d257fe5b600091825260208083208784526004825260408085206001600160a01b0388168652909252922080546005909202909201925084111561094e576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61095785610bfa565b6000610994826001015461098e670de0b6b3a76400006109888760030154876000015461171c90919063ffffffff16565b906115f7565b9061165e565b905080156109e6576109a68482611775565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b8415610a865781546109f8908661165e565b82556000610a14612710610988610a0d611247565b899061171c565b600a5490915060ff168015610a2857508015155b15610a6e576001548454610a49916001600160a01b0391821691168361182b565b610a6985610a57888461165e565b86546001600160a01b0316919061182b565b610a84565b8354610a84906001600160a01b0316868861182b565b505b60038301548254610aa491670de0b6b3a7640000916109889161171c565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b6000546001600160a01b03163314610b3a5760405162461bcd60e51b815260040180806020018281038252602c815260200180611c61602c913960400191505060405180910390fd5b600b5460ff831610610b7d5760405162461bcd60e51b8152600401808060200182810382526029815260200180611cae6029913960400191505060405180910390fd5b60ff821615610baf57600b6001830360ff1681548110610b9957fe5b90600052602060002001548110610baf57600080fd5b600b546000190160ff83161015610be957600b8260010160ff1681548110610bd357fe5b90600052602060002001548111610be957600080fd5b80600b8360ff168154811061065e57fe5b600060038281548110610c0957fe5b9060005260206000209060050201905080600201544211610c2a5750610d55565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610c7457600080fd5b505afa158015610c88573d6000803e3d6000fd5b505050506040513d6020811015610c9e57600080fd5b5051905080610cb4575042600290910155610d55565b600482015460ff16610ce55760048201805460ff19166001908117909155820154600554610ce1916116bb565b6005555b60055415610d4c576000610cfd83600201544261078e565b90506000610d1e60055461098886600101548561171c90919063ffffffff16565b9050610d44610d398461098884670de0b6b3a764000061171c565b6003860154906116bb565b600385015550505b50426002909101555b50565b600060038281548110610d6757fe5b600091825260208083208584526004825260408085203386529092529083208054848255600182018590556005909302909101935091610db5612710610988610dae611247565b859061171c565b6001548554919250610dd4916001600160a01b0390811691168361182b565b610de233610a57848461165e565b604080518381529051869133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a35050505050565b6000546001600160a01b03163314610e695760405162461bcd60e51b815260040180806020018281038252602c815260200180611c61602c913960400191505060405180910390fd5b600754620d2f0001421015610f4f576002546001600160a01b0384811691161415610ec4576040805162461bcd60e51b815260206004820152600660248201526577536861726560d01b604482015290519081900360640190fd5b60035460005b81811015610f4c57600060038281548110610ee157fe5b6000918252602090912060059091020180549091506001600160a01b0387811691161415610f43576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610eca565b50505b610f636001600160a01b038416828461182b565b505050565b6000546001600160a01b031681565b60065481565b60035460005b81811015610f9c57610f9481610bfa565b600101610f83565b5050565b60075481565b6002546001600160a01b031681565b6000546001600160a01b03163314610ffe5760405162461bcd60e51b815260040180806020018281038252602c815260200180611c61602c913960400191505060405180910390fd5b600a805460ff1916911515919091179055565b6001546001600160a01b031681565b60046020908152600092835260408084209091529082529020805460019091015482565b60095481565b6000546001600160a01b031633146110935760405162461bcd60e51b815260040180806020018281038252602c815260200180611c61602c913960400191505060405180910390fd5b61109c8361187d565b81156110aa576110aa610f7d565b6006544210156110d657806110c257506006546110d1565b6006548110156110d157506006545b6110ea565b8015806110e257504281105b156110ea5750425b6000600654821115806110fd5750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260038054600181018255945295517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600590940293840180546001600160a01b031916919096161790945594517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c82015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d82015592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e84015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f909201805460ff1916921515929092179091559091506112405760055461123c90866116bb565b6005555b5050505050565b600042600654111561125b575060006112b8565b60065442036000805b600b548110156112b357600b818154811061127b57fe5b906000526020600020015483116112ab57600c818154811061129957fe5b906000526020600020015491506112b3565b600101611264565b509150505b90565b6000546001600160a01b031633146113045760405162461bcd60e51b815260040180806020018281038252602c815260200180611c61602c913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806003848154811061133657fe5b60009182526020808320878452600480835260408086206001600160a01b038a811688529085528187206005969096029093016003810154815483516370a0823160e01b81523095810195909552925191985095969491909316926370a08231926024808201939291829003018186803b1580156113b357600080fd5b505afa1580156113c7573d6000803e3d6000fd5b505050506040513d60208110156113dd57600080fd5b50516002850154909150421180156113f457508015155b1561145157600061140985600201544261078e565b9050600061142a60055461098888600101548561171c90919063ffffffff16565b905061144c6114458461098884670de0b6b3a764000061171c565b85906116bb565b935050505b61147c836001015461098e670de0b6b3a764000061098886886000015461171c90919063ffffffff16565b979650505050505050565b600033905060006003848154811061149b57fe5b600091825260208083208784526004825260408085206001600160a01b03881686529092529220600590910290910191506114d585610bfa565b80541561156157600061150d826001015461098e670de0b6b3a76400006109888760030154876000015461171c90919063ffffffff16565b9050801561155f5761151f8482611775565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b831561158d57815461157e906001600160a01b0316843087611917565b805461158a90856116bb565b81555b600382015481546115ab91670de0b6b3a7640000916109889161171c565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b600080821161164d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161165657fe5b049392505050565b6000828211156116b5576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611715576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008261172b5750600061084d565b8282028284828161173857fe5b04146117155760405162461bcd60e51b8152600401808060200182810382526021815260200180611c8d6021913960400191505060405180910390fd5b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156117c057600080fd5b505afa1580156117d4573d6000803e3d6000fd5b505050506040513d60208110156117ea57600080fd5b505190508015610f63578082111561181857600254611813906001600160a01b0316848361182b565b610f63565b600254610f63906001600160a01b031684845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f63908490611977565b60035460005b81811015610f6357826001600160a01b0316600382815481106118a257fe5b60009182526020909120600590910201546001600160a01b0316141561190f576040805162461bcd60e51b815260206004820181905260248201527f575368617265526577617264506f6f6c3a206578697374696e6720706f6f6c3f604482015290519081900360640190fd5b600101611883565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611971908590611977565b50505050565b60606119cc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a289092919063ffffffff16565b805190915015610f63578080602001905160208110156119eb57600080fd5b5051610f635760405162461bcd60e51b815260040180806020018281038252602a815260200180611cd7602a913960400191505060405180910390fd5b6060611a378484600085611a3f565b949350505050565b606082471015611a805760405162461bcd60e51b8152600401808060200182810382526026815260200180611c3b6026913960400191505060405180910390fd5b611a8985611b90565b611ada576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611b195780518252601f199092019160209182019101611afa565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611b7b576040519150601f19603f3d011682016040523d82523d6000602084013e611b80565b606091505b509150915061147c828286611b96565b3b151590565b60608315611ba5575081611715565b825115611bb55782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611bff578181015183820152602001611be7565b50505050905090810190601f168015611c2c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c575368617265526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77496e6465782068617320746f206265206c6f776572207468616e20636f756e74206f662074696572735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212202108cc0a81feb1078a6166fc99c3742980fbd17b9c4b2e309a999cf4c83f85fd64736f6c634300060c0033000000000000000000000000e6d1afea0b76c8f51024683dd27fa446ddaf34b60000000000000000000000002ba4da735d3ce9177216102e9fdabae67e1ac52400000000000000000000000000000000000000000000000000000000628096e0

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

000000000000000000000000e6d1afea0b76c8f51024683dd27fa446ddaf34b60000000000000000000000002ba4da735d3ce9177216102e9fdabae67e1ac52400000000000000000000000000000000000000000000000000000000628096e0

-----Decoded View---------------
Arg [0] : _wShare (address): 0xe6d1afea0b76c8f51024683dd27fa446ddaf34b6
Arg [1] : _daoFund (address): 0x2ba4da735d3ce9177216102e9fdabae67e1ac524
Arg [2] : _poolStartTime (uint256): 1652594400

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000e6d1afea0b76c8f51024683dd27fa446ddaf34b6
Arg [1] : 0000000000000000000000002ba4da735d3ce9177216102e9fdabae67e1ac524
Arg [2] : 00000000000000000000000000000000000000000000000000000000628096e0


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