ETH Price: $3,305.15 (-3.75%)
Gas: 21 Gwei

Contract

0xd980a5fb418E2127573a001147B4EAdFE283c817
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Harvest188218032023-12-19 18:33:59196 days ago1703010839IN
0xd980a5fb...FE283c817
0 ETH0.0051153855
Harvest188218032023-12-19 18:33:59196 days ago1703010839IN
0xd980a5fb...FE283c817
0 ETH0.0051153855
Harvest188218032023-12-19 18:33:59196 days ago1703010839IN
0xd980a5fb...FE283c817
0 ETH0.0051153855
Harvest188218032023-12-19 18:33:59196 days ago1703010839IN
0xd980a5fb...FE283c817
0 ETH0.0051153855
Harvest188218032023-12-19 18:33:59196 days ago1703010839IN
0xd980a5fb...FE283c817
0 ETH0.0051153855
Harvest188218032023-12-19 18:33:59196 days ago1703010839IN
0xd980a5fb...FE283c817
0 ETH0.0051153855
Harvest188218032023-12-19 18:33:59196 days ago1703010839IN
0xd980a5fb...FE283c817
0 ETH0.0018357355
Harvest188218032023-12-19 18:33:59196 days ago1703010839IN
0xd980a5fb...FE283c817
0 ETH0.0051153855
Harvest188217962023-12-19 18:32:35196 days ago1703010755IN
0xd980a5fb...FE283c817
0 ETH0.0051153855
Harvest188217552023-12-19 18:24:23196 days ago1703010263IN
0xd980a5fb...FE283c817
0 ETH0.0050168753.94087118
Harvest187799012023-12-13 21:23:59202 days ago1702502639IN
0xd980a5fb...FE283c817
0 ETH0.004747951.04893051
Harvest186594812023-11-27 0:41:47219 days ago1701045707IN
0xd980a5fb...FE283c817
0 ETH0.0027133929.1741314
Harvest186594462023-11-27 0:34:47219 days ago1701045287IN
0xd980a5fb...FE283c817
0 ETH0.0029795232.03554251
Harvest185015432023-11-04 22:07:35241 days ago1699135655IN
0xd980a5fb...FE283c817
0 ETH0.0012106313.01664531
Harvest165918802023-02-09 14:46:11509 days ago1675953971IN
0xd980a5fb...FE283c817
0 ETH0.0032293634.72169875
Harvest157003982022-10-08 2:30:59634 days ago1665196259IN
0xd980a5fb...FE283c817
0 ETH0.0006196.65541429
Harvest154756472022-09-05 3:58:14667 days ago1662350294IN
0xd980a5fb...FE283c817
0 ETH0.00068937.4113565
Harvest151053742022-07-09 1:04:53725 days ago1657328693IN
0xd980a5fb...FE283c817
0 ETH0.0011860912.75275736
Harvest150608882022-07-02 4:24:36732 days ago1656735876IN
0xd980a5fb...FE283c817
0 ETH0.0011291212.14024738
Harvest149889422022-06-19 4:47:53745 days ago1655614073IN
0xd980a5fb...FE283c817
0 ETH0.0013223714.21798369
Harvest149889402022-06-19 4:47:32745 days ago1655614052IN
0xd980a5fb...FE283c817
0 ETH0.0014142715.20610983
Harvest149889392022-06-19 4:47:01745 days ago1655614021IN
0xd980a5fb...FE283c817
0 ETH0.0012881813.85042564
Harvest149889362022-06-19 4:46:47745 days ago1655614007IN
0xd980a5fb...FE283c817
0 ETH0.0015373416.52938352
Harvest149889342022-06-19 4:46:04745 days ago1655613964IN
0xd980a5fb...FE283c817
0 ETH0.0013818614.85764076
Harvest149889292022-06-19 4:44:42745 days ago1655613882IN
0xd980a5fb...FE283c817
0 ETH0.0013668114.69580335
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:
SaleFcfs

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : SaleFcfs.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IVoters.sol";
import "./interfaces/IERC677Receiver.sol";

interface IStaking {
    function deposit(uint amount, address to) external;
}

interface ITiers {
    function userInfos(address user) external view returns (uint256, uint256, uint256);
    function userInfoTotal(address user) external view returns (uint256, uint256);
}

contract SaleFcfs is IERC677Receiver, Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    // Represents a sale participant
    struct UserInfo {
        // Amount of payment token deposited / purchased
        uint amount;
        // Wether they already claimed their tokens
        bool claimed;
    }

    uint public constant PRECISION = 1e8;
    // Time alloted to claim tiers allocations
    uint public constant ALLOCATION_DURATION = 7200; // 2 hours
    // The raising token
    IERC20 public immutable paymentToken;
    // The offering token
    IERC20 public immutable offeringToken;
    // The vXRUNE Token
    IERC20 public immutable vxrune;
    // The time (unix seconds) when sale starts
    uint public immutable startTime;
    // The time (unix security) when sale ends
    uint public immutable endTime;
    // Total amount of offering tokens that will be offered
    uint public offeringAmount;
    // Total amount of raising tokens that need to be raised
    uint public raisingAmount;
    // Total amount of raising tokens that can be raised from tiers
    uint public raisingAmountTiers;
    // Maximum a user can contribute
    uint public immutable perUserCap;
    // Wether deposits are paused
    bool public paused;
    // Wether the sale is finalized
    bool public finalized;
    // Total amount of raising tokens that have already been raised
    uint public totalAmount;
    // User's participation info
    mapping(address => UserInfo) public userInfo;
    // Participants list
    address[] public addressList;
    // SingleStaking: Contract
    IStaking public immutable staking;
    // Tiers: Contract
    ITiers public tiers;
    // Tiers: Size of guaranteed allocation
    uint public tiersAllocation;
    // Tiers: levels
    uint[] public tiersLevels;
    // Tiers: multipliers
    uint[] public tiersMultipliers;

    event PausedToggled(bool paused);
    event TiersConfigured(address tiersContract, uint allocation, uint[] levels, uint[] multipliers);
    event RaisingAmountSet(uint amount);
    event AmountsSet(uint offering, uint raising, uint raisingTiers);
    event Deposit(address indexed user, uint amount);
    event Harvest(address indexed user, uint amount);

    constructor(
        address _paymentToken,
        address _offeringToken,
        address _vxrune,
        uint _startTime,
        uint _endTime,
        uint _offeringAmount,
        uint _raisingAmount,
        uint _raisingAmountTiers,
        uint _perUserCap,
        address _staking
    ) Ownable() {
        paymentToken = IERC20(_paymentToken);
        offeringToken = IERC20(_offeringToken);
        vxrune = IERC20(_vxrune);
        startTime = _startTime;
        endTime = _endTime;
        offeringAmount = _offeringAmount;
        raisingAmount = _raisingAmount;
        raisingAmountTiers = _raisingAmountTiers;
        perUserCap = _perUserCap;
        staking = IStaking(_staking);
        require(_paymentToken != address(0) && _offeringToken != address(0), "!zero");
        require(_paymentToken != _offeringToken, "payment != offering");
        require(_offeringAmount > 0, "offering > 0");
        require(_raisingAmount > 0, "raising > 0");
        require(_startTime > block.timestamp, "start > now");
        require(_startTime + ALLOCATION_DURATION < _endTime, "start < end");
        require(_startTime < 1e10, "start time not unix");
        require(_endTime < 1e10, "start time not unix");
    }

    function configureTiers(
        address tiersContract,
        uint allocation,
        uint[] calldata levels,
        uint[] calldata multipliers
    ) external onlyOwner {
        tiers = ITiers(tiersContract);
        tiersAllocation = allocation;
        tiersLevels = levels;
        tiersMultipliers = multipliers;
        emit TiersConfigured(tiersContract, allocation, levels, multipliers);
    }

    function setRaisingAmount(uint amount) external onlyOwner {
      require(block.timestamp < startTime && totalAmount == 0, "sale started");
      raisingAmount = amount;
      emit RaisingAmountSet(amount);
    }

    function setAmounts(uint offering, uint raising, uint raisingTiers) external onlyOwner {
      require(block.timestamp < startTime && totalAmount == 0, "sale started");
      offeringAmount = offering;
      raisingAmount = raising;
      raisingAmountTiers = raisingTiers;
      emit AmountsSet(offering, raising, raisingTiers);
    }

    function togglePaused() external onlyOwner {
        paused = !paused;
        emit PausedToggled(paused);
    }

    function finalize() external {
        require(msg.sender == owner() || block.timestamp > endTime + 30 days, "not allowed");
        finalized = true;
    }

    function getAddressListLength() external view returns (uint) {
        return addressList.length;
    }

    function getParams() external view returns (uint, uint, uint, uint, uint, uint, uint, bool, bool) {
        return (startTime, endTime, raisingAmount, offeringAmount, raisingAmountTiers, perUserCap, totalAmount, paused, finalized);
    }

    function getTiersParams() external view returns (uint, uint[] memory, uint[] memory) {
        return (tiersAllocation, tiersLevels, tiersMultipliers);
    }

    function getOfferingAmount(address _user) public view returns (uint) {
        return (userInfo[_user].amount * offeringAmount) / raisingAmount;
    }

    function getUserAllocation(address user) public view returns (uint, uint) {
        // Allocation is zero if user just joined / changed tiers, or is not in tiers
        (, uint lastDeposit,) = tiers.userInfos(user);
        if (lastDeposit >= startTime || lastDeposit == 0) {
          return (0, 0);
        }

        // Find the highest tiers and use that allocation amount
        uint allocation = 0;
        (, uint tiersTotal) = tiers.userInfoTotal(user);
        for (uint i = 0; i < tiersLevels.length; i++) {
            if (tiersTotal >= tiersLevels[i]) {
                allocation = (tiersAllocation * tiersMultipliers[i]) / PRECISION;
            }
        }
        return (allocation, tiersTotal);
    }

    function _deposit(address user, uint amount) private nonReentrant {
        require(!paused, "paused");
        require(block.timestamp >= startTime && block.timestamp <= endTime, "sale not active");
        require(amount > 0, "need amount > 0");
        require(totalAmount < raisingAmount, "sold out");

        if (userInfo[user].amount == 0) {
            addressList.push(address(user));
        }

        // Check tiers and cap purchase to allocation
        (uint allocation, uint tiersTotal) = getUserAllocation(user);
        if (block.timestamp < startTime + ALLOCATION_DURATION) {
            require(userInfo[user].amount + amount <= allocation, "over allocation size");
            require(totalAmount + amount <= raisingAmountTiers, "reached phase 1 total cap");
        } else {
            require(perUserCap == 0 || userInfo[user].amount + amount <= allocation + perUserCap, "over per user cap");
            require(vxrune.balanceOf(user) >= 100 || tiersTotal >= 100, "minimum 100 vXRUNE or staked to participate");
        }

        // Refund any payment amount that would bring up over the raising amount
        if (totalAmount + amount > raisingAmount) {
            paymentToken.safeTransfer(user, (totalAmount + amount) - raisingAmount);
            amount = raisingAmount - totalAmount;
        }

        userInfo[user].amount = userInfo[user].amount + amount;
        totalAmount = totalAmount + amount;
        emit Deposit(user, amount);
    }

    function deposit(uint amount) external {
        _transferFrom(msg.sender, amount);
        _deposit(msg.sender, amount);
    }

    function onTokenTransfer(address user, uint amount, bytes calldata _data) external override {
        require(msg.sender == address(paymentToken), "onTokenTransfer: not paymentToken");
        _deposit(user, amount);
    }

    function harvest(bool stake) external nonReentrant {
        require(!paused, "paused");
        require(block.timestamp > endTime, "sale not ended");
        require(finalized, "not finalized");
        require(userInfo[msg.sender].amount > 0, "have you participated?");
        require(!userInfo[msg.sender].claimed, "nothing to harvest");
        userInfo[msg.sender].claimed = true;
        uint amount = getOfferingAmount(msg.sender);

        if (stake) {
            require(address(staking) != address(0), "no staking available");
            offeringToken.approve(address(staking), amount);
            staking.deposit(amount, msg.sender);
        } else {
            offeringToken.safeTransfer(address(msg.sender), amount);
        }

        emit Harvest(msg.sender, amount);
    }

    function withdrawToken(address token, uint amount) external onlyOwner {
        IERC20(token).safeTransfer(msg.sender, amount);
    }

    function _transferFrom(address from, uint amount) private {
        uint balanceBefore = paymentToken.balanceOf(address(this));
        paymentToken.safeTransferFrom(from, address(this), amount);
        uint balanceAfter = paymentToken.balanceOf(address(this));
        require(balanceAfter - balanceBefore == amount, "_transferFrom: balance change does not match amount");
    }
}

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

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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 5 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 9 : IVoters.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IVoters {
  function snapshot() external returns (uint);
  function totalSupplyAt(uint snapshotId) external view returns (uint);
  function votesAt(address account, uint snapshotId) external view returns (uint);
  function balanceOf(address account) external view returns (uint);
  function balanceOfAt(address account, uint snapshotId) external view returns (uint);
  function donate(uint amount) external;
}

File 7 of 9 : IERC677Receiver.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IERC677Receiver {
  function onTokenTransfer(address _sender, uint _value, bytes calldata _data) external;
}

File 8 of 9 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^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;
        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");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_paymentToken","type":"address"},{"internalType":"address","name":"_offeringToken","type":"address"},{"internalType":"address","name":"_vxrune","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_offeringAmount","type":"uint256"},{"internalType":"uint256","name":"_raisingAmount","type":"uint256"},{"internalType":"uint256","name":"_raisingAmountTiers","type":"uint256"},{"internalType":"uint256","name":"_perUserCap","type":"uint256"},{"internalType":"address","name":"_staking","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"offering","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"raising","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"raisingTiers","type":"uint256"}],"name":"AmountsSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"paused","type":"bool"}],"name":"PausedToggled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RaisingAmountSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tiersContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocation","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"levels","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"multipliers","type":"uint256[]"}],"name":"TiersConfigured","type":"event"},{"inputs":[],"name":"ALLOCATION_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"addressList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tiersContract","type":"address"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"uint256[]","name":"levels","type":"uint256[]"},{"internalType":"uint256[]","name":"multipliers","type":"uint256[]"}],"name":"configureTiers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAddressListLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getOfferingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getParams","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTiersParams","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"stake","type":"bool"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"offeringAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offeringToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onTokenTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"perUserCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raisingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raisingAmountTiers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"offering","type":"uint256"},{"internalType":"uint256","name":"raising","type":"uint256"},{"internalType":"uint256","name":"raisingTiers","type":"uint256"}],"name":"setAmounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setRaisingAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"contract IStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tiers","outputs":[{"internalType":"contract ITiers","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tiersAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiersLevels","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiersMultipliers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vxrune","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101606040523480156200001257600080fd5b50604051620028e0380380620028e083398101604081905262000035916200036f565b620000403362000302565b600180556001600160601b031960608b811b82166080528a811b821660a05289811b821660c05260e089905261010088905260028790556003869055600485905561012084905282901b16610140526001600160a01b038a1615801590620000b057506001600160a01b03891615155b620000ea5760405162461bcd60e51b8152602060048201526005602482015264217a65726f60d81b60448201526064015b60405180910390fd5b886001600160a01b03168a6001600160a01b031614156200014e5760405162461bcd60e51b815260206004820152601360248201527f7061796d656e7420213d206f66666572696e67000000000000000000000000006044820152606401620000e1565b600085116200018f5760405162461bcd60e51b815260206004820152600c60248201526b06f66666572696e67203e20360a41b6044820152606401620000e1565b60008411620001cf5760405162461bcd60e51b815260206004820152600b60248201526a072616973696e67203e20360ac1b6044820152606401620000e1565b4287116200020e5760405162461bcd60e51b815260206004820152600b60248201526a7374617274203e206e6f7760a81b6044820152606401620000e1565b856200021d611c208962000408565b106200025a5760405162461bcd60e51b815260206004820152600b60248201526a1cdd185c9d080f08195b9960aa1b6044820152606401620000e1565b6402540be4008710620002a65760405162461bcd60e51b81526020600482015260136024820152720e6e8c2e4e840e8d2daca40dcdee840eadcd2f606b1b6044820152606401620000e1565b6402540be4008610620002f25760405162461bcd60e51b81526020600482015260136024820152720e6e8c2e4e840e8d2daca40dcdee840eadcd2f606b1b6044820152606401620000e1565b505050505050505050506200042f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200036a57600080fd5b919050565b6000806000806000806000806000806101408b8d0312156200039057600080fd5b6200039b8b62000352565b9950620003ab60208c0162000352565b9850620003bb60408c0162000352565b975060608b0151965060808b0151955060a08b0151945060c08b0151935060e08b015192506101008b01519150620003f76101208c0162000352565b90509295989b9194979a5092959850565b600082198211156200042a57634e487b7160e01b600052601160045260246000fd5b500190565b60805160601c60a05160601c60c05160601c60e05161010051610120516101405160601c6123a26200053e6000396000818161039601528181610bc001528181610c420152610d0a01526000818161025101528181610430015281816116c901526116f40152600081816103390152818161040b0152818161087401528181610a3b015261146a0152600081816103e9015281816104e9015281816107b801528181610ff40152818161116b0152818161143f01526115cd01526000818161028b01526117a20152600081816105a501528181610c710152610d8001526000818161031201528181610ea2015281816118cc015281816119b401528181611a450152611a8501526123a26000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c806387e97bc611610130578063b6b55f25116100b8578063cfb32ef61161007c578063cfb32ef614610615578063e1af9a9514610628578063f2fde38b14610631578063fc00358e14610644578063fe624c911461064c57600080fd5b8063b6b55f251461058d578063b7813607146105a0578063b810fb43146105c7578063b920ade2146105da578063bc5dda501461060257600080fd5b80639e281a98116100ff5780639e281a9814610541578063a3aeda0a14610554578063a4c0ed361461055d578063aaf5eb6814610570578063b3f05b971461057b57600080fd5b806387e97bc61461050b5780638da5cb5b1461051e5780639bc9c8d21461052f5780639c0a76691461053857600080fd5b80634a95d9d5116101be5780635ff3113c116101825780635ff3113c146104a9578063680d3161146104b257806370a1903d146104c9578063715018a6146104dc57806378e97925146104e457600080fd5b80634a95d9d5146103765780634bb278f3146103895780634cf088d9146103915780635c975abb146103b85780635e615a6b146103d557600080fd5b80631a39d8ef116102055780631a39d8ef146103045780633013ce291461030d5780633197cbb61461033457806336566f061461035b5780634225c32f1461036357600080fd5b806304a0eafb14610237578063053f424d1461024c57806318bc1e00146102865780631959a002146102c5575b600080fd5b61024a610245366004611f0e565b61065f565b005b6102737f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b6102ad7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161027d565b6102ef6102d3366004611ec9565b6007602052600090815260409020805460019091015460ff1682565b6040805192835290151560208301520161027d565b61027360065481565b6102ad7f000000000000000000000000000000000000000000000000000000000000000081565b6102737f000000000000000000000000000000000000000000000000000000000000000081565b61024a610715565b61024a610371366004612059565b61078c565b6009546102ad906001600160a01b031681565b61024a61085b565b6102ad7f000000000000000000000000000000000000000000000000000000000000000081565b6005546103c59060ff1681565b604051901515815260200161027d565b6104616003546002546004546006546005547f0000000000000000000000000000000000000000000000000000000000000000957f0000000000000000000000000000000000000000000000000000000000000000959493927f000000000000000000000000000000000000000000000000000000000000000092909160ff8083169261010090041690565b60408051998a5260208a0198909852968801959095526060870193909352608086019190915260a085015260c0840152151560e083015215156101008201526101200161027d565b610273600a5481565b6104ba6108ea565b60405161027d93929190612246565b61024a6104d736600461201f565b6109a5565b61024a610de4565b6102737f000000000000000000000000000000000000000000000000000000000000000081565b610273610519366004611ec9565b610e1a565b6000546001600160a01b03166102ad565b610273611c2081565b61027360035481565b61024a61054f366004611ee4565b610e55565b61027360045481565b61024a61056b366004611f98565b610e97565b6102736305f5e10081565b6005546103c590610100900460ff1681565b61024a61059b366004612059565b610f29565b6102ad7f000000000000000000000000000000000000000000000000000000000000000081565b6102ad6105d5366004612059565b610f40565b6105ed6105e8366004611ec9565b610f6a565b6040805192835260208301919091520161027d565b61024a6106103660046120af565b61113f565b610273610623366004612059565b611228565b61027360025481565b61024a61063f366004611ec9565b611249565b600854610273565b61027361065a366004612059565b6112e1565b6000546001600160a01b031633146106925760405162461bcd60e51b815260040161068990612211565b60405180910390fd5b600980546001600160a01b0319166001600160a01b038816179055600a8590556106be600b8585611e01565b506106cb600c8383611e01565b507fbde4447c34a42fa5264f1e580cc5f7002d5cac0ea8c0dc0127e668f4993eda5886868686868660405161070596959493929190612196565b60405180910390a1505050505050565b6000546001600160a01b0316331461073f5760405162461bcd60e51b815260040161068990612211565b6005805460ff8082161560ff1990921682179092556040519116151581527fda88b5dfaac55549d4ddddd43a09d4b911233df354952ebc9ac2041aa18534369060200160405180910390a1565b6000546001600160a01b031633146107b65760405162461bcd60e51b815260040161068990612211565b7f0000000000000000000000000000000000000000000000000000000000000000421080156107e55750600654155b6108205760405162461bcd60e51b815260206004820152600c60248201526b1cd85b19481cdd185c9d195960a21b6044820152606401610689565b60038190556040518181527fd8bf3e8ce316036bc5bc107a94a1ab4cbc85b3f49802351582793a2aef810cf29060200160405180910390a150565b6000546001600160a01b031633148061089f575061089c7f000000000000000000000000000000000000000000000000000000000000000062278d0061227b565b42115b6108d95760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610689565b6005805461ff001916610100179055565b6000606080600a54600b600c8180548060200260200160405190810160405280929190818152602001828054801561094157602002820191906000526020600020905b81548152602001906001019080831161092d575b505050505091508080548060200260200160405190810160405280929190818152602001828054801561099357602002820191906000526020600020905b81548152602001906001019080831161097f575b50505050509050925092509250909192565b600260015414156109f85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610689565b600260015560055460ff1615610a395760405162461bcd60e51b81526020600482015260066024820152651c185d5cd95960d21b6044820152606401610689565b7f00000000000000000000000000000000000000000000000000000000000000004211610a995760405162461bcd60e51b815260206004820152600e60248201526d1cd85b19481b9bdd08195b99195960921b6044820152606401610689565b600554610100900460ff16610ae05760405162461bcd60e51b815260206004820152600d60248201526c1b9bdd08199a5b985b1a5e9959609a1b6044820152606401610689565b33600090815260076020526040902054610b355760405162461bcd60e51b81526020600482015260166024820152756861766520796f75207061727469636970617465643f60501b6044820152606401610689565b3360009081526007602052604090206001015460ff1615610b8d5760405162461bcd60e51b81526020600482015260126024820152711b9bdd1a1a5b99c81d1bc81a185c9d995cdd60721b6044820152606401610689565b3360008181526007602052604081206001908101805460ff1916909117905590610bb690610e1a565b90508115610d73577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c2b5760405162461bcd60e51b81526020600482015260146024820152736e6f207374616b696e6720617661696c61626c6560601b6044820152606401610689565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390604401602060405180830381600087803b158015610cb557600080fd5b505af1158015610cc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ced919061203c565b50604051636e553f6560e01b8152600481018290523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636e553f6590604401600060405180830381600087803b158015610d5657600080fd5b505af1158015610d6a573d6000803e3d6000fd5b50505050610da7565b610da76001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633836112f1565b60405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a2505060018055565b6000546001600160a01b03163314610e0e5760405162461bcd60e51b815260040161068990612211565b610e186000611359565b565b6003546002546001600160a01b038316600090815260076020526040812054909291610e45916122b5565b610e4f9190612293565b92915050565b6000546001600160a01b03163314610e7f5760405162461bcd60e51b815260040161068990612211565b610e936001600160a01b03831633836112f1565b5050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610f195760405162461bcd60e51b815260206004820152602160248201527f6f6e546f6b656e5472616e736665723a206e6f74207061796d656e74546f6b656044820152603760f91b6064820152608401610689565b610f2384846113a9565b50505050565b610f33338261199c565b610f3d33826113a9565b50565b60088181548110610f5057600080fd5b6000918252602090912001546001600160a01b0316905081565b6009546040516343b0215f60e01b81526001600160a01b03838116600483015260009283928392909116906343b0215f9060240160606040518083038186803b158015610fb657600080fd5b505afa158015610fca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fee91906120db565b509150507f00000000000000000000000000000000000000000000000000000000000000008110158061101f575080155b156110305750600093849350915050565b6009546040516303cc59a960e41b81526001600160a01b0386811660048301526000928392911690633cc59a9090602401604080518083038186803b15801561107857600080fd5b505afa15801561108c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b0919061208b565b91505060005b600b5481101561113357600b81815481106110d3576110d3612348565b90600052602060002001548210611121576305f5e100600c82815481106110fc576110fc612348565b9060005260206000200154600a5461111491906122b5565b61111e9190612293565b92505b8061112b81612317565b9150506110b6565b50909590945092505050565b6000546001600160a01b031633146111695760405162461bcd60e51b815260040161068990612211565b7f0000000000000000000000000000000000000000000000000000000000000000421080156111985750600654155b6111d35760405162461bcd60e51b815260206004820152600c60248201526b1cd85b19481cdd185c9d195960a21b6044820152606401610689565b60028390556003829055600481905560408051848152602081018490529081018290527fc3a3b89f171024a29742b66dfae364a99b606729ed7827d9aa220a5cc7c8e1519060600160405180910390a1505050565b600c818154811061123857600080fd5b600091825260209091200154905081565b6000546001600160a01b031633146112735760405162461bcd60e51b815260040161068990612211565b6001600160a01b0381166112d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610689565b610f3d81611359565b600b818154811061123857600080fd5b6040516001600160a01b03831660248201526044810182905261135490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b7d565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015414156113fc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610689565b600260015560055460ff161561143d5760405162461bcd60e51b81526020600482015260066024820152651c185d5cd95960d21b6044820152606401610689565b7f0000000000000000000000000000000000000000000000000000000000000000421015801561148d57507f00000000000000000000000000000000000000000000000000000000000000004211155b6114cb5760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b6044820152606401610689565b6000811161150d5760405162461bcd60e51b815260206004820152600f60248201526e06e65656420616d6f756e74203e203608c1b6044820152606401610689565b6003546006541061154b5760405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b6044820152606401610689565b6001600160a01b0382166000908152600760205260409020546115b457600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b0384161790555b6000806115c084610f6a565b90925090506115f1611c207f000000000000000000000000000000000000000000000000000000000000000061227b565b4210156116c7576001600160a01b038416600090815260076020526040902054829061161e90859061227b565b11156116635760405162461bcd60e51b81526020600482015260146024820152736f76657220616c6c6f636174696f6e2073697a6560601b6044820152606401610689565b60045483600654611674919061227b565b11156116c25760405162461bcd60e51b815260206004820152601960248201527f72656163686564207068617365203120746f74616c20636170000000000000006044820152606401610689565b61188c565b7f0000000000000000000000000000000000000000000000000000000000000000158061174057506117197f00000000000000000000000000000000000000000000000000000000000000008361227b565b6001600160a01b03851660009081526007602052604090205461173d90859061227b565b11155b6117805760405162461bcd60e51b815260206004820152601160248201527006f7665722070657220757365722063617607c1b6044820152606401610689565b6040516370a0823160e01b81526001600160a01b0385811660048301526064917f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319060240160206040518083038186803b1580156117e657600080fd5b505afa1580156117fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181e9190612072565b10158061182c575060648110155b61188c5760405162461bcd60e51b815260206004820152602b60248201527f6d696e696d756d2031303020765852554e45206f72207374616b656420746f2060448201526a706172746963697061746560a81b6064820152608401610689565b6003548360065461189d919061227b565b1115611906576118f384600354856006546118b8919061227b565b6118c291906122d4565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691906112f1565b60065460035461190391906122d4565b92505b6001600160a01b03841660009081526007602052604090205461192a90849061227b565b6001600160a01b03851660009081526007602052604090205560065461195190849061227b565b6006556040518381526001600160a01b038516907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a25050600180555050565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156119fe57600080fd5b505afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a369190612072565b9050611a6d6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016843085611c4f565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015611acf57600080fd5b505afa158015611ae3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b079190612072565b905082611b1483836122d4565b14610f235760405162461bcd60e51b815260206004820152603360248201527f5f7472616e7366657246726f6d3a2062616c616e6365206368616e676520646f604482015272195cc81b9bdd081b585d18da08185b5bdd5b9d606a1b6064820152608401610689565b6000611bd2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c879092919063ffffffff16565b8051909150156113545780806020019051810190611bf0919061203c565b6113545760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610689565b6040516001600160a01b0380851660248301528316604482015260648101829052610f239085906323b872dd60e01b9060840161131d565b6060611c968484600085611ca0565b90505b9392505050565b606082471015611d015760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610689565b843b611d4f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610689565b600080866001600160a01b03168587604051611d6b919061217a565b60006040518083038185875af1925050503d8060008114611da8576040519150601f19603f3d011682016040523d82523d6000602084013e611dad565b606091505b5091509150611dbd828286611dc8565b979650505050505050565b60608315611dd7575081611c99565b825115611de75782518084602001fd5b8160405162461bcd60e51b815260040161068991906121de565b828054828255906000526020600020908101928215611e3c579160200282015b82811115611e3c578235825591602001919060010190611e21565b50611e48929150611e4c565b5090565b5b80821115611e485760008155600101611e4d565b80356001600160a01b0381168114611e7857600080fd5b919050565b60008083601f840112611e8f57600080fd5b50813567ffffffffffffffff811115611ea757600080fd5b6020830191508360208260051b8501011115611ec257600080fd5b9250929050565b600060208284031215611edb57600080fd5b611c9982611e61565b60008060408385031215611ef757600080fd5b611f0083611e61565b946020939093013593505050565b60008060008060008060808789031215611f2757600080fd5b611f3087611e61565b955060208701359450604087013567ffffffffffffffff80821115611f5457600080fd5b611f608a838b01611e7d565b90965094506060890135915080821115611f7957600080fd5b50611f8689828a01611e7d565b979a9699509497509295939492505050565b60008060008060608587031215611fae57600080fd5b611fb785611e61565b935060208501359250604085013567ffffffffffffffff80821115611fdb57600080fd5b818701915087601f830112611fef57600080fd5b813581811115611ffe57600080fd5b88602082850101111561201057600080fd5b95989497505060200194505050565b60006020828403121561203157600080fd5b8135611c998161235e565b60006020828403121561204e57600080fd5b8151611c998161235e565b60006020828403121561206b57600080fd5b5035919050565b60006020828403121561208457600080fd5b5051919050565b6000806040838503121561209e57600080fd5b505080516020909101519092909150565b6000806000606084860312156120c457600080fd5b505081359360208301359350604090920135919050565b6000806000606084860312156120f057600080fd5b8351925060208401519150604084015190509250925092565b81835260006001600160fb1b0383111561212257600080fd5b8260051b8083602087013760009401602001938452509192915050565b600081518084526020808501945080840160005b8381101561216f57815187529582019590820190600101612153565b509495945050505050565b6000825161218c8184602087016122eb565b9190910192915050565b60018060a01b03871681528560208201526080604082015260006121be608083018688612109565b82810360608401526121d1818587612109565b9998505050505050505050565b60208152600082518060208401526121fd8160408501602087016122eb565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b83815260606020820152600061225f606083018561213f565b8281036040840152612271818561213f565b9695505050505050565b6000821982111561228e5761228e612332565b500190565b6000826122b057634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156122cf576122cf612332565b500290565b6000828210156122e6576122e6612332565b500390565b60005b838110156123065781810151838201526020016122ee565b83811115610f235750506000910152565b600060001982141561232b5761232b612332565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b8015158114610f3d57600080fdfea26469706673582212201919e3399aac63fefaacbcd9955d933d8d191e2b1d8989bcc56ca80b9a438f5a64736f6c6343000807003300000000000000000000000069fa0fee221ad11012bab0fdb45d444d3d2ce71c000000000000000000000000108a850856db3f85d0269a2693d896b394c80325000000000000000000000000ebcd3922a199cd1358277c6458439c13a93531ed00000000000000000000000000000000000000000000000000000000619275f0000000000000000000000000000000000000000000000000000000006192991800000000000000000000000000000000000000000009ed194db19b238c0000000000000000000000000000000000000000000000000061bc0cd599a8be2b47000000000000000000000000000000000000000000000057f60b8d0a4b14884a000000000000000000000000000000000000000000000000190522016f0694b9000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102325760003560e01c806387e97bc611610130578063b6b55f25116100b8578063cfb32ef61161007c578063cfb32ef614610615578063e1af9a9514610628578063f2fde38b14610631578063fc00358e14610644578063fe624c911461064c57600080fd5b8063b6b55f251461058d578063b7813607146105a0578063b810fb43146105c7578063b920ade2146105da578063bc5dda501461060257600080fd5b80639e281a98116100ff5780639e281a9814610541578063a3aeda0a14610554578063a4c0ed361461055d578063aaf5eb6814610570578063b3f05b971461057b57600080fd5b806387e97bc61461050b5780638da5cb5b1461051e5780639bc9c8d21461052f5780639c0a76691461053857600080fd5b80634a95d9d5116101be5780635ff3113c116101825780635ff3113c146104a9578063680d3161146104b257806370a1903d146104c9578063715018a6146104dc57806378e97925146104e457600080fd5b80634a95d9d5146103765780634bb278f3146103895780634cf088d9146103915780635c975abb146103b85780635e615a6b146103d557600080fd5b80631a39d8ef116102055780631a39d8ef146103045780633013ce291461030d5780633197cbb61461033457806336566f061461035b5780634225c32f1461036357600080fd5b806304a0eafb14610237578063053f424d1461024c57806318bc1e00146102865780631959a002146102c5575b600080fd5b61024a610245366004611f0e565b61065f565b005b6102737f0000000000000000000000000000000000000000000000190522016f0694b90081565b6040519081526020015b60405180910390f35b6102ad7f000000000000000000000000ebcd3922a199cd1358277c6458439c13a93531ed81565b6040516001600160a01b03909116815260200161027d565b6102ef6102d3366004611ec9565b6007602052600090815260409020805460019091015460ff1682565b6040805192835290151560208301520161027d565b61027360065481565b6102ad7f00000000000000000000000069fa0fee221ad11012bab0fdb45d444d3d2ce71c81565b6102737f000000000000000000000000000000000000000000000000000000006192991881565b61024a610715565b61024a610371366004612059565b61078c565b6009546102ad906001600160a01b031681565b61024a61085b565b6102ad7f000000000000000000000000000000000000000000000000000000000000000081565b6005546103c59060ff1681565b604051901515815260200161027d565b6104616003546002546004546006546005547f00000000000000000000000000000000000000000000000000000000619275f0957f0000000000000000000000000000000000000000000000000000000061929918959493927f0000000000000000000000000000000000000000000000190522016f0694b90092909160ff8083169261010090041690565b60408051998a5260208a0198909852968801959095526060870193909352608086019190915260a085015260c0840152151560e083015215156101008201526101200161027d565b610273600a5481565b6104ba6108ea565b60405161027d93929190612246565b61024a6104d736600461201f565b6109a5565b61024a610de4565b6102737f00000000000000000000000000000000000000000000000000000000619275f081565b610273610519366004611ec9565b610e1a565b6000546001600160a01b03166102ad565b610273611c2081565b61027360035481565b61024a61054f366004611ee4565b610e55565b61027360045481565b61024a61056b366004611f98565b610e97565b6102736305f5e10081565b6005546103c590610100900460ff1681565b61024a61059b366004612059565b610f29565b6102ad7f000000000000000000000000108a850856db3f85d0269a2693d896b394c8032581565b6102ad6105d5366004612059565b610f40565b6105ed6105e8366004611ec9565b610f6a565b6040805192835260208301919091520161027d565b61024a6106103660046120af565b61113f565b610273610623366004612059565b611228565b61027360025481565b61024a61063f366004611ec9565b611249565b600854610273565b61027361065a366004612059565b6112e1565b6000546001600160a01b031633146106925760405162461bcd60e51b815260040161068990612211565b60405180910390fd5b600980546001600160a01b0319166001600160a01b038816179055600a8590556106be600b8585611e01565b506106cb600c8383611e01565b507fbde4447c34a42fa5264f1e580cc5f7002d5cac0ea8c0dc0127e668f4993eda5886868686868660405161070596959493929190612196565b60405180910390a1505050505050565b6000546001600160a01b0316331461073f5760405162461bcd60e51b815260040161068990612211565b6005805460ff8082161560ff1990921682179092556040519116151581527fda88b5dfaac55549d4ddddd43a09d4b911233df354952ebc9ac2041aa18534369060200160405180910390a1565b6000546001600160a01b031633146107b65760405162461bcd60e51b815260040161068990612211565b7f00000000000000000000000000000000000000000000000000000000619275f0421080156107e55750600654155b6108205760405162461bcd60e51b815260206004820152600c60248201526b1cd85b19481cdd185c9d195960a21b6044820152606401610689565b60038190556040518181527fd8bf3e8ce316036bc5bc107a94a1ab4cbc85b3f49802351582793a2aef810cf29060200160405180910390a150565b6000546001600160a01b031633148061089f575061089c7f000000000000000000000000000000000000000000000000000000006192991862278d0061227b565b42115b6108d95760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610689565b6005805461ff001916610100179055565b6000606080600a54600b600c8180548060200260200160405190810160405280929190818152602001828054801561094157602002820191906000526020600020905b81548152602001906001019080831161092d575b505050505091508080548060200260200160405190810160405280929190818152602001828054801561099357602002820191906000526020600020905b81548152602001906001019080831161097f575b50505050509050925092509250909192565b600260015414156109f85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610689565b600260015560055460ff1615610a395760405162461bcd60e51b81526020600482015260066024820152651c185d5cd95960d21b6044820152606401610689565b7f00000000000000000000000000000000000000000000000000000000619299184211610a995760405162461bcd60e51b815260206004820152600e60248201526d1cd85b19481b9bdd08195b99195960921b6044820152606401610689565b600554610100900460ff16610ae05760405162461bcd60e51b815260206004820152600d60248201526c1b9bdd08199a5b985b1a5e9959609a1b6044820152606401610689565b33600090815260076020526040902054610b355760405162461bcd60e51b81526020600482015260166024820152756861766520796f75207061727469636970617465643f60501b6044820152606401610689565b3360009081526007602052604090206001015460ff1615610b8d5760405162461bcd60e51b81526020600482015260126024820152711b9bdd1a1a5b99c81d1bc81a185c9d995cdd60721b6044820152606401610689565b3360008181526007602052604081206001908101805460ff1916909117905590610bb690610e1a565b90508115610d73577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c2b5760405162461bcd60e51b81526020600482015260146024820152736e6f207374616b696e6720617661696c61626c6560601b6044820152606401610689565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018390527f000000000000000000000000108a850856db3f85d0269a2693d896b394c80325169063095ea7b390604401602060405180830381600087803b158015610cb557600080fd5b505af1158015610cc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ced919061203c565b50604051636e553f6560e01b8152600481018290523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636e553f6590604401600060405180830381600087803b158015610d5657600080fd5b505af1158015610d6a573d6000803e3d6000fd5b50505050610da7565b610da76001600160a01b037f000000000000000000000000108a850856db3f85d0269a2693d896b394c803251633836112f1565b60405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a2505060018055565b6000546001600160a01b03163314610e0e5760405162461bcd60e51b815260040161068990612211565b610e186000611359565b565b6003546002546001600160a01b038316600090815260076020526040812054909291610e45916122b5565b610e4f9190612293565b92915050565b6000546001600160a01b03163314610e7f5760405162461bcd60e51b815260040161068990612211565b610e936001600160a01b03831633836112f1565b5050565b336001600160a01b037f00000000000000000000000069fa0fee221ad11012bab0fdb45d444d3d2ce71c1614610f195760405162461bcd60e51b815260206004820152602160248201527f6f6e546f6b656e5472616e736665723a206e6f74207061796d656e74546f6b656044820152603760f91b6064820152608401610689565b610f2384846113a9565b50505050565b610f33338261199c565b610f3d33826113a9565b50565b60088181548110610f5057600080fd5b6000918252602090912001546001600160a01b0316905081565b6009546040516343b0215f60e01b81526001600160a01b03838116600483015260009283928392909116906343b0215f9060240160606040518083038186803b158015610fb657600080fd5b505afa158015610fca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fee91906120db565b509150507f00000000000000000000000000000000000000000000000000000000619275f08110158061101f575080155b156110305750600093849350915050565b6009546040516303cc59a960e41b81526001600160a01b0386811660048301526000928392911690633cc59a9090602401604080518083038186803b15801561107857600080fd5b505afa15801561108c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b0919061208b565b91505060005b600b5481101561113357600b81815481106110d3576110d3612348565b90600052602060002001548210611121576305f5e100600c82815481106110fc576110fc612348565b9060005260206000200154600a5461111491906122b5565b61111e9190612293565b92505b8061112b81612317565b9150506110b6565b50909590945092505050565b6000546001600160a01b031633146111695760405162461bcd60e51b815260040161068990612211565b7f00000000000000000000000000000000000000000000000000000000619275f0421080156111985750600654155b6111d35760405162461bcd60e51b815260206004820152600c60248201526b1cd85b19481cdd185c9d195960a21b6044820152606401610689565b60028390556003829055600481905560408051848152602081018490529081018290527fc3a3b89f171024a29742b66dfae364a99b606729ed7827d9aa220a5cc7c8e1519060600160405180910390a1505050565b600c818154811061123857600080fd5b600091825260209091200154905081565b6000546001600160a01b031633146112735760405162461bcd60e51b815260040161068990612211565b6001600160a01b0381166112d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610689565b610f3d81611359565b600b818154811061123857600080fd5b6040516001600160a01b03831660248201526044810182905261135490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b7d565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015414156113fc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610689565b600260015560055460ff161561143d5760405162461bcd60e51b81526020600482015260066024820152651c185d5cd95960d21b6044820152606401610689565b7f00000000000000000000000000000000000000000000000000000000619275f0421015801561148d57507f00000000000000000000000000000000000000000000000000000000619299184211155b6114cb5760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b6044820152606401610689565b6000811161150d5760405162461bcd60e51b815260206004820152600f60248201526e06e65656420616d6f756e74203e203608c1b6044820152606401610689565b6003546006541061154b5760405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b6044820152606401610689565b6001600160a01b0382166000908152600760205260409020546115b457600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b0384161790555b6000806115c084610f6a565b90925090506115f1611c207f00000000000000000000000000000000000000000000000000000000619275f061227b565b4210156116c7576001600160a01b038416600090815260076020526040902054829061161e90859061227b565b11156116635760405162461bcd60e51b81526020600482015260146024820152736f76657220616c6c6f636174696f6e2073697a6560601b6044820152606401610689565b60045483600654611674919061227b565b11156116c25760405162461bcd60e51b815260206004820152601960248201527f72656163686564207068617365203120746f74616c20636170000000000000006044820152606401610689565b61188c565b7f0000000000000000000000000000000000000000000000190522016f0694b900158061174057506117197f0000000000000000000000000000000000000000000000190522016f0694b9008361227b565b6001600160a01b03851660009081526007602052604090205461173d90859061227b565b11155b6117805760405162461bcd60e51b815260206004820152601160248201527006f7665722070657220757365722063617607c1b6044820152606401610689565b6040516370a0823160e01b81526001600160a01b0385811660048301526064917f000000000000000000000000ebcd3922a199cd1358277c6458439c13a93531ed909116906370a082319060240160206040518083038186803b1580156117e657600080fd5b505afa1580156117fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181e9190612072565b10158061182c575060648110155b61188c5760405162461bcd60e51b815260206004820152602b60248201527f6d696e696d756d2031303020765852554e45206f72207374616b656420746f2060448201526a706172746963697061746560a81b6064820152608401610689565b6003548360065461189d919061227b565b1115611906576118f384600354856006546118b8919061227b565b6118c291906122d4565b6001600160a01b037f00000000000000000000000069fa0fee221ad11012bab0fdb45d444d3d2ce71c1691906112f1565b60065460035461190391906122d4565b92505b6001600160a01b03841660009081526007602052604090205461192a90849061227b565b6001600160a01b03851660009081526007602052604090205560065461195190849061227b565b6006556040518381526001600160a01b038516907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a25050600180555050565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000069fa0fee221ad11012bab0fdb45d444d3d2ce71c6001600160a01b0316906370a082319060240160206040518083038186803b1580156119fe57600080fd5b505afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a369190612072565b9050611a6d6001600160a01b037f00000000000000000000000069fa0fee221ad11012bab0fdb45d444d3d2ce71c16843085611c4f565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000069fa0fee221ad11012bab0fdb45d444d3d2ce71c6001600160a01b0316906370a082319060240160206040518083038186803b158015611acf57600080fd5b505afa158015611ae3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b079190612072565b905082611b1483836122d4565b14610f235760405162461bcd60e51b815260206004820152603360248201527f5f7472616e7366657246726f6d3a2062616c616e6365206368616e676520646f604482015272195cc81b9bdd081b585d18da08185b5bdd5b9d606a1b6064820152608401610689565b6000611bd2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c879092919063ffffffff16565b8051909150156113545780806020019051810190611bf0919061203c565b6113545760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610689565b6040516001600160a01b0380851660248301528316604482015260648101829052610f239085906323b872dd60e01b9060840161131d565b6060611c968484600085611ca0565b90505b9392505050565b606082471015611d015760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610689565b843b611d4f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610689565b600080866001600160a01b03168587604051611d6b919061217a565b60006040518083038185875af1925050503d8060008114611da8576040519150601f19603f3d011682016040523d82523d6000602084013e611dad565b606091505b5091509150611dbd828286611dc8565b979650505050505050565b60608315611dd7575081611c99565b825115611de75782518084602001fd5b8160405162461bcd60e51b815260040161068991906121de565b828054828255906000526020600020908101928215611e3c579160200282015b82811115611e3c578235825591602001919060010190611e21565b50611e48929150611e4c565b5090565b5b80821115611e485760008155600101611e4d565b80356001600160a01b0381168114611e7857600080fd5b919050565b60008083601f840112611e8f57600080fd5b50813567ffffffffffffffff811115611ea757600080fd5b6020830191508360208260051b8501011115611ec257600080fd5b9250929050565b600060208284031215611edb57600080fd5b611c9982611e61565b60008060408385031215611ef757600080fd5b611f0083611e61565b946020939093013593505050565b60008060008060008060808789031215611f2757600080fd5b611f3087611e61565b955060208701359450604087013567ffffffffffffffff80821115611f5457600080fd5b611f608a838b01611e7d565b90965094506060890135915080821115611f7957600080fd5b50611f8689828a01611e7d565b979a9699509497509295939492505050565b60008060008060608587031215611fae57600080fd5b611fb785611e61565b935060208501359250604085013567ffffffffffffffff80821115611fdb57600080fd5b818701915087601f830112611fef57600080fd5b813581811115611ffe57600080fd5b88602082850101111561201057600080fd5b95989497505060200194505050565b60006020828403121561203157600080fd5b8135611c998161235e565b60006020828403121561204e57600080fd5b8151611c998161235e565b60006020828403121561206b57600080fd5b5035919050565b60006020828403121561208457600080fd5b5051919050565b6000806040838503121561209e57600080fd5b505080516020909101519092909150565b6000806000606084860312156120c457600080fd5b505081359360208301359350604090920135919050565b6000806000606084860312156120f057600080fd5b8351925060208401519150604084015190509250925092565b81835260006001600160fb1b0383111561212257600080fd5b8260051b8083602087013760009401602001938452509192915050565b600081518084526020808501945080840160005b8381101561216f57815187529582019590820190600101612153565b509495945050505050565b6000825161218c8184602087016122eb565b9190910192915050565b60018060a01b03871681528560208201526080604082015260006121be608083018688612109565b82810360608401526121d1818587612109565b9998505050505050505050565b60208152600082518060208401526121fd8160408501602087016122eb565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b83815260606020820152600061225f606083018561213f565b8281036040840152612271818561213f565b9695505050505050565b6000821982111561228e5761228e612332565b500190565b6000826122b057634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156122cf576122cf612332565b500290565b6000828210156122e6576122e6612332565b500390565b60005b838110156123065781810151838201526020016122ee565b83811115610f235750506000910152565b600060001982141561232b5761232b612332565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b8015158114610f3d57600080fdfea26469706673582212201919e3399aac63fefaacbcd9955d933d8d191e2b1d8989bcc56ca80b9a438f5a64736f6c63430008070033

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

00000000000000000000000069fa0fee221ad11012bab0fdb45d444d3d2ce71c000000000000000000000000108a850856db3f85d0269a2693d896b394c80325000000000000000000000000ebcd3922a199cd1358277c6458439c13a93531ed00000000000000000000000000000000000000000000000000000000619275f0000000000000000000000000000000000000000000000000000000006192991800000000000000000000000000000000000000000009ed194db19b238c0000000000000000000000000000000000000000000000000061bc0cd599a8be2b47000000000000000000000000000000000000000000000057f60b8d0a4b14884a000000000000000000000000000000000000000000000000190522016f0694b9000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _paymentToken (address): 0x69fa0feE221AD11012BAb0FdB45d444D3D2Ce71c
Arg [1] : _offeringToken (address): 0x108a850856Db3f85d0269a2693D896B394C80325
Arg [2] : _vxrune (address): 0xEBCD3922A199cd1358277C6458439C13A93531eD
Arg [3] : _startTime (uint256): 1636988400
Arg [4] : _endTime (uint256): 1636997400
Arg [5] : _offeringAmount (uint256): 12000000000000000000000000
Arg [6] : _raisingAmount (uint256): 461538461538461500000000
Arg [7] : _raisingAmountTiers (uint256): 415384615384615400000000
Arg [8] : _perUserCap (uint256): 461538461538500000000
Arg [9] : _staking (address): 0x0000000000000000000000000000000000000000

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000069fa0fee221ad11012bab0fdb45d444d3d2ce71c
Arg [1] : 000000000000000000000000108a850856db3f85d0269a2693d896b394c80325
Arg [2] : 000000000000000000000000ebcd3922a199cd1358277c6458439c13a93531ed
Arg [3] : 00000000000000000000000000000000000000000000000000000000619275f0
Arg [4] : 0000000000000000000000000000000000000000000000000000000061929918
Arg [5] : 00000000000000000000000000000000000000000009ed194db19b238c000000
Arg [6] : 0000000000000000000000000000000000000000000061bc0cd599a8be2b4700
Arg [7] : 0000000000000000000000000000000000000000000057f60b8d0a4b14884a00
Arg [8] : 0000000000000000000000000000000000000000000000190522016f0694b900
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000


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.