CRO Price: $0.08 (-0.21%)

Token

(0x34deb73e57f7be74d2cca1869d2c721e16c7a32c)

Overview

Max Total Supply

1,000,000,000 CRC-20 TOKEN*

Holders

221

Market

Price

$0.00 @ 0.000000 CRO

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.184525608896417792 CRC-20 TOKEN*

Value
$0.00
0xb3c506d60d45abb917ee10a947749a098b497d3d
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

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

pragma solidity >=0.6.0 <0.9.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 GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return payable(msg.sender);
    }

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



pragma solidity >=0.6.0 <0.9.0;

/**
 * @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.
 */
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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


pragma solidity >=0.6.0 <0.9.0;


/**
 * @title Initializable
 *
 * @dev Helper contract to support initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 */
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 use in the initializer function of a contract.
   */
  modifier initializer() {
    require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized");

    bool isTopLevelCall = !initializing;
    if (isTopLevelCall) {
      initializing = true;
      initialized = true;
    }

    _;

    if (isTopLevelCall) {
      initializing = false;
    }
  }

  /**
   * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
   * {initializer} modifier, directly or indirectly.
   */
  modifier onlyInitializing() {
    require(initializing, "Initializable: contract is not initializing");
    _;
  }


  /// @dev Returns true if and only if the function is running in the constructor
  function isConstructor() private view returns (bool) {
    // extcodesize checks the size of the code stored in an address, and
    // address returns the current address. Since the code is still not
    // deployed when running a constructor, any checks on its code size will
    // yield zero, making it an effective way to detect if a contract is
    // under construction or not.
    address self = address(this);
    uint256 cs;
    assembly { cs := extcodesize(self) }
    return cs == 0;
  }

  // Reserved storage space to allow for layout changes in the future.
  uint256[50] private ______gap;
}


pragma solidity >=0.6.0 <0.9.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);
}



pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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



pragma solidity >=0.6.0 <0.9.0;





/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Initializable, Context, Ownable, IERC20 {
    using SafeMath for uint256;
    //using Address for address;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name2, string memory symbol2) {
        _name = name2;
        _symbol = symbol2;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

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

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

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

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual view {
    }
}


pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library SafeERC20 {
    function _safeApprove(IERC20 token, address to, uint value) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), '!APPROVE_FAILED');
    }
    function safeApprove(IERC20 token, address to, uint value) internal {
        if (value > 0 && token.allowance(msg.sender, to) > 0) _safeApprove(token, to, 0);
        return _safeApprove(token, to, value);
    }

    function safeTransfer(IERC20 token, address to, uint value) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), '!TRANSFER_FAILED');
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), '!TRANSFER_FROM_FAILED');
    }

    function safeTransferETH(address to, uint value) internal {
        (bool success,) = to.call{value:value}(new bytes(0));
        require(success, '!ETH_TRANSFER_FAILED');
    }
}


pragma solidity ^0.8.0;



/**
 * @title TokenVesting
 * @dev A token holder contract that can release its token balance gradually like a
 * typical vesting scheme, with a cliff and vesting period. Optionally revocable by the
 * owner.
 */
contract TokenVesting {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    event Released(uint256 amount);

    address public beneficiary;

    uint256 public cliff;
    uint256 public start;
    uint256 public duration;

    mapping(address => uint256) public released;

    /*
     * @dev Creates a vesting contract that vests its balance of any ERC20 token to the
     * _beneficiary, gradually in a linear fashion until _start + _duration. By then all
     * of the balance will have vested.
     * @param _beneficiary
     * @param _cliff duration in seconds of the cliff in which tokens will begin to vest
     * @param _duration
     */

    constructor(
        address _beneficiary,
        uint256 _start,
        uint256 _cliff,
        uint256 _duration
    ) {
        require(_beneficiary != address(0));
        require(_cliff <= _duration);

        beneficiary = _beneficiary;
        duration = _duration;
        cliff = _start.add(_cliff);
        start = _start;
    }

    /**
     * @notice Transfers vested tokens to beneficiary.
     * @param token ERC20 token which is being vested
     */

    function release(address token) external {
        uint256 unreleased = releasableAmount(token);

        require(unreleased > 0);

        released[token] = released[token].add(unreleased);

        IERC20(token).safeTransfer(beneficiary, unreleased);

        emit Released(unreleased);
    }

    /**
     * @dev Calculates the amount that has already vested but hasn't been released yet.
     * @param token ERC20 token which is being vested
     */

    function releasableAmount(address token) public view returns (uint256) {
        return vestedAmount(token).sub(released[token]);
    }

    /**
     * @dev Calculates the amount that has already vested.
     * @param token ERC20 token which is being vested
     */

    function vestedAmount(address token) public view returns (uint256) {
        uint256 currentBalance = IERC20(token).balanceOf(address(this));

        uint256 totalBalance = currentBalance.add(released[token]);

        if (block.timestamp < cliff) {
            return 0;
        } else if (block.timestamp >= start.add(duration)) {
            return totalBalance;
        } else {
            return totalBalance.mul(block.timestamp.sub(start)).div(duration);
        }
    }
}


pragma solidity ^0.8.0;



contract Token is Ownable, ERC20{
    TokenVesting public adLockToken;
    TokenVesting public communityLockToken;
    TokenVesting public teamLockToken;
    TokenVesting public idoLockToken;

    uint256 public constant MAX_SUPPLY = 1_000_000_000 * 1e18;

    constructor(string memory name_, string memory symbol_, address lend_) Ownable() ERC20(name_,symbol_){  
        adLockToken = new TokenVesting(msg.sender, block.timestamp + 90 days, 0 days, 0 days);
        communityLockToken = new TokenVesting(msg.sender, block.timestamp + 30 days, 0 days, 300 days);
        idoLockToken = new TokenVesting(msg.sender, block.timestamp + 90 days, 0 days, 150 days);
        teamLockToken = new TokenVesting(msg.sender, block.timestamp + 180 days, 0 days, 0 days);

        __mint(msg.sender, MAX_SUPPLY * 20 / 100);
        __mint(address(communityLockToken), MAX_SUPPLY * 10 / 100);
        __mint(address(adLockToken), MAX_SUPPLY * 10 / 100);
        __mint(address(idoLockToken), MAX_SUPPLY * 5 / 100);
        __mint(address(teamLockToken), MAX_SUPPLY * 5 / 100);
        __mint(lend_, MAX_SUPPLY * 50 / 100);
    }

    function __mint(address _to, uint256 _amount) internal {
        _mint(_to, _amount);
        _moveDelegates(address(0), _to, _amount);
    }
    function _transfer(address sender, address recipient, uint256 amount) internal override {
        ERC20._transfer(sender, recipient, amount);
        _moveDelegates(sender, recipient, amount);
    }

    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

    // notice A record of each accounts delegate
    mapping (address => address) internal _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint256 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping (address => uint) public nonces;

      /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

   /**
    * @notice Delegate votes from `msg.sender` to `delegatee`
    * @param delegatee The address to delegate votes to
    */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
        external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "FarmToken::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "FarmToken::delegateBySig: invalid nonce");
        require(block.timestamp <= expiry, "FarmToken::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account)
        external
        view
        returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "FarmToken::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee)
        internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying FarmTokens (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld - amount;
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld + amount;
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
        internal
    {
        uint32 blockNumber = safe32(block.number, "FarmToken::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal view returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"lend_","type":"address"}],"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":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adLockToken","outputs":[{"internalType":"contract TokenVesting","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint256","name":"votes","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityLockToken","outputs":[{"internalType":"contract TokenVesting","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"idoLockToken","outputs":[{"internalType":"contract TokenVesting","name":"","type":"address"}],"stateMutability":"view","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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamLockToken","outputs":[{"internalType":"contract TokenVesting","name":"","type":"address"}],"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002bcf38038062002bcf8339810160408190526200003491620009b8565b603380546001600160a01b031916339081179091556040518491849181906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35081516200009090603790602085019062000873565b508051620000a690603890602084019062000873565b50506039805460ff191660121790555033620000c6426276a70062000a7a565b600080604051620000d79062000902565b6001600160a01b039094168452602084019290925260408301526060820152608001604051809103906000f08015801562000116573d6000803e3d6000fd5b50603980546001600160a01b039290921661010002610100600160a81b0319909216919091179055336200014e4262278d0062000a7a565b600063018b8200604051620001639062000902565b6001600160a01b039094168452602084019290925260408301526060820152608001604051809103906000f080158015620001a2573d6000803e3d6000fd5b50603a80546001600160a01b0319166001600160a01b039290921691909117905533620001d3426276a70062000a7a565b600062c5c100604051620001e79062000902565b6001600160a01b039094168452602084019290925260408301526060820152608001604051809103906000f08015801562000226573d6000803e3d6000fd5b50603c80546001600160a01b0319166001600160a01b039290921691909117905533620002574262ed4e0062000a7a565b600080604051620002689062000902565b6001600160a01b039094168452602084019290925260408301526060820152608001604051809103906000f080158015620002a7573d6000803e3d6000fd5b50603b80546001600160a01b0319166001600160a01b0392909216919091179055620002fa336064620002e86b033b2e3c9fd0803ce8000000601462000ae3565b620002f4919062000ac0565b620003d8565b603a5462000326906001600160a01b03166064620002e86b033b2e3c9fd0803ce8000000600a62000ae3565b603954620003579061010090046001600160a01b03166064620002e86b033b2e3c9fd0803ce8000000600a62000ae3565b603c5462000383906001600160a01b03166064620002e86b033b2e3c9fd0803ce8000000600562000ae3565b603b54620003af906001600160a01b03166064620002e86b033b2e3c9fd0803ce8000000600562000ae3565b620003cf816064620002e86b033b2e3c9fd0803ce8000000603262000ae3565b50505062000be3565b620003e48282620003f6565b620003f26000838362000501565b5050565b6001600160a01b038216620004525760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b6200046e816036546200067d60201b62000e541790919060201c565b6036556001600160a01b038216600090815260346020908152604090912054620004a391839062000e546200067d821b17901c565b6001600160a01b0383166000818152603460205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90620004f59085815260200190565b60405180910390a35050565b816001600160a01b0316836001600160a01b031614158015620005245750600081115b1562000678576001600160a01b03831615620005d1576001600160a01b0383166000908152603f602052604081205463ffffffff16908162000568576000620005ad565b6001600160a01b0385166000908152603e60205260408120906200058e60018562000b1f565b63ffffffff1663ffffffff168152602001908152602001600020600101545b90506000620005bd848362000b05565b9050620005cd8684848462000692565b5050505b6001600160a01b0382161562000678576001600160a01b0382166000908152603f602052604081205463ffffffff1690816200060f57600062000654565b6001600160a01b0384166000908152603e60205260408120906200063560018562000b1f565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9050600062000664848362000a7a565b9050620006748584848462000692565b5050505b505050565b60006200068b828462000a7a565b9392505050565b6000620006b94360405180606001604052806039815260200162002b966039913962000840565b905060008463ffffffff161180156200071657506001600160a01b0385166000908152603e6020526040812063ffffffff831691620006fa60018862000b1f565b63ffffffff908116825260208201929092526040016000205416145b1562000763576001600160a01b0385166000908152603e6020526040812083916200074360018862000b1f565b63ffffffff168152602081019190915260400160002060010155620007f5565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152603e83528581208a851682529092529390209151825463ffffffff191691161781559051600191820155620007c490859062000a95565b6001600160a01b0386166000908152603f60205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b60008164010000000084106200086b5760405162461bcd60e51b815260040162000449919062000a45565b509192915050565b828054620008819062000b7a565b90600052602060002090601f016020900481019282620008a55760008555620008f0565b82601f10620008c057805160ff1916838001178555620008f0565b82800160010185558215620008f0579182015b82811115620008f0578251825591602001919060010190620008d3565b50620008fe92915062000910565b5090565b6106e480620024b283390190565b5b80821115620008fe576000815560010162000911565b600082601f8301126200093957600080fd5b81516001600160401b038082111562000956576200095662000bcd565b604051601f8301601f19908116603f0116810190828211818310171562000981576200098162000bcd565b816040528381528660208588010111156200099b57600080fd5b620009ae84602083016020890162000b47565b9695505050505050565b600080600060608486031215620009ce57600080fd5b83516001600160401b0380821115620009e657600080fd5b620009f48783880162000927565b9450602086015191508082111562000a0b57600080fd5b5062000a1a8682870162000927565b604086015190935090506001600160a01b038116811462000a3a57600080fd5b809150509250925092565b602081526000825180602084015262000a6681604085016020870162000b47565b601f01601f19169190910160400192915050565b6000821982111562000a905762000a9062000bb7565b500190565b600063ffffffff80831681851680830382111562000ab75762000ab762000bb7565b01949350505050565b60008262000ade57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161562000b005762000b0062000bb7565b500290565b60008282101562000b1a5762000b1a62000bb7565b500390565b600063ffffffff8381169083168181101562000b3f5762000b3f62000bb7565b039392505050565b60005b8381101562000b6457818101518382015260200162000b4a565b8381111562000b74576000848401525b50505050565b600181811c9082168062000b8f57607f821691505b6020821081141562000bb157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6118bf8062000bf36000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063715018a611610104578063a457c2d7116100a2578063dd62ed3e11610071578063dd62ed3e1461044a578063e7a324dc14610483578063f1127ed8146104aa578063f2fde38b1461050157600080fd5b8063a457c2d7146103fe578063a9059cbb14610411578063b4b5ea5714610424578063c3cda5201461043757600080fd5b80638da5cb5b116100de5780638da5cb5b146103bf578063913b823a146103d057806395d89b41146103e3578063964bca5f146103eb57600080fd5b8063715018a614610384578063782d6fe11461038c5780637ecebe001461039f57600080fd5b806339509351116101715780635c19a95c1161014b5780635c19a95c146102f357806364210fa9146103085780636fcfff451461032057806370a082311461035b57600080fd5b80633950935114610289578063479f1ce91461029c578063587cde1e146102c757600080fd5b806320606b70116101ad57806320606b701461022757806323b872dd1461024e578063313ce5671461026157806332cb6b0c1461027657600080fd5b806306fdde03146101d4578063095ea7b3146101f257806318160ddd14610215575b600080fd5b6101dc610514565b6040516101e9919061166f565b60405180910390f35b6102056102003660046115a5565b6105a6565b60405190151581526020016101e9565b6036545b6040519081526020016101e9565b6102197f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b61020561025c366004611569565b6105bd565b60395460405160ff90911681526020016101e9565b6102196b033b2e3c9fd0803ce800000081565b6102056102973660046115a5565b610626565b603a546102af906001600160a01b031681565b6040516001600160a01b0390911681526020016101e9565b6102af6102d536600461151b565b6001600160a01b039081166000908152603d60205260409020541690565b61030661030136600461151b565b61065c565b005b6039546102af9061010090046001600160a01b031681565b61034661032e36600461151b565b603f6020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016101e9565b61021961036936600461151b565b6001600160a01b031660009081526034602052604090205490565b610306610669565b61021961039a3660046115a5565b610712565b6102196103ad36600461151b565b60406020819052600091825290205481565b6033546001600160a01b03166102af565b603c546102af906001600160a01b031681565b6101dc61097c565b603b546102af906001600160a01b031681565b61020561040c3660046115a5565b61098b565b61020561041f3660046115a5565b6109da565b61021961043236600461151b565b6109e7565b6103066104453660046115cf565b610a5c565b610219610458366004611536565b6001600160a01b03918216600090815260356020908152604080832093909416825291909152205490565b6102197fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b6104e56104b836600461162f565b603e6020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6040805163ffffffff90931683526020830191909152016101e9565b61030661050f36600461151b565b610d39565b60606037805461052390611771565b80601f016020809104026020016040519081016040528092919081815260200182805461054f90611771565b801561059c5780601f106105715761010080835404028352916020019161059c565b820191906000526020600020905b81548152906001019060200180831161057f57829003601f168201915b5050505050905090565b60006105b3338484610e60565b5060015b92915050565b60006105ca848484610f85565b61061c843361061785604051806060016040528060288152602001611804602891396001600160a01b038a1660009081526035602090815260408083203384529091529020549190610fa0565b610e60565b5060019392505050565b3360008181526035602090815260408083206001600160a01b038716845290915281205490916105b39185906106179086610e54565b6106663382610fcc565b50565b6033546001600160a01b031633146106c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b60004382106107785760405162461bcd60e51b815260206004820152602c60248201527f4661726d546f6b656e3a3a6765745072696f72566f7465733a206e6f7420796560448201526b1d0819195d195c9b5a5b995960a21b60648201526084016106bf565b6001600160a01b0383166000908152603f602052604090205463ffffffff16806107a65760009150506105b7565b6001600160a01b0384166000908152603e6020526040812084916107cb60018561174c565b63ffffffff90811682526020820192909252604001600020541611610834576001600160a01b0384166000908152603e602052604081209061080e60018461174c565b63ffffffff1663ffffffff168152602001908152602001600020600101549150506105b7565b6001600160a01b0384166000908152603e6020908152604080832083805290915290205463ffffffff1683101561086f5760009150506105b7565b60008061087d60018461174c565b90505b8163ffffffff168163ffffffff16111561094557600060026108a2848461174c565b6108ac9190611704565b6108b6908361174c565b6001600160a01b0388166000908152603e6020908152604080832063ffffffff8086168552908352928190208151808301909252805490931680825260019093015491810191909152919250871415610919576020015194506105b79350505050565b805163ffffffff168711156109305781935061093e565b61093b60018361174c565b92505b5050610880565b506001600160a01b0385166000908152603e6020908152604080832063ffffffff9094168352929052206001015491505092915050565b60606038805461052390611771565b60006105b3338461061785604051806060016040528060258152602001611865602591393360009081526035602090815260408083206001600160a01b038d1684529091529020549190610fa0565b60006105b3338484610f85565b6001600160a01b0381166000908152603f602052604081205463ffffffff1680610a12576000610a55565b6001600160a01b0383166000908152603e6020526040812090610a3660018461174c565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610a87610514565b80519060200120610a954690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610bc1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c385760405162461bcd60e51b815260206004820152602b60248201527f4661726d546f6b656e3a3a64656c656761746542795369673a20696e76616c6960448201526a64207369676e617475726560a81b60648201526084016106bf565b6001600160a01b0381166000908152604060208190528120805491610c5c836117ac565b919050558914610cbe5760405162461bcd60e51b815260206004820152602760248201527f4661726d546f6b656e3a3a64656c656761746542795369673a20696e76616c6960448201526664206e6f6e636560c81b60648201526084016106bf565b87421115610d225760405162461bcd60e51b815260206004820152602b60248201527f4661726d546f6b656e3a3a64656c656761746542795369673a207369676e617460448201526a1d5c9948195e1c1a5c995960aa1b60648201526084016106bf565b610d2c818b610fcc565b505050505b505050505050565b6033546001600160a01b03163314610d935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106bf565b6001600160a01b038116610df85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106bf565b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b6000610a5582846116c4565b6001600160a01b038316610ec25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106bf565b6001600160a01b038216610f235760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106bf565b6001600160a01b0383811660008181526035602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b610f9083838361104c565b610f9b8383836111d2565b505050565b60008184841115610fc45760405162461bcd60e51b81526004016106bf919061166f565b505050900390565b6001600160a01b038281166000818152603d6020818152604080842080546034845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46110468284836111d2565b50505050565b6001600160a01b0383166110b05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106bf565b6001600160a01b0382166111125760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106bf565b61114f816040518060600160405280602681526020016117de602691396001600160a01b0386166000908152603460205260409020549190610fa0565b6001600160a01b03808516600090815260346020526040808220939093559084168152205461117e9082610e54565b6001600160a01b0380841660008181526034602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610f789085815260200190565b816001600160a01b0316836001600160a01b0316141580156111f45750600081115b15610f9b576001600160a01b03831615611297576001600160a01b0383166000908152603f602052604081205463ffffffff169081611234576000611277565b6001600160a01b0385166000908152603e602052604081209061125860018561174c565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006112858483611735565b90506112938684848461132d565b5050505b6001600160a01b03821615610f9b576001600160a01b0382166000908152603f602052604081205463ffffffff1690816112d2576000611315565b6001600160a01b0384166000908152603e60205260408120906112f660018561174c565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9050600061132384836116c4565b9050610d31858484845b60006113514360405180606001604052806039815260200161182c603991396114cf565b905060008463ffffffff161180156113ab57506001600160a01b0385166000908152603e6020526040812063ffffffff83169161138f60018861174c565b63ffffffff908116825260208201929092526040016000205416145b156113f4576001600160a01b0385166000908152603e6020526040812083916113d560018861174c565b63ffffffff168152602081019190915260400160002060010155611484565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152603e83528581208a851682529092529390209151825463ffffffff1916911617815590516001918201556114539085906116dc565b6001600160a01b0386166000908152603f60205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b60008164010000000084106114f75760405162461bcd60e51b81526004016106bf919061166f565b509192915050565b80356001600160a01b038116811461151657600080fd5b919050565b60006020828403121561152d57600080fd5b610a55826114ff565b6000806040838503121561154957600080fd5b611552836114ff565b9150611560602084016114ff565b90509250929050565b60008060006060848603121561157e57600080fd5b611587846114ff565b9250611595602085016114ff565b9150604084013590509250925092565b600080604083850312156115b857600080fd5b6115c1836114ff565b946020939093013593505050565b60008060008060008060c087890312156115e857600080fd5b6115f1876114ff565b95506020870135945060408701359350606087013560ff8116811461161557600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561164257600080fd5b61164b836114ff565b9150602083013563ffffffff8116811461166457600080fd5b809150509250929050565b600060208083528351808285015260005b8181101561169c57858101830151858201604001528201611680565b818111156116ae576000604083870101525b50601f01601f1916929092016040019392505050565b600082198211156116d7576116d76117c7565b500190565b600063ffffffff8083168185168083038211156116fb576116fb6117c7565b01949350505050565b600063ffffffff8084168061172957634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b600082821015611747576117476117c7565b500390565b600063ffffffff83811690831681811015611769576117696117c7565b039392505050565b600181811c9082168061178557607f821691505b602082108114156117a657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156117c0576117c06117c7565b5060010190565b634e487b7160e01b600052601160045260246000fdfe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654661726d546f6b656e3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220197fa9e0c71a4e195a2b73943319604b1bdfe4f0162165b0701c3cbdd8fcaaca64736f6c63430008060033608060405234801561001057600080fd5b506040516106e43803806106e483398101604081905261002f916100a5565b6001600160a01b03841661004257600080fd5b8082111561004f57600080fd5b600080546001600160a01b0319166001600160a01b03861617905560038190556100848383610092602090811b61031b17901c565b600155505060025550610116565b600061009e82846100f0565b9392505050565b600080600080608085870312156100bb57600080fd5b84516001600160a01b03811681146100d257600080fd5b60208601516040870151606090970151919890975090945092505050565b6000821982111561011157634e487b7160e01b600052601160045260246000fd5b500190565b6105bf806101256000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063384711cc1161005b578063384711cc146100da57806338af3eed146100ed5780639852595c14610118578063be9a65551461013857600080fd5b80630fb5a6b41461008d57806313d033c0146100a95780631726cbc8146100b257806319165587146100c5575b600080fd5b61009660035481565b6040519081526020015b60405180910390f35b61009660015481565b6100966100c0366004610464565b610141565b6100d86100d3366004610464565b610173565b005b6100966100e8366004610464565b610212565b600054610100906001600160a01b031681565b6040516001600160a01b0390911681526020016100a0565b610096610126366004610464565b60046020526000908152604090205481565b61009660025481565b6001600160a01b03811660009081526004602052604081205461016d9061016784610212565b9061032e565b92915050565b600061017e82610141565b90506000811161018d57600080fd5b6001600160a01b0382166000908152600460205260409020546101b0908261031b565b6001600160a01b0380841660008181526004602052604081209390935591546101db9291168361033a565b6040518181527ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c5659060200160405180910390a15050565b6040516370a0823160e01b815230600482015260009081906001600160a01b038416906370a082319060240160206040518083038186803b15801561025657600080fd5b505afa15801561026a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028e91906104af565b6001600160a01b038416600090815260046020526040812054919250906102b690839061031b565b90506001544210156102cc575060009392505050565b6003546002546102db9161031b565b42106102e8579392505050565b61031360035461030d6103066002544261032e90919063ffffffff16565b849061044c565b90610458565b949350505050565b60006103278284610503565b9392505050565b6000610327828461055c565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b179052915160009283929087169161039691906104c8565b6000604051808303816000865af19150503d80600081146103d3576040519150601f19603f3d011682016040523d82523d6000602084013e6103d8565b606091505b5091509150818015610402575080511580610402575080806020019051810190610402919061048d565b6104455760405162461bcd60e51b815260206004820152601060248201526f085514905394d1915497d1905253115160821b604482015260640160405180910390fd5b5050505050565b6000610327828461053d565b6000610327828461051b565b60006020828403121561047657600080fd5b81356001600160a01b038116811461032757600080fd5b60006020828403121561049f57600080fd5b8151801515811461032757600080fd5b6000602082840312156104c157600080fd5b5051919050565b6000825160005b818110156104e957602081860181015185830152016104cf565b818111156104f8576000828501525b509190910192915050565b6000821982111561051657610516610573565b500190565b60008261053857634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561055757610557610573565b500290565b60008282101561056e5761056e610573565b500390565b634e487b7160e01b600052601160045260246000fdfea264697066735822122013bc0ef0d3d1616b9a456ff79faba2ca8d91451113c5bc747db692af6d792d4964736f6c634300080600334661726d546f6b656e3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000b08f7a2b30292f1d27dc4a290c9a2620bffb4f41000000000000000000000000000000000000000000000000000000000000000743726f6c656e640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034352440000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063715018a611610104578063a457c2d7116100a2578063dd62ed3e11610071578063dd62ed3e1461044a578063e7a324dc14610483578063f1127ed8146104aa578063f2fde38b1461050157600080fd5b8063a457c2d7146103fe578063a9059cbb14610411578063b4b5ea5714610424578063c3cda5201461043757600080fd5b80638da5cb5b116100de5780638da5cb5b146103bf578063913b823a146103d057806395d89b41146103e3578063964bca5f146103eb57600080fd5b8063715018a614610384578063782d6fe11461038c5780637ecebe001461039f57600080fd5b806339509351116101715780635c19a95c1161014b5780635c19a95c146102f357806364210fa9146103085780636fcfff451461032057806370a082311461035b57600080fd5b80633950935114610289578063479f1ce91461029c578063587cde1e146102c757600080fd5b806320606b70116101ad57806320606b701461022757806323b872dd1461024e578063313ce5671461026157806332cb6b0c1461027657600080fd5b806306fdde03146101d4578063095ea7b3146101f257806318160ddd14610215575b600080fd5b6101dc610514565b6040516101e9919061166f565b60405180910390f35b6102056102003660046115a5565b6105a6565b60405190151581526020016101e9565b6036545b6040519081526020016101e9565b6102197f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b61020561025c366004611569565b6105bd565b60395460405160ff90911681526020016101e9565b6102196b033b2e3c9fd0803ce800000081565b6102056102973660046115a5565b610626565b603a546102af906001600160a01b031681565b6040516001600160a01b0390911681526020016101e9565b6102af6102d536600461151b565b6001600160a01b039081166000908152603d60205260409020541690565b61030661030136600461151b565b61065c565b005b6039546102af9061010090046001600160a01b031681565b61034661032e36600461151b565b603f6020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016101e9565b61021961036936600461151b565b6001600160a01b031660009081526034602052604090205490565b610306610669565b61021961039a3660046115a5565b610712565b6102196103ad36600461151b565b60406020819052600091825290205481565b6033546001600160a01b03166102af565b603c546102af906001600160a01b031681565b6101dc61097c565b603b546102af906001600160a01b031681565b61020561040c3660046115a5565b61098b565b61020561041f3660046115a5565b6109da565b61021961043236600461151b565b6109e7565b6103066104453660046115cf565b610a5c565b610219610458366004611536565b6001600160a01b03918216600090815260356020908152604080832093909416825291909152205490565b6102197fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b6104e56104b836600461162f565b603e6020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6040805163ffffffff90931683526020830191909152016101e9565b61030661050f36600461151b565b610d39565b60606037805461052390611771565b80601f016020809104026020016040519081016040528092919081815260200182805461054f90611771565b801561059c5780601f106105715761010080835404028352916020019161059c565b820191906000526020600020905b81548152906001019060200180831161057f57829003601f168201915b5050505050905090565b60006105b3338484610e60565b5060015b92915050565b60006105ca848484610f85565b61061c843361061785604051806060016040528060288152602001611804602891396001600160a01b038a1660009081526035602090815260408083203384529091529020549190610fa0565b610e60565b5060019392505050565b3360008181526035602090815260408083206001600160a01b038716845290915281205490916105b39185906106179086610e54565b6106663382610fcc565b50565b6033546001600160a01b031633146106c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b60004382106107785760405162461bcd60e51b815260206004820152602c60248201527f4661726d546f6b656e3a3a6765745072696f72566f7465733a206e6f7420796560448201526b1d0819195d195c9b5a5b995960a21b60648201526084016106bf565b6001600160a01b0383166000908152603f602052604090205463ffffffff16806107a65760009150506105b7565b6001600160a01b0384166000908152603e6020526040812084916107cb60018561174c565b63ffffffff90811682526020820192909252604001600020541611610834576001600160a01b0384166000908152603e602052604081209061080e60018461174c565b63ffffffff1663ffffffff168152602001908152602001600020600101549150506105b7565b6001600160a01b0384166000908152603e6020908152604080832083805290915290205463ffffffff1683101561086f5760009150506105b7565b60008061087d60018461174c565b90505b8163ffffffff168163ffffffff16111561094557600060026108a2848461174c565b6108ac9190611704565b6108b6908361174c565b6001600160a01b0388166000908152603e6020908152604080832063ffffffff8086168552908352928190208151808301909252805490931680825260019093015491810191909152919250871415610919576020015194506105b79350505050565b805163ffffffff168711156109305781935061093e565b61093b60018361174c565b92505b5050610880565b506001600160a01b0385166000908152603e6020908152604080832063ffffffff9094168352929052206001015491505092915050565b60606038805461052390611771565b60006105b3338461061785604051806060016040528060258152602001611865602591393360009081526035602090815260408083206001600160a01b038d1684529091529020549190610fa0565b60006105b3338484610f85565b6001600160a01b0381166000908152603f602052604081205463ffffffff1680610a12576000610a55565b6001600160a01b0383166000908152603e6020526040812090610a3660018461174c565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610a87610514565b80519060200120610a954690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610bc1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c385760405162461bcd60e51b815260206004820152602b60248201527f4661726d546f6b656e3a3a64656c656761746542795369673a20696e76616c6960448201526a64207369676e617475726560a81b60648201526084016106bf565b6001600160a01b0381166000908152604060208190528120805491610c5c836117ac565b919050558914610cbe5760405162461bcd60e51b815260206004820152602760248201527f4661726d546f6b656e3a3a64656c656761746542795369673a20696e76616c6960448201526664206e6f6e636560c81b60648201526084016106bf565b87421115610d225760405162461bcd60e51b815260206004820152602b60248201527f4661726d546f6b656e3a3a64656c656761746542795369673a207369676e617460448201526a1d5c9948195e1c1a5c995960aa1b60648201526084016106bf565b610d2c818b610fcc565b505050505b505050505050565b6033546001600160a01b03163314610d935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106bf565b6001600160a01b038116610df85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106bf565b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b6000610a5582846116c4565b6001600160a01b038316610ec25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106bf565b6001600160a01b038216610f235760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106bf565b6001600160a01b0383811660008181526035602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b610f9083838361104c565b610f9b8383836111d2565b505050565b60008184841115610fc45760405162461bcd60e51b81526004016106bf919061166f565b505050900390565b6001600160a01b038281166000818152603d6020818152604080842080546034845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46110468284836111d2565b50505050565b6001600160a01b0383166110b05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106bf565b6001600160a01b0382166111125760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106bf565b61114f816040518060600160405280602681526020016117de602691396001600160a01b0386166000908152603460205260409020549190610fa0565b6001600160a01b03808516600090815260346020526040808220939093559084168152205461117e9082610e54565b6001600160a01b0380841660008181526034602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610f789085815260200190565b816001600160a01b0316836001600160a01b0316141580156111f45750600081115b15610f9b576001600160a01b03831615611297576001600160a01b0383166000908152603f602052604081205463ffffffff169081611234576000611277565b6001600160a01b0385166000908152603e602052604081209061125860018561174c565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006112858483611735565b90506112938684848461132d565b5050505b6001600160a01b03821615610f9b576001600160a01b0382166000908152603f602052604081205463ffffffff1690816112d2576000611315565b6001600160a01b0384166000908152603e60205260408120906112f660018561174c565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9050600061132384836116c4565b9050610d31858484845b60006113514360405180606001604052806039815260200161182c603991396114cf565b905060008463ffffffff161180156113ab57506001600160a01b0385166000908152603e6020526040812063ffffffff83169161138f60018861174c565b63ffffffff908116825260208201929092526040016000205416145b156113f4576001600160a01b0385166000908152603e6020526040812083916113d560018861174c565b63ffffffff168152602081019190915260400160002060010155611484565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152603e83528581208a851682529092529390209151825463ffffffff1916911617815590516001918201556114539085906116dc565b6001600160a01b0386166000908152603f60205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b60008164010000000084106114f75760405162461bcd60e51b81526004016106bf919061166f565b509192915050565b80356001600160a01b038116811461151657600080fd5b919050565b60006020828403121561152d57600080fd5b610a55826114ff565b6000806040838503121561154957600080fd5b611552836114ff565b9150611560602084016114ff565b90509250929050565b60008060006060848603121561157e57600080fd5b611587846114ff565b9250611595602085016114ff565b9150604084013590509250925092565b600080604083850312156115b857600080fd5b6115c1836114ff565b946020939093013593505050565b60008060008060008060c087890312156115e857600080fd5b6115f1876114ff565b95506020870135945060408701359350606087013560ff8116811461161557600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561164257600080fd5b61164b836114ff565b9150602083013563ffffffff8116811461166457600080fd5b809150509250929050565b600060208083528351808285015260005b8181101561169c57858101830151858201604001528201611680565b818111156116ae576000604083870101525b50601f01601f1916929092016040019392505050565b600082198211156116d7576116d76117c7565b500190565b600063ffffffff8083168185168083038211156116fb576116fb6117c7565b01949350505050565b600063ffffffff8084168061172957634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b600082821015611747576117476117c7565b500390565b600063ffffffff83811690831681811015611769576117696117c7565b039392505050565b600181811c9082168061178557607f821691505b602082108114156117a657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156117c0576117c06117c7565b5060010190565b634e487b7160e01b600052601160045260246000fdfe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654661726d546f6b656e3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220197fa9e0c71a4e195a2b73943319604b1bdfe4f0162165b0701c3cbdd8fcaaca64736f6c63430008060033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000b08f7a2b30292f1d27dc4a290c9a2620bffb4f41000000000000000000000000000000000000000000000000000000000000000743726f6c656e640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034352440000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Crolend
Arg [1] : symbol_ (string): CRD
Arg [2] : lend_ (address): 0xb08F7a2B30292F1D27dC4a290C9A2620bfFB4F41

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000b08f7a2b30292f1d27dc4a290c9a2620bffb4f41
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [4] : 43726f6c656e6400000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 4352440000000000000000000000000000000000000000000000000000000000


Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.