ETH Price: $3,069.01 (-3.38%)
Gas: 6 Gwei

Contract

0xc847b0e5fC8c02c1c33AFd381043DdF3EB3E0C39
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60806040143073752022-03-02 11:43:56796 days ago1646221436IN
 Create: LendFlareToken
0 ETH0.0516049834.10891521

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LendFlareToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : LendFlareToken.sol
// SPDX-License-Identifier: UNLICENSED
/* 

  _                          _   _____   _                       
 | |       ___   _ __     __| | |  ___| | |   __ _   _ __    ___ 
 | |      / _ \ | '_ \   / _` | | |_    | |  / _` | | '__|  / _ \
 | |___  |  __/ | | | | | (_| | |  _|   | | | (_| | | |    |  __/
 |_____|  \___| |_| |_|  \__,_| |_|     |_|  \__,_| |_|     \___|
                                                                 
LendFlare.finance
*/

pragma solidity =0.6.12;

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

contract LendFlareToken is Initializable, IERC20 {
    using SafeMath for uint256;

    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    uint256 public constant YEAR = 1 days * 365;
    uint256 public constant INITIAL_RATE = (274815283 * 10**18) / YEAR; // leading to 43% premine
    uint256 public constant RATE_REDUCTION_TIME = YEAR;
    uint256 public constant RATE_REDUCTION_COEFFICIENT = 1189207115002721024; // 2 ** (1/4) * 1e18
    uint256 public constant RATE_DENOMINATOR = 10**18;

    uint256 public startEpochTime;
    uint256 public startEpochSupply;
    uint256 public miningEpoch;
    uint256 public rate;
    uint256 public version;

    address public multiSigUser;
    address public owner;
    address public minter;
    address public liquidityTransformer;

    bool public liquidity;

    event UpdateMiningParameters(uint256 time, uint256 rate, uint256 supply);
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(
        address indexed _owner,
        address indexed _spender,
        uint256 _value
    );
    event SetMinter(address minter);
    event SetOwner(address owner);
    event LiquidityTransformer(
        address indexed _from,
        address indexed _to,
        uint256 _value
    );

    // @custom:oz-upgrades-unsafe-allow constructor
    constructor() public initializer {}

    function initialize(address _owner, address _multiSigUser)
        public
        initializer
    {
        _name = "LendFlare DAO Token";
        _symbol = "LFT";
        _decimals = 18;
        version = 1;

        owner = _owner;
        multiSigUser = _multiSigUser;

        startEpochTime = block.timestamp.sub(RATE_REDUCTION_TIME);

        miningEpoch = 0;
        rate = 0;
        startEpochSupply = 0;
    }

    modifier onlyOwner() {
        require(owner == msg.sender, "LendFlareToken: caller is not the owner");
        _;
    }

    modifier onlyLiquidityTransformer() {
        require(
            liquidityTransformer == msg.sender,
            "LendFlareToken: caller is not the liquidityTransformer"
        );
        _;
    }

    function setOwner(address _owner) public onlyOwner {
        owner = _owner;

        emit SetOwner(_owner);
    }

    function setLiquidityTransformer(address _v) public onlyOwner {
        require(_v != address(0), "!_v");
        require(liquidityTransformer == address(0), "!liquidityTransformer");

        liquidityTransformer = _v;

        uint256 supply = 909090909 * 10**18;

        _balances[liquidityTransformer] = supply;
        _totalSupply = _totalSupply.add(supply);

        startEpochSupply = startEpochSupply.add(supply);

        emit LiquidityTransformer(address(0), multiSigUser, supply);
    }

    function setLiquidityFinish() external onlyLiquidityTransformer {
        require(!liquidity, "!liquidity");

        uint256 officialTeam = 90909090 * 10**18;
        uint256 merkleAirdrop = 30303030 * 10**18;
        uint256 earlyLiquidityReward = 151515151 * 10**18;
        uint256 community = 121212121 * 10**18;

        uint256 supply = officialTeam
            .add(merkleAirdrop)
            .add(earlyLiquidityReward)
            .add(community);

        _balances[multiSigUser] = supply;
        _totalSupply = _totalSupply.add(supply);

        startEpochSupply = startEpochSupply.add(supply);

        liquidity = true;

        emit Transfer(address(0), multiSigUser, officialTeam);
        emit Transfer(address(0), multiSigUser, merkleAirdrop);
        emit Transfer(address(0), multiSigUser, earlyLiquidityReward);
        emit Transfer(address(0), multiSigUser, community);
    }

    function _updateMiningParameters() internal {
        startEpochTime = startEpochTime.add(RATE_REDUCTION_TIME);

        miningEpoch++;

        if (rate == 0) {
            rate = INITIAL_RATE;
        } else {
            startEpochSupply = startEpochSupply.add(
                rate.mul(RATE_REDUCTION_TIME)
            );

            rate = rate.mul(RATE_DENOMINATOR).div(RATE_REDUCTION_COEFFICIENT);
        }

        emit UpdateMiningParameters(block.timestamp, rate, startEpochSupply);
    }

    function updateMiningParameters() external {
        require(
            block.timestamp >= startEpochTime.add(RATE_REDUCTION_TIME),
            "too soon!"
        );

        _updateMiningParameters();
    }

    function startEpochTimeWrite() external returns (uint256) {
        if (block.timestamp >= startEpochTime.add(RATE_REDUCTION_TIME)) {
            _updateMiningParameters();
        }

        return startEpochTime;
    }

    function futureEpochTimeWrite() external returns (uint256) {
        if (block.timestamp >= startEpochTime.add(RATE_REDUCTION_TIME)) {
            _updateMiningParameters();
        }

        return startEpochTime.add(RATE_REDUCTION_TIME);
    }

    function availableSupply() public view returns (uint256) {
        return
            startEpochSupply.add(block.timestamp.sub(startEpochTime).mul(rate));
    }

    function setMinter(address _minter) public onlyOwner {
        require(_minter != address(0), "!_minter");

        minter = _minter;

        emit SetMinter(_minter);
    }

    function name() public view virtual returns (string memory) {
        return _name;
    }

    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account)
        public
        view
        virtual
        override
        returns (uint256)
    {
        return _balances[account];
    }

    function transfer(address recipient, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        _transfer(msg.sender, recipient, amount);
        return true;
    }

    function allowance(address user, address spender)
        public
        view
        virtual
        override
        returns (uint256)
    {
        return _allowances[user][spender];
    }

    function approve(address spender, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        _approve(msg.sender, spender, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            msg.sender,
            _allowances[sender][msg.sender].sub(
                amount,
                "transfer amount exceeds allowance"
            )
        );
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue)
        public
        virtual
        returns (bool)
    {
        _approve(
            msg.sender,
            spender,
            _allowances[msg.sender][spender].add(addedValue)
        );
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue)
        public
        virtual
        returns (bool)
    {
        _approve(
            msg.sender,
            spender,
            _allowances[msg.sender][spender].sub(
                subtractedValue,
                "decreased allowance below zero"
            )
        );
        return true;
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "transfer from the zero address");
        require(recipient != address(0), "transfer to the zero address");

        _balances[sender] = _balances[sender].sub(
            amount,
            "transfer amount exceeds balance"
        );
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    function mint(address account, uint256 amount) public returns (bool) {
        require(msg.sender == minter, "!minter");
        require(account != address(0), "mint to the zero address");

        if (!liquidity) return false;

        if (block.timestamp >= startEpochTime.add(RATE_REDUCTION_TIME)) {
            _updateMiningParameters();
        }

        _totalSupply = _totalSupply.add(amount);

        require(
            _totalSupply <= availableSupply(),
            "exceeds allowable mint amount"
        );

        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    function burn(uint256 amount) public returns (bool) {
        _balances[msg.sender] = _balances[msg.sender].sub(
            amount,
            "burn amount exceeds balance"
        );

        _totalSupply = _totalSupply.sub(amount);

        emit Transfer(msg.sender, address(0), amount);
    }

    function _approve(
        address user,
        address spender,
        uint256 amount
    ) internal virtual {
        require(user != address(0), "approve from the zero address");
        require(spender != address(0), "approve to the zero address");

        _allowances[user][spender] = amount;
        emit Approval(user, spender, amount);
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 5 : Initializable.sol
// SPDX-License-Identifier: MIT

// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;

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

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !Address.isContract(address(this));
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"LiquidityTransformer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"}],"name":"SetMinter","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"SetOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"UpdateMiningParameters","type":"event"},{"inputs":[],"name":"INITIAL_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RATE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RATE_REDUCTION_COEFFICIENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RATE_REDUCTION_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YEAR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"futureEpochTimeWrite","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_multiSigUser","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"liquidity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityTransformer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"miningEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiSigUser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setLiquidityFinish","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_v","type":"address"}],"name":"setLiquidityTransformer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startEpochSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startEpochTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startEpochTimeWrite","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateMiningParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50600054610100900460ff16806200002e57506200002e620000c0565b806200003d575060005460ff16155b6200007a5760405162461bcd60e51b815260040180806020018281038252602e81526020018062001ae0602e913960400191505060405180910390fd5b600054610100900460ff16158015620000a6576000805460ff1961ff0019909116610100171660011790555b8015620000b9576000805461ff00191690555b50620000e4565b6000620000d830620000de60201b620012a51760201c565b15905090565b3b151590565b6119ec80620000f46000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c80635feca93311610130578063a18959b9116100b8578063c50611161161007c578063c50611161461056a578063cb626ae214610572578063dd5fbc9a1461057a578063dd62ed3e14610582578063fca3b5aa146105b057610227565b8063a18959b914610502578063a228bced1461050a578063a457c2d714610512578063a9059cbb1461053e578063b87b5616146104ea57610227565b80637ecc2b56116100ff5780637ecc2b56146104da5780637efad8e0146104e257806383914540146104ea5780638da5cb5b146104f257806395d89b41146104fa57610227565b80635feca9331461047e57806364ef6dd4146104a45780636afeb796146104ac57806370a08231146104b457610227565b8063277dbafb116101b357806340c10f191161018257806340c10f19146103f757806342966c6814610423578063485cc955146104405780634dbac7331461046e57806354fd4d501461047657610227565b8063277dbafb1461039d5780632c4e722e146103a5578063313ce567146103ad57806339509351146103cb57610227565b80631814a5b1116101fa5780631814a5b11461033557806318160ddd1461034f5780631a6865021461035757806321609bbf1461035f57806323b872dd1461036757610227565b806306fdde031461022c57806307546172146102a9578063095ea7b3146102cd57806313af40351461030d575b600080fd5b6102346105d6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026e578181015183820152602001610256565b50505050905090810190601f16801561029b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102b161066c565b604080516001600160a01b039092168252519081900360200190f35b6102f9600480360360408110156102e357600080fd5b506001600160a01b03813516906020013561067b565b604080519115158252519081900360200190f35b6103336004803603602081101561032357600080fd5b50356001600160a01b0316610692565b005b61033d61072f565b60408051918252519081900360200190f35b61033d610735565b6102f961073b565b61033d61074b565b6102f96004803603606081101561037d57600080fd5b506001600160a01b03813581169160208101359091169060400135610757565b61033d6107c0565b61033d6107f8565b6103b56107fe565b6040805160ff9092168252519081900360200190f35b6102f9600480360360408110156103e157600080fd5b506001600160a01b038135169060200135610807565b6102f96004803603604081101561040d57600080fd5b506001600160a01b03813516906020013561083d565b6102f96004803603602081101561043957600080fd5b50356109f5565b6103336004803603604081101561045657600080fd5b506001600160a01b0381358116916020013516610a91565b61033d610bfd565b61033d610c09565b6103336004803603602081101561049457600080fd5b50356001600160a01b0316610c0f565b61033d610d9a565b6102b1610da0565b61033d600480360360208110156104ca57600080fd5b50356001600160a01b0316610daf565b61033d610dca565b61033d610df9565b61033d610e05565b6102b1610e0d565b610234610e1c565b6102b1610e7d565b61033d610e8c565b6102f96004803603604081101561052857600080fd5b506001600160a01b038135169060200135610eb5565b6102f96004803603604081101561055457600080fd5b506001600160a01b038135169060200135610f22565b610333610f2f565b610333611136565b61033d611191565b61033d6004803603604081101561059857600080fd5b506001600160a01b0381358116916020013516611197565b610333600480360360208110156105c657600080fd5b50356001600160a01b03166111c2565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106625780601f1061063757610100808354040283529160200191610662565b820191906000526020600020905b81548152906001019060200180831161064557829003601f168201915b5050505050905090565b600e546001600160a01b031681565b60006106883384846112ab565b5060015b92915050565b600d546001600160a01b031633146106db5760405162461bcd60e51b81526004018080602001828103825260278152602001806119906027913960400191505060405180910390fd5b600d80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f167d3e9c1016ab80e58802ca9da10ce5c6a0f4debc46a2e7a2cd9e56899a4fb59181900360200190a150565b60075481565b60035490565b600f54600160a01b900460ff1681565b671080e992061ab30081565b60006107648484846113c3565b6107b684336107b1856040518060600160405280602181526020016118f8602191396001600160a01b038a166000908152600260209081526040808320338452909152902054919061154d565b6112ab565b5060019392505050565b6007546000906107d4906301e133806115e4565b42106107e2576107e2611645565b6007546107f3906301e133806115e4565b905090565b600a5481565b60065460ff1690565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916106889185906107b190866115e4565b600e546000906001600160a01b03163314610889576040805162461bcd60e51b815260206004820152600760248201526610b6b4b73a32b960c91b604482015290519081900360640190fd5b6001600160a01b0383166108e4576040805162461bcd60e51b815260206004820152601860248201527f6d696e7420746f20746865207a65726f20616464726573730000000000000000604482015290519081900360640190fd5b600f54600160a01b900460ff166108fd5750600061068c565b60075461090e906301e133806115e4565b421061091c5761091c611645565b60035461092990836115e4565b600355610934610dca565b600354111561098a576040805162461bcd60e51b815260206004820152601d60248201527f6578636565647320616c6c6f7761626c65206d696e7420616d6f756e74000000604482015290519081900360640190fd5b6001600160a01b0383166000908152600160205260409020546109ad90836115e4565b6001600160a01b038416600081815260016020908152604080832094909455835186815293519293919260008051602061193a8339815191529281900390910190a392915050565b604080518082018252601b81527f6275726e20616d6f756e7420657863656564732062616c616e63650000000000602080830191909152336000908152600190915291822054610a4691849061154d565b33600090815260016020526040902055600354610a639083611708565b600355604080518381529051600091339160008051602061193a8339815191529181900360200190a3919050565b600054610100900460ff1680610aaa5750610aaa611765565b80610ab8575060005460ff16155b610af35760405162461bcd60e51b815260040180806020018281038252602e8152602001806118ca602e913960400191505060405180910390fd5b600054610100900460ff16158015610b1e576000805460ff1961ff0019909116610100171660011790555b604080518082019091526013808252722632b732233630b932902220a7902a37b5b2b760691b6020909201918252610b5891600491611836565b506040805180820190915260038082526213119560ea1b6020909201918252610b8391600591611836565b506006805460ff191660121790556001600b55600d80546001600160a01b038086166001600160a01b031992831617909255600c805492851692909116919091179055610bd4426301e13380611708565b60075560006009819055600a8190556008558015610bf8576000805461ff00191690555b505050565b6778ef89edad16a61581565b600b5481565b600d546001600160a01b03163314610c585760405162461bcd60e51b81526004018080602001828103825260278152602001806119906027913960400191505060405180910390fd5b6001600160a01b038116610c99576040805162461bcd60e51b815260206004820152600360248201526210afbb60e91b604482015290519081900360640190fd5b600f546001600160a01b031615610cef576040805162461bcd60e51b815260206004820152601560248201527410b634b8bab4b234ba3caa3930b739b337b936b2b960591b604482015290519081900360640190fd5b600f80546001600160a01b0319166001600160a01b0383811691909117918290551660009081526001602052604090206b02effb7ced1d7b3e4f54000090819055600354610d3d90826115e4565b600355600854610d4d90826115e4565b600855600c546040805183815290516001600160a01b03909216916000917fe3d20dc906feba4b84ca7dec80925a885d4ffead3cfa939d1f8d51101c0c4c2a919081900360200190a35050565b60095481565b600c546001600160a01b031681565b6001600160a01b031660009081526001602052604090205490565b60006107f3610df0600a54610dea6007544261170890919063ffffffff16565b90611776565b600854906115e4565b670de0b6b3a764000081565b6301e1338081565b600d546001600160a01b031681565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106625780601f1061063757610100808354040283529160200191610662565b600f546001600160a01b031681565b600754600090610ea0906301e133806115e4565b4210610eae57610eae611645565b5060075490565b604080518082018252601e81527f64656372656173656420616c6c6f77616e63652062656c6f77207a65726f0000602080830191909152336000818152600283528481206001600160a01b038816825290925292812054909261068892909186916107b19190879061154d565b60006106883384846113c3565b600f546001600160a01b03163314610f785760405162461bcd60e51b815260040180806020018281038252603681526020018061195a6036913960400191505060405180910390fd5b600f54600160a01b900460ff1615610fc4576040805162461bcd60e51b815260206004820152600a602482015269216c697175696469747960b01b604482015290519081900360640190fd5b6a4b32bfa4d24e4af14800006a1910ea8c461a18fb1800006a7d5494cb3f39308edc00006a6443aa3ef91f1793c40000600061100c82611006858189896115e4565b906115e4565b600c546001600160a01b0316600090815260016020526040902081905560035490915061103990826115e4565b60035560085461104990826115e4565b600855600f805460ff60a01b1916600160a01b179055600c546040805187815290516001600160a01b039092169160009160008051602061193a833981519152919081900360200190a3600c546040805186815290516001600160a01b039092169160009160008051602061193a833981519152919081900360200190a3600c546040805185815290516001600160a01b039092169160009160008051602061193a833981519152919081900360200190a3600c546040805184815290516001600160a01b039092169160009160008051602061193a833981519152919081900360200190a35050505050565b600754611147906301e133806115e4565b421015611187576040805162461bcd60e51b8152602060048201526009602482015268746f6f20736f6f6e2160b81b604482015290519081900360640190fd5b61118f611645565b565b60085481565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b600d546001600160a01b0316331461120b5760405162461bcd60e51b81526004018080602001828103825260278152602001806119906027913960400191505060405180910390fd5b6001600160a01b038116611251576040805162461bcd60e51b815260206004820152600860248201526710afb6b4b73a32b960c11b604482015290519081900360640190fd5b600e80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517fcec52196e972044edde8689a1b608e459c5946b7f3e5c8cd3d6d8e126d422e1c9181900360200190a150565b3b151590565b6001600160a01b038316611306576040805162461bcd60e51b815260206004820152601d60248201527f617070726f76652066726f6d20746865207a65726f2061646472657373000000604482015290519081900360640190fd5b6001600160a01b038216611361576040805162461bcd60e51b815260206004820152601b60248201527f617070726f766520746f20746865207a65726f20616464726573730000000000604482015290519081900360640190fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661141e576040805162461bcd60e51b815260206004820152601e60248201527f7472616e736665722066726f6d20746865207a65726f20616464726573730000604482015290519081900360640190fd5b6001600160a01b038216611479576040805162461bcd60e51b815260206004820152601c60248201527f7472616e7366657220746f20746865207a65726f206164647265737300000000604482015290519081900360640190fd5b604080518082018252601f81527f7472616e7366657220616d6f756e7420657863656564732062616c616e6365006020808301919091526001600160a01b0386166000908152600190915291909120546114d491839061154d565b6001600160a01b03808516600090815260016020526040808220939093559084168152205461150390826115e4565b6001600160a01b03808416600081815260016020908152604091829020949094558051858152905191939287169260008051602061193a83398151915292918290030190a3505050565b600081848411156115dc5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115a1578181015183820152602001611589565b50505050905090810190601f1680156115ce5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561163e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600754611656906301e133806115e4565b600755600980546001019055600a5461167a576778ef89edad16a615600a556116bf565b600a5461168f90610df0906301e13380611776565b600855600a546116bb90671080e992061ab300906116b590670de0b6b3a7640000611776565b906117cf565b600a555b600a5460085460408051428152602081019390935282810191909152517f27e46362a1e6129b6dd539c984ce739291a97128dfcaeca1255e8ac83abd94419181900360600190a1565b60008282111561175f576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000611770306112a5565b15905090565b6000826117855750600061068c565b8282028284828161179257fe5b041461163e5760405162461bcd60e51b81526004018080602001828103825260218152602001806119196021913960400191505060405180910390fd5b6000808211611825576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161182e57fe5b049392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061187757805160ff19168380011785556118a4565b828001600101855582156118a4579182015b828111156118a4578251825591602001919060010190611889565b506118b09291506118b4565b5090565b5b808211156118b057600081556001016118b556fe496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65647472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4c656e64466c617265546f6b656e3a2063616c6c6572206973206e6f7420746865206c69717569646974795472616e73666f726d65724c656e64466c617265546f6b656e3a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122023c4d48da36b5aafe830dccffab579e6a5d76b0118f89e34cb6920cfc68f949c64736f6c634300060c0033496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102275760003560e01c80635feca93311610130578063a18959b9116100b8578063c50611161161007c578063c50611161461056a578063cb626ae214610572578063dd5fbc9a1461057a578063dd62ed3e14610582578063fca3b5aa146105b057610227565b8063a18959b914610502578063a228bced1461050a578063a457c2d714610512578063a9059cbb1461053e578063b87b5616146104ea57610227565b80637ecc2b56116100ff5780637ecc2b56146104da5780637efad8e0146104e257806383914540146104ea5780638da5cb5b146104f257806395d89b41146104fa57610227565b80635feca9331461047e57806364ef6dd4146104a45780636afeb796146104ac57806370a08231146104b457610227565b8063277dbafb116101b357806340c10f191161018257806340c10f19146103f757806342966c6814610423578063485cc955146104405780634dbac7331461046e57806354fd4d501461047657610227565b8063277dbafb1461039d5780632c4e722e146103a5578063313ce567146103ad57806339509351146103cb57610227565b80631814a5b1116101fa5780631814a5b11461033557806318160ddd1461034f5780631a6865021461035757806321609bbf1461035f57806323b872dd1461036757610227565b806306fdde031461022c57806307546172146102a9578063095ea7b3146102cd57806313af40351461030d575b600080fd5b6102346105d6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026e578181015183820152602001610256565b50505050905090810190601f16801561029b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102b161066c565b604080516001600160a01b039092168252519081900360200190f35b6102f9600480360360408110156102e357600080fd5b506001600160a01b03813516906020013561067b565b604080519115158252519081900360200190f35b6103336004803603602081101561032357600080fd5b50356001600160a01b0316610692565b005b61033d61072f565b60408051918252519081900360200190f35b61033d610735565b6102f961073b565b61033d61074b565b6102f96004803603606081101561037d57600080fd5b506001600160a01b03813581169160208101359091169060400135610757565b61033d6107c0565b61033d6107f8565b6103b56107fe565b6040805160ff9092168252519081900360200190f35b6102f9600480360360408110156103e157600080fd5b506001600160a01b038135169060200135610807565b6102f96004803603604081101561040d57600080fd5b506001600160a01b03813516906020013561083d565b6102f96004803603602081101561043957600080fd5b50356109f5565b6103336004803603604081101561045657600080fd5b506001600160a01b0381358116916020013516610a91565b61033d610bfd565b61033d610c09565b6103336004803603602081101561049457600080fd5b50356001600160a01b0316610c0f565b61033d610d9a565b6102b1610da0565b61033d600480360360208110156104ca57600080fd5b50356001600160a01b0316610daf565b61033d610dca565b61033d610df9565b61033d610e05565b6102b1610e0d565b610234610e1c565b6102b1610e7d565b61033d610e8c565b6102f96004803603604081101561052857600080fd5b506001600160a01b038135169060200135610eb5565b6102f96004803603604081101561055457600080fd5b506001600160a01b038135169060200135610f22565b610333610f2f565b610333611136565b61033d611191565b61033d6004803603604081101561059857600080fd5b506001600160a01b0381358116916020013516611197565b610333600480360360208110156105c657600080fd5b50356001600160a01b03166111c2565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106625780601f1061063757610100808354040283529160200191610662565b820191906000526020600020905b81548152906001019060200180831161064557829003601f168201915b5050505050905090565b600e546001600160a01b031681565b60006106883384846112ab565b5060015b92915050565b600d546001600160a01b031633146106db5760405162461bcd60e51b81526004018080602001828103825260278152602001806119906027913960400191505060405180910390fd5b600d80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f167d3e9c1016ab80e58802ca9da10ce5c6a0f4debc46a2e7a2cd9e56899a4fb59181900360200190a150565b60075481565b60035490565b600f54600160a01b900460ff1681565b671080e992061ab30081565b60006107648484846113c3565b6107b684336107b1856040518060600160405280602181526020016118f8602191396001600160a01b038a166000908152600260209081526040808320338452909152902054919061154d565b6112ab565b5060019392505050565b6007546000906107d4906301e133806115e4565b42106107e2576107e2611645565b6007546107f3906301e133806115e4565b905090565b600a5481565b60065460ff1690565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916106889185906107b190866115e4565b600e546000906001600160a01b03163314610889576040805162461bcd60e51b815260206004820152600760248201526610b6b4b73a32b960c91b604482015290519081900360640190fd5b6001600160a01b0383166108e4576040805162461bcd60e51b815260206004820152601860248201527f6d696e7420746f20746865207a65726f20616464726573730000000000000000604482015290519081900360640190fd5b600f54600160a01b900460ff166108fd5750600061068c565b60075461090e906301e133806115e4565b421061091c5761091c611645565b60035461092990836115e4565b600355610934610dca565b600354111561098a576040805162461bcd60e51b815260206004820152601d60248201527f6578636565647320616c6c6f7761626c65206d696e7420616d6f756e74000000604482015290519081900360640190fd5b6001600160a01b0383166000908152600160205260409020546109ad90836115e4565b6001600160a01b038416600081815260016020908152604080832094909455835186815293519293919260008051602061193a8339815191529281900390910190a392915050565b604080518082018252601b81527f6275726e20616d6f756e7420657863656564732062616c616e63650000000000602080830191909152336000908152600190915291822054610a4691849061154d565b33600090815260016020526040902055600354610a639083611708565b600355604080518381529051600091339160008051602061193a8339815191529181900360200190a3919050565b600054610100900460ff1680610aaa5750610aaa611765565b80610ab8575060005460ff16155b610af35760405162461bcd60e51b815260040180806020018281038252602e8152602001806118ca602e913960400191505060405180910390fd5b600054610100900460ff16158015610b1e576000805460ff1961ff0019909116610100171660011790555b604080518082019091526013808252722632b732233630b932902220a7902a37b5b2b760691b6020909201918252610b5891600491611836565b506040805180820190915260038082526213119560ea1b6020909201918252610b8391600591611836565b506006805460ff191660121790556001600b55600d80546001600160a01b038086166001600160a01b031992831617909255600c805492851692909116919091179055610bd4426301e13380611708565b60075560006009819055600a8190556008558015610bf8576000805461ff00191690555b505050565b6778ef89edad16a61581565b600b5481565b600d546001600160a01b03163314610c585760405162461bcd60e51b81526004018080602001828103825260278152602001806119906027913960400191505060405180910390fd5b6001600160a01b038116610c99576040805162461bcd60e51b815260206004820152600360248201526210afbb60e91b604482015290519081900360640190fd5b600f546001600160a01b031615610cef576040805162461bcd60e51b815260206004820152601560248201527410b634b8bab4b234ba3caa3930b739b337b936b2b960591b604482015290519081900360640190fd5b600f80546001600160a01b0319166001600160a01b0383811691909117918290551660009081526001602052604090206b02effb7ced1d7b3e4f54000090819055600354610d3d90826115e4565b600355600854610d4d90826115e4565b600855600c546040805183815290516001600160a01b03909216916000917fe3d20dc906feba4b84ca7dec80925a885d4ffead3cfa939d1f8d51101c0c4c2a919081900360200190a35050565b60095481565b600c546001600160a01b031681565b6001600160a01b031660009081526001602052604090205490565b60006107f3610df0600a54610dea6007544261170890919063ffffffff16565b90611776565b600854906115e4565b670de0b6b3a764000081565b6301e1338081565b600d546001600160a01b031681565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106625780601f1061063757610100808354040283529160200191610662565b600f546001600160a01b031681565b600754600090610ea0906301e133806115e4565b4210610eae57610eae611645565b5060075490565b604080518082018252601e81527f64656372656173656420616c6c6f77616e63652062656c6f77207a65726f0000602080830191909152336000818152600283528481206001600160a01b038816825290925292812054909261068892909186916107b19190879061154d565b60006106883384846113c3565b600f546001600160a01b03163314610f785760405162461bcd60e51b815260040180806020018281038252603681526020018061195a6036913960400191505060405180910390fd5b600f54600160a01b900460ff1615610fc4576040805162461bcd60e51b815260206004820152600a602482015269216c697175696469747960b01b604482015290519081900360640190fd5b6a4b32bfa4d24e4af14800006a1910ea8c461a18fb1800006a7d5494cb3f39308edc00006a6443aa3ef91f1793c40000600061100c82611006858189896115e4565b906115e4565b600c546001600160a01b0316600090815260016020526040902081905560035490915061103990826115e4565b60035560085461104990826115e4565b600855600f805460ff60a01b1916600160a01b179055600c546040805187815290516001600160a01b039092169160009160008051602061193a833981519152919081900360200190a3600c546040805186815290516001600160a01b039092169160009160008051602061193a833981519152919081900360200190a3600c546040805185815290516001600160a01b039092169160009160008051602061193a833981519152919081900360200190a3600c546040805184815290516001600160a01b039092169160009160008051602061193a833981519152919081900360200190a35050505050565b600754611147906301e133806115e4565b421015611187576040805162461bcd60e51b8152602060048201526009602482015268746f6f20736f6f6e2160b81b604482015290519081900360640190fd5b61118f611645565b565b60085481565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b600d546001600160a01b0316331461120b5760405162461bcd60e51b81526004018080602001828103825260278152602001806119906027913960400191505060405180910390fd5b6001600160a01b038116611251576040805162461bcd60e51b815260206004820152600860248201526710afb6b4b73a32b960c11b604482015290519081900360640190fd5b600e80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517fcec52196e972044edde8689a1b608e459c5946b7f3e5c8cd3d6d8e126d422e1c9181900360200190a150565b3b151590565b6001600160a01b038316611306576040805162461bcd60e51b815260206004820152601d60248201527f617070726f76652066726f6d20746865207a65726f2061646472657373000000604482015290519081900360640190fd5b6001600160a01b038216611361576040805162461bcd60e51b815260206004820152601b60248201527f617070726f766520746f20746865207a65726f20616464726573730000000000604482015290519081900360640190fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661141e576040805162461bcd60e51b815260206004820152601e60248201527f7472616e736665722066726f6d20746865207a65726f20616464726573730000604482015290519081900360640190fd5b6001600160a01b038216611479576040805162461bcd60e51b815260206004820152601c60248201527f7472616e7366657220746f20746865207a65726f206164647265737300000000604482015290519081900360640190fd5b604080518082018252601f81527f7472616e7366657220616d6f756e7420657863656564732062616c616e6365006020808301919091526001600160a01b0386166000908152600190915291909120546114d491839061154d565b6001600160a01b03808516600090815260016020526040808220939093559084168152205461150390826115e4565b6001600160a01b03808416600081815260016020908152604091829020949094558051858152905191939287169260008051602061193a83398151915292918290030190a3505050565b600081848411156115dc5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115a1578181015183820152602001611589565b50505050905090810190601f1680156115ce5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561163e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600754611656906301e133806115e4565b600755600980546001019055600a5461167a576778ef89edad16a615600a556116bf565b600a5461168f90610df0906301e13380611776565b600855600a546116bb90671080e992061ab300906116b590670de0b6b3a7640000611776565b906117cf565b600a555b600a5460085460408051428152602081019390935282810191909152517f27e46362a1e6129b6dd539c984ce739291a97128dfcaeca1255e8ac83abd94419181900360600190a1565b60008282111561175f576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000611770306112a5565b15905090565b6000826117855750600061068c565b8282028284828161179257fe5b041461163e5760405162461bcd60e51b81526004018080602001828103825260218152602001806119196021913960400191505060405180910390fd5b6000808211611825576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161182e57fe5b049392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061187757805160ff19168380011785556118a4565b828001600101855582156118a4579182015b828111156118a4578251825591602001919060010190611889565b506118b09291506118b4565b5090565b5b808211156118b057600081556001016118b556fe496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65647472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4c656e64466c617265546f6b656e3a2063616c6c6572206973206e6f7420746865206c69717569646974795472616e73666f726d65724c656e64466c617265546f6b656e3a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122023c4d48da36b5aafe830dccffab579e6a5d76b0118f89e34cb6920cfc68f949c64736f6c634300060c0033

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.