Token GreenCoin

 

Overview [ERC-20]

Price
$0.03 @ 0.000017 Eth (-15.31%)
Fully Diluted Market Cap
Max Total Supply:
1,000,000,000 GRNC

Holders:
49 (0.00%)

Transfers:
-

 
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

GreenCoin serves as the global loyalty program.

# Exchange Pair Price  24H Volume % Volume
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GreenCoin

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 16 : GreenCoin.sol
//SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "./GreenVesting.sol";

contract GreenCoin is Initializable, ERC20Upgradeable, OwnableUpgradeable{
    uint256 public constant TOTAL_AMOUNT = 1 * 10 ** 9 * 10 ** 18;

    GreenVesting public vestingContract;

    function initialize(address ownerAddress) public initializer {
        __ERC20_init("GreenCoin", "GRNC");
        __Ownable_init();
        transferOwnership(ownerAddress);

        vestingContract = new GreenVesting(address(this), TOTAL_AMOUNT, ownerAddress);
        _mint(address(vestingContract), TOTAL_AMOUNT);
    }

    function batchTransfer(address[] calldata addresses, uint256[] calldata amounts) public {
        require(addresses.length == amounts.length, "Counts of addresses must be equal to amounts.");
        require(addresses.length != 0, "Counts of addresses or amounts must be more than zero.");

        for (uint8 i = 0; i < addresses.length; i++) {
            transfer(addresses[i], amounts[i]);
        }
    }

    receive() external payable {}

    function mint(address to, uint256 amount) public onlyOwner {
        require(totalSupply() + amount <= TOTAL_AMOUNT, "Total amount cannot be more than 1 billion");
        _mint(to, amount);
    }

    function burn(uint256 amount) public onlyOwner {
        _burn(_msgSender(), amount);
    }

    function withdrawETH() public onlyOwner {
        uint256 amount = address(this).balance;
        (bool success,) = address(owner()).call{value : amount}("");
        require(success, "Transfer failed.");
    }

    function withdrawERC20(address fundsToken) public onlyOwner {
        uint256 amount = IERC20(fundsToken).balanceOf(address(this));
        IERC20(fundsToken).transfer(address(owner()), amount);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 3 of 16 : ERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20Upgradeable.sol";
import "./extensions/IERC20MetadataUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @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 ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {
    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 this function is
     * overridden;
     *
     * 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 virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        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] + 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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        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);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += 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 += amount;
        _balances[account] += 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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This 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 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 { }
    uint256[45] private __gap;
}

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

// solhint-disable-next-line compiler-version
pragma solidity ^0.8.0;

/**
 * @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 {ERC1967Proxy-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 || !_initialized, "Initializable: contract is already initialized");

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

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        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;
    }
    uint256[49] private __gap;
}

File 6 of 16 : GreenVesting.sol
//SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.8.0;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract GreenVesting is ReentrancyGuard, Ownable {
  using SafeERC20 for IERC20;
  using SafeMath for uint;

  uint256 public constant COMPANY_SHARE = 40;
  uint256 public constant COMMUNITY_SHARE = 60;
  uint256 public constant COMMUNITY_VESTING = 8;
  uint256 public constant SECONDS_IN_YEAR = 365.255 * 24 * 60 * 60;
  
  bool private _releasedFirst;
  uint256 public communityAmount;
  uint256 public communityAmountPerYear;
  uint256 public currentCommunityAmount;
  uint256 public companyAmount;
  uint256 public vestingStartTime;
  uint256 public lastReleaseDate;
  uint256 public releasedYearsCount;

  address public token;

  event Released(address communityAddress, uint256 amount);
  event SentToCompany(address company, uint256 amount);

  constructor(address _tokenAddress, uint256 _amount, address owner) {
    token = _tokenAddress;
    communityAmount = _amount.mul(COMMUNITY_SHARE).div(100);
    communityAmountPerYear = communityAmount.div(COMMUNITY_VESTING);
    companyAmount = _amount.mul(COMPANY_SHARE).div(100);
    
    vestingStartTime = block.timestamp;
    lastReleaseDate = vestingStartTime.sub(vestingStartTime.mod(SECONDS_IN_YEAR));
    transferOwnership(owner);
  }

  function _getCurrentYear() private view returns (uint256 currentYear) {
    currentYear = block.timestamp.sub(block.timestamp.mod(SECONDS_IN_YEAR));
  }

  function _getYearsPassed() private view returns (uint256 yearsPassed) {
    uint256 yearsPassedTotal = _getCurrentYear().sub(lastReleaseDate.sub(vestingStartTime.mod(SECONDS_IN_YEAR))).div(SECONDS_IN_YEAR);
    yearsPassed = Math.max(Math.min(yearsPassedTotal, COMMUNITY_VESTING), 1);
  }

  function getReleasableAmount() public view returns (uint256 _amount) {
    uint256 currentDate = _getCurrentYear();
    uint256 yearsPassed = _getYearsPassed();
    _amount = currentCommunityAmount;

    if((lastReleaseDate.add(SECONDS_IN_YEAR) <= currentDate && releasedYearsCount < COMMUNITY_VESTING) || lastReleaseDate < vestingStartTime) {
      _amount = _amount.add(
        communityAmountPerYear.mul(
          yearsPassed
        )
      );
    }
  }

  function release(address communityAddress, uint256 _amount) public onlyOwner nonReentrant {
    uint256 currentDate = _getCurrentYear();
    uint256 yearsPassed = _getYearsPassed();
    
    if(releasedYearsCount < COMMUNITY_VESTING) {
      if(lastReleaseDate.add(SECONDS_IN_YEAR) <= currentDate || !_releasedFirst) {
        lastReleaseDate = currentDate;

        currentCommunityAmount = currentCommunityAmount.add(
          communityAmountPerYear.mul(
            yearsPassed
          )
        );
        communityAmount = communityAmount.sub(
          communityAmountPerYear.mul(
            yearsPassed
          )
        );

        releasedYearsCount = releasedYearsCount.add(yearsPassed);
        _releasedFirst = true;
      }
    }
    require(_amount <= currentCommunityAmount, "Not enough tokens allocated");
    currentCommunityAmount = currentCommunityAmount.sub(_amount);
    IERC20(token).safeTransfer(communityAddress, _amount);
    emit Released(communityAddress, _amount);
  }

  function sendToCompany(address _company, uint256 _amount) public onlyOwner nonReentrant {
    require(companyAmount >= _amount, "Not enough tokens.");

    companyAmount = companyAmount.sub(_amount);
    bool success = IERC20(token).transfer(_company, _amount);
    require(success, "Transfer failed.");
    emit SentToCompany(_company, _amount);
  }
}

File 7 of 16 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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 8 of 16 : IERC20MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20MetadataUpgradeable is IERC20Upgradeable {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

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

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

File 10 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 11 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor () {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 12 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

File 13 of 16 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 14 of 16 : SafeMath.sol
// SPDX-License-Identifier: MIT

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. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * 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;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"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":"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":"TOTAL_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"batchTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"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":[{"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":"ownerAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":"renounceOwnership","outputs":[],"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestingContract","outputs":[{"internalType":"contract GreenVesting","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"fundsToken","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50612fd4806100206000396000f3fe608060405260043610620001575760003560e01c806388d695b211620000bb578063a9059cbb1162000079578063a9059cbb14620003a2578063c4d66de814620003c7578063dd62ed3e14620003ec578063e086e5ec1462000411578063f2fde38b1462000429578063f4f3b200146200044e576200015f565b806388d695b214620003105780638da5cb5b146200033557806395d89b41146200034d578063a2d7f5e31462000365578063a457c2d7146200037d576200015f565b806339509351116200011557806339509351146200023b57806340c10f19146200026057806342966c6814620002875780635e6f604514620002ac57806370a0823114620002d3578063715018a614620002f8576200015f565b806306fdde031462000164578063095ea7b3146200019457806318160ddd14620001c857806323b872dd14620001ef578063313ce5671462000214576200015f565b366200015f57005b600080fd5b3480156200017157600080fd5b506200017c62000473565b6040516200018b919062001785565b60405180910390f35b348015620001a157600080fd5b50620001b9620001b336600462001637565b6200050d565b6040516200018b91906200177a565b348015620001d557600080fd5b50620001e06200052e565b6040516200018b919062001c56565b348015620001fc57600080fd5b50620001b96200020e366004620015f7565b62000534565b3480156200022157600080fd5b506200022c620005e1565b6040516200018b919062001c5f565b3480156200024857600080fd5b50620001b96200025a36600462001637565b620005e6565b3480156200026d57600080fd5b50620002856200027f36600462001637565b6200063c565b005b3480156200029457600080fd5b5062000285620002a6366004620016f5565b620006d6565b348015620002b957600080fd5b50620002c462000734565b6040516200018b91906200172a565b348015620002e057600080fd5b50620001e0620002f23660046200159c565b62000743565b3480156200030557600080fd5b506200028562000762565b3480156200031d57600080fd5b50620002856200032f36600462001663565b620007e1565b3480156200034257600080fd5b50620002c4620008bf565b3480156200035a57600080fd5b506200017c620008ce565b3480156200037257600080fd5b50620001e0620008df565b3480156200038a57600080fd5b50620001b96200039c36600462001637565b620008ee565b348015620003af57600080fd5b50620001b9620003c136600462001637565b62000973565b348015620003d457600080fd5b5062000285620003e63660046200159c565b6200098b565b348015620003f957600080fd5b50620001e06200040b366004620015c0565b62000ae2565b3480156200041e57600080fd5b506200028562000b0d565b3480156200043657600080fd5b5062000285620004483660046200159c565b62000be0565b3480156200045b57600080fd5b50620002856200046d3660046200159c565b62000c9a565b606060368054620004849062001ca2565b80601f0160208091040260200160405190810160405280929190818152602001828054620004b29062001ca2565b8015620005035780601f10620004d75761010080835404028352916020019162000503565b820191906000526020600020905b815481529060010190602001808311620004e557829003601f168201915b5050505050905090565b6000620005256200051d62000dfb565b848462000dff565b50600192915050565b60355490565b60006200054384848462000ebb565b6001600160a01b0384166000908152603460205260408120816200056662000dfb565b6001600160a01b03166001600160a01b0316815260200190815260200160002054905082811015620005b55760405162461bcd60e51b8152600401620005ac9062001a69565b60405180910390fd5b620005d685620005c462000dfb565b620005d0868562001c88565b62000dff565b506001949350505050565b601290565b600062000525620005f662000dfb565b8484603460006200060662000dfb565b6001600160a01b03908116825260208083019390935260409182016000908120918b1681529252902054620005d0919062001c6d565b6200064662000dfb565b6001600160a01b031662000659620008bf565b6001600160a01b031614620006825760405162461bcd60e51b8152600401620005ac9062001ab1565b676765c793fa10079d601b1b81620006996200052e565b620006a5919062001c6d565b1115620006c65760405162461bcd60e51b8152600401620005ac906200181e565b620006d2828262000fe3565b5050565b620006e062000dfb565b6001600160a01b0316620006f3620008bf565b6001600160a01b0316146200071c5760405162461bcd60e51b8152600401620005ac9062001ab1565b620007316200072a62000dfb565b826200109d565b50565b6097546001600160a01b031681565b6001600160a01b0381166000908152603360205260409020545b919050565b6200076c62000dfb565b6001600160a01b03166200077f620008bf565b6001600160a01b031614620007a85760405162461bcd60e51b8152600401620005ac9062001ab1565b6065546040516000916001600160a01b03169060008051602062002f5f833981519152908390a3606580546001600160a01b0319169055565b828114620008035760405162461bcd60e51b8152600401620005ac9062001978565b82620008235760405162461bcd60e51b8152600401620005ac9062001a13565b60005b60ff8116841115620008b857620008a285858360ff168181106200085a57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906200087191906200159c565b84848460ff168181106200089557634e487b7160e01b600052603260045260246000fd5b9050602002013562000973565b5080620008af8162001cdf565b91505062000826565b5050505050565b6065546001600160a01b031690565b606060378054620004849062001ca2565b676765c793fa10079d601b1b81565b60008060346000620008ff62000dfb565b6001600160a01b03908116825260208083019390935260409182016000908120918816815292529020549050828110156200094e5760405162461bcd60e51b8152600401620005ac9062001bda565b620009696200095c62000dfb565b85620005d0868562001c88565b5060019392505050565b6000620005256200098362000dfb565b848462000ebb565b600054610100900460ff1680620009a5575060005460ff16155b620009c45760405162461bcd60e51b8152600401620005ac90620019c5565b600054610100900460ff16158015620009f0576000805460ff1961ff0019909116610100171660011790555b62000a396040518060400160405280600981526020016823b932b2b721b7b4b760b91b8152506040518060400160405280600481526020016347524e4360e01b81525062001180565b62000a4362001212565b62000a4e8262000be0565b30676765c793fa10079d601b1b8360405162000a6a9062001484565b62000a789392919062001757565b604051809103906000f08015801562000a95573d6000803e3d6000fd5b50609780546001600160a01b0319166001600160a01b03928316179081905562000acc9116676765c793fa10079d601b1b62000fe3565b8015620006d2576000805461ff00191690555050565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b62000b1762000dfb565b6001600160a01b031662000b2a620008bf565b6001600160a01b03161462000b535760405162461bcd60e51b8152600401620005ac9062001ab1565b47600062000b60620008bf565b6001600160a01b03168260405162000b789062001727565b60006040518083038185875af1925050503d806000811462000bb7576040519150601f19603f3d011682016040523d82523d6000602084013e62000bbc565b606091505b5050905080620006d25760405162461bcd60e51b8152600401620005ac9062001b6c565b62000bea62000dfb565b6001600160a01b031662000bfd620008bf565b6001600160a01b03161462000c265760405162461bcd60e51b8152600401620005ac9062001ab1565b6001600160a01b03811662000c4f5760405162461bcd60e51b8152600401620005ac90620018aa565b6065546040516001600160a01b0380841692169060008051602062002f5f83398151915290600090a3606580546001600160a01b0319166001600160a01b0392909216919091179055565b62000ca462000dfb565b6001600160a01b031662000cb7620008bf565b6001600160a01b03161462000ce05760405162461bcd60e51b8152600401620005ac9062001ab1565b6040516370a0823160e01b81526000906001600160a01b038316906370a082319062000d119030906004016200172a565b60206040518083038186803b15801562000d2a57600080fd5b505afa15801562000d3f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d6591906200170e565b9050816001600160a01b031663a9059cbb62000d80620008bf565b836040518363ffffffff1660e01b815260040162000da09291906200173e565b602060405180830381600087803b15801562000dbb57600080fd5b505af115801562000dd0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000df69190620016d3565b505050565b3390565b6001600160a01b03831662000e285760405162461bcd60e51b8152600401620005ac9062001b96565b6001600160a01b03821662000e515760405162461bcd60e51b8152600401620005ac90620018f0565b6001600160a01b0380841660008181526034602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259062000eae90859062001c56565b60405180910390a3505050565b6001600160a01b03831662000ee45760405162461bcd60e51b8152600401620005ac9062001b27565b6001600160a01b03821662000f0d5760405162461bcd60e51b8152600401620005ac90620017db565b62000f1a83838362000df6565b6001600160a01b0383166000908152603360205260409020548181101562000f565760405162461bcd60e51b8152600401620005ac9062001932565b62000f62828262001c88565b6001600160a01b03808616600090815260336020526040808220939093559085168152908120805484929062000f9a90849062001c6d565b92505081905550826001600160a01b0316846001600160a01b031660008051602062002f7f8339815191528460405162000fd5919062001c56565b60405180910390a350505050565b6001600160a01b0382166200100c5760405162461bcd60e51b8152600401620005ac9062001c1f565b6200101a6000838362000df6565b80603560008282546200102e919062001c6d565b90915550506001600160a01b038216600090815260336020526040812080548392906200105d90849062001c6d565b90915550506040516001600160a01b0383169060009060008051602062002f7f833981519152906200109190859062001c56565b60405180910390a35050565b6001600160a01b038216620010c65760405162461bcd60e51b8152600401620005ac9062001ae6565b620010d48260008362000df6565b6001600160a01b03821660009081526033602052604090205481811015620011105760405162461bcd60e51b8152600401620005ac9062001868565b6200111c828262001c88565b6001600160a01b038416600090815260336020526040812091909155603580548492906200114c90849062001c88565b90915550506040516000906001600160a01b0385169060008051602062002f7f8339815191529062000eae90869062001c56565b600054610100900460ff16806200119a575060005460ff16155b620011b95760405162461bcd60e51b8152600401620005ac90620019c5565b600054610100900460ff16158015620011e5576000805460ff1961ff0019909116610100171660011790555b620011ef620012a0565b620011fb838362001319565b801562000df6576000805461ff0019169055505050565b600054610100900460ff16806200122c575060005460ff16155b6200124b5760405162461bcd60e51b8152600401620005ac90620019c5565b600054610100900460ff1615801562001277576000805460ff1961ff0019909116610100171660011790555b62001281620012a0565b6200128b620013c1565b801562000731576000805461ff001916905550565b600054610100900460ff1680620012ba575060005460ff16155b620012d95760405162461bcd60e51b8152600401620005ac90620019c5565b600054610100900460ff161580156200128b576000805460ff1961ff001990911661010017166001179055801562000731576000805461ff001916905550565b600054610100900460ff168062001333575060005460ff16155b620013525760405162461bcd60e51b8152600401620005ac90620019c5565b600054610100900460ff161580156200137e576000805460ff1961ff0019909116610100171660011790555b82516200139390603690602086019062001492565b508151620013a990603790602085019062001492565b50801562000df6576000805461ff0019169055505050565b600054610100900460ff1680620013db575060005460ff16155b620013fa5760405162461bcd60e51b8152600401620005ac90620019c5565b600054610100900460ff1615801562001426576000805460ff1961ff0019909116610100171660011790555b60006200143262000dfb565b606580546001600160a01b0319166001600160a01b0383169081179091556040519192509060009060008051602062002f5f833981519152908290a350801562000731576000805461ff001916905550565b6112468062001d1983390190565b828054620014a09062001ca2565b90600052602060002090601f016020900481019282620014c457600085556200150f565b82601f10620014df57805160ff19168380011785556200150f565b828001600101855582156200150f579182015b828111156200150f578251825591602001919060010190620014f2565b506200151d92915062001521565b5090565b5b808211156200151d576000815560010162001522565b80356001600160a01b03811681146200075d57600080fd5b60008083601f84011262001562578182fd5b50813567ffffffffffffffff8111156200157a578182fd5b60208301915083602080830285010111156200159557600080fd5b9250929050565b600060208284031215620015ae578081fd5b620015b98262001538565b9392505050565b60008060408385031215620015d3578081fd5b620015de8362001538565b9150620015ee6020840162001538565b90509250929050565b6000806000606084860312156200160c578081fd5b620016178462001538565b9250620016276020850162001538565b9150604084013590509250925092565b600080604083850312156200164a578182fd5b620016558362001538565b946020939093013593505050565b6000806000806040858703121562001679578081fd5b843567ffffffffffffffff8082111562001691578283fd5b6200169f8883890162001550565b90965094506020870135915080821115620016b8578283fd5b50620016c78782880162001550565b95989497509550505050565b600060208284031215620016e5578081fd5b81518015158114620015b9578182fd5b60006020828403121562001707578081fd5b5035919050565b60006020828403121562001720578081fd5b5051919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b901515815260200190565b6000602080835283518082850152825b81811015620017b35785810183015185820160400152820162001795565b81811115620017c55783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f546f74616c20616d6f756e742063616e6e6f74206265206d6f7265207468616e6040820152691018903134b63634b7b760b11b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252602d908201527f436f756e7473206f6620616464726573736573206d757374206265206571756160408201526c36103a379030b6b7bab73a399760991b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526036908201527f436f756e7473206f6620616464726573736573206f7220616d6f756e7473206d6040820152753ab9ba1031329036b7b932903a3430b7103d32b9379760511b606082015260800190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526010908201526f2a3930b739b332b9103330b4b632b21760811b604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b6000821982111562001c835762001c8362001d02565b500190565b60008282101562001c9d5762001c9d62001d02565b500390565b60028104600182168062001cb757607f821691505b6020821081141562001cd957634e487b7160e01b600052602260045260246000fd5b50919050565b600060ff821660ff81141562001cf95762001cf962001d02565b60010192915050565b634e487b7160e01b600052601160045260246000fdfe60806040523480156200001157600080fd5b50604051620012463803806200124683398101604081905262000034916200029f565b60016000908155620000456200016d565b600180546001600160a01b0319166001600160a01b0383169081179091556040519192509060009060008051602062001226833981519152908290a350600980546001600160a01b0319166001600160a01b038516179055620000d06064620000bc84603c62000171602090811b6200072517901c565b6200018660201b620007381790919060201c565b600281905550620000f360086002546200018660201b620007381790919060201c565b600355620001156064620000bc84602862000171602090811b6200072517901c565b60055542600681905562000156906200013f906301e1899062000194602090811b6200074417901c565b600654620001a260201b620007501790919060201c565b6007556200016481620001b0565b505050620003f0565b3390565b60006200017f828462000371565b9392505050565b60006200017f82846200035a565b60006200017f8284620003ad565b60006200017f828462000393565b620001ba6200016d565b6001600160a01b0316620001cd62000273565b6001600160a01b031614620001ff5760405162461bcd60e51b8152600401620001f69062000325565b60405180910390fd5b6001600160a01b038116620002285760405162461bcd60e51b8152600401620001f690620002df565b6001546040516001600160a01b038084169216906000805160206200122683398151915290600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031690565b80516001600160a01b03811681146200029a57600080fd5b919050565b600080600060608486031215620002b4578283fd5b620002bf8462000282565b925060208401519150620002d66040850162000282565b90509250925092565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000826200036c576200036c620003da565b500490565b60008160001904831182151516156200038e576200038e620003c4565b500290565b600082821015620003a857620003a8620003c4565b500390565b600082620003bf57620003bf620003da565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b610e2680620004006000396000f3fe608060405234801561001057600080fd5b50600436106100f65760003560e01c80638401b968116100925780638401b968146101715780638bc398d1146101795780638da5cb5b14610181578063a8660a7814610196578063b82a737c1461019e578063d9765fc7146101a6578063e3139f96146101ae578063f2fde38b146101b6578063fc0c546a146101c9576100f6565b80630357371d146100fb5780630b045c6714610110578063306e3e991461012e578063398bf63d14610136578063447fda2a1461013e5780635d2e038d146101465780635dcc93911461015957806363961bfa14610161578063715018a614610169575b600080fd5b61010e610109366004610a4a565b6101d1565b005b610118610382565b6040516101259190610d15565b60405180910390f35b610118610387565b61011861038c565b610118610391565b61010e610154366004610a4a565b610397565b610118610517565b61011861051f565b61010e610525565b6101186105ae565b610118610628565b61018961062e565b6040516101259190610aaf565b61011861063d565b610118610643565b610118610649565b61011861064f565b61010e6101c4366004610a30565b610655565b610189610716565b6101d961075c565b6001600160a01b03166101ea61062e565b6001600160a01b0316146102195760405162461bcd60e51b815260040161021090610b9b565b60405180910390fd5b6002600054141561023c5760405162461bcd60e51b815260040161021090610cde565b6002600090815561024b610760565b9050600061025761077f565b90506008805410156102f5576007548290610276906301e189906107e3565b11158061028d5750600154600160a01b900460ff16155b156102f55760078290556003546102b1906102a89083610725565b600454906107e3565b6004556003546102ce906102c59083610725565b60025490610750565b6002556008546102de90826107e3565b6008556001805460ff60a01b1916600160a01b1790555b6004548311156103175760405162461bcd60e51b815260040161021090610c5d565b6004546103249084610750565b60045560095461033e906001600160a01b031685856107ef565b7fb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e848460405161036f929190610ac3565b60405180910390a1505060016000555050565b603c81565b602881565b600881565b60055481565b61039f61075c565b6001600160a01b03166103b061062e565b6001600160a01b0316146103d65760405162461bcd60e51b815260040161021090610b9b565b600260005414156103f95760405162461bcd60e51b815260040161021090610cde565b60026000556005548111156104205760405162461bcd60e51b815260040161021090610c31565b60055461042d9082610750565b60055560095460405163a9059cbb60e01b81526000916001600160a01b03169063a9059cbb906104639086908690600401610ac3565b602060405180830381600087803b15801561047d57600080fd5b505af1158015610491573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b59190610a73565b9050806104d45760405162461bcd60e51b815260040161021090610bd0565b7f65273e599435053f48e30cd5d45b1c94bee6ef1f89e268f6c647ff05fbc79e4c8383604051610505929190610ac3565b60405180910390a15050600160005550565b6301e1899081565b60085481565b61052d61075c565b6001600160a01b031661053e61062e565b6001600160a01b0316146105645760405162461bcd60e51b815260040161021090610b9b565b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b6000806105b9610760565b905060006105c561077f565b90506004549250816105e66301e189906007546107e390919063ffffffff16565b111580156105f5575060088054105b806106035750600654600754105b1561062357600354610620906106199083610725565b84906107e3565b92505b505090565b60045481565b6001546001600160a01b031690565b60065481565b60025481565b60035481565b60075481565b61065d61075c565b6001600160a01b031661066e61062e565b6001600160a01b0316146106945760405162461bcd60e51b815260040161021090610b9b565b6001600160a01b0381166106ba5760405162461bcd60e51b815260040161021090610b0f565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b031681565b60006107318284610d4a565b9392505050565b60006107318284610d36565b60006107318284610db0565b60006107318284610d69565b3390565b600061077a610773426301e18990610744565b4290610750565b905090565b6000806107c66301e189906107c06107b26107a96301e1899060065461074490919063ffffffff16565b60075490610750565b6107ba610760565b90610750565b90610738565b90506107dd6107d682600861084a565b6001610860565b91505090565b60006107318284610d1e565b6108458363a9059cbb60e01b848460405160240161080e929190610ac3565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610870565b505050565b60008183106108595781610731565b5090919050565b6000818310156108595781610731565b60006108c5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108ff9092919063ffffffff16565b80519091501561084557808060200190518101906108e39190610a73565b6108455760405162461bcd60e51b815260040161021090610c94565b606061090e8484600085610916565b949350505050565b6060824710156109385760405162461bcd60e51b815260040161021090610b55565b610941856109d6565b61095d5760405162461bcd60e51b815260040161021090610bfa565b600080866001600160a01b031685876040516109799190610a93565b60006040518083038185875af1925050503d80600081146109b6576040519150601f19603f3d011682016040523d82523d6000602084013e6109bb565b606091505b50915091506109cb8282866109e0565b979650505050505050565b803b15155b919050565b606083156109ef575081610731565b8251156109ff5782518084602001fd5b8160405162461bcd60e51b81526004016102109190610adc565b80356001600160a01b03811681146109db57600080fd5b600060208284031215610a41578081fd5b61073182610a19565b60008060408385031215610a5c578081fd5b610a6583610a19565b946020939093013593505050565b600060208284031215610a84578081fd5b81518015158114610731578182fd5b60008251610aa5818460208701610d80565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6000602082528251806020840152610afb816040850160208701610d80565b601f01601f19169190910160400192915050565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f2a3930b739b332b9103330b4b632b21760811b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601290820152712737ba1032b737bab3b4103a37b5b2b7399760711b604082015260600190565b6020808252601b908201527f4e6f7420656e6f75676820746f6b656e7320616c6c6f63617465640000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b60008219821115610d3157610d31610dc4565b500190565b600082610d4557610d45610dda565b500490565b6000816000190483118215151615610d6457610d64610dc4565b500290565b600082821015610d7b57610d7b610dc4565b500390565b60005b83811015610d9b578181015183820152602001610d83565b83811115610daa576000848401525b50505050565b600082610dbf57610dbf610dda565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fdfea2646970667358221220d9fee70bc9ed04d2eb9b0995d96665cf7ed4098df5f30551fb634398b9f832c364736f6c634300080000338be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212203c971ed748fca4b1f0d810c7da7651c4447dc557fb8f2407ebb44e4f916d9d9b64736f6c63430008000033

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.