ETH Price: $2,939.21 (-0.63%)

Token

LiquiCats (MEOW)

Overview

Max Total Supply

10,250 MEOW

Holders

941

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1,439 MEOW

Value
$0.00
0x6a0959cd80fc9e2c1be958df1f8207c5b03f2a84
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
GBT

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.11;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

interface IGumBallFactory {
    function getTreasury() external view returns (address);
}

interface IXGBT {
    function balanceOf(address account) external view returns (uint256);
    function notifyRewardAmount(address _rewardsToken, uint256 reward) external; 
}

contract GBT is ERC20, ReentrancyGuard {
    using SafeERC20 for IERC20;

    // Bonding Curve Variables
    address public immutable BASE_TOKEN;

    uint256 public immutable reserveVirtualBASE;
    uint256 public reserveRealBASE;
    uint256 public reserveGBT;
    
    uint256 public immutable initial_totalSupply;

    // Treasury Variables
    uint256 public treasuryBASE;
    uint256 public treasuryGBT;

    // Addresses
    address public XGBT;
    address public artist;
    address public immutable factory;

    // Allowlist Variables
    mapping(address => bool) public allowlist;
    mapping(address => uint256) public limit;
    uint256 public immutable start;
    uint256 public immutable delay;

    // Borrow Variables
    uint256 public borrowedTotalBASE;
    mapping(address => uint256) public borrowedBASE;

    // Fee
    uint256 public constant PROTOCOL = 25;
    uint256 public constant TREASURY = 200;
    uint256 public constant GUMBAR = 400;
    uint256 public constant ARTIST = 400;
    uint256 public constant DIVISOR = 1000;

    // Events
    event Buy(address indexed user, uint256 amount);
    event Sell(address indexed user, uint256 amount);
    event Borrow(address indexed user, uint256 amount);
    event Repay(address indexed user, uint256 amount);
    event Skim(address indexed user);
    event AllowListUpdated(address[] accounts, bool flag);
    event XGBTSet(address indexed _XGBT);
    event ChangeArtist(address newArtist);

    constructor(
        string memory _name,
        string memory _symbol,
        address _baseToken,
        uint256 _initialVirtualBASE,
        uint256 _supplyGBT,
        address _artist,
        address _factory,
        uint256 _delay
        ) ERC20(_name, _symbol) {

        BASE_TOKEN = _baseToken;
        artist = _artist;
        factory = _factory;

        reserveVirtualBASE = _initialVirtualBASE;

        reserveRealBASE = 0;
        initial_totalSupply = _supplyGBT;
        reserveGBT = _supplyGBT;

        start = block.timestamp;
        delay = _delay;

        _mint(address(this), _supplyGBT);

    }

    //////////////////
    ///// Public /////
    //////////////////

    /** @dev returns the current price of {GBT} */
    function currentPrice() external view returns (uint256) {
        return ((reserveVirtualBASE + reserveRealBASE) * 1e18) / reserveGBT;
    }

    /** @dev returns the allowance @param user can borrow */
    function borrowCredit(address account) external view returns (uint256) {
        uint256 borrowPowerGBT = IXGBT(XGBT).balanceOf(account);
        if (borrowPowerGBT == 0) {
            return 0;
        }
        uint256 borrowTotalBASE = (reserveVirtualBASE * totalSupply() / (totalSupply() - borrowPowerGBT)) - reserveVirtualBASE;
        uint256 borrowableBASE = borrowTotalBASE - borrowedBASE[account];
        return borrowableBASE;
    }

    function skimReward() external view returns (uint256) {
        return treasuryBASE * 10 / 10000;
    }

    /** @dev returns amount borrowed by @param user */
    function debt(address account) external view returns (uint256) {
        return borrowedBASE[account];
    }

    function baseBal() external view returns (uint256) {
        return IERC20(BASE_TOKEN).balanceOf(address(this));
    }

    function gbtBal() external view returns (uint256) {
        return IERC20(address(this)).balanceOf(address(this));
    }

    function getFactory() external view returns (address) {
        return factory;
    }

    function initSupply() external view returns (uint256) {
        return initial_totalSupply;
    }

    function floorPrice() external view returns (uint256) {
        return (reserveVirtualBASE * 1e18) / totalSupply();
    }

    function mustStayGBT(address account) external view returns (uint256) {
        uint256 accountBorrowedBASE = borrowedBASE[account];
        if (accountBorrowedBASE == 0) {
            return 0;
        }
        uint256 amount = totalSupply() - (reserveVirtualBASE * totalSupply() / (accountBorrowedBASE + reserveVirtualBASE));
        return amount;
    }

    ////////////////////
    ///// External /////
    ////////////////////

    /** @dev Buy function.  User spends {BASE} and receives {GBT}
      * @param _amountBASE is the amount of the {BASE} being spent
      * @param _minGBT is the minimum amount of {GBT} out
      * @param expireTimestamp is the expire time on txn
      *
      * If a delay was set on the proxy deployment and has not elapsed:
      *     1. the user must be whitelisted by the protocol to call the function
      *     2. the whitelisted user cannont buy more than 1 GBT until the delay has elapsed
    */
    function buy(uint256 _amountBASE, uint256 _minGBT, uint256 expireTimestamp) external nonReentrant {
        require(start + delay <= block.timestamp || allowlist[msg.sender], "Market Closed");
        require(expireTimestamp == 0 || expireTimestamp > block.timestamp, "Expired");
        require(_amountBASE > 0, "Amount cannot be zero");

        address account = msg.sender;

        syncReserves();
        uint256 feeAmountBASE = _amountBASE * PROTOCOL / DIVISOR;
        treasuryBASE += (feeAmountBASE);

        uint256 oldReserveBASE = reserveVirtualBASE + reserveRealBASE;
        uint256 newReserveBASE = oldReserveBASE + _amountBASE - feeAmountBASE;

        uint256 oldReserveGBT = reserveGBT;
        uint256 newReserveGBT = oldReserveBASE * oldReserveGBT / newReserveBASE;

        uint256 outGBT = oldReserveGBT - newReserveGBT;

        require(outGBT > _minGBT, "Less than Min");

        if (start + delay >= block.timestamp) {
            require(outGBT <= 10e18 && limit[account] <= 10e18, "Over allowlist limit");
            limit[account] += outGBT;
            require(limit[account] <= 10e18, "Allowlist amount overflow");
        }

        reserveRealBASE = newReserveBASE - reserveVirtualBASE;
        reserveGBT = newReserveGBT;

        IERC20(BASE_TOKEN).safeTransferFrom(account, address(this), _amountBASE);
        IERC20(address(this)).safeTransfer(account, outGBT);

        emit Buy(account, _amountBASE);
    }

    /** @dev Sell function.  User sells their {GBT} token for {BASE}
      * @param _amountGBT is the amount of {GBT} in
      * @param _minETH is the minimum amount of {ETH} out 
      * @param expireTimestamp is the expire time on txn
    */
    function sell(uint256 _amountGBT, uint256 _minETH, uint256 expireTimestamp) external nonReentrant {
        require(expireTimestamp == 0 || expireTimestamp > block.timestamp, "Expired");
        require(_amountGBT > 0, "Amount cannot be zero");

        address account = msg.sender;

        syncReserves();
        uint256 feeAmountGBT = _amountGBT * PROTOCOL / DIVISOR;
        treasuryGBT += feeAmountGBT;

        uint256 oldReserveGBT = reserveGBT;
        uint256 newReserveGBT = reserveGBT + _amountGBT - feeAmountGBT;

        uint256 oldReserveBASE = reserveVirtualBASE + reserveRealBASE;
        uint256 newReserveBASE = oldReserveBASE * oldReserveGBT / newReserveGBT;

        uint256 outBASE = oldReserveBASE - newReserveBASE;

        require(outBASE > _minETH, "Less than Min");

        reserveRealBASE = newReserveBASE - reserveVirtualBASE;
        reserveGBT = newReserveGBT;

        IERC20(address(this)).safeTransferFrom(account, address(this), _amountGBT);
        IERC20(BASE_TOKEN).safeTransfer(account, outBASE);

        emit Sell(account, _amountGBT);
    }

    /** @dev Distributes fees according to their weights.  Rewards the caller 0.1% of {treasuryBASE} */
    function treasurySkim() external {
        uint256 _treasuryGBT = treasuryGBT;
        uint256 _treasuryBASE = treasuryBASE;

        // Reward for the caller
        uint256 reward = _treasuryBASE * 10 / 10000;   // 0.1%
        _treasuryBASE -= reward;

        treasuryBASE = 0;
        treasuryGBT = 0;

        address treasury = IGumBallFactory(factory).getTreasury();

        IERC20(address(this)).safeApprove(XGBT, 0);
        IERC20(address(this)).safeApprove(XGBT, _treasuryGBT * GUMBAR / DIVISOR);
        IXGBT(XGBT).notifyRewardAmount(address(this), _treasuryGBT * GUMBAR / DIVISOR);
        IERC20(address(this)).safeTransfer(artist, _treasuryGBT * ARTIST / DIVISOR);
        IERC20(address(this)).safeTransfer(treasury, _treasuryGBT * TREASURY / DIVISOR);

        // requires here
        IERC20(BASE_TOKEN).safeApprove(XGBT, 0);
        IERC20(BASE_TOKEN).safeApprove(XGBT, _treasuryBASE * GUMBAR / DIVISOR);
        IXGBT(XGBT).notifyRewardAmount(BASE_TOKEN, _treasuryBASE * GUMBAR / DIVISOR);
        IERC20(BASE_TOKEN).safeTransfer(artist, _treasuryBASE * ARTIST / DIVISOR);
        IERC20(BASE_TOKEN).safeTransfer(treasury, _treasuryBASE * TREASURY / DIVISOR);
        IERC20(BASE_TOKEN).safeTransfer(msg.sender, reward);

        emit Skim(msg.sender);
    }

    /** @dev User borrows an amount of {BASE} equal to @param _amount */
    function borrowSome(uint256 _amount) external nonReentrant {
        require(_amount > 0, "!Zero");

        address account = msg.sender;

        uint256 borrowPowerGBT = IXGBT(XGBT).balanceOf(account);

        uint256 borrowTotalBASE = (reserveVirtualBASE * totalSupply() / (totalSupply() - borrowPowerGBT)) - reserveVirtualBASE;
        uint256 borrowableBASE = borrowTotalBASE - borrowedBASE[account];

        require(borrowableBASE >= _amount, "Borrow Underflow");

        borrowedBASE[account] += _amount;
        borrowedTotalBASE += _amount;

        IERC20(BASE_TOKEN).safeTransfer(account, _amount);

        emit Borrow(account, _amount);
    }

    /** @dev User borrows the maximum amount of {BASE} their locked {XGBT} will allow */
    function borrowMax() external nonReentrant {

        address account = msg.sender;

        uint256 borrowPowerGBT = IXGBT(XGBT).balanceOf(account);

        uint256 borrowTotalBASE = (reserveVirtualBASE * totalSupply() / (totalSupply() - borrowPowerGBT)) - reserveVirtualBASE;
        uint256 borrowableBASE = borrowTotalBASE - borrowedBASE[account];

        borrowedBASE[account] += borrowableBASE;
        borrowedTotalBASE += borrowableBASE;

        IERC20(BASE_TOKEN).safeTransfer(account, borrowableBASE);

        emit Borrow(account, borrowableBASE);
    }

    /** @dev User repays a portion of their debt equal to @param _amount */
    function repaySome(uint256 _amount) external nonReentrant {
        require(_amount > 0, "!Zero");

        address account = msg.sender;
        
        borrowedBASE[account] -= _amount;
        borrowedTotalBASE -= _amount;

        IERC20(BASE_TOKEN).safeTransferFrom(account, address(this), _amount);

        emit Repay(account, _amount);
    }

    /** @dev User repays their debt and opens unlocking of {XGBT} */
    function repayMax() external nonReentrant {

        address account = msg.sender;

        uint256 amountRepayBASE = borrowedBASE[account];
        borrowedBASE[account] = 0;
        borrowedTotalBASE -= amountRepayBASE;

        IERC20(BASE_TOKEN).safeTransferFrom(account, address(this), amountRepayBASE);

        emit Repay(account, amountRepayBASE);
    }

    ////////////////////
    ///// Internal /////
    ////////////////////

    /** @dev Remove yield and rebalance */
    function syncReserves() internal {
        uint256 baseBalance = IERC20(BASE_TOKEN).balanceOf(address(this)) + borrowedTotalBASE;
        if(baseBalance > reserveRealBASE + treasuryBASE) {
            treasuryBASE += (baseBalance - reserveRealBASE - treasuryBASE);
        }
        uint256 gbtBalance = IERC20(address(this)).balanceOf(address(this));
        if (gbtBalance > reserveGBT + treasuryGBT) {
            treasuryGBT += (gbtBalance - reserveGBT - treasuryGBT);
        }
    }

    ////////////////////
    //// Restricted ////
    ////////////////////

    function updateAllowlist(address[] memory accounts, bool _bool) external {
        require(msg.sender == factory || msg.sender == artist, "!AUTH");
        for (uint256 i = 0; i < accounts.length; i++) {
            allowlist[accounts[i]] = _bool;
        }
        emit AllowListUpdated(accounts, _bool);
    }

    function setXGBT(address _XGBT) external OnlyFactory {
        XGBT = _XGBT;
        emit XGBTSet(_XGBT);
    }

    function setArtist(address _artist) external {
        require(msg.sender == artist, "!AUTH");
        artist = _artist;
        emit ChangeArtist(_artist);
    }

    modifier OnlyFactory() {
        require(msg.sender == factory, "!AUTH");
        _;
    }
}

contract GBTFactory {
    address public factory;
    address public lastGBT;

    event FactorySet(address indexed _factory);

    constructor() {
        factory = msg.sender;
    }

    function setFactory(address _factory) external OnlyFactory {
        factory = _factory;
        emit FactorySet(_factory);
    }

    function createGBT(
        string memory _name,
        string memory _symbol,
        address _baseToken,
        uint256 _initialVirtualBASE,
        uint256 _supplyGBT,
        address _artist,
        address _factory,
        uint256 _delay
    ) external OnlyFactory returns (address) {
        GBT newGBT = new GBT(_name, _symbol, _baseToken, _initialVirtualBASE, _supplyGBT, _artist, _factory, _delay);
        lastGBT = address(newGBT);
        return lastGBT;
    }

    modifier OnlyFactory() {
        require(msg.sender == factory, "!AUTH");
        _;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

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 making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

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

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/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.openzeppelin.com/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, allowance(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 = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * 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;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _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;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * 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 v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// 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 (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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);
}

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

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// 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;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_baseToken","type":"address"},{"internalType":"uint256","name":"_initialVirtualBASE","type":"uint256"},{"internalType":"uint256","name":"_supplyGBT","type":"uint256"},{"internalType":"address","name":"_artist","type":"address"},{"internalType":"address","name":"_factory","type":"address"},{"internalType":"uint256","name":"_delay","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"flag","type":"bool"}],"name":"AllowListUpdated","type":"event"},{"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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Borrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Buy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newArtist","type":"address"}],"name":"ChangeArtist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Repay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Sell","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"Skim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_XGBT","type":"address"}],"name":"XGBTSet","type":"event"},{"inputs":[],"name":"ARTIST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BASE_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GUMBAR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROTOCOL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"XGBT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseBal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"borrowCredit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"borrowSome","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"borrowedBASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowedTotalBASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountBASE","type":"uint256"},{"internalType":"uint256","name":"_minGBT","type":"uint256"},{"internalType":"uint256","name":"expireTimestamp","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"debt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"delay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"floorPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gbtBal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initial_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"limit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"mustStayGBT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"repayMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"repaySome","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveGBT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserveRealBASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserveVirtualBASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountGBT","type":"uint256"},{"internalType":"uint256","name":"_minETH","type":"uint256"},{"internalType":"uint256","name":"expireTimestamp","type":"uint256"}],"name":"sell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_artist","type":"address"}],"name":"setArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_XGBT","type":"address"}],"name":"setXGBT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"skimReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"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":[],"name":"treasuryBASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryGBT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasurySkim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"_bool","type":"bool"}],"name":"updateAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040523480156200001257600080fd5b50604051620031b9380380620031b9833981016040819052620000359162000322565b8751889088906200004e90600390602085019062000192565b5080516200006490600490602084019062000192565b50506001600555506001600160a01b03868116608052600b80546001600160a01b031916858316179055821660e05260a0859052600060065560c084905260078490554261010052610120819052620000be3085620000cc565b505050505050505062000444565b6001600160a01b038216620001275760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200013b9190620003e1565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b828054620001a09062000408565b90600052602060002090601f016020900481019282620001c457600085556200020f565b82601f10620001df57805160ff19168380011785556200020f565b828001600101855582156200020f579182015b828111156200020f578251825591602001919060010190620001f2565b506200021d92915062000221565b5090565b5b808211156200021d576000815560010162000222565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200026057600080fd5b81516001600160401b03808211156200027d576200027d62000238565b604051601f8301601f19908116603f01168101908282118183101715620002a857620002a862000238565b81604052838152602092508683858801011115620002c557600080fd5b600091505b83821015620002e95785820183015181830184015290820190620002ca565b83821115620002fb5760008385830101525b9695505050505050565b80516001600160a01b03811681146200031d57600080fd5b919050565b600080600080600080600080610100898b0312156200034057600080fd5b88516001600160401b03808211156200035857600080fd5b620003668c838d016200024e565b995060208b01519150808211156200037d57600080fd5b506200038c8b828c016200024e565b9750506200039d60408a0162000305565b95506060890151945060808901519350620003bb60a08a0162000305565b9250620003cb60c08a0162000305565b915060e089015190509295985092959890939650565b600082198211156200040357634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200041d57607f821691505b6020821081036200043e57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161012051612c2962000590600039600081816104c201528181610f13015261113101526000818161064f01528181610f34015261115201526000818161050f0152818161067601528181611519015281816119820152611ae6015260008181610556015261062801526000818161036d015281816109070152818161094301528181610b0b01528181610b4701528181610d5601528181610d9201528181611082015281816112980152818161138c015281816113d20152818161165901528181611687015281816117bb01526118510152600081816103b9015281816107ed015281816109ee01528181610bff01528181610e8a015281816112d2015281816114980152818161189701528181611c9101528181611cee01528181611d2801528181611df201528181611e3801526123100152612c296000f3fe608060405234801561001057600080fd5b506004361061030c5760003560e01c806391b9b8271161019d578063bbb42e5a116100e9578063d4c97533116100a2578063d9b3e7dd1161007c578063d9b3e7dd1461070d578063dd62ed3e14610720578063e44f921614610733578063f97f0f721461073b57600080fd5b8063d4c97533146106d1578063d6157796146106e4578063d8797262146106ed57600080fd5b8063bbb42e5a14610623578063be9a65551461064a578063c45a015514610671578063c4f9549214610698578063ce98fd67146106ab578063d3c9727c146106be57600080fd5b80639d23814811610156578063a457c2d711610130578063a457c2d7146105da578063a7cd52cb146105ed578063a9059cbb14610610578063acf4094a146104b457600080fd5b80639d238148146105ab5780639d352a2c146105be578063a381cea2146105d157600080fd5b806391b9b8271461053c5780639363c8121461054457806395d89b411461054c57806397d63f93146105545780639b6c56ec1461057a5780639d1b464a146105a357600080fd5b8063395093511161025c57806356262687116102155780636a42b8f8116101ef5780636a42b8f8146104bd57806370a08231146104e457806388cc58e41461050d5780638d4a99891461053357600080fd5b806356262687146104a25780635ea68a14146104ab57806368fe61ac146104b457600080fd5b8063395093511461042e5780633e9943f51461044157806340993b261461045457806343bc1612146104675780634d36fa331461047a578063539fb54d1461048257600080fd5b806318160ddd116102c957806326faf313116102a357806326faf313146104065780632d2c55651461040e578063313ce567146104165780633410fe6e1461042557600080fd5b806318160ddd146103ac578063210663e4146103b457806323b872dd146103f357600080fd5b806306fdde031461031157806308ef2b4c1461032f578063095ea7b3146103455780630a4d82ff146103685780630eebdf4f1461038f5780631630185d146103a2575b600080fd5b610319610743565b60405161032691906127b5565b60405180910390f35b6103376107d5565b604051908152602001610326565b61035861035336600461280d565b610866565b6040519015158152602001610326565b6103377f000000000000000000000000000000000000000000000000000000000000000081565b61033761039d366004612839565b61087e565b6103aa6109ab565b005b600254610337565b6103db7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610326565b61035861040136600461285d565b610a67565b6103aa610a8b565b61033760c881565b60405160128152602001610326565b6103376103e881565b61035861043c36600461280d565b610c77565b6103aa61044f36600461289e565b610c99565b6103aa6104623660046128b7565b610f05565b600b546103db906001600160a01b031681565b61033761135e565b610337610490366004612839565b600f6020526000908152604090205481565b61033760075481565b61033760085481565b61033761019081565b6103377f000000000000000000000000000000000000000000000000000000000000000081565b6103376104f2366004612839565b6001600160a01b031660009081526020819052604090205490565b7f00000000000000000000000000000000000000000000000000000000000000006103db565b61033760065481565b610337601981565b61033761137c565b6103196113b9565b7f0000000000000000000000000000000000000000000000000000000000000000610337565b610337610588366004612839565b6001600160a01b03166000908152600f602052604090205490565b6103376113c8565b6103aa6105b936600461289e565b61140d565b6103aa6105cc366004612839565b61150e565b610337600e5481565b6103586105e836600461280d565b6115a0565b6103586105fb366004612839565b600c6020526000908152604090205460ff1681565b61035861061e36600461280d565b61161b565b6103377f000000000000000000000000000000000000000000000000000000000000000081565b6103377f000000000000000000000000000000000000000000000000000000000000000081565b6103db7f000000000000000000000000000000000000000000000000000000000000000081565b600a546103db906001600160a01b031681565b6103376106b9366004612839565b611629565b6103aa6106cc3660046128b7565b6116ca565b6103aa6106df366004612839565b6118f9565b61033760095481565b6103376106fb366004612839565b600d6020526000908152604090205481565b6103aa61071b366004612912565b611977565b61033761072e3660046129e9565b611a79565b6103aa611aa4565b610337611e90565b60606003805461075290612a22565b80601f016020809104026020016040519081016040528092919081815260200182805461077e90612a22565b80156107cb5780601f106107a0576101008083540402835291602001916107cb565b820191906000526020600020905b8154815290600101906020018083116107ae57829003601f168201915b5050505050905090565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a08231906024015b602060405180830381865afa15801561083d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108619190612a5c565b905090565b600033610874818585611eb6565b5060019392505050565b600a546040516370a0823160e01b81526001600160a01b03838116600483015260009283929116906370a0823190602401602060405180830381865afa1580156108cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f09190612a5c565b9050806000036109035750600092915050565b60007f00000000000000000000000000000000000000000000000000000000000000008261093060025490565b61093a9190612a8b565b600254610967907f0000000000000000000000000000000000000000000000000000000000000000612aa2565b6109719190612ac1565b61097b9190612a8b565b6001600160a01b0385166000908152600f6020526040812054919250906109a29083612a8b565b95945050505050565b6109b3611fda565b336000818152600f60205260408120805490829055600e8054919283926109db908490612a8b565b90915550610a1690506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016833084612033565b816001600160a01b03167f5c16de4f8b59bd9caf0f49a545f25819a895ed223294290b408242e72a59423182604051610a5191815260200190565b60405180910390a25050610a656001600555565b565b600033610a758582856120a4565b610a80858585612118565b506001949350505050565b610a93611fda565b600a546040516370a0823160e01b81523360048201819052916000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b059190612a5c565b905060007f000000000000000000000000000000000000000000000000000000000000000082610b3460025490565b610b3e9190612a8b565b600254610b6b907f0000000000000000000000000000000000000000000000000000000000000000612aa2565b610b759190612ac1565b610b7f9190612a8b565b6001600160a01b0384166000908152600f602052604081205491925090610ba69083612a8b565b6001600160a01b0385166000908152600f6020526040812080549293508392909190610bd3908490612ae3565b9250508190555080600e6000828254610bec9190612ae3565b90915550610c2690506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001685836122bc565b836001600160a01b03167fcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a3675082604051610c6191815260200190565b60405180910390a250505050610a656001600555565b600033610874818585610c8a8383611a79565b610c949190612ae3565b611eb6565b610ca1611fda565b60008111610cde5760405162461bcd60e51b8152602060048201526005602482015264215a65726f60d81b60448201526064015b60405180910390fd5b600a546040516370a0823160e01b81523360048201819052916000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610d2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d509190612a5c565b905060007f000000000000000000000000000000000000000000000000000000000000000082610d7f60025490565b610d899190612a8b565b600254610db6907f0000000000000000000000000000000000000000000000000000000000000000612aa2565b610dc09190612ac1565b610dca9190612a8b565b6001600160a01b0384166000908152600f602052604081205491925090610df19083612a8b565b905084811015610e365760405162461bcd60e51b815260206004820152601060248201526f426f72726f7720556e646572666c6f7760801b6044820152606401610cd5565b6001600160a01b0384166000908152600f602052604081208054879290610e5e908490612ae3565b9250508190555084600e6000828254610e779190612ae3565b90915550610eb190506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001685876122bc565b836001600160a01b03167fcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a3675086604051610eec91815260200190565b60405180910390a250505050610f026001600555565b50565b610f0d611fda565b42610f587f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612ae3565b111580610f745750336000908152600c602052604090205460ff165b610fb05760405162461bcd60e51b815260206004820152600d60248201526c13585c9ad95d0810db1bdcd959609a1b6044820152606401610cd5565b801580610fbc57504281115b610ff25760405162461bcd60e51b8152602060048201526007602482015266115e1c1a5c995960ca1b6044820152606401610cd5565b6000831161103a5760405162461bcd60e51b8152602060048201526015602482015274416d6f756e742063616e6e6f74206265207a65726f60581b6044820152606401610cd5565b336110436122ec565b60006103e8611053601987612aa2565b61105d9190612ac1565b905080600860008282546110719190612ae3565b90915550506006546000906110a6907f0000000000000000000000000000000000000000000000000000000000000000612ae3565b90506000826110b58884612ae3565b6110bf9190612a8b565b6007549091506000826110d28386612aa2565b6110dc9190612ac1565b905060006110ea8284612a8b565b905088811161112b5760405162461bcd60e51b815260206004820152600d60248201526c2632b9b9903a3430b71026b4b760991b6044820152606401610cd5565b426111767f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612ae3565b1061129357678ac7230489e8000081111580156111b357506001600160a01b0387166000908152600d6020526040902054678ac7230489e8000010155b6111f65760405162461bcd60e51b815260206004820152601460248201527313dd995c88185b1b1bdddb1a5cdd081b1a5b5a5d60621b6044820152606401610cd5565b6001600160a01b0387166000908152600d60205260408120805483929061121e908490612ae3565b90915550506001600160a01b0387166000908152600d6020526040902054678ac7230489e8000010156112935760405162461bcd60e51b815260206004820152601960248201527f416c6c6f776c69737420616d6f756e74206f766572666c6f77000000000000006044820152606401610cd5565b6112bd7f000000000000000000000000000000000000000000000000000000000000000085612a8b565b60065560078290556112fa6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001688308d612033565b6113053088836122bc565b866001600160a01b03167fe3d4187f6ca4248660cc0ac8b8056515bac4a8132be2eca31d6d0cc170722a7e8b60405161134091815260200190565b60405180910390a2505050505050506113596001600555565b505050565b6000612710600854600a6113729190612aa2565b6108619190612ac1565b600061138760025490565b6113727f0000000000000000000000000000000000000000000000000000000000000000670de0b6b3a7640000612aa2565b60606004805461075290612a22565b60006007546006547f00000000000000000000000000000000000000000000000000000000000000006113fb9190612ae3565b61137290670de0b6b3a7640000612aa2565b611415611fda565b6000811161144d5760405162461bcd60e51b8152602060048201526005602482015264215a65726f60d81b6044820152606401610cd5565b336000818152600f60205260408120805484929061146c908490612a8b565b9250508190555081600e60008282546114859190612a8b565b909155506114c090506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016823085612033565b806001600160a01b03167f5c16de4f8b59bd9caf0f49a545f25819a895ed223294290b408242e72a594231836040516114fb91815260200190565b60405180910390a250610f026001600555565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146115565760405162461bcd60e51b8152600401610cd590612afb565b600a80546001600160a01b0319166001600160a01b0383169081179091556040517f72b559e9277e4b56dea025a26f511fbe91c1b8315429aefd0cd88ba0be4bc90990600090a250565b600033816115ae8286611a79565b90508381101561160e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610cd5565b610a808286868403611eb6565b600033610874818585612118565b6001600160a01b0381166000908152600f60205260408120548082036116525750600092915050565b600061167e7f000000000000000000000000000000000000000000000000000000000000000083612ae3565b6002546116ab907f0000000000000000000000000000000000000000000000000000000000000000612aa2565b6116b59190612ac1565b6002546116c29190612a8b565b949350505050565b6116d2611fda565b8015806116de57504281115b6117145760405162461bcd60e51b8152602060048201526007602482015266115e1c1a5c995960ca1b6044820152606401610cd5565b6000831161175c5760405162461bcd60e51b8152602060048201526015602482015274416d6f756e742063616e6e6f74206265207a65726f60581b6044820152606401610cd5565b336117656122ec565b60006103e8611775601987612aa2565b61177f9190612ac1565b905080600960008282546117939190612ae3565b90915550506007546000826117a88884612ae3565b6117b29190612a8b565b905060006006547f00000000000000000000000000000000000000000000000000000000000000006117e49190612ae3565b90506000826117f38584612aa2565b6117fd9190612ac1565b9050600061180b8284612a8b565b905088811161184c5760405162461bcd60e51b815260206004820152600d60248201526c2632b9b9903a3430b71026b4b760991b6044820152606401610cd5565b6118767f000000000000000000000000000000000000000000000000000000000000000083612a8b565b600655600784905561188a3088818d612033565b6118be6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001688836122bc565b866001600160a01b03167f5e5e995ce3133561afceaa51a9a154d5db228cd7525d34df5185582c18d3df098b60405161134091815260200190565b600b546001600160a01b031633146119235760405162461bcd60e51b8152600401610cd590612afb565b600b80546001600160a01b0319166001600160a01b0383169081179091556040519081527fe850629c16d7958ddc02de8972e4be307d7597f28d755b2ab53114cdeafd12e59060200160405180910390a150565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119b85750600b546001600160a01b031633145b6119d45760405162461bcd60e51b8152600401610cd590612afb565b60005b8251811015611a3b5781600c60008584815181106119f7576119f7612b1a565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611a3381612b30565b9150506119d7565b507f0973906643ab204d2d1b7e392e5ebca5f83ab9f219060ea53ac24e37e297ff6d8282604051611a6d929190612b49565b60405180910390a15050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6009546008546000612710611aba83600a612aa2565b611ac49190612ac1565b9050611ad08183612a8b565b91506000600881905550600060098190555060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633b19e84a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b669190612b9d565b600a54909150611b829030906001600160a01b0316600061247f565b600a54611bb3906001600160a01b03166103e8611ba161019088612aa2565b611bab9190612ac1565b30919061247f565b600a546001600160a01b031663b66503cf306103e8611bd461019089612aa2565b611bde9190612ac1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611c2457600080fd5b505af1158015611c38573d6000803e3d6000fd5b5050600b54611c6e92506001600160a01b031690506103e8611c5c61019088612aa2565b611c669190612ac1565b3091906122bc565b611c80816103e8611c5c60c888612aa2565b600a54611cbb906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116600061247f565b600a54611d15906001600160a01b03166103e8611cda61019087612aa2565b611ce49190612ac1565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016919061247f565b600a546001600160a01b031663b66503cf7f00000000000000000000000000000000000000000000000000000000000000006103e8611d5661019088612aa2565b611d609190612ac1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611da657600080fd5b505af1158015611dba573d6000803e3d6000fd5b5050600b54611e1992506001600160a01b031690506103e8611dde61019087612aa2565b611de89190612ac1565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691906122bc565b611e2b816103e8611dde60c887612aa2565b611e5f6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633846122bc565b60405133907f7460d2216ad827491779b20c9921030f955ee2e6f588f0b64b75c4cd031096bf90600090a250505050565b6040516370a0823160e01b815230600482018190526000916370a0823190602401610820565b6001600160a01b038316611f185760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610cd5565b6001600160a01b038216611f795760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610cd5565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60026005540361202c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cd5565b6002600555565b6040516001600160a01b038085166024830152831660448201526064810182905261209e9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612594565b50505050565b60006120b08484611a79565b9050600019811461209e578181101561210b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610cd5565b61209e8484848403611eb6565b6001600160a01b03831661217c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610cd5565b6001600160a01b0382166121de5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610cd5565b6001600160a01b038316600090815260208190526040902054818110156122565760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610cd5565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361209e565b6040516001600160a01b03831660248201526044810182905261135990849063a9059cbb60e01b90606401612067565b600e546040516370a0823160e01b8152306004820152600091906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015612357573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237b9190612a5c565b6123859190612ae3565b90506008546006546123979190612ae3565b8111156123cf576008546006546123ae9083612a8b565b6123b89190612a8b565b600860008282546123c99190612ae3565b90915550505b6040516370a0823160e01b815230600482018190526000916370a0823190602401602060405180830381865afa15801561240d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124319190612a5c565b90506009546007546124439190612ae3565b81111561247b5760095460075461245a9083612a8b565b6124649190612a8b565b600960008282546124759190612ae3565b90915550505b5050565b8015806124f95750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa1580156124d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f79190612a5c565b155b6125645760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610cd5565b6040516001600160a01b03831660248201526044810182905261135990849063095ea7b360e01b90606401612067565b60006125e9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126669092919063ffffffff16565b80519091501561135957808060200190518101906126079190612bba565b6113595760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610cd5565b60606116c2848460008585600080866001600160a01b0316858760405161268d9190612bd7565b60006040518083038185875af1925050503d80600081146126ca576040519150601f19603f3d011682016040523d82523d6000602084013e6126cf565b606091505b50915091506126e0878383876126eb565b979650505050505050565b6060831561275a578251600003612753576001600160a01b0385163b6127535760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610cd5565b50816116c2565b6116c2838381511561276f5781518083602001fd5b8060405162461bcd60e51b8152600401610cd591906127b5565b60005b838110156127a457818101518382015260200161278c565b8381111561209e5750506000910152565b60208152600082518060208401526127d4816040850160208701612789565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610f0257600080fd5b8035612808816127e8565b919050565b6000806040838503121561282057600080fd5b823561282b816127e8565b946020939093013593505050565b60006020828403121561284b57600080fd5b8135612856816127e8565b9392505050565b60008060006060848603121561287257600080fd5b833561287d816127e8565b9250602084013561288d816127e8565b929592945050506040919091013590565b6000602082840312156128b057600080fd5b5035919050565b6000806000606084860312156128cc57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052604160045260246000fd5b8015158114610f0257600080fd5b8035612808816128f9565b6000806040838503121561292557600080fd5b823567ffffffffffffffff8082111561293d57600080fd5b818501915085601f83011261295157600080fd5b8135602082821115612965576129656128e3565b8160051b604051601f19603f8301168101818110868211171561298a5761298a6128e3565b6040529283528183019350848101820192898411156129a857600080fd5b948201945b838610156129cd576129be866127fd565b855294820194938201936129ad565b96506129dc9050878201612907565b9450505050509250929050565b600080604083850312156129fc57600080fd5b8235612a07816127e8565b91506020830135612a17816127e8565b809150509250929050565b600181811c90821680612a3657607f821691505b602082108103612a5657634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612a6e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015612a9d57612a9d612a75565b500390565b6000816000190483118215151615612abc57612abc612a75565b500290565b600082612ade57634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115612af657612af6612a75565b500190565b60208082526005908201526404282aaa8960db1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201612b4257612b42612a75565b5060010190565b604080825283519082018190526000906020906060840190828701845b82811015612b8b5781516001600160a01b031684529284019290840190600101612b66565b50505093151592019190915250919050565b600060208284031215612baf57600080fd5b8151612856816127e8565b600060208284031215612bcc57600080fd5b8151612856816128f9565b60008251612be9818460208701612789565b919091019291505056fea26469706673582212200595560ccf938489006abf4e133d50286e764e641ec17447a6c6793ccc97a61564736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab100000000000000000000000000000000000000000000000238fd42c5cf04000000000000000000000000000000000000000000000000022ba753352c29e80000000000000000000000000000171259228e202f2514ee2209d2062ac95411f6fb000000000000000000000000f5cfbaf55036264b902d9ae55a114d9a22c42750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094c6971756943617473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044d454f5700000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061030c5760003560e01c806391b9b8271161019d578063bbb42e5a116100e9578063d4c97533116100a2578063d9b3e7dd1161007c578063d9b3e7dd1461070d578063dd62ed3e14610720578063e44f921614610733578063f97f0f721461073b57600080fd5b8063d4c97533146106d1578063d6157796146106e4578063d8797262146106ed57600080fd5b8063bbb42e5a14610623578063be9a65551461064a578063c45a015514610671578063c4f9549214610698578063ce98fd67146106ab578063d3c9727c146106be57600080fd5b80639d23814811610156578063a457c2d711610130578063a457c2d7146105da578063a7cd52cb146105ed578063a9059cbb14610610578063acf4094a146104b457600080fd5b80639d238148146105ab5780639d352a2c146105be578063a381cea2146105d157600080fd5b806391b9b8271461053c5780639363c8121461054457806395d89b411461054c57806397d63f93146105545780639b6c56ec1461057a5780639d1b464a146105a357600080fd5b8063395093511161025c57806356262687116102155780636a42b8f8116101ef5780636a42b8f8146104bd57806370a08231146104e457806388cc58e41461050d5780638d4a99891461053357600080fd5b806356262687146104a25780635ea68a14146104ab57806368fe61ac146104b457600080fd5b8063395093511461042e5780633e9943f51461044157806340993b261461045457806343bc1612146104675780634d36fa331461047a578063539fb54d1461048257600080fd5b806318160ddd116102c957806326faf313116102a357806326faf313146104065780632d2c55651461040e578063313ce567146104165780633410fe6e1461042557600080fd5b806318160ddd146103ac578063210663e4146103b457806323b872dd146103f357600080fd5b806306fdde031461031157806308ef2b4c1461032f578063095ea7b3146103455780630a4d82ff146103685780630eebdf4f1461038f5780631630185d146103a2575b600080fd5b610319610743565b60405161032691906127b5565b60405180910390f35b6103376107d5565b604051908152602001610326565b61035861035336600461280d565b610866565b6040519015158152602001610326565b6103377f00000000000000000000000000000000000000000000000238fd42c5cf04000081565b61033761039d366004612839565b61087e565b6103aa6109ab565b005b600254610337565b6103db7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab181565b6040516001600160a01b039091168152602001610326565b61035861040136600461285d565b610a67565b6103aa610a8b565b61033760c881565b60405160128152602001610326565b6103376103e881565b61035861043c36600461280d565b610c77565b6103aa61044f36600461289e565b610c99565b6103aa6104623660046128b7565b610f05565b600b546103db906001600160a01b031681565b61033761135e565b610337610490366004612839565b600f6020526000908152604090205481565b61033760075481565b61033760085481565b61033761019081565b6103377f000000000000000000000000000000000000000000000000000000000000000081565b6103376104f2366004612839565b6001600160a01b031660009081526020819052604090205490565b7f000000000000000000000000f5cfbaf55036264b902d9ae55a114d9a22c427506103db565b61033760065481565b610337601981565b61033761137c565b6103196113b9565b7f00000000000000000000000000000000000000000000022ba753352c29e80000610337565b610337610588366004612839565b6001600160a01b03166000908152600f602052604090205490565b6103376113c8565b6103aa6105b936600461289e565b61140d565b6103aa6105cc366004612839565b61150e565b610337600e5481565b6103586105e836600461280d565b6115a0565b6103586105fb366004612839565b600c6020526000908152604090205460ff1681565b61035861061e36600461280d565b61161b565b6103377f00000000000000000000000000000000000000000000022ba753352c29e8000081565b6103377f0000000000000000000000000000000000000000000000000000000063bcc09f81565b6103db7f000000000000000000000000f5cfbaf55036264b902d9ae55a114d9a22c4275081565b600a546103db906001600160a01b031681565b6103376106b9366004612839565b611629565b6103aa6106cc3660046128b7565b6116ca565b6103aa6106df366004612839565b6118f9565b61033760095481565b6103376106fb366004612839565b600d6020526000908152604090205481565b6103aa61071b366004612912565b611977565b61033761072e3660046129e9565b611a79565b6103aa611aa4565b610337611e90565b60606003805461075290612a22565b80601f016020809104026020016040519081016040528092919081815260200182805461077e90612a22565b80156107cb5780601f106107a0576101008083540402835291602001916107cb565b820191906000526020600020905b8154815290600101906020018083116107ae57829003601f168201915b5050505050905090565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab16001600160a01b0316906370a08231906024015b602060405180830381865afa15801561083d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108619190612a5c565b905090565b600033610874818585611eb6565b5060019392505050565b600a546040516370a0823160e01b81526001600160a01b03838116600483015260009283929116906370a0823190602401602060405180830381865afa1580156108cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f09190612a5c565b9050806000036109035750600092915050565b60007f00000000000000000000000000000000000000000000000238fd42c5cf0400008261093060025490565b61093a9190612a8b565b600254610967907f00000000000000000000000000000000000000000000000238fd42c5cf040000612aa2565b6109719190612ac1565b61097b9190612a8b565b6001600160a01b0385166000908152600f6020526040812054919250906109a29083612a8b565b95945050505050565b6109b3611fda565b336000818152600f60205260408120805490829055600e8054919283926109db908490612a8b565b90915550610a1690506001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab116833084612033565b816001600160a01b03167f5c16de4f8b59bd9caf0f49a545f25819a895ed223294290b408242e72a59423182604051610a5191815260200190565b60405180910390a25050610a656001600555565b565b600033610a758582856120a4565b610a80858585612118565b506001949350505050565b610a93611fda565b600a546040516370a0823160e01b81523360048201819052916000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b059190612a5c565b905060007f00000000000000000000000000000000000000000000000238fd42c5cf04000082610b3460025490565b610b3e9190612a8b565b600254610b6b907f00000000000000000000000000000000000000000000000238fd42c5cf040000612aa2565b610b759190612ac1565b610b7f9190612a8b565b6001600160a01b0384166000908152600f602052604081205491925090610ba69083612a8b565b6001600160a01b0385166000908152600f6020526040812080549293508392909190610bd3908490612ae3565b9250508190555080600e6000828254610bec9190612ae3565b90915550610c2690506001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab11685836122bc565b836001600160a01b03167fcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a3675082604051610c6191815260200190565b60405180910390a250505050610a656001600555565b600033610874818585610c8a8383611a79565b610c949190612ae3565b611eb6565b610ca1611fda565b60008111610cde5760405162461bcd60e51b8152602060048201526005602482015264215a65726f60d81b60448201526064015b60405180910390fd5b600a546040516370a0823160e01b81523360048201819052916000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610d2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d509190612a5c565b905060007f00000000000000000000000000000000000000000000000238fd42c5cf04000082610d7f60025490565b610d899190612a8b565b600254610db6907f00000000000000000000000000000000000000000000000238fd42c5cf040000612aa2565b610dc09190612ac1565b610dca9190612a8b565b6001600160a01b0384166000908152600f602052604081205491925090610df19083612a8b565b905084811015610e365760405162461bcd60e51b815260206004820152601060248201526f426f72726f7720556e646572666c6f7760801b6044820152606401610cd5565b6001600160a01b0384166000908152600f602052604081208054879290610e5e908490612ae3565b9250508190555084600e6000828254610e779190612ae3565b90915550610eb190506001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab11685876122bc565b836001600160a01b03167fcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a3675086604051610eec91815260200190565b60405180910390a250505050610f026001600555565b50565b610f0d611fda565b42610f587f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000063bcc09f612ae3565b111580610f745750336000908152600c602052604090205460ff165b610fb05760405162461bcd60e51b815260206004820152600d60248201526c13585c9ad95d0810db1bdcd959609a1b6044820152606401610cd5565b801580610fbc57504281115b610ff25760405162461bcd60e51b8152602060048201526007602482015266115e1c1a5c995960ca1b6044820152606401610cd5565b6000831161103a5760405162461bcd60e51b8152602060048201526015602482015274416d6f756e742063616e6e6f74206265207a65726f60581b6044820152606401610cd5565b336110436122ec565b60006103e8611053601987612aa2565b61105d9190612ac1565b905080600860008282546110719190612ae3565b90915550506006546000906110a6907f00000000000000000000000000000000000000000000000238fd42c5cf040000612ae3565b90506000826110b58884612ae3565b6110bf9190612a8b565b6007549091506000826110d28386612aa2565b6110dc9190612ac1565b905060006110ea8284612a8b565b905088811161112b5760405162461bcd60e51b815260206004820152600d60248201526c2632b9b9903a3430b71026b4b760991b6044820152606401610cd5565b426111767f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000063bcc09f612ae3565b1061129357678ac7230489e8000081111580156111b357506001600160a01b0387166000908152600d6020526040902054678ac7230489e8000010155b6111f65760405162461bcd60e51b815260206004820152601460248201527313dd995c88185b1b1bdddb1a5cdd081b1a5b5a5d60621b6044820152606401610cd5565b6001600160a01b0387166000908152600d60205260408120805483929061121e908490612ae3565b90915550506001600160a01b0387166000908152600d6020526040902054678ac7230489e8000010156112935760405162461bcd60e51b815260206004820152601960248201527f416c6c6f776c69737420616d6f756e74206f766572666c6f77000000000000006044820152606401610cd5565b6112bd7f00000000000000000000000000000000000000000000000238fd42c5cf04000085612a8b565b60065560078290556112fa6001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab11688308d612033565b6113053088836122bc565b866001600160a01b03167fe3d4187f6ca4248660cc0ac8b8056515bac4a8132be2eca31d6d0cc170722a7e8b60405161134091815260200190565b60405180910390a2505050505050506113596001600555565b505050565b6000612710600854600a6113729190612aa2565b6108619190612ac1565b600061138760025490565b6113727f00000000000000000000000000000000000000000000000238fd42c5cf040000670de0b6b3a7640000612aa2565b60606004805461075290612a22565b60006007546006547f00000000000000000000000000000000000000000000000238fd42c5cf0400006113fb9190612ae3565b61137290670de0b6b3a7640000612aa2565b611415611fda565b6000811161144d5760405162461bcd60e51b8152602060048201526005602482015264215a65726f60d81b6044820152606401610cd5565b336000818152600f60205260408120805484929061146c908490612a8b565b9250508190555081600e60008282546114859190612a8b565b909155506114c090506001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab116823085612033565b806001600160a01b03167f5c16de4f8b59bd9caf0f49a545f25819a895ed223294290b408242e72a594231836040516114fb91815260200190565b60405180910390a250610f026001600555565b336001600160a01b037f000000000000000000000000f5cfbaf55036264b902d9ae55a114d9a22c4275016146115565760405162461bcd60e51b8152600401610cd590612afb565b600a80546001600160a01b0319166001600160a01b0383169081179091556040517f72b559e9277e4b56dea025a26f511fbe91c1b8315429aefd0cd88ba0be4bc90990600090a250565b600033816115ae8286611a79565b90508381101561160e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610cd5565b610a808286868403611eb6565b600033610874818585612118565b6001600160a01b0381166000908152600f60205260408120548082036116525750600092915050565b600061167e7f00000000000000000000000000000000000000000000000238fd42c5cf04000083612ae3565b6002546116ab907f00000000000000000000000000000000000000000000000238fd42c5cf040000612aa2565b6116b59190612ac1565b6002546116c29190612a8b565b949350505050565b6116d2611fda565b8015806116de57504281115b6117145760405162461bcd60e51b8152602060048201526007602482015266115e1c1a5c995960ca1b6044820152606401610cd5565b6000831161175c5760405162461bcd60e51b8152602060048201526015602482015274416d6f756e742063616e6e6f74206265207a65726f60581b6044820152606401610cd5565b336117656122ec565b60006103e8611775601987612aa2565b61177f9190612ac1565b905080600960008282546117939190612ae3565b90915550506007546000826117a88884612ae3565b6117b29190612a8b565b905060006006547f00000000000000000000000000000000000000000000000238fd42c5cf0400006117e49190612ae3565b90506000826117f38584612aa2565b6117fd9190612ac1565b9050600061180b8284612a8b565b905088811161184c5760405162461bcd60e51b815260206004820152600d60248201526c2632b9b9903a3430b71026b4b760991b6044820152606401610cd5565b6118767f00000000000000000000000000000000000000000000000238fd42c5cf04000083612a8b565b600655600784905561188a3088818d612033565b6118be6001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab11688836122bc565b866001600160a01b03167f5e5e995ce3133561afceaa51a9a154d5db228cd7525d34df5185582c18d3df098b60405161134091815260200190565b600b546001600160a01b031633146119235760405162461bcd60e51b8152600401610cd590612afb565b600b80546001600160a01b0319166001600160a01b0383169081179091556040519081527fe850629c16d7958ddc02de8972e4be307d7597f28d755b2ab53114cdeafd12e59060200160405180910390a150565b336001600160a01b037f000000000000000000000000f5cfbaf55036264b902d9ae55a114d9a22c427501614806119b85750600b546001600160a01b031633145b6119d45760405162461bcd60e51b8152600401610cd590612afb565b60005b8251811015611a3b5781600c60008584815181106119f7576119f7612b1a565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611a3381612b30565b9150506119d7565b507f0973906643ab204d2d1b7e392e5ebca5f83ab9f219060ea53ac24e37e297ff6d8282604051611a6d929190612b49565b60405180910390a15050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6009546008546000612710611aba83600a612aa2565b611ac49190612ac1565b9050611ad08183612a8b565b91506000600881905550600060098190555060007f000000000000000000000000f5cfbaf55036264b902d9ae55a114d9a22c427506001600160a01b0316633b19e84a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b669190612b9d565b600a54909150611b829030906001600160a01b0316600061247f565b600a54611bb3906001600160a01b03166103e8611ba161019088612aa2565b611bab9190612ac1565b30919061247f565b600a546001600160a01b031663b66503cf306103e8611bd461019089612aa2565b611bde9190612ac1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611c2457600080fd5b505af1158015611c38573d6000803e3d6000fd5b5050600b54611c6e92506001600160a01b031690506103e8611c5c61019088612aa2565b611c669190612ac1565b3091906122bc565b611c80816103e8611c5c60c888612aa2565b600a54611cbb906001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab181169116600061247f565b600a54611d15906001600160a01b03166103e8611cda61019087612aa2565b611ce49190612ac1565b6001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab116919061247f565b600a546001600160a01b031663b66503cf7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab16103e8611d5661019088612aa2565b611d609190612ac1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611da657600080fd5b505af1158015611dba573d6000803e3d6000fd5b5050600b54611e1992506001600160a01b031690506103e8611dde61019087612aa2565b611de89190612ac1565b6001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab11691906122bc565b611e2b816103e8611dde60c887612aa2565b611e5f6001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab11633846122bc565b60405133907f7460d2216ad827491779b20c9921030f955ee2e6f588f0b64b75c4cd031096bf90600090a250505050565b6040516370a0823160e01b815230600482018190526000916370a0823190602401610820565b6001600160a01b038316611f185760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610cd5565b6001600160a01b038216611f795760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610cd5565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60026005540361202c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cd5565b6002600555565b6040516001600160a01b038085166024830152831660448201526064810182905261209e9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612594565b50505050565b60006120b08484611a79565b9050600019811461209e578181101561210b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610cd5565b61209e8484848403611eb6565b6001600160a01b03831661217c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610cd5565b6001600160a01b0382166121de5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610cd5565b6001600160a01b038316600090815260208190526040902054818110156122565760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610cd5565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361209e565b6040516001600160a01b03831660248201526044810182905261135990849063a9059cbb60e01b90606401612067565b600e546040516370a0823160e01b8152306004820152600091906001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab116906370a0823190602401602060405180830381865afa158015612357573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237b9190612a5c565b6123859190612ae3565b90506008546006546123979190612ae3565b8111156123cf576008546006546123ae9083612a8b565b6123b89190612a8b565b600860008282546123c99190612ae3565b90915550505b6040516370a0823160e01b815230600482018190526000916370a0823190602401602060405180830381865afa15801561240d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124319190612a5c565b90506009546007546124439190612ae3565b81111561247b5760095460075461245a9083612a8b565b6124649190612a8b565b600960008282546124759190612ae3565b90915550505b5050565b8015806124f95750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa1580156124d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f79190612a5c565b155b6125645760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610cd5565b6040516001600160a01b03831660248201526044810182905261135990849063095ea7b360e01b90606401612067565b60006125e9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126669092919063ffffffff16565b80519091501561135957808060200190518101906126079190612bba565b6113595760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610cd5565b60606116c2848460008585600080866001600160a01b0316858760405161268d9190612bd7565b60006040518083038185875af1925050503d80600081146126ca576040519150601f19603f3d011682016040523d82523d6000602084013e6126cf565b606091505b50915091506126e0878383876126eb565b979650505050505050565b6060831561275a578251600003612753576001600160a01b0385163b6127535760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610cd5565b50816116c2565b6116c2838381511561276f5781518083602001fd5b8060405162461bcd60e51b8152600401610cd591906127b5565b60005b838110156127a457818101518382015260200161278c565b8381111561209e5750506000910152565b60208152600082518060208401526127d4816040850160208701612789565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610f0257600080fd5b8035612808816127e8565b919050565b6000806040838503121561282057600080fd5b823561282b816127e8565b946020939093013593505050565b60006020828403121561284b57600080fd5b8135612856816127e8565b9392505050565b60008060006060848603121561287257600080fd5b833561287d816127e8565b9250602084013561288d816127e8565b929592945050506040919091013590565b6000602082840312156128b057600080fd5b5035919050565b6000806000606084860312156128cc57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052604160045260246000fd5b8015158114610f0257600080fd5b8035612808816128f9565b6000806040838503121561292557600080fd5b823567ffffffffffffffff8082111561293d57600080fd5b818501915085601f83011261295157600080fd5b8135602082821115612965576129656128e3565b8160051b604051601f19603f8301168101818110868211171561298a5761298a6128e3565b6040529283528183019350848101820192898411156129a857600080fd5b948201945b838610156129cd576129be866127fd565b855294820194938201936129ad565b96506129dc9050878201612907565b9450505050509250929050565b600080604083850312156129fc57600080fd5b8235612a07816127e8565b91506020830135612a17816127e8565b809150509250929050565b600181811c90821680612a3657607f821691505b602082108103612a5657634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612a6e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015612a9d57612a9d612a75565b500390565b6000816000190483118215151615612abc57612abc612a75565b500290565b600082612ade57634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115612af657612af6612a75565b500190565b60208082526005908201526404282aaa8960db1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201612b4257612b42612a75565b5060010190565b604080825283519082018190526000906020906060840190828701845b82811015612b8b5781516001600160a01b031684529284019290840190600101612b66565b50505093151592019190915250919050565b600060208284031215612baf57600080fd5b8151612856816127e8565b600060208284031215612bcc57600080fd5b8151612856816128f9565b60008251612be9818460208701612789565b919091019291505056fea26469706673582212200595560ccf938489006abf4e133d50286e764e641ec17447a6c6793ccc97a61564736f6c634300080d0033

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

0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab100000000000000000000000000000000000000000000000238fd42c5cf04000000000000000000000000000000000000000000000000022ba753352c29e80000000000000000000000000000171259228e202f2514ee2209d2062ac95411f6fb000000000000000000000000f5cfbaf55036264b902d9ae55a114d9a22c42750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094c6971756943617473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044d454f5700000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): LiquiCats
Arg [1] : _symbol (string): MEOW
Arg [2] : _baseToken (address): 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1
Arg [3] : _initialVirtualBASE (uint256): 41000000000000000000
Arg [4] : _supplyGBT (uint256): 10250000000000000000000
Arg [5] : _artist (address): 0x171259228E202f2514ee2209d2062ac95411f6fb
Arg [6] : _factory (address): 0xf5cfBaF55036264B902D9ae55A114d9A22c42750
Arg [7] : _delay (uint256): 0

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1
Arg [3] : 00000000000000000000000000000000000000000000000238fd42c5cf040000
Arg [4] : 00000000000000000000000000000000000000000000022ba753352c29e80000
Arg [5] : 000000000000000000000000171259228e202f2514ee2209d2062ac95411f6fb
Arg [6] : 000000000000000000000000f5cfbaf55036264b902d9ae55a114d9a22c42750
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [9] : 4c69717569436174730000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 4d454f5700000000000000000000000000000000000000000000000000000000


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.