ETH Price: $2,070.28 (+0.08%)

Token

Geminon (GEX)
 

Overview

Max Total Supply

1,142,079.594204857623961643 GEX

Holders

11 (0.00%)

Transfers

-
0

Market

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Geminon is a fully collateralized stablecoin protocol that allows various deflationary stablecoins to be minted using the GEX token. It has a full DeFi stack with liquidity pools, lending/borrowing, and multi-chain bridge.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
GEX

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "ERC20ElasticSupply.sol";


/**
* @title GEX
* @author Geminon Protocol
* @notice Target supply: 100 million tokens across all chains. This is not a hard
* limit, supply is elastic to achieve linear price variation with respect to the
* amount of collateral in the pools. Supply can only be minted by supplying 
* collateral to Genesis Liquidity Pools. 
* On contract creation there is no initial supply.
*/
contract GEX is ERC20ElasticSupply {

    bool public isInitialized;
    int256 public supplyLimitMint;

    
    /// @notice Mint is limited to 5 million tokens per day through the 
    /// variable supplyLimitMint and the _requireMaxMint() override. 
    /// @dev baseMintRatio and thresholdLimitMint parameters of 
    /// ERC20ElasticSupply constructor are ignored because of this 
    /// override.
    constructor() ERC20ElasticSupply("Geminon", "GEX", 50, 5*1e24) {
        supplyLimitMint = 5000000 * 1e18; 
        isInitialized = false;
    }


    /// @dev Initializes the GEX token adding the addresses of the contracts
    /// of the pools that can mint it. This function can only be called once
    /// after deployment. Owner can't be a minter.
    /// @param poolsMinters array of minter addresses. 
    function initialize(address[] memory poolsMinters) external onlyOwner {
        require(!isInitialized); // dev: Already initialized

        for (uint16 i=0; i < poolsMinters.length; i++) {
            require(poolsMinters[i] != address(0));
            require(poolsMinters[i] != owner());
            minters[poolsMinters[i]] = true;
        }
        
        minters[owner()] = false;
        isInitialized = true;
    }

    /// @dev Checks that the amount minted is not higher than the max daily limit.
    function _requireMaxMint(uint256 amount) internal override {
        require(_meanDailyAmount(_toInt256(amount)) <= supplyLimitMint); // dev: Max mint rate
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "ERC20.sol";
import "Ownable.sol";
import "IERC20ElasticSupply.sol";
import "TimeLocks.sol";


/**
* @title ERC20ElasticSupply
* @author Geminon Protocol
* @notice Base implementation for tokens that can be minted and burned by
* whitelisted addresses. New minters can only be added after a 7 days
* period after the request of the addition. The maximum amount that can be
* minted each day is limited for security. This limit varies depending on 
* the existing supply.
*/
contract ERC20ElasticSupply is IERC20ElasticSupply, ERC20, Ownable, TimeLocks {

    uint32 public baseMintRatio;
    uint256 public thresholdLimitMint;
    uint64 private _timestampLastMint;
    int256 private _meanMintRatio;

    mapping(address => bool) public minters;


    modifier onlyMinter() {
       require(minters[msg.sender] == true); // dev: Only minter
        _;
    }


    /// @param baseMintRatio_ max percentage of the supply that can be minted per day, 3 decimals [1,1000]
    /// @param thresholdLimitMint_ Minimum supply minted to begin requiring the maxMintRatio limit. 18 decimals.
    constructor(string memory name, string memory symbol, uint32 baseMintRatio_, uint256 thresholdLimitMint_) 
        ERC20(name, symbol) 
    {
        baseMintRatio = baseMintRatio_;
        thresholdLimitMint = thresholdLimitMint_;
    }


    /// @dev Add minter address. It has a 7 days timelock.
    function addMinter(address newMinter) external onlyOwner {
        require(changeRequests[address(0)].changeRequested); // dev: Not requested
        require(block.timestamp - changeRequests[address(0)].timestampRequest > 7 days); // dev: Time elapsed
        require(newMinter == changeRequests[address(0)].newAddressRequested); // dev: Wrong address
        require(minters[newMinter] == false); // dev: Minter exists
        
        minters[newMinter] = true;
        changeRequests[address(0)].changeRequested = false;
        
        emit MinterAdded(newMinter);
    }

    /// @dev Removes minter address. Does not use timelock
    function removeMinter(address minter) external onlyOwner {
        require(changeRequests[minter].changeRequested); // dev: Not requested
        require(minters[minter] == true); // dev: Minter does not exist
        
        minters[minter] = false;
        changeRequests[minter].changeRequested = false;
        
        emit MinterRemoved(minter);
    }


    /// @dev Mints tokens. Amount is limited to a fraction of the supply per day
    function mint(address to, uint256 amount) external onlyMinter {
        _requireMaxMint(amount);
        
        _timestampLastMint = uint64(block.timestamp);
        _mint(to, amount);

        emit TokenMinted(msg.sender, to, amount);
    }

    /// @dev Burns tokens. Discounts burned amount from daily mint limit
    function burn(address from, uint256 amount) external onlyMinter {
        _meanDailyAmount(-_toInt256(amount));

        _timestampLastMint = uint64(block.timestamp);
        _burn(from, amount);

        emit TokenBurned(msg.sender, from, amount);
    }


    /// @dev Checks that the amount minted is not higher than the max allowed
    /// only when a total supply level has been reached.
    function _requireMaxMint(uint256 amount) internal virtual {
        if (totalSupply() > thresholdLimitMint) {
            int256 maxDailyMintable = _toInt256(_maxMintRatio()*totalSupply()) / 1e3;
            require(_meanDailyAmount(_toInt256(amount)) <= maxDailyMintable); // dev: Max mint rate
        }
    }


    /// @dev Calculates an exponential moving average that tracks the amount 
    /// of tokens minted in the last 24 hours.
    function _meanDailyAmount(int256 amount) internal returns(int256) {
        int256 elapsed = _toInt256(block.timestamp - _timestampLastMint);
        
        if (elapsed > 0) {
            int256 timeWeight = (24 hours * 1e6) / elapsed;
            int256 alpha = 2*1e12 / (1e6+timeWeight);
            int256 w = (alpha*timeWeight)/1e6;
            int256 w2 = 1e6 - alpha;
            _meanMintRatio = (w*amount + w2*_meanMintRatio) / 1e6;
        } else {
            _meanMintRatio += amount;
        }
        
        return _meanMintRatio;
    }

    /// @dev Calculates the max percentage of supply that can be minted depending
    /// on the actual supply. Simulates a logarithmic curve. It is calibrated
    /// for stablecoins supply.
    function _maxMintRatio() internal view returns(uint256 mintRatio) {
        uint256 supply = totalSupply();
                
        if (supply < 1e5*1e18)
            mintRatio = (baseMintRatio * (1000*1e6 - 900*1e6 * supply / (1e5*1e18))) / 1e6;
        
        else if (supply < 1e6*1e18)
            mintRatio = (baseMintRatio * (100*1e6 - 80*1e6 * (supply-1e5*1e18) / (9*1e5*1e18))) / 1e6;
    
        else if (supply < 1e7*1e18)
            mintRatio = (baseMintRatio * (20*1e6 - 10*1e6 * (supply-1e6*1e18) / (9*1e6*1e18))) / 1e6;
        
        else if (supply < 1e8*1e18)
            mintRatio = (baseMintRatio * (10*1e6 - 6*1e6 * (supply-1e7*1e18) / (9*1e7*1e18))) / 1e6;
            
        else if (supply < 1e9*1e18)
            mintRatio = (baseMintRatio * (4*1e6 - 2*1e6 * (supply-1e8*1e18) / (9*1e8*1e18))) / 1e6;
            
        else if (supply < 1e10*1e18)
            mintRatio = (baseMintRatio * (2*1e6 - 1e6 * (supply-1e9*1e18) / (9*1e9*1e18))) / 1e6;
        
        else
            mintRatio = baseMintRatio;
    }

    /// @dev safe casting of integer to avoid overflow
    function _toInt256(uint256 value) internal pure returns(int256) {
        require(value <= uint256(type(int256).max)); // dev: Unsafe casting
        return int256(value);
    }
    
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "IERC20.sol";
import "IERC20Metadata.sol";
import "Context.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 Contracts guidelines: functions revert
 * instead 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 Context, IERC20, IERC20Metadata {
    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 default 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.
     */
    constructor(string memory name_, string memory symbol_) {
        _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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][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) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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:
     *
     * - `account` 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);

        _afterTokenTransfer(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");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

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

        _afterTokenTransfer(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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "IERC20.sol";



/**
* @title IERC20ElasticSupply
* @author Geminon Protocol
* @dev Interface for the ERC20ElasticSupply contract
*/
interface IERC20ElasticSupply is IERC20 {

    event TokenMinted(address indexed from, address indexed to, uint256 amount);

    event TokenBurned(address indexed from, address indexed to, uint256 amount);

    event MinterAdded(address minter_address);

    event MinterRemoved(address minter_address);

    function mint(address to, uint256 amount) external;

    function burn(address from, uint256 amount) external;

    function addMinter(address newMinter) external;

    function removeMinter(address minter) external;
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "Ownable.sol";


/**
* @title TimeLocks
* @author Geminon Protocol
* @dev Utility to protect smart contracts against instant changes
* on critical infrastructure. Sets a two step procedure to change
* the address of a smart contract that is used by another contract.
*/
contract TimeLocks is Ownable {

    struct ContractChangeRequest {
        bool changeRequested;
        uint64 timestampRequest;
        address newAddressRequested;
    }

    mapping(address => ContractChangeRequest) public changeRequests;

    
    /// @dev Creates a request to change the address of a smart contract.
    function requestAddressChange(address actualContract, address newContract) 
        external 
        onlyOwner 
    {
        require(newContract != address(0)); // dev: address 0
        
        ContractChangeRequest memory changeRequest = 
            ContractChangeRequest({
                changeRequested: true, 
                timestampRequest: uint64(block.timestamp), 
                newAddressRequested: newContract
            });
        
        changeRequests[actualContract] = changeRequest;
    }

    /// @dev Creates a request to add a new address of a smart contract.
    function requestAddAddress(address newContract) external onlyOwner {
        require(newContract != address(0)); // dev: address 0

        ContractChangeRequest memory changeRequest = 
            ContractChangeRequest({
                changeRequested: true, 
                timestampRequest: uint64(block.timestamp), 
                newAddressRequested: newContract
            });
        
        changeRequests[address(0)] = changeRequest;
    }

    /// @dev Creates a request to remove the address of a smart contract.
    function requestRemoveAddress(address oldContract) external onlyOwner {
        require(oldContract != address(0)); // dev: address zero
        
        ContractChangeRequest memory changeRequest = 
            ContractChangeRequest({
                changeRequested: true, 
                timestampRequest: uint64(block.timestamp), 
                newAddressRequested: address(0)
            });
        
        changeRequests[oldContract] = changeRequest;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter_address","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter_address","type":"address"}],"name":"MinterRemoved","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":"amount","type":"uint256"}],"name":"TokenBurned","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":"amount","type":"uint256"}],"name":"TokenMinted","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":[{"internalType":"address","name":"newMinter","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","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":[],"name":"baseMintRatio","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"changeRequests","outputs":[{"internalType":"bool","name":"changeRequested","type":"bool"},{"internalType":"uint64","name":"timestampRequest","type":"uint64"},{"internalType":"address","name":"newAddressRequested","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":"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":"poolsMinters","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newContract","type":"address"}],"name":"requestAddAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"actualContract","type":"address"},{"internalType":"address","name":"newContract","type":"address"}],"name":"requestAddressChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oldContract","type":"address"}],"name":"requestRemoveAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyLimitMint","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"thresholdLimitMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","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"}]

60806040523480156200001157600080fd5b506040518060400160405280600781526020016623b2b6b4b737b760c91b8152506040518060400160405280600381526020016208e8ab60eb1b81525060326a0422ca8b0a00a42500000083838160039080519060200190620000769291906200013e565b5080516200008c9060049060208401906200013e565b505050620000a9620000a3620000e860201b60201c565b620000ec565b6007805463ffffffff191663ffffffff939093169290921790915560085550506a0422ca8b0a00a425000000600d55600c805460ff1916905562000220565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200014c90620001e4565b90600052602060002090601f016020900481019282620001705760008555620001bb565b82601f106200018b57805160ff1916838001178555620001bb565b82800160010185558215620001bb579182015b82811115620001bb5782518255916020019190600101906200019e565b50620001c9929150620001cd565b5090565b5b80821115620001c95760008155600101620001ce565b600181811c90821680620001f957607f821691505b6020821081036200021a57634e487b7160e01b600052602260045260246000fd5b50919050565b611a5680620002306000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806395d89b41116100f9578063b60c3b9e11610097578063dc32569f11610071578063dc32569f1461040a578063dd62ed3e1461041d578063f2fde38b14610456578063f46eccc41461046957600080fd5b8063b60c3b9e1461037a578063b6a7e66614610383578063b740aec8146103f757600080fd5b80639dc29fac116100d35780639dc29fac1461032e578063a224cee714610341578063a457c2d714610354578063a9059cbb1461036757600080fd5b806395d89b4114610300578063983b2d56146103085780639d15337a1461031b57600080fd5b8063392e53cd1161016657806370a082311161014057806370a082311461028f578063715018a6146102b85780637439f3e0146102c05780638da5cb5b146102e557600080fd5b8063392e53cd1461025c578063395093511461026957806340c10f191461027c57600080fd5b806318160ddd116101a257806318160ddd1461021d57806323b872dd146102255780633092afd514610238578063313ce5671461024d57600080fd5b806303838bb5146101c957806306fdde03146101e5578063095ea7b3146101fa575b600080fd5b6101d2600d5481565b6040519081526020015b60405180910390f35b6101ed61048c565b6040516101dc91906115b1565b61020d610208366004611622565b61051e565b60405190151581526020016101dc565b6002546101d2565b61020d61023336600461164c565b610536565b61024b610246366004611688565b61055a565b005b604051601281526020016101dc565b600c5461020d9060ff1681565b61020d610277366004611622565b610646565b61024b61028a366004611622565b610685565b6101d261029d366004611688565b6001600160a01b031660009081526020819052604090205490565b61024b61071b565b6007546102d09063ffffffff1681565b60405163ffffffff90911681526020016101dc565b6005546040516001600160a01b0390911681526020016101dc565b6101ed610751565b61024b610316366004611688565b610760565b61024b610329366004611688565b6108c1565b61024b61033c366004611622565b61099d565b61024b61034f3660046116c0565b610a3d565b61020d610362366004611622565b610bb8565b61020d610375366004611622565b610c4a565b6101d260085481565b6103c8610391366004611688565b60066020526000908152604090205460ff811690610100810467ffffffffffffffff1690600160481b90046001600160a01b031683565b60408051931515845267ffffffffffffffff90921660208401526001600160a01b0316908201526060016101dc565b61024b610405366004611785565b610c58565b61024b610418366004611688565b610d2b565b6101d261042b366004611785565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61024b610464366004611688565b610dfd565b61020d610477366004611688565b600b6020526000908152604090205460ff1681565b60606003805461049b906117b8565b80601f01602080910402602001604051908101604052809291908181526020018280546104c7906117b8565b80156105145780601f106104e957610100808354040283529160200191610514565b820191906000526020600020905b8154815290600101906020018083116104f757829003601f168201915b5050505050905090565b60003361052c818585610e98565b5060019392505050565b600033610544858285610fbd565b61054f85858561104f565b506001949350505050565b6005546001600160a01b0316331461058d5760405162461bcd60e51b8152600401610584906117f2565b60405180910390fd5b6001600160a01b03811660009081526006602052604090205460ff166105b257600080fd5b6001600160a01b0381166000908152600b602052604090205460ff1615156001146105dc57600080fd5b6001600160a01b0381166000818152600b60209081526040808320805460ff199081169091556006835292819020805490931690925590519182527fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669291015b60405180910390a150565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061052c908290869061068090879061183d565b610e98565b336000908152600b602052604090205460ff1615156001146106a657600080fd5b6106af8161121d565b6009805467ffffffffffffffff19164267ffffffffffffffff161790556106d68282611237565b6040518181526001600160a01b0383169033907fdf1b2b09e9800d31c599375056be9f9e4eb37f078102643600c4e149714efaad906020015b60405180910390a35050565b6005546001600160a01b031633146107455760405162461bcd60e51b8152600401610584906117f2565b61074f600061130f565b565b60606004805461049b906117b8565b6005546001600160a01b0316331461078a5760405162461bcd60e51b8152600401610584906117f2565b600080526006602052600080516020611a018339815191525460ff166107af57600080fd5b600080526006602052600080516020611a018339815191525462093a80906107e690610100900467ffffffffffffffff1642611855565b116107f057600080fd5b600080526006602052600080516020611a01833981519152546001600160a01b03828116600160481b909204161461082757600080fd5b6001600160a01b0381166000908152600b602052604090205460ff161561084d57600080fd5b6001600160a01b0381166000818152600b602090815260408083208054600160ff199182161790915592805260068252600080516020611a01833981519152805490931690925590519182527f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6910161063b565b6005546001600160a01b031633146108eb5760405162461bcd60e51b8152600401610584906117f2565b6001600160a01b0381166108fe57600080fd5b60408051606081018252600181524267ffffffffffffffff90811660208084019182526001600160a01b0395861694840194855260008052600690529151600080516020611a0183398151915280549351945168ffffffffffffffffff1990941691151568ffffffffffffffff00191691909117610100949092169390930217600160481b600160e81b031916600160481b9190931602919091179055565b336000908152600b602052604090205460ff1615156001146109be57600080fd5b6109d86109ca82611361565b6109d39061186c565b61137b565b506009805467ffffffffffffffff19164267ffffffffffffffff16179055610a00828261146b565b6040518181526001600160a01b0383169033907fbfa41556980d157c24e8632dbb78958f8759a86b4acdea421f93dc7259fb55db9060200161070f565b6005546001600160a01b03163314610a675760405162461bcd60e51b8152600401610584906117f2565b600c5460ff1615610a7757600080fd5b60005b81518161ffff161015610b695760006001600160a01b0316828261ffff1681518110610aa857610aa8611888565b60200260200101516001600160a01b031603610ac357600080fd5b6005546001600160a01b03166001600160a01b0316828261ffff1681518110610aee57610aee611888565b60200260200101516001600160a01b031603610b0957600080fd5b6001600b6000848461ffff1681518110610b2557610b25611888565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610b618161189e565b915050610a7a565b506000600b6000610b826005546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805491151560ff19928316179055600c8054909116600117905550565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610c3d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610584565b61054f8286868403610e98565b60003361052c81858561104f565b6005546001600160a01b03163314610c825760405162461bcd60e51b8152600401610584906117f2565b6001600160a01b038116610c9557600080fd5b60408051606081018252600181524267ffffffffffffffff90811660208084019182526001600160a01b039586168486019081529686166000908152600690915293909320915182549351955168ffffffffffffffffff1990941690151568ffffffffffffffff00191617610100959091169490940293909317600160481b600160e81b031916600160481b9190921602179055565b6005546001600160a01b03163314610d555760405162461bcd60e51b8152600401610584906117f2565b6001600160a01b038116610d6857600080fd5b60408051606081018252600181524267ffffffffffffffff908116602080840191825260008486018181526001600160a01b039788168252600690925294909420925183549151945168ffffffffffffffffff1990921690151568ffffffffffffffff00191617610100949092169390930217600160481b600160e81b031916600160481b9290931691909102919091179055565b6005546001600160a01b03163314610e275760405162461bcd60e51b8152600401610584906117f2565b6001600160a01b038116610e8c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610584565b610e958161130f565b50565b6001600160a01b038316610efa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610584565b6001600160a01b038216610f5b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610584565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611049578181101561103c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610584565b6110498484848403610e98565b50505050565b6001600160a01b0383166110b35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610584565b6001600160a01b0382166111155760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610584565b6001600160a01b0383166000908152602081905260409020548181101561118d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610584565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906111c490849061183d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161121091815260200190565b60405180910390a3611049565b600d5461122c6109d383611361565b1315610e9557600080fd5b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610584565b806002600082825461129f919061183d565b90915550506001600160a01b038216600090815260208190526040812080548392906112cc90849061183d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161070f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160ff1b0382111561137757600080fd5b5090565b60095460009081906113a09061139b9067ffffffffffffffff1642611855565b611361565b905060008113156114495760006113bc8264141dd760006118bf565b905060006113cd82620f42406118fb565b6113dd906501d1a94a20006118bf565b90506000620f42406113ef848461193c565b6113f991906118bf565b9050600061140a83620f42406119c1565b9050620f4240600a548261141e919061193c565b611428898561193c565b61143291906118fb565b61143c91906118bf565b600a555061146192505050565b82600a600082825461145b91906118fb565b90915550505b5050600a54919050565b6001600160a01b0382166114cb5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610584565b6001600160a01b0382166000908152602081905260409020548181101561153f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610584565b6001600160a01b038316600090815260208190526040812083830390556002805484929061156e908490611855565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610fb0565b600060208083528351808285015260005b818110156115de578581018301518582016040015282016115c2565b818111156115f0576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461161d57600080fd5b919050565b6000806040838503121561163557600080fd5b61163e83611606565b946020939093013593505050565b60008060006060848603121561166157600080fd5b61166a84611606565b925061167860208501611606565b9150604084013590509250925092565b60006020828403121561169a57600080fd5b6116a382611606565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156116d357600080fd5b823567ffffffffffffffff808211156116eb57600080fd5b818501915085601f8301126116ff57600080fd5b813581811115611711576117116116aa565b8060051b604051601f19603f83011681018181108582111715611736576117366116aa565b60405291825284820192508381018501918883111561175457600080fd5b938501935b828510156117795761176a85611606565b84529385019392850192611759565b98975050505050505050565b6000806040838503121561179857600080fd5b6117a183611606565b91506117af60208401611606565b90509250929050565b600181811c908216806117cc57607f821691505b6020821081036117ec57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561185057611850611827565b500190565b60008282101561186757611867611827565b500390565b6000600160ff1b820161188157611881611827565b5060000390565b634e487b7160e01b600052603260045260246000fd5b600061ffff8083168181036118b5576118b5611827565b6001019392505050565b6000826118dc57634e487b7160e01b600052601260045260246000fd5b600160ff1b8214600019841416156118f6576118f6611827565b500590565b600080821280156001600160ff1b038490038513161561191d5761191d611827565b600160ff1b839003841281161561193657611936611827565b50500190565b60006001600160ff1b038184138284138082168684048611161561196257611962611827565b600160ff1b600087128281168783058912161561198157611981611827565b6000871292508782058712848416161561199d5761199d611827565b878505871281841616156119b3576119b3611827565b505050929093029392505050565b60008083128015600160ff1b8501841216156119df576119df611827565b6001600160ff1b03840183138116156119fa576119fa611827565b5050039056fe54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8a2646970667358221220cfe00731aa93fdd1636bfb64f63d63d65966ea9a374ef096dd4cd55817a5ddc464736f6c634300080d0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806395d89b41116100f9578063b60c3b9e11610097578063dc32569f11610071578063dc32569f1461040a578063dd62ed3e1461041d578063f2fde38b14610456578063f46eccc41461046957600080fd5b8063b60c3b9e1461037a578063b6a7e66614610383578063b740aec8146103f757600080fd5b80639dc29fac116100d35780639dc29fac1461032e578063a224cee714610341578063a457c2d714610354578063a9059cbb1461036757600080fd5b806395d89b4114610300578063983b2d56146103085780639d15337a1461031b57600080fd5b8063392e53cd1161016657806370a082311161014057806370a082311461028f578063715018a6146102b85780637439f3e0146102c05780638da5cb5b146102e557600080fd5b8063392e53cd1461025c578063395093511461026957806340c10f191461027c57600080fd5b806318160ddd116101a257806318160ddd1461021d57806323b872dd146102255780633092afd514610238578063313ce5671461024d57600080fd5b806303838bb5146101c957806306fdde03146101e5578063095ea7b3146101fa575b600080fd5b6101d2600d5481565b6040519081526020015b60405180910390f35b6101ed61048c565b6040516101dc91906115b1565b61020d610208366004611622565b61051e565b60405190151581526020016101dc565b6002546101d2565b61020d61023336600461164c565b610536565b61024b610246366004611688565b61055a565b005b604051601281526020016101dc565b600c5461020d9060ff1681565b61020d610277366004611622565b610646565b61024b61028a366004611622565b610685565b6101d261029d366004611688565b6001600160a01b031660009081526020819052604090205490565b61024b61071b565b6007546102d09063ffffffff1681565b60405163ffffffff90911681526020016101dc565b6005546040516001600160a01b0390911681526020016101dc565b6101ed610751565b61024b610316366004611688565b610760565b61024b610329366004611688565b6108c1565b61024b61033c366004611622565b61099d565b61024b61034f3660046116c0565b610a3d565b61020d610362366004611622565b610bb8565b61020d610375366004611622565b610c4a565b6101d260085481565b6103c8610391366004611688565b60066020526000908152604090205460ff811690610100810467ffffffffffffffff1690600160481b90046001600160a01b031683565b60408051931515845267ffffffffffffffff90921660208401526001600160a01b0316908201526060016101dc565b61024b610405366004611785565b610c58565b61024b610418366004611688565b610d2b565b6101d261042b366004611785565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61024b610464366004611688565b610dfd565b61020d610477366004611688565b600b6020526000908152604090205460ff1681565b60606003805461049b906117b8565b80601f01602080910402602001604051908101604052809291908181526020018280546104c7906117b8565b80156105145780601f106104e957610100808354040283529160200191610514565b820191906000526020600020905b8154815290600101906020018083116104f757829003601f168201915b5050505050905090565b60003361052c818585610e98565b5060019392505050565b600033610544858285610fbd565b61054f85858561104f565b506001949350505050565b6005546001600160a01b0316331461058d5760405162461bcd60e51b8152600401610584906117f2565b60405180910390fd5b6001600160a01b03811660009081526006602052604090205460ff166105b257600080fd5b6001600160a01b0381166000908152600b602052604090205460ff1615156001146105dc57600080fd5b6001600160a01b0381166000818152600b60209081526040808320805460ff199081169091556006835292819020805490931690925590519182527fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669291015b60405180910390a150565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061052c908290869061068090879061183d565b610e98565b336000908152600b602052604090205460ff1615156001146106a657600080fd5b6106af8161121d565b6009805467ffffffffffffffff19164267ffffffffffffffff161790556106d68282611237565b6040518181526001600160a01b0383169033907fdf1b2b09e9800d31c599375056be9f9e4eb37f078102643600c4e149714efaad906020015b60405180910390a35050565b6005546001600160a01b031633146107455760405162461bcd60e51b8152600401610584906117f2565b61074f600061130f565b565b60606004805461049b906117b8565b6005546001600160a01b0316331461078a5760405162461bcd60e51b8152600401610584906117f2565b600080526006602052600080516020611a018339815191525460ff166107af57600080fd5b600080526006602052600080516020611a018339815191525462093a80906107e690610100900467ffffffffffffffff1642611855565b116107f057600080fd5b600080526006602052600080516020611a01833981519152546001600160a01b03828116600160481b909204161461082757600080fd5b6001600160a01b0381166000908152600b602052604090205460ff161561084d57600080fd5b6001600160a01b0381166000818152600b602090815260408083208054600160ff199182161790915592805260068252600080516020611a01833981519152805490931690925590519182527f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6910161063b565b6005546001600160a01b031633146108eb5760405162461bcd60e51b8152600401610584906117f2565b6001600160a01b0381166108fe57600080fd5b60408051606081018252600181524267ffffffffffffffff90811660208084019182526001600160a01b0395861694840194855260008052600690529151600080516020611a0183398151915280549351945168ffffffffffffffffff1990941691151568ffffffffffffffff00191691909117610100949092169390930217600160481b600160e81b031916600160481b9190931602919091179055565b336000908152600b602052604090205460ff1615156001146109be57600080fd5b6109d86109ca82611361565b6109d39061186c565b61137b565b506009805467ffffffffffffffff19164267ffffffffffffffff16179055610a00828261146b565b6040518181526001600160a01b0383169033907fbfa41556980d157c24e8632dbb78958f8759a86b4acdea421f93dc7259fb55db9060200161070f565b6005546001600160a01b03163314610a675760405162461bcd60e51b8152600401610584906117f2565b600c5460ff1615610a7757600080fd5b60005b81518161ffff161015610b695760006001600160a01b0316828261ffff1681518110610aa857610aa8611888565b60200260200101516001600160a01b031603610ac357600080fd5b6005546001600160a01b03166001600160a01b0316828261ffff1681518110610aee57610aee611888565b60200260200101516001600160a01b031603610b0957600080fd5b6001600b6000848461ffff1681518110610b2557610b25611888565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610b618161189e565b915050610a7a565b506000600b6000610b826005546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805491151560ff19928316179055600c8054909116600117905550565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610c3d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610584565b61054f8286868403610e98565b60003361052c81858561104f565b6005546001600160a01b03163314610c825760405162461bcd60e51b8152600401610584906117f2565b6001600160a01b038116610c9557600080fd5b60408051606081018252600181524267ffffffffffffffff90811660208084019182526001600160a01b039586168486019081529686166000908152600690915293909320915182549351955168ffffffffffffffffff1990941690151568ffffffffffffffff00191617610100959091169490940293909317600160481b600160e81b031916600160481b9190921602179055565b6005546001600160a01b03163314610d555760405162461bcd60e51b8152600401610584906117f2565b6001600160a01b038116610d6857600080fd5b60408051606081018252600181524267ffffffffffffffff908116602080840191825260008486018181526001600160a01b039788168252600690925294909420925183549151945168ffffffffffffffffff1990921690151568ffffffffffffffff00191617610100949092169390930217600160481b600160e81b031916600160481b9290931691909102919091179055565b6005546001600160a01b03163314610e275760405162461bcd60e51b8152600401610584906117f2565b6001600160a01b038116610e8c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610584565b610e958161130f565b50565b6001600160a01b038316610efa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610584565b6001600160a01b038216610f5b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610584565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611049578181101561103c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610584565b6110498484848403610e98565b50505050565b6001600160a01b0383166110b35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610584565b6001600160a01b0382166111155760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610584565b6001600160a01b0383166000908152602081905260409020548181101561118d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610584565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906111c490849061183d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161121091815260200190565b60405180910390a3611049565b600d5461122c6109d383611361565b1315610e9557600080fd5b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610584565b806002600082825461129f919061183d565b90915550506001600160a01b038216600090815260208190526040812080548392906112cc90849061183d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161070f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160ff1b0382111561137757600080fd5b5090565b60095460009081906113a09061139b9067ffffffffffffffff1642611855565b611361565b905060008113156114495760006113bc8264141dd760006118bf565b905060006113cd82620f42406118fb565b6113dd906501d1a94a20006118bf565b90506000620f42406113ef848461193c565b6113f991906118bf565b9050600061140a83620f42406119c1565b9050620f4240600a548261141e919061193c565b611428898561193c565b61143291906118fb565b61143c91906118bf565b600a555061146192505050565b82600a600082825461145b91906118fb565b90915550505b5050600a54919050565b6001600160a01b0382166114cb5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610584565b6001600160a01b0382166000908152602081905260409020548181101561153f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610584565b6001600160a01b038316600090815260208190526040812083830390556002805484929061156e908490611855565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610fb0565b600060208083528351808285015260005b818110156115de578581018301518582016040015282016115c2565b818111156115f0576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461161d57600080fd5b919050565b6000806040838503121561163557600080fd5b61163e83611606565b946020939093013593505050565b60008060006060848603121561166157600080fd5b61166a84611606565b925061167860208501611606565b9150604084013590509250925092565b60006020828403121561169a57600080fd5b6116a382611606565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156116d357600080fd5b823567ffffffffffffffff808211156116eb57600080fd5b818501915085601f8301126116ff57600080fd5b813581811115611711576117116116aa565b8060051b604051601f19603f83011681018181108582111715611736576117366116aa565b60405291825284820192508381018501918883111561175457600080fd5b938501935b828510156117795761176a85611606565b84529385019392850192611759565b98975050505050505050565b6000806040838503121561179857600080fd5b6117a183611606565b91506117af60208401611606565b90509250929050565b600181811c908216806117cc57607f821691505b6020821081036117ec57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561185057611850611827565b500190565b60008282101561186757611867611827565b500390565b6000600160ff1b820161188157611881611827565b5060000390565b634e487b7160e01b600052603260045260246000fd5b600061ffff8083168181036118b5576118b5611827565b6001019392505050565b6000826118dc57634e487b7160e01b600052601260045260246000fd5b600160ff1b8214600019841416156118f6576118f6611827565b500590565b600080821280156001600160ff1b038490038513161561191d5761191d611827565b600160ff1b839003841281161561193657611936611827565b50500190565b60006001600160ff1b038184138284138082168684048611161561196257611962611827565b600160ff1b600087128281168783058912161561198157611981611827565b6000871292508782058712848416161561199d5761199d611827565b878505871281841616156119b3576119b3611827565b505050929093029392505050565b60008083128015600160ff1b8501841216156119df576119df611827565b6001600160ff1b03840183138116156119fa576119fa611827565b5050039056fe54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8a2646970667358221220cfe00731aa93fdd1636bfb64f63d63d65966ea9a374ef096dd4cd55817a5ddc464736f6c634300080d0033

Loading...
Loading
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.