ETH Price: $2,340.03 (-0.09%)

Contract

0x4e5D8794f08F2792DC51016d0a4b9A205cAFc63A
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw146380752022-04-23 1:05:09871 days ago1650675909IN
0x4e5D8794...05cAFc63A
0 ETH0.0038742428.75604887
Withdraw145599062022-04-10 19:50:00883 days ago1649620200IN
0x4e5D8794...05cAFc63A
0 ETH0.0029653225.20930661
Withdraw145040722022-04-02 2:17:03892 days ago1648865823IN
0x4e5D8794...05cAFc63A
0 ETH0.0051792456.23993436
Withdraw145040652022-04-02 2:14:28892 days ago1648865668IN
0x4e5D8794...05cAFc63A
0 ETH0.0043699542.93824536
Withdraw144927782022-03-31 8:11:30894 days ago1648714290IN
0x4e5D8794...05cAFc63A
0 ETH0.0051363438.12379726
Withdraw144813442022-03-29 13:26:43896 days ago1648560403IN
0x4e5D8794...05cAFc63A
0 ETH0.0065477648.59988709
Withdraw144730742022-03-28 6:28:50897 days ago1648448930IN
0x4e5D8794...05cAFc63A
0 ETH0.0044779638.06883081
Withdraw144356092022-03-22 10:39:44903 days ago1647945584IN
0x4e5D8794...05cAFc63A
0 ETH0.0040039436.6567853
Withdraw144355302022-03-22 10:17:53903 days ago1647944273IN
0x4e5D8794...05cAFc63A
0 ETH0.0019081525.97077656
Withdraw144355282022-03-22 10:17:12903 days ago1647944232IN
0x4e5D8794...05cAFc63A
0 ETH0.0016586722.57530196
Withdraw144355232022-03-22 10:16:29903 days ago1647944189IN
0x4e5D8794...05cAFc63A
0 ETH0.0026829626.36220472
Withdraw144183242022-03-19 17:51:34905 days ago1647712294IN
0x4e5D8794...05cAFc63A
0 ETH0.0025724225.59520263
Withdraw144015582022-03-17 3:13:58908 days ago1647486838IN
0x4e5D8794...05cAFc63A
0 ETH0.0021914920.06349493
Withdraw143947412022-03-16 1:51:49909 days ago1647395509IN
0x4e5D8794...05cAFc63A
0 ETH0.0047025739.97836311
Withdraw143807162022-03-13 21:32:12911 days ago1647207132IN
0x4e5D8794...05cAFc63A
0 ETH0.0041050837.59513073
Withdraw143803422022-03-13 20:08:07911 days ago1647202087IN
0x4e5D8794...05cAFc63A
0 ETH0.0050962335.31300744
Withdraw143794032022-03-13 16:42:06912 days ago1647189726IN
0x4e5D8794...05cAFc63A
0 ETH0.0038625132.83667532
Withdraw143649382022-03-11 10:18:02914 days ago1646993882IN
0x4e5D8794...05cAFc63A
0 ETH0.0022733419.32657765
Withdraw143646782022-03-11 9:14:51914 days ago1646990091IN
0x4e5D8794...05cAFc63A
0 ETH0.0027251120.22678678
Withdraw143545872022-03-09 19:56:12915 days ago1646855772IN
0x4e5D8794...05cAFc63A
0 ETH0.0052272338.79842662
Withdraw143463622022-03-08 13:06:00917 days ago1646744760IN
0x4e5D8794...05cAFc63A
0 ETH0.0048492935.99964661
Withdraw143047732022-03-02 1:57:15923 days ago1646186235IN
0x4e5D8794...05cAFc63A
0 ETH0.0082975461.58740397
Withdraw Particl...142587532022-02-22 23:07:33930 days ago1645571253IN
0x4e5D8794...05cAFc63A
0 ETH0.00917339106.14402413
Withdraw142411062022-02-20 5:35:18933 days ago1645335318IN
0x4e5D8794...05cAFc63A
0 ETH0.0048493436
Withdraw142290102022-02-18 8:33:01935 days ago1645173181IN
0x4e5D8794...05cAFc63A
0 ETH0.01614415119.82774596
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Staking

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion
File 1 of 5 : Staking.sol
// Be name Khoda
// Bime Abolfazl

// =================================================================================================================
//  _|_|_|    _|_|_|_|  _|    _|    _|_|_|      _|_|_|_|  _|                                                       |
//  _|    _|  _|        _|    _|  _|            _|            _|_|_|      _|_|_|  _|_|_|      _|_|_|    _|_|       |
//  _|    _|  _|_|_|    _|    _|    _|_|        _|_|_|    _|  _|    _|  _|    _|  _|    _|  _|        _|_|_|_|     |
//  _|    _|  _|        _|    _|        _|      _|        _|  _|    _|  _|    _|  _|    _|  _|        _|           |
//  _|_|_|    _|_|_|_|    _|_|    _|_|_|        _|        _|  _|    _|    _|_|_|  _|    _|    _|_|_|    _|_|_|     |
// =================================================================================================================
// ======================= STAKING ======================
// ======================================================
// DEUS Finance: https://github.com/DeusFinance

// Primary Author(s)
// Vahid: https://github.com/vahid-dev
// Hosein: https://github.com/hedzed

// Reviewer(s) / Contributor(s)
// S.A. Yaghoubnejad: https://github.com/SAYaghoubnejad
// Hosein: https://github.com/hedzed

pragma solidity 0.8.9;

import "../Governance/AccessControl.sol";

interface IERC20 {
	function balanceOf(address account) external view returns (uint256);
	function transfer(address recipient, uint256 amount) external returns (bool);
	function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
}

interface DEUSToken {
	function pool_mint(address m_address, uint256 m_amount) external;
}

contract Staking is AccessControl {

	struct User {
		uint256 depositAmount;
		uint256 paidReward;
	}

	mapping (address => User) public users;

	uint256 public rewardTillNowPerToken = 0;
	uint256 public lastUpdatedBlock;
	uint256 public rewardPerBlock;
	uint256 public scale = 1e18;

	uint256 public particleCollector = 0;
	uint256 public daoShare;
	uint256 public earlyFoundersShare;
	address public daoWallet;
	address public earlyFoundersWallet;
	uint256 public totalStakedToken = 1;  // init with 1 instead of 0 to avoid division by zero

	address public stakedToken;
	address public rewardToken;

	bytes32 private constant REWARD_PER_BLOCK_SETTER = keccak256("REWARD_PER_BLOCK_SETTER");
	bytes32 private constant TRUSTY_ROLE = keccak256("TRUSTY_ROLE");

	/* ========== CONSTRUCTOR ========== */

	constructor (
		address _stakedToken,
		address _rewardToken,
		uint256 _rewardPerBlock,
		uint256 _daoShare,
		uint256 _earlyFoundersShare,
		address _daoWallet,
		address _earlyFoundersWallet,
		address _rewardPerBlockSetter)
	{
		require(
			_stakedToken != address(0) &&
			_rewardToken != address(0) &&
			_daoWallet != address(0) &&
			_earlyFoundersWallet != address(0),
			"STAKING::constructor: Zero address detected"
		);
		_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
		_setupRole(REWARD_PER_BLOCK_SETTER, _rewardPerBlockSetter);
		_setupRole(TRUSTY_ROLE, msg.sender);
		stakedToken = _stakedToken;
		rewardToken = _rewardToken;
		rewardPerBlock = _rewardPerBlock;
		daoShare = _daoShare;
		earlyFoundersShare = _earlyFoundersShare;
		lastUpdatedBlock = block.number;
		daoWallet = _daoWallet;
		earlyFoundersWallet = _earlyFoundersWallet;
	}


	modifier onlyTrusty() {
		require(hasRole(TRUSTY_ROLE, msg.sender), "STAKING:: Caller is not a trusty");
		_;
	}

	/* ========== VIEWS ========== */

	// View function to see pending reward on frontend.
	function pendingReward(address _user) external view returns (uint256 reward) {
		User storage user = users[_user];
		uint256 accRewardPerToken = rewardTillNowPerToken;

		if (block.number > lastUpdatedBlock) {
			uint256 rewardAmount = (block.number - lastUpdatedBlock) * rewardPerBlock;
			accRewardPerToken = accRewardPerToken + (rewardAmount * scale / totalStakedToken);
		}
		reward = (user.depositAmount * accRewardPerToken / scale) - user.paidReward;
	}

	/* ========== PUBLIC FUNCTIONS ========== */

	// Update reward variables of the pool to be up-to-date.
	function update() public {
		if (block.number <= lastUpdatedBlock) {
			return;
		}

		uint256 rewardAmount = (block.number - lastUpdatedBlock) * rewardPerBlock;

		rewardTillNowPerToken = rewardTillNowPerToken + (rewardAmount * scale / totalStakedToken);
		lastUpdatedBlock = block.number;
	}

	function deposit(uint256 amount) external {
		depositFor(msg.sender, amount);
	}

	function depositFor(address _user, uint256 amount) public {
		User storage user = users[_user];
		update();

		if (user.depositAmount > 0) {
			uint256 _pendingReward = (user.depositAmount * rewardTillNowPerToken / scale) - user.paidReward;
			sendReward(_user, _pendingReward);
		}

		user.depositAmount = user.depositAmount + amount;
		user.paidReward = user.depositAmount * rewardTillNowPerToken / scale;

		IERC20(stakedToken).transferFrom(msg.sender, address(this), amount);
		totalStakedToken = totalStakedToken + amount;
		emit Deposit(_user, amount);
	}

	function withdraw(uint256 amount) external {
		User storage user = users[msg.sender];
		require(user.depositAmount >= amount, "STAKING::withdraw: withdraw amount exceeds deposited amount");
		update();

		uint256 _pendingReward = (user.depositAmount * rewardTillNowPerToken / scale) - user.paidReward;
		sendReward(msg.sender, _pendingReward);

		uint256 particleCollectorShare = _pendingReward * (daoShare + earlyFoundersShare) / scale;
		particleCollector = particleCollector + particleCollectorShare;

		if (amount > 0) {
			user.depositAmount = user.depositAmount - amount;
			IERC20(stakedToken).transfer(address(msg.sender), amount);
			totalStakedToken = totalStakedToken - amount;
			emit Withdraw(msg.sender, amount);
		}

		user.paidReward = user.depositAmount * rewardTillNowPerToken / scale;
	}

	function withdrawParticleCollector() public {
		uint256 _daoShare = particleCollector * daoShare / (daoShare + earlyFoundersShare);
		DEUSToken(rewardToken).pool_mint(daoWallet, _daoShare);

		uint256 _earlyFoundersShare = particleCollector * earlyFoundersShare / (daoShare + earlyFoundersShare);
		DEUSToken(rewardToken).pool_mint(earlyFoundersWallet, _earlyFoundersShare);

		particleCollector = 0;

		emit WithdrawParticleCollectorAmount(_earlyFoundersShare, _daoShare);
	}

	// Withdraw without caring about rewards. EMERGENCY ONLY.
	function emergencyWithdraw() external {
		User storage user = users[msg.sender];

		totalStakedToken = totalStakedToken - user.depositAmount;

		IERC20(stakedToken).transfer(msg.sender, user.depositAmount);
		emit EmergencyWithdraw(msg.sender, user.depositAmount);

		user.depositAmount = 0;
		user.paidReward = 0;
	}

	function sendReward(address user, uint256 amount) internal {
		// uint256 _daoShareAndEarlyFoundersShare = amount * (daoShare + earlyFoundersShare) / scale;
		// DEUSToken(rewardToken).pool_mint(user, amount - _daoShareAndEarlyFoundersShare);
		DEUSToken(rewardToken).pool_mint(user, amount);
		emit RewardClaimed(user, amount);
	}

	/* ========== EMERGENCY FUNCTIONS ========== */

	// Add temporary withdrawal functionality for owner(DAO) to transfer all tokens to a safe place.
	// Contract ownership will transfer to address(0x) after full auditing of codes.
	function withdrawAllStakedtokens(address to) external onlyTrusty {
		uint256 totalStakedTokens = IERC20(stakedToken).balanceOf(address(this));
		totalStakedToken = 1;
		IERC20(stakedToken).transfer(to, totalStakedTokens);

		emit withdrawStakedtokens(totalStakedTokens, to);
	}

	function setStakedToken(address _stakedToken) external onlyTrusty {
		stakedToken = _stakedToken;

		emit StakedTokenSet(_stakedToken);
	}

	function emergencyWithdrawERC20(address to, address _token, uint256 amount) external onlyTrusty {
		IERC20(_token).transfer(to, amount);
	}
	function emergencyWithdrawETH(address payable to, uint amount) external onlyTrusty {
		payable(to).transfer(amount);
	}

	function setWallets(address _daoWallet, address _earlyFoundersWallet) external onlyTrusty {
		daoWallet = _daoWallet;
		earlyFoundersWallet = _earlyFoundersWallet;

		emit WalletsSet(_daoWallet, _earlyFoundersWallet);
	}

	function setShares(uint256 _daoShare, uint256 _earlyFoundersShare) external onlyTrusty {
		withdrawParticleCollector();
		daoShare = _daoShare;
		earlyFoundersShare = _earlyFoundersShare;

		emit SharesSet(_daoShare, _earlyFoundersShare);
	}

	function setRewardPerBlock(uint256 _rewardPerBlock) external {
		require(hasRole(REWARD_PER_BLOCK_SETTER, msg.sender), "STAKING::setRewardPerBlock: Caller is not a rewardPerBlockSetter");
		update();
		emit RewardPerBlockChanged(rewardPerBlock, _rewardPerBlock);
		rewardPerBlock = _rewardPerBlock;
	}


	/* ========== EVENTS ========== */

	event withdrawStakedtokens(uint256 totalStakedTokens, address to);
	event StakedTokenSet(address _stakedToken);
	event SharesSet(uint256 _daoShare, uint256 _earlyFoundersShare);
	event WithdrawParticleCollectorAmount(uint256 _earlyFoundersShare, uint256 _daoShare);
	event WalletsSet(address _daoWallet, address _earlyFoundersWallet);
	event Deposit(address user, uint256 amount);
	event Withdraw(address user, uint256 amount);
	event EmergencyWithdraw(address user, uint256 amount);
	event RewardClaimed(address user, uint256 amount);
	event RewardPerBlockChanged(uint256 oldValue, uint256 newValue);
}

//Dar panah khoda

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

pragma solidity >=0.6.11;

import "../Utils/EnumerableSet.sol";
import "../Utils/Address.sol";
import "../Common/Context.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; //bytes32(uint256(0x4B437D01b575618140442A4975db38850e3f8f5f) << 96);

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

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

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

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

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

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

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

        _revokeRole(role, account);
    }

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

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

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

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

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

pragma solidity >=0.6.11;

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

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

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

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

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

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

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

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

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

File 4 of 5 : Address.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11 <0.9.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 5 : Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stakedToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_daoShare","type":"uint256"},{"internalType":"uint256","name":"_earlyFoundersShare","type":"uint256"},{"internalType":"address","name":"_daoWallet","type":"address"},{"internalType":"address","name":"_earlyFoundersWallet","type":"address"},{"internalType":"address","name":"_rewardPerBlockSetter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"RewardPerBlockChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_daoShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_earlyFoundersShare","type":"uint256"}],"name":"SharesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_stakedToken","type":"address"}],"name":"StakedTokenSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_daoWallet","type":"address"},{"indexed":false,"internalType":"address","name":"_earlyFoundersWallet","type":"address"}],"name":"WalletsSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_earlyFoundersShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_daoShare","type":"uint256"}],"name":"WithdrawParticleCollectorAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalStakedTokens","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"withdrawStakedtokens","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earlyFoundersShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyFoundersWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdatedBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"particleCollector","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTillNowPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"setRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_daoShare","type":"uint256"},{"internalType":"uint256","name":"_earlyFoundersShare","type":"uint256"}],"name":"setShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakedToken","type":"address"}],"name":"setStakedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_daoWallet","type":"address"},{"internalType":"address","name":"_earlyFoundersWallet","type":"address"}],"name":"setWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakedToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakedToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"users","outputs":[{"internalType":"uint256","name":"depositAmount","type":"uint256"},{"internalType":"uint256","name":"paidReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdrawAllStakedtokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawParticleCollector","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600255670de0b6b3a764000060055560006006556001600b553480156200002c57600080fd5b506040516200227f3803806200227f8339810160408190526200004f91620002d6565b6001600160a01b038816158015906200007057506001600160a01b03871615155b80156200008557506001600160a01b03831615155b80156200009a57506001600160a01b03821615155b620000ff5760405162461bcd60e51b815260206004820152602b60248201527f5354414b494e473a3a636f6e7374727563746f723a205a65726f20616464726560448201526a1cdcc819195d1958dd195960aa1b606482015260840160405180910390fd5b6200010c600033620001cb565b620001387fee33494882c15ef16fd46d90287d1d71c5808d5681b5d0ee0567fbc8f9b0100b82620001cb565b620001647f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33620001cb565b50600c80546001600160a01b039889166001600160a01b031991821617909155600d8054978916978216979097179096556004949094556007929092556008554360035560098054918516918416919091179055600a805491909316911617905562000363565b620001d78282620001db565b5050565b60008281526020818152604090912062000200918390620017b662000242821b17901c565b15620001d75760405133906001600160a01b0383169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b60006200025e836001600160601b0319606085901b1662000267565b90505b92915050565b6000818152600183016020526040812054620002b05750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000261565b50600062000261565b80516001600160a01b0381168114620002d157600080fd5b919050565b600080600080600080600080610100898b031215620002f457600080fd5b620002ff89620002b9565b97506200030f60208a01620002b9565b96506040890151955060608901519450608089015193506200033460a08a01620002b9565b92506200034460c08a01620002b9565b91506200035460e08a01620002b9565b90509295985092959890939650565b611f0c80620003736000396000f3fe608060405234801561001057600080fd5b50600436106102415760003560e01c8063995d9b6011610145578063cee66f63116100bd578063db2e21bc1161008c578063f51e181a11610071578063f51e181a146104e8578063f7c618c1146104f1578063f90ce5ba1461051157600080fd5b8063db2e21bc146104cd578063f40f0f52146104d557600080fd5b8063cee66f6314610481578063d3f6a15714610494578063d547741f146104a7578063d79e8567146104ba57600080fd5b8063b6b55f2511610114578063ca15c873116100f9578063ca15c87314610445578063cb6d8ee614610458578063cc7a262e1461046157600080fd5b8063b6b55f251461041f578063bb872b4a1461043257600080fd5b8063995d9b60146103ca578063a217fddf146103d3578063a2e62045146103db578063a87430ba146103e357600080fd5b806352e9c6d4116101d857806388d19f1b116101a75780639010d07c1161018c5780639010d07c1461038c57806391d148541461039f5780639378c6d4146103c257600080fd5b806388d19f1b1461037a5780638ae39cac1461038357600080fd5b806352e9c6d41461032b57806355b8fb811461033e57806360c6cdac14610351578063698a58971461035a57600080fd5b80632f2ff15d116102145780632f2ff15d146102e95780632f4f21e2146102fc57806336568abe1461030f578063481af4aa1461032257600080fd5b8063079a570514610246578063248a9ca3146102905780632aca3e7d146102c15780632e1a7d4d146102d6575b600080fd5b600a546102669073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6102b361029e366004611c1b565b60009081526020819052604090206002015490565b604051908152602001610287565b6102d46102cf366004611c34565b61051a565b005b6102d46102e4366004611c1b565b6105ff565b6102d46102f7366004611c78565b610854565b6102d461030a366004611ca8565b61090a565b6102d461031d366004611c78565b610ac3565b6102b360085481565b6102d4610339366004611cd4565b610b72565b6102d461034c366004611cf8565b610c7b565b6102b360025481565b6009546102669073ffffffffffffffffffffffffffffffffffffffff1681565b6102b360075481565b6102b360045481565b61026661039a366004611c34565b610db9565b6103b26103ad366004611c78565b610dda565b6040519015158152602001610287565b6102d4610df2565b6102b360065481565b6102b3600081565b6102d4610fa5565b61040a6103f1366004611cd4565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610287565b6102d461042d366004611c1b565b611001565b6102d4610440366004611c1b565b61100e565b6102b3610453366004611c1b565b61110f565b6102b3600b5481565b600c546102669073ffffffffffffffffffffffffffffffffffffffff1681565b6102d461048f366004611cd4565b611126565b6102d46104a2366004611d39565b611357565b6102d46104b5366004611c78565b611473565b6102d46104c8366004611ca8565b61151b565b6102d46115f3565b6102b36104e3366004611cd4565b61170b565b6102b360055481565b600d546102669073ffffffffffffffffffffffffffffffffffffffff1681565b6102b360035481565b6105447f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b6105af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064015b60405180910390fd5b6105b7610df2565b6007829055600881905560408051838152602081018390527f635fab9ef42704636ceacfc3756d45c820dc77e2b15e0f46d436e9ec6f5a708991015b60405180910390a15050565b336000908152600160205260409020805482111561069f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603b60248201527f5354414b494e473a3a77697468647261773a20776974686472617720616d6f7560448201527f6e742065786365656473206465706f736974656420616d6f756e74000000000060648201526084016105a6565b6106a7610fa5565b6000816001015460055460025484600001546106c39190611d96565b6106cd9190611dd3565b6106d79190611e0e565b90506106e333826117e8565b60006005546008546007546106f89190611e25565b6107029084611d96565b61070c9190611dd3565b90508060065461071c9190611e25565b600655831561082a578254610732908590611e0e565b8355600c546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810186905273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb90604401602060405180830381600087803b1580156107a657600080fd5b505af11580156107ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107de9190611e3d565b5083600b546107ed9190611e0e565b600b5560408051338152602081018690527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a15b600554600254845461083c9190611d96565b6108469190611dd3565b836001018190555050505050565b6000828152602081905260409020600201546108709033610dda565b6108fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201527f2061646d696e20746f206772616e74000000000000000000000000000000000060648201526084016105a6565b61090682826118c1565b5050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600160205260409020610937610fa5565b80541561097c5760008160010154600554600254846000015461095a9190611d96565b6109649190611dd3565b61096e9190611e0e565b905061097a84826117e8565b505b8054610989908390611e25565b808255600554600254909161099e9190611d96565b6109a89190611dd3565b6001820155600c546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd90606401602060405180830381600087803b158015610a2557600080fd5b505af1158015610a39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5d9190611e3d565b5081600b54610a6c9190611e25565b600b556040805173ffffffffffffffffffffffffffffffffffffffff85168152602081018490527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c910160405180910390a1505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610b68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016105a6565b6109068282611927565b610b9c7f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b610c02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064016105a6565b600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f793c5d6d63836324edea9ae9eb434d37862194427d3060862215257245a0c9299060200160405180910390a150565b610ca57f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b610d0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064016105a6565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301526024820183905283169063a9059cbb90604401602060405180830381600087803b158015610d7b57600080fd5b505af1158015610d8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db39190611e3d565b50505050565b6000828152602081905260408120610dd1908361198d565b90505b92915050565b6000828152602081905260408120610dd190836119a3565b6000600854600754610e049190611e25565b600754600654610e149190611d96565b610e1e9190611dd3565b600d546009546040517fb4f56b2600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101849052929350169063b4f56b2690604401600060405180830381600087803b158015610e9657600080fd5b505af1158015610eaa573d6000803e3d6000fd5b505050506000600854600754610ec09190611e25565b600854600654610ed09190611d96565b610eda9190611dd3565b600d54600a546040517fb4f56b2600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101849052929350169063b4f56b2690604401600060405180830381600087803b158015610f5257600080fd5b505af1158015610f66573d6000803e3d6000fd5b50506000600655505060408051828152602081018490527fd7efc4cdd0ec299514928105db63bae6f4b6734397925b15fe9df3db233ceb5191016105f3565b6003544311610fb057565b600060045460035443610fc39190611e0e565b610fcd9190611d96565b9050600b5460055482610fe09190611d96565b610fea9190611dd3565b600254610ff79190611e25565b6002555043600355565b61100b338261090a565b50565b6110387fee33494882c15ef16fd46d90287d1d71c5808d5681b5d0ee0567fbc8f9b0100b33610dda565b6110c657604080517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482015260248101919091527f5354414b494e473a3a736574526577617264506572426c6f636b3a2043616c6c60448201527f6572206973206e6f74206120726577617264506572426c6f636b53657474657260648201526084016105a6565b6110ce610fa5565b60045460408051918252602082018390527f79a5349732f93288abbb68e251c3dfc325bf3ee6fde7786d919155d39733e0f5910160405180910390a1600455565b6000818152602081905260408120610dd4906119e2565b6111507f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b6111b6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064016105a6565b600c546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561122057600080fd5b505afa158015611234573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112589190611e5f565b6001600b55600c546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301526024820184905292935091169063a9059cbb90604401602060405180830381600087803b1580156112d357600080fd5b505af11580156112e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130b9190611e3d565b506040805182815273ffffffffffffffffffffffffffffffffffffffff841660208201527f5a13955452e0668a1ad79cebe6a7578b8561b92374f0749286d41c9805b75b4291016105f3565b6113817f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b6113e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064016105a6565b6009805473ffffffffffffffffffffffffffffffffffffffff8481167fffffffffffffffffffffffff00000000000000000000000000000000000000009283168117909355600a80549185169190921681179091556040805192835260208301919091527ff5ce80a04fffb5058766b1d6b907c8b27d37be009f9bd418117cf9fa16dfc9b991016105f3565b60008281526020819052604090206002015461148f9033610dda565b610b68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201527f2061646d696e20746f207265766f6b650000000000000000000000000000000060648201526084016105a6565b6115457f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b6115ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064016105a6565b60405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f193505050501580156115ee573d6000803e3d6000fd5b505050565b3360009081526001602052604090208054600b546116119190611e0e565b600b55600c5481546040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481019190915273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb90604401602060405180830381600087803b15801561168957600080fd5b505af115801561169d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c19190611e3d565b5080546040805133815260208101929092527f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695910160405180910390a16000808255600190910155565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120600254600354431115611785576000600454600354436117509190611e0e565b61175a9190611d96565b9050600b546005548261176d9190611d96565b6117779190611dd3565b6117819083611e25565b9150505b6001820154600554835461179a908490611d96565b6117a49190611dd3565b6117ae9190611e0e565b949350505050565b6000610dd1837fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b166119ec565b600d546040517fb4f56b2600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152602482018490529091169063b4f56b2690604401600060405180830381600087803b15801561185c57600080fd5b505af1158015611870573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff86168152602081018590527f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f724193500190506105f3565b60008281526020819052604090206118d990826117b6565b1561090657604051339073ffffffffffffffffffffffffffffffffffffffff83169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b600082815260208190526040902061193f9082611a3b565b1561090657604051339073ffffffffffffffffffffffffffffffffffffffff83169084907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b90600090a45050565b60006119998383611a6d565b60601c9392505050565b606081901b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660009081526001830160205260408120541515610dd1565b6000610dd4825490565b6000818152600183016020526040812054611a3357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610dd4565b506000610dd4565b6000610dd1837fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b16611b28565b81546000908210611b00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60448201527f647300000000000000000000000000000000000000000000000000000000000060648201526084016105a6565b826000018281548110611b1557611b15611e78565b9060005260206000200154905092915050565b60008181526001830160205260408120548015611c11576000611b4c600183611e0e565b8554909150600090611b6090600190611e0e565b90506000866000018281548110611b7957611b79611e78565b9060005260206000200154905080876000018481548110611b9c57611b9c611e78565b600091825260209091200155611bb3836001611e25565b60008281526001890160205260409020558654879080611bd557611bd5611ea7565b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610dd4565b6000915050610dd4565b600060208284031215611c2d57600080fd5b5035919050565b60008060408385031215611c4757600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff8116811461100b57600080fd5b60008060408385031215611c8b57600080fd5b823591506020830135611c9d81611c56565b809150509250929050565b60008060408385031215611cbb57600080fd5b8235611cc681611c56565b946020939093013593505050565b600060208284031215611ce657600080fd5b8135611cf181611c56565b9392505050565b600080600060608486031215611d0d57600080fd5b8335611d1881611c56565b92506020840135611d2881611c56565b929592945050506040919091013590565b60008060408385031215611d4c57600080fd5b8235611d5781611c56565b91506020830135611c9d81611c56565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611dce57611dce611d67565b500290565b600082611e09577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600082821015611e2057611e20611d67565b500390565b60008219821115611e3857611e38611d67565b500190565b600060208284031215611e4f57600080fd5b81518015158114611cf157600080fd5b600060208284031215611e7157600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220041f95e5af8a48880a2156c79b4009307c560e59e0d6fb572799c1968c932d9164736f6c63430008090033000000000000000000000000d6dd359b8c9d18ccb3fe8627060f88d1776d2993000000000000000000000000de5ed76e7c05ec5e4572cfc88d1acea165109e4400000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000000000000000000000000000000008e1bc9bf040000000000000000000000000000fe351f5ed699fd5ea80b906f89dfdad2f885a46c000000000000000000000000fe351f5ed699fd5ea80b906f89dfdad2f885a46c000000000000000000000000961d81d3bd03158e0039f0be9069131b622cc3b8

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102415760003560e01c8063995d9b6011610145578063cee66f63116100bd578063db2e21bc1161008c578063f51e181a11610071578063f51e181a146104e8578063f7c618c1146104f1578063f90ce5ba1461051157600080fd5b8063db2e21bc146104cd578063f40f0f52146104d557600080fd5b8063cee66f6314610481578063d3f6a15714610494578063d547741f146104a7578063d79e8567146104ba57600080fd5b8063b6b55f2511610114578063ca15c873116100f9578063ca15c87314610445578063cb6d8ee614610458578063cc7a262e1461046157600080fd5b8063b6b55f251461041f578063bb872b4a1461043257600080fd5b8063995d9b60146103ca578063a217fddf146103d3578063a2e62045146103db578063a87430ba146103e357600080fd5b806352e9c6d4116101d857806388d19f1b116101a75780639010d07c1161018c5780639010d07c1461038c57806391d148541461039f5780639378c6d4146103c257600080fd5b806388d19f1b1461037a5780638ae39cac1461038357600080fd5b806352e9c6d41461032b57806355b8fb811461033e57806360c6cdac14610351578063698a58971461035a57600080fd5b80632f2ff15d116102145780632f2ff15d146102e95780632f4f21e2146102fc57806336568abe1461030f578063481af4aa1461032257600080fd5b8063079a570514610246578063248a9ca3146102905780632aca3e7d146102c15780632e1a7d4d146102d6575b600080fd5b600a546102669073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6102b361029e366004611c1b565b60009081526020819052604090206002015490565b604051908152602001610287565b6102d46102cf366004611c34565b61051a565b005b6102d46102e4366004611c1b565b6105ff565b6102d46102f7366004611c78565b610854565b6102d461030a366004611ca8565b61090a565b6102d461031d366004611c78565b610ac3565b6102b360085481565b6102d4610339366004611cd4565b610b72565b6102d461034c366004611cf8565b610c7b565b6102b360025481565b6009546102669073ffffffffffffffffffffffffffffffffffffffff1681565b6102b360075481565b6102b360045481565b61026661039a366004611c34565b610db9565b6103b26103ad366004611c78565b610dda565b6040519015158152602001610287565b6102d4610df2565b6102b360065481565b6102b3600081565b6102d4610fa5565b61040a6103f1366004611cd4565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610287565b6102d461042d366004611c1b565b611001565b6102d4610440366004611c1b565b61100e565b6102b3610453366004611c1b565b61110f565b6102b3600b5481565b600c546102669073ffffffffffffffffffffffffffffffffffffffff1681565b6102d461048f366004611cd4565b611126565b6102d46104a2366004611d39565b611357565b6102d46104b5366004611c78565b611473565b6102d46104c8366004611ca8565b61151b565b6102d46115f3565b6102b36104e3366004611cd4565b61170b565b6102b360055481565b600d546102669073ffffffffffffffffffffffffffffffffffffffff1681565b6102b360035481565b6105447f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b6105af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064015b60405180910390fd5b6105b7610df2565b6007829055600881905560408051838152602081018390527f635fab9ef42704636ceacfc3756d45c820dc77e2b15e0f46d436e9ec6f5a708991015b60405180910390a15050565b336000908152600160205260409020805482111561069f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603b60248201527f5354414b494e473a3a77697468647261773a20776974686472617720616d6f7560448201527f6e742065786365656473206465706f736974656420616d6f756e74000000000060648201526084016105a6565b6106a7610fa5565b6000816001015460055460025484600001546106c39190611d96565b6106cd9190611dd3565b6106d79190611e0e565b90506106e333826117e8565b60006005546008546007546106f89190611e25565b6107029084611d96565b61070c9190611dd3565b90508060065461071c9190611e25565b600655831561082a578254610732908590611e0e565b8355600c546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810186905273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb90604401602060405180830381600087803b1580156107a657600080fd5b505af11580156107ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107de9190611e3d565b5083600b546107ed9190611e0e565b600b5560408051338152602081018690527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a15b600554600254845461083c9190611d96565b6108469190611dd3565b836001018190555050505050565b6000828152602081905260409020600201546108709033610dda565b6108fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201527f2061646d696e20746f206772616e74000000000000000000000000000000000060648201526084016105a6565b61090682826118c1565b5050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600160205260409020610937610fa5565b80541561097c5760008160010154600554600254846000015461095a9190611d96565b6109649190611dd3565b61096e9190611e0e565b905061097a84826117e8565b505b8054610989908390611e25565b808255600554600254909161099e9190611d96565b6109a89190611dd3565b6001820155600c546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd90606401602060405180830381600087803b158015610a2557600080fd5b505af1158015610a39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5d9190611e3d565b5081600b54610a6c9190611e25565b600b556040805173ffffffffffffffffffffffffffffffffffffffff85168152602081018490527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c910160405180910390a1505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610b68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016105a6565b6109068282611927565b610b9c7f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b610c02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064016105a6565b600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f793c5d6d63836324edea9ae9eb434d37862194427d3060862215257245a0c9299060200160405180910390a150565b610ca57f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b610d0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064016105a6565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301526024820183905283169063a9059cbb90604401602060405180830381600087803b158015610d7b57600080fd5b505af1158015610d8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db39190611e3d565b50505050565b6000828152602081905260408120610dd1908361198d565b90505b92915050565b6000828152602081905260408120610dd190836119a3565b6000600854600754610e049190611e25565b600754600654610e149190611d96565b610e1e9190611dd3565b600d546009546040517fb4f56b2600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101849052929350169063b4f56b2690604401600060405180830381600087803b158015610e9657600080fd5b505af1158015610eaa573d6000803e3d6000fd5b505050506000600854600754610ec09190611e25565b600854600654610ed09190611d96565b610eda9190611dd3565b600d54600a546040517fb4f56b2600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101849052929350169063b4f56b2690604401600060405180830381600087803b158015610f5257600080fd5b505af1158015610f66573d6000803e3d6000fd5b50506000600655505060408051828152602081018490527fd7efc4cdd0ec299514928105db63bae6f4b6734397925b15fe9df3db233ceb5191016105f3565b6003544311610fb057565b600060045460035443610fc39190611e0e565b610fcd9190611d96565b9050600b5460055482610fe09190611d96565b610fea9190611dd3565b600254610ff79190611e25565b6002555043600355565b61100b338261090a565b50565b6110387fee33494882c15ef16fd46d90287d1d71c5808d5681b5d0ee0567fbc8f9b0100b33610dda565b6110c657604080517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482015260248101919091527f5354414b494e473a3a736574526577617264506572426c6f636b3a2043616c6c60448201527f6572206973206e6f74206120726577617264506572426c6f636b53657474657260648201526084016105a6565b6110ce610fa5565b60045460408051918252602082018390527f79a5349732f93288abbb68e251c3dfc325bf3ee6fde7786d919155d39733e0f5910160405180910390a1600455565b6000818152602081905260408120610dd4906119e2565b6111507f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b6111b6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064016105a6565b600c546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561122057600080fd5b505afa158015611234573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112589190611e5f565b6001600b55600c546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301526024820184905292935091169063a9059cbb90604401602060405180830381600087803b1580156112d357600080fd5b505af11580156112e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130b9190611e3d565b506040805182815273ffffffffffffffffffffffffffffffffffffffff841660208201527f5a13955452e0668a1ad79cebe6a7578b8561b92374f0749286d41c9805b75b4291016105f3565b6113817f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b6113e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064016105a6565b6009805473ffffffffffffffffffffffffffffffffffffffff8481167fffffffffffffffffffffffff00000000000000000000000000000000000000009283168117909355600a80549185169190921681179091556040805192835260208301919091527ff5ce80a04fffb5058766b1d6b907c8b27d37be009f9bd418117cf9fa16dfc9b991016105f3565b60008281526020819052604090206002015461148f9033610dda565b610b68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201527f2061646d696e20746f207265766f6b650000000000000000000000000000000060648201526084016105a6565b6115457f0db189261133fd7647d3308512b693b47bed44004cac80fb59aa64b63a231e2c33610dda565b6115ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5354414b494e473a3a2043616c6c6572206973206e6f7420612074727573747960448201526064016105a6565b60405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f193505050501580156115ee573d6000803e3d6000fd5b505050565b3360009081526001602052604090208054600b546116119190611e0e565b600b55600c5481546040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481019190915273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb90604401602060405180830381600087803b15801561168957600080fd5b505af115801561169d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c19190611e3d565b5080546040805133815260208101929092527f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695910160405180910390a16000808255600190910155565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120600254600354431115611785576000600454600354436117509190611e0e565b61175a9190611d96565b9050600b546005548261176d9190611d96565b6117779190611dd3565b6117819083611e25565b9150505b6001820154600554835461179a908490611d96565b6117a49190611dd3565b6117ae9190611e0e565b949350505050565b6000610dd1837fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b166119ec565b600d546040517fb4f56b2600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152602482018490529091169063b4f56b2690604401600060405180830381600087803b15801561185c57600080fd5b505af1158015611870573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff86168152602081018590527f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f724193500190506105f3565b60008281526020819052604090206118d990826117b6565b1561090657604051339073ffffffffffffffffffffffffffffffffffffffff83169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b600082815260208190526040902061193f9082611a3b565b1561090657604051339073ffffffffffffffffffffffffffffffffffffffff83169084907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b90600090a45050565b60006119998383611a6d565b60601c9392505050565b606081901b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660009081526001830160205260408120541515610dd1565b6000610dd4825490565b6000818152600183016020526040812054611a3357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610dd4565b506000610dd4565b6000610dd1837fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b16611b28565b81546000908210611b00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60448201527f647300000000000000000000000000000000000000000000000000000000000060648201526084016105a6565b826000018281548110611b1557611b15611e78565b9060005260206000200154905092915050565b60008181526001830160205260408120548015611c11576000611b4c600183611e0e565b8554909150600090611b6090600190611e0e565b90506000866000018281548110611b7957611b79611e78565b9060005260206000200154905080876000018481548110611b9c57611b9c611e78565b600091825260209091200155611bb3836001611e25565b60008281526001890160205260409020558654879080611bd557611bd5611ea7565b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610dd4565b6000915050610dd4565b600060208284031215611c2d57600080fd5b5035919050565b60008060408385031215611c4757600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff8116811461100b57600080fd5b60008060408385031215611c8b57600080fd5b823591506020830135611c9d81611c56565b809150509250929050565b60008060408385031215611cbb57600080fd5b8235611cc681611c56565b946020939093013593505050565b600060208284031215611ce657600080fd5b8135611cf181611c56565b9392505050565b600080600060608486031215611d0d57600080fd5b8335611d1881611c56565b92506020840135611d2881611c56565b929592945050506040919091013590565b60008060408385031215611d4c57600080fd5b8235611d5781611c56565b91506020830135611c9d81611c56565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611dce57611dce611d67565b500290565b600082611e09577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600082821015611e2057611e20611d67565b500390565b60008219821115611e3857611e38611d67565b500190565b600060208284031215611e4f57600080fd5b81518015158114611cf157600080fd5b600060208284031215611e7157600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220041f95e5af8a48880a2156c79b4009307c560e59e0d6fb572799c1968c932d9164736f6c63430008090033

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

000000000000000000000000d6dd359b8c9d18ccb3fe8627060f88d1776d2993000000000000000000000000de5ed76e7c05ec5e4572cfc88d1acea165109e4400000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000000000000000000000000000000008e1bc9bf040000000000000000000000000000fe351f5ed699fd5ea80b906f89dfdad2f885a46c000000000000000000000000fe351f5ed699fd5ea80b906f89dfdad2f885a46c000000000000000000000000961d81d3bd03158e0039f0be9069131b622cc3b8

-----Decoded View---------------
Arg [0] : _stakedToken (address): 0xd6dd359B8C9d18CCB3FE8627060F88D1776d2993
Arg [1] : _rewardToken (address): 0xDE5ed76E7c05eC5e4572CfC88d1ACEA165109E44
Arg [2] : _rewardPerBlock (uint256): 1000000000000000
Arg [3] : _daoShare (uint256): 80000000000000000
Arg [4] : _earlyFoundersShare (uint256): 40000000000000000
Arg [5] : _daoWallet (address): 0xfE351F5Ed699fd5eA80b906F89DfdAd2f885A46C
Arg [6] : _earlyFoundersWallet (address): 0xfE351F5Ed699fd5eA80b906F89DfdAd2f885A46C
Arg [7] : _rewardPerBlockSetter (address): 0x961d81D3bD03158E0039F0bE9069131b622cC3B8

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000d6dd359b8c9d18ccb3fe8627060f88d1776d2993
Arg [1] : 000000000000000000000000de5ed76e7c05ec5e4572cfc88d1acea165109e44
Arg [2] : 00000000000000000000000000000000000000000000000000038d7ea4c68000
Arg [3] : 000000000000000000000000000000000000000000000000011c37937e080000
Arg [4] : 000000000000000000000000000000000000000000000000008e1bc9bf040000
Arg [5] : 000000000000000000000000fe351f5ed699fd5ea80b906f89dfdad2f885a46c
Arg [6] : 000000000000000000000000fe351f5ed699fd5ea80b906f89dfdad2f885a46c
Arg [7] : 000000000000000000000000961d81d3bd03158e0039f0be9069131b622cc3b8


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.