ETH Price: $2,331.25 (+1.85%)

Token

NFT-Governance TRIP Token (TRIP)
 

Overview

Max Total Supply

1,284,677 TRIP

Holders

39

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
3,309.648239467599597216 TRIP

Value
$0.00
0x37779c37Eb0858726784c0Bae9bDeFcA980FB0E1
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
TRIP

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-02-05
*/

// File: @openzeppelin/contracts-ethereum-package/contracts/Initializable.sol

pragma solidity >=0.4.24 <0.7.0;


/**
 * @title Initializable
 *
 * @dev Helper contract to support initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 */
contract Initializable {

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

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

  /**
   * @dev Modifier to use in the initializer function of a contract.
   */
  modifier initializer() {
    require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized");

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

    _;

    if (isTopLevelCall) {
      initializing = false;
    }
  }

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

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

// File: @openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol

pragma solidity ^0.6.0;


/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract ContextUpgradeSafe is Initializable {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.

    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {


    }


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

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

    uint256[50] private __gap;
}

// File: @openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol

pragma solidity ^0.6.0;


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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */

    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {


        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);

    }


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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }

    uint256[49] private __gap;
}

// File: @openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

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

// File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts-ethereum-package/contracts/utils/Address.sol

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

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

// File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20.sol

pragma solidity ^0.6.0;






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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */

    function __ERC20_init(string memory name, string memory symbol) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name, symbol);
    }

    function __ERC20_init_unchained(string memory name, string memory symbol) internal initializer {


        _name = name;
        _symbol = symbol;
        _decimals = 18;

    }


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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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

    uint256[44] private __gap;
}

// File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20Burnable.sol

pragma solidity ^0.6.0;




/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20BurnableUpgradeSafe is Initializable, ContextUpgradeSafe, ERC20UpgradeSafe {
    function __ERC20Burnable_init() internal initializer {
        __Context_init_unchained();
        __ERC20Burnable_init_unchained();
    }

    function __ERC20Burnable_init_unchained() internal initializer {


    }

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }

    uint256[50] private __gap;
}

// File: contracts/TRIP.sol

pragma solidity 0.6.12;




contract TRIP is ERC20BurnableUpgradeSafe, OwnableUpgradeSafe {
    address public minter;

    constructor() public {
        __ERC20_init("NFT-Governance TRIP Token", "TRIP");
        OwnableUpgradeSafe.__Ownable_init();
    }

    function setMinter(address _minter) external onlyOwner {
        require(minter == address(0), "minter already set");
        minter = _minter;
    }

    function mint(address _to, uint256 _amount) external {
        require(msg.sender == minter, "only minter");
        _mint(_to, _amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50620000756040518060400160405280601981526020017f4e46542d476f7665726e616e6365205452495020546f6b656e00000000000000815250604051806040016040528060048152602001630545249560e41b8152506200009060201b60201c565b6200008a6200015260201b62000a671760201c565b62000545565b600054610100900460ff1680620000ac5750620000ac62000210565b80620000bb575060005460ff16155b620000f85760405162461bcd60e51b815260040180806020018281038252602e81526020018062001973602e913960400191505060405180910390fd5b600054610100900460ff1615801562000124576000805460ff1961ff0019909116610100171660011790555b6200012e62000216565b6200013a8383620002be565b80156200014d576000805461ff00191690555b505050565b600054610100900460ff16806200016e57506200016e62000210565b806200017d575060005460ff16155b620001ba5760405162461bcd60e51b815260040180806020018281038252602e81526020018062001973602e913960400191505060405180910390fd5b600054610100900460ff16158015620001e6576000805460ff1961ff0019909116610100171660011790555b620001f062000216565b620001fa620003a2565b80156200020d576000805461ff00191690555b50565b303b1590565b600054610100900460ff16806200023257506200023262000210565b8062000241575060005460ff16155b6200027e5760405162461bcd60e51b815260040180806020018281038252602e81526020018062001973602e913960400191505060405180910390fd5b600054610100900460ff16158015620001fa576000805460ff1961ff00199091166101001716600117905580156200020d576000805461ff001916905550565b600054610100900460ff1680620002da5750620002da62000210565b80620002e9575060005460ff16155b620003265760405162461bcd60e51b815260040180806020018281038252602e81526020018062001973602e913960400191505060405180910390fd5b600054610100900460ff1615801562000352576000805460ff1961ff0019909116610100171660011790555b825162000367906068906020860190620004a9565b5081516200037d906069906020850190620004a9565b50606a805460ff1916601217905580156200014d576000805461ff0019169055505050565b600054610100900460ff1680620003be5750620003be62000210565b80620003cd575060005460ff16155b6200040a5760405162461bcd60e51b815260040180806020018281038252602e81526020018062001973602e913960400191505060405180910390fd5b600054610100900460ff1615801562000436576000805460ff1961ff0019909116610100171660011790555b600062000442620004a5565b60c980546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156200020d576000805461ff001916905550565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004ec57805160ff19168380011785556200051c565b828001600101855582156200051c579182015b828111156200051c578251825591602001919060010190620004ff565b506200052a9291506200052e565b5090565b5b808211156200052a57600081556001016200052f565b61141e80620005556000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063a457c2d711610071578063a457c2d714610356578063a9059cbb14610382578063dd62ed3e146103ae578063f2fde38b146103dc578063fca3b5aa1461040257610121565b806370a08231146102ec578063715018a61461031257806379cc67901461031a5780638da5cb5b1461034657806395d89b411461034e57610121565b806323b872dd116100f457806323b872dd14610221578063313ce56714610257578063395093511461027557806340c10f19146102a157806342966c68146102cf57610121565b806306fdde031461012657806307546172146101a3578063095ea7b3146101c757806318160ddd14610207575b600080fd5b61012e610428565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610168578181015183820152602001610150565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ab6104be565b604080516001600160a01b039092168252519081900360200190f35b6101f3600480360360408110156101dd57600080fd5b506001600160a01b0381351690602001356104cd565b604080519115158252519081900360200190f35b61020f6104ea565b60408051918252519081900360200190f35b6101f36004803603606081101561023757600080fd5b506001600160a01b038135811691602081013590911690604001356104f0565b61025f610577565b6040805160ff9092168252519081900360200190f35b6101f36004803603604081101561028b57600080fd5b506001600160a01b038135169060200135610580565b6102cd600480360360408110156102b757600080fd5b506001600160a01b0381351690602001356105ce565b005b6102cd600480360360208110156102e557600080fd5b5035610629565b61020f6004803603602081101561030257600080fd5b50356001600160a01b031661063d565b6102cd610658565b6102cd6004803603604081101561033057600080fd5b506001600160a01b03813516906020013561070c565b6101ab610766565b61012e610775565b6101f36004803603604081101561036c57600080fd5b506001600160a01b0381351690602001356107d6565b6101f36004803603604081101561039857600080fd5b506001600160a01b03813516906020013561083e565b61020f600480360360408110156103c457600080fd5b506001600160a01b0381358116916020013516610852565b6102cd600480360360208110156103f257600080fd5b50356001600160a01b031661087d565b6102cd6004803603602081101561041857600080fd5b50356001600160a01b0316610988565b60688054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104b45780601f10610489576101008083540402835291602001916104b4565b820191906000526020600020905b81548152906001019060200180831161049757829003601f168201915b5050505050905090565b60fb546001600160a01b031681565b60006104e16104da610b18565b8484610b1c565b50600192915050565b60675490565b60006104fd848484610c08565b61056d84610509610b18565b610568856040518060600160405280602881526020016112e0602891396001600160a01b038a16600090815260666020526040812090610547610b18565b6001600160a01b031681526020810191909152604001600020549190610d65565b610b1c565b5060019392505050565b606a5460ff1690565b60006104e161058d610b18565b84610568856066600061059e610b18565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610dfc565b60fb546001600160a01b0316331461061b576040805162461bcd60e51b815260206004820152600b60248201526a37b7363c9036b4b73a32b960a91b604482015290519081900360640190fd5b6106258282610e5d565b5050565b61063a610634610b18565b82610f4f565b50565b6001600160a01b031660009081526065602052604090205490565b610660610b18565b60c9546001600160a01b039081169116146106c2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60c9546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360c980546001600160a01b0319169055565b6000610743826040518060600160405280602481526020016113366024913961073c86610737610b18565b610852565b9190610d65565b905061075783610751610b18565b83610b1c565b6107618383610f4f565b505050565b60c9546001600160a01b031690565b60698054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104b45780601f10610489576101008083540402835291602001916104b4565b60006104e16107e3610b18565b84610568856040518060600160405280602581526020016113c4602591396066600061080d610b18565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610d65565b60006104e161084b610b18565b8484610c08565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b610885610b18565b60c9546001600160a01b039081169116146108e7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661092c5760405162461bcd60e51b81526004018080602001828103825260268152602001806112726026913960400191505060405180910390fd5b60c9546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360c980546001600160a01b0319166001600160a01b0392909216919091179055565b610990610b18565b60c9546001600160a01b039081169116146109f2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60fb546001600160a01b031615610a45576040805162461bcd60e51b81526020600482015260126024820152711b5a5b9d195c88185b1c9958591e481cd95d60721b604482015290519081900360640190fd5b60fb80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1680610a805750610a8061104b565b80610a8e575060005460ff16155b610ac95760405162461bcd60e51b815260040180806020018281038252602e815260200180611308602e913960400191505060405180910390fd5b600054610100900460ff16158015610af4576000805460ff1961ff0019909116610100171660011790555b610afc611051565b610b046110f1565b801561063a576000805461ff001916905550565b3390565b6001600160a01b038316610b615760405162461bcd60e51b81526004018080602001828103825260248152602001806113a06024913960400191505060405180910390fd5b6001600160a01b038216610ba65760405162461bcd60e51b81526004018080602001828103825260228152602001806112986022913960400191505060405180910390fd5b6001600160a01b03808416600081815260666020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610c4d5760405162461bcd60e51b815260040180806020018281038252602581526020018061137b6025913960400191505060405180910390fd5b6001600160a01b038216610c925760405162461bcd60e51b815260040180806020018281038252602381526020018061122d6023913960400191505060405180910390fd5b610c9d838383610761565b610cda816040518060600160405280602681526020016112ba602691396001600160a01b0386166000908152606560205260409020549190610d65565b6001600160a01b038085166000908152606560205260408082209390935590841681522054610d099082610dfc565b6001600160a01b0380841660008181526065602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610df45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610db9578181015183820152602001610da1565b50505050905090810190601f168015610de65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610e56576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610eb8576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610ec460008383610761565b606754610ed19082610dfc565b6067556001600160a01b038216600090815260656020526040902054610ef79082610dfc565b6001600160a01b03831660008181526065602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610f945760405162461bcd60e51b815260040180806020018281038252602181526020018061135a6021913960400191505060405180910390fd5b610fa082600083610761565b610fdd81604051806060016040528060228152602001611250602291396001600160a01b0385166000908152606560205260409020549190610d65565b6001600160a01b03831660009081526065602052604090205560675461100390826111ea565b6067556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b303b1590565b600054610100900460ff168061106a575061106a61104b565b80611078575060005460ff16155b6110b35760405162461bcd60e51b815260040180806020018281038252602e815260200180611308602e913960400191505060405180910390fd5b600054610100900460ff16158015610b04576000805460ff1961ff001990911661010017166001179055801561063a576000805461ff001916905550565b600054610100900460ff168061110a575061110a61104b565b80611118575060005460ff16155b6111535760405162461bcd60e51b815260040180806020018281038252602e815260200180611308602e913960400191505060405180910390fd5b600054610100900460ff1615801561117e576000805460ff1961ff0019909116610100171660011790555b6000611188610b18565b60c980546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350801561063a576000805461ff001916905550565b6000610e5683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610d6556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220269bef1e0e75cf70582cd7cc3c0567047d73ab5e5d80de670c7761bb44881e1764736f6c634300060c0033436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063a457c2d711610071578063a457c2d714610356578063a9059cbb14610382578063dd62ed3e146103ae578063f2fde38b146103dc578063fca3b5aa1461040257610121565b806370a08231146102ec578063715018a61461031257806379cc67901461031a5780638da5cb5b1461034657806395d89b411461034e57610121565b806323b872dd116100f457806323b872dd14610221578063313ce56714610257578063395093511461027557806340c10f19146102a157806342966c68146102cf57610121565b806306fdde031461012657806307546172146101a3578063095ea7b3146101c757806318160ddd14610207575b600080fd5b61012e610428565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610168578181015183820152602001610150565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ab6104be565b604080516001600160a01b039092168252519081900360200190f35b6101f3600480360360408110156101dd57600080fd5b506001600160a01b0381351690602001356104cd565b604080519115158252519081900360200190f35b61020f6104ea565b60408051918252519081900360200190f35b6101f36004803603606081101561023757600080fd5b506001600160a01b038135811691602081013590911690604001356104f0565b61025f610577565b6040805160ff9092168252519081900360200190f35b6101f36004803603604081101561028b57600080fd5b506001600160a01b038135169060200135610580565b6102cd600480360360408110156102b757600080fd5b506001600160a01b0381351690602001356105ce565b005b6102cd600480360360208110156102e557600080fd5b5035610629565b61020f6004803603602081101561030257600080fd5b50356001600160a01b031661063d565b6102cd610658565b6102cd6004803603604081101561033057600080fd5b506001600160a01b03813516906020013561070c565b6101ab610766565b61012e610775565b6101f36004803603604081101561036c57600080fd5b506001600160a01b0381351690602001356107d6565b6101f36004803603604081101561039857600080fd5b506001600160a01b03813516906020013561083e565b61020f600480360360408110156103c457600080fd5b506001600160a01b0381358116916020013516610852565b6102cd600480360360208110156103f257600080fd5b50356001600160a01b031661087d565b6102cd6004803603602081101561041857600080fd5b50356001600160a01b0316610988565b60688054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104b45780601f10610489576101008083540402835291602001916104b4565b820191906000526020600020905b81548152906001019060200180831161049757829003601f168201915b5050505050905090565b60fb546001600160a01b031681565b60006104e16104da610b18565b8484610b1c565b50600192915050565b60675490565b60006104fd848484610c08565b61056d84610509610b18565b610568856040518060600160405280602881526020016112e0602891396001600160a01b038a16600090815260666020526040812090610547610b18565b6001600160a01b031681526020810191909152604001600020549190610d65565b610b1c565b5060019392505050565b606a5460ff1690565b60006104e161058d610b18565b84610568856066600061059e610b18565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610dfc565b60fb546001600160a01b0316331461061b576040805162461bcd60e51b815260206004820152600b60248201526a37b7363c9036b4b73a32b960a91b604482015290519081900360640190fd5b6106258282610e5d565b5050565b61063a610634610b18565b82610f4f565b50565b6001600160a01b031660009081526065602052604090205490565b610660610b18565b60c9546001600160a01b039081169116146106c2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60c9546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360c980546001600160a01b0319169055565b6000610743826040518060600160405280602481526020016113366024913961073c86610737610b18565b610852565b9190610d65565b905061075783610751610b18565b83610b1c565b6107618383610f4f565b505050565b60c9546001600160a01b031690565b60698054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104b45780601f10610489576101008083540402835291602001916104b4565b60006104e16107e3610b18565b84610568856040518060600160405280602581526020016113c4602591396066600061080d610b18565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610d65565b60006104e161084b610b18565b8484610c08565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b610885610b18565b60c9546001600160a01b039081169116146108e7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661092c5760405162461bcd60e51b81526004018080602001828103825260268152602001806112726026913960400191505060405180910390fd5b60c9546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360c980546001600160a01b0319166001600160a01b0392909216919091179055565b610990610b18565b60c9546001600160a01b039081169116146109f2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60fb546001600160a01b031615610a45576040805162461bcd60e51b81526020600482015260126024820152711b5a5b9d195c88185b1c9958591e481cd95d60721b604482015290519081900360640190fd5b60fb80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1680610a805750610a8061104b565b80610a8e575060005460ff16155b610ac95760405162461bcd60e51b815260040180806020018281038252602e815260200180611308602e913960400191505060405180910390fd5b600054610100900460ff16158015610af4576000805460ff1961ff0019909116610100171660011790555b610afc611051565b610b046110f1565b801561063a576000805461ff001916905550565b3390565b6001600160a01b038316610b615760405162461bcd60e51b81526004018080602001828103825260248152602001806113a06024913960400191505060405180910390fd5b6001600160a01b038216610ba65760405162461bcd60e51b81526004018080602001828103825260228152602001806112986022913960400191505060405180910390fd5b6001600160a01b03808416600081815260666020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610c4d5760405162461bcd60e51b815260040180806020018281038252602581526020018061137b6025913960400191505060405180910390fd5b6001600160a01b038216610c925760405162461bcd60e51b815260040180806020018281038252602381526020018061122d6023913960400191505060405180910390fd5b610c9d838383610761565b610cda816040518060600160405280602681526020016112ba602691396001600160a01b0386166000908152606560205260409020549190610d65565b6001600160a01b038085166000908152606560205260408082209390935590841681522054610d099082610dfc565b6001600160a01b0380841660008181526065602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610df45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610db9578181015183820152602001610da1565b50505050905090810190601f168015610de65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610e56576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610eb8576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610ec460008383610761565b606754610ed19082610dfc565b6067556001600160a01b038216600090815260656020526040902054610ef79082610dfc565b6001600160a01b03831660008181526065602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610f945760405162461bcd60e51b815260040180806020018281038252602181526020018061135a6021913960400191505060405180910390fd5b610fa082600083610761565b610fdd81604051806060016040528060228152602001611250602291396001600160a01b0385166000908152606560205260409020549190610d65565b6001600160a01b03831660009081526065602052604090205560675461100390826111ea565b6067556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b303b1590565b600054610100900460ff168061106a575061106a61104b565b80611078575060005460ff16155b6110b35760405162461bcd60e51b815260040180806020018281038252602e815260200180611308602e913960400191505060405180910390fd5b600054610100900460ff16158015610b04576000805460ff1961ff001990911661010017166001179055801561063a576000805461ff001916905550565b600054610100900460ff168061110a575061110a61104b565b80611118575060005460ff16155b6111535760405162461bcd60e51b815260040180806020018281038252602e815260200180611308602e913960400191505060405180910390fd5b600054610100900460ff1615801561117e576000805460ff1961ff0019909116610100171660011790555b6000611188610b18565b60c980546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350801561063a576000805461ff001916905550565b6000610e5683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610d6556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220269bef1e0e75cf70582cd7cc3c0567047d73ab5e5d80de670c7761bb44881e1764736f6c634300060c0033

Deployed Bytecode Sourcemap

30025:551:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19579:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30094:21;;;:::i;:::-;;;;-1:-1:-1;;;;;30094:21:0;;;;;;;;;;;;;;21685:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;21685:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;20654:100;;;:::i;:::-;;;;;;;;;;;;;;;;22328:321;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22328:321:0;;;;;;;;;;;;;;;;;:::i;20506:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23058:218;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;23058:218:0;;;;;;;;:::i;30427:146::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;30427:146:0;;;;;;;;:::i;:::-;;29215:91;;;;;;;;;;;;;;;;-1:-1:-1;29215:91:0;;:::i;20817:119::-;;;;;;;;;;;;;;;;-1:-1:-1;20817:119:0;-1:-1:-1;;;;;20817:119:0;;:::i;5533:148::-;;;:::i;29625:295::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29625:295:0;;;;;;;;:::i;4891:79::-;;;:::i;19781:87::-;;;:::i;23779:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;23779:269:0;;;;;;;;:::i;21149:175::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;21149:175:0;;;;;;;;:::i;21387:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;21387:151:0;;;;;;;;;;:::i;5836:244::-;;;;;;;;;;;;;;;;-1:-1:-1;5836:244:0;-1:-1:-1;;;;;5836:244:0;;:::i;30267:152::-;;;;;;;;;;;;;;;;-1:-1:-1;30267:152:0;-1:-1:-1;;;;;30267:152:0;;:::i;19579:83::-;19649:5;19642:12;;;;;;;;-1:-1:-1;;19642:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19616:13;;19642:12;;19649:5;;19642:12;;19649:5;19642:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19579:83;:::o;30094:21::-;;;-1:-1:-1;;;;;30094:21:0;;:::o;21685:169::-;21768:4;21785:39;21794:12;:10;:12::i;:::-;21808:7;21817:6;21785:8;:39::i;:::-;-1:-1:-1;21842:4:0;21685:169;;;;:::o;20654:100::-;20734:12;;20654:100;:::o;22328:321::-;22434:4;22451:36;22461:6;22469:9;22480:6;22451:9;:36::i;:::-;22498:121;22507:6;22515:12;:10;:12::i;:::-;22529:89;22567:6;22529:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22529:19:0;;;;;;:11;:19;;;;;;22549:12;:10;:12::i;:::-;-1:-1:-1;;;;;22529:33:0;;;;;;;;;;;;-1:-1:-1;22529:33:0;;;:89;:37;:89::i;:::-;22498:8;:121::i;:::-;-1:-1:-1;22637:4:0;22328:321;;;;;:::o;20506:83::-;20572:9;;;;20506:83;:::o;23058:218::-;23146:4;23163:83;23172:12;:10;:12::i;:::-;23186:7;23195:50;23234:10;23195:11;:25;23207:12;:10;:12::i;:::-;-1:-1:-1;;;;;23195:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;23195:25:0;;;:34;;;;;;;;;;;:38;:50::i;30427:146::-;30513:6;;-1:-1:-1;;;;;30513:6:0;30499:10;:20;30491:44;;;;;-1:-1:-1;;;30491:44:0;;;;;;;;;;;;-1:-1:-1;;;30491:44:0;;;;;;;;;;;;;;;30546:19;30552:3;30557:7;30546:5;:19::i;:::-;30427:146;;:::o;29215:91::-;29271:27;29277:12;:10;:12::i;:::-;29291:6;29271:5;:27::i;:::-;29215:91;:::o;20817:119::-;-1:-1:-1;;;;;20910:18:0;20883:7;20910:18;;;:9;:18;;;;;;;20817:119::o;5533:148::-;5113:12;:10;:12::i;:::-;5103:6;;-1:-1:-1;;;;;5103:6:0;;;:22;;;5095:67;;;;;-1:-1:-1;;;5095:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5624:6:::1;::::0;5603:40:::1;::::0;5640:1:::1;::::0;-1:-1:-1;;;;;5624:6:0::1;::::0;5603:40:::1;::::0;5640:1;;5603:40:::1;5654:6;:19:::0;;-1:-1:-1;;;;;;5654:19:0::1;::::0;;5533:148::o;29625:295::-;29702:26;29731:84;29768:6;29731:84;;;;;;;;;;;;;;;;;:32;29741:7;29750:12;:10;:12::i;:::-;29731:9;:32::i;:::-;:36;:84;:36;:84::i;:::-;29702:113;;29828:51;29837:7;29846:12;:10;:12::i;:::-;29860:18;29828:8;:51::i;:::-;29890:22;29896:7;29905:6;29890:5;:22::i;:::-;29625:295;;;:::o;4891:79::-;4956:6;;-1:-1:-1;;;;;4956:6:0;4891:79;:::o;19781:87::-;19853:7;19846:14;;;;;;;;-1:-1:-1;;19846:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19820:13;;19846:14;;19853:7;;19846:14;;19853:7;19846:14;;;;;;;;;;;;;;;;;;;;;;;;23779:269;23872:4;23889:129;23898:12;:10;:12::i;:::-;23912:7;23921:96;23960:15;23921:96;;;;;;;;;;;;;;;;;:11;:25;23933:12;:10;:12::i;:::-;-1:-1:-1;;;;;23921:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;23921:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;21149:175::-;21235:4;21252:42;21262:12;:10;:12::i;:::-;21276:9;21287:6;21252:9;:42::i;21387:151::-;-1:-1:-1;;;;;21503:18:0;;;21476:7;21503:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;21387:151::o;5836:244::-;5113:12;:10;:12::i;:::-;5103:6;;-1:-1:-1;;;;;5103:6:0;;;:22;;;5095:67;;;;;-1:-1:-1;;;5095:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5925:22:0;::::1;5917:73;;;;-1:-1:-1::0;;;5917:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6027:6;::::0;6006:38:::1;::::0;-1:-1:-1;;;;;6006:38:0;;::::1;::::0;6027:6:::1;::::0;6006:38:::1;::::0;6027:6:::1;::::0;6006:38:::1;6055:6;:17:::0;;-1:-1:-1;;;;;;6055:17:0::1;-1:-1:-1::0;;;;;6055:17:0;;;::::1;::::0;;;::::1;::::0;;5836:244::o;30267:152::-;5113:12;:10;:12::i;:::-;5103:6;;-1:-1:-1;;;;;5103:6:0;;;:22;;;5095:67;;;;;-1:-1:-1;;;5095:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30341:6:::1;::::0;-1:-1:-1;;;;;30341:6:0::1;:20:::0;30333:51:::1;;;::::0;;-1:-1:-1;;;30333:51:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;30333:51:0;;;;;;;;;;;;;::::1;;30395:6;:16:::0;;-1:-1:-1;;;;;;30395:16:0::1;-1:-1:-1::0;;;;;30395:16:0;;;::::1;::::0;;;::::1;::::0;;30267:152::o;4469:129::-;1136:12;;;;;;;;:31;;;1152:15;:13;:15::i;:::-;1136:47;;;-1:-1:-1;1172:11:0;;;;1171:12;1136:47;1128:106;;;;-1:-1:-1;;;1128:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1243:19;1266:12;;;;;;1265:13;1285:83;;;;1314:12;:19;;-1:-1:-1;;;;1314:19:0;;;;;1342:18;1329:4;1342:18;;;1285:83;4527:26:::1;:24;:26::i;:::-;4564;:24;:26::i;:::-;1390:14:::0;1386:57;;;1430:5;1415:20;;-1:-1:-1;;1415:20:0;;;4469:129;:::o;3167:106::-;3255:10;3167:106;:::o;26926:346::-;-1:-1:-1;;;;;27028:19:0;;27020:68;;;;-1:-1:-1;;;27020:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27107:21:0;;27099:68;;;;-1:-1:-1;;;27099:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27180:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;27232:32;;;;;;;;;;;;;;;;;26926:346;;;:::o;24538:539::-;-1:-1:-1;;;;;24644:20:0;;24636:70;;;;-1:-1:-1;;;24636:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24725:23:0;;24717:71;;;;-1:-1:-1;;;24717:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24801:47;24822:6;24830:9;24841:6;24801:20;:47::i;:::-;24881:71;24903:6;24881:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24881:17:0;;;;;;:9;:17;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;24861:17:0;;;;;;;:9;:17;;;;;;:91;;;;24986:20;;;;;;;:32;;25011:6;24986:24;:32::i;:::-;-1:-1:-1;;;;;24963:20:0;;;;;;;:9;:20;;;;;;;;;:55;;;;25034:35;;;;;;;24963:20;;25034:35;;;;;;;;;;;;;24538:539;;;:::o;7948:192::-;8034:7;8070:12;8062:6;;;;8054:29;;;;-1:-1:-1;;;8054:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8106:5:0;;;7948:192::o;7061:181::-;7119:7;7151:5;;;7175:6;;;;7167:46;;;;;-1:-1:-1;;;7167:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7233:1;7061:181;-1:-1:-1;;;7061:181:0:o;25358:378::-;-1:-1:-1;;;;;25442:21:0;;25434:65;;;;;-1:-1:-1;;;25434:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25512:49;25541:1;25545:7;25554:6;25512:20;:49::i;:::-;25589:12;;:24;;25606:6;25589:16;:24::i;:::-;25574:12;:39;-1:-1:-1;;;;;25645:18:0;;;;;;:9;:18;;;;;;:30;;25668:6;25645:22;:30::i;:::-;-1:-1:-1;;;;;25624:18:0;;;;;;:9;:18;;;;;;;;:51;;;;25691:37;;;;;;;25624:18;;;;25691:37;;;;;;;;;;25358:378;;:::o;26068:418::-;-1:-1:-1;;;;;26152:21:0;;26144:67;;;;-1:-1:-1;;;26144:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26224:49;26245:7;26262:1;26266:6;26224:20;:49::i;:::-;26307:68;26330:6;26307:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26307:18:0;;;;;;:9;:18;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;26286:18:0;;;;;;:9;:18;;;;;:89;26401:12;;:24;;26418:6;26401:16;:24::i;:::-;26386:12;:39;26441:37;;;;;;;;26467:1;;-1:-1:-1;;;;;26441:37:0;;;;;;;;;;;;26068:418;;:::o;1537:508::-;1954:4;2000:17;2032:7;1537:508;:::o;3088:69::-;1136:12;;;;;;;;:31;;;1152:15;:13;:15::i;:::-;1136:47;;;-1:-1:-1;1172:11:0;;;;1171:12;1136:47;1128:106;;;;-1:-1:-1;;;1128:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1243:19;1266:12;;;;;;1265:13;1285:83;;;;1314:12;:19;;-1:-1:-1;;;;1314:19:0;;;;;1342:18;1329:4;1342:18;;;1390:14;1386:57;;;1430:5;1415:20;;-1:-1:-1;;1415:20:0;;;3088:69;:::o;4606:202::-;1136:12;;;;;;;;:31;;;1152:15;:13;:15::i;:::-;1136:47;;;-1:-1:-1;1172:11:0;;;;1171:12;1136:47;1128:106;;;;-1:-1:-1;;;1128:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1243:19;1266:12;;;;;;1265:13;1285:83;;;;1314:12;:19;;-1:-1:-1;;;;1314:19:0;;;;;1342:18;1329:4;1342:18;;;1285:83;4678:17:::1;4698:12;:10;:12::i;:::-;4721:6;:18:::0;;-1:-1:-1;;;;;;4721:18:0::1;-1:-1:-1::0;;;;;4721:18:0;::::1;::::0;;::::1;::::0;;;4755:43:::1;::::0;4721:18;;-1:-1:-1;4721:18:0;-1:-1:-1;;4755:43:0::1;::::0;-1:-1:-1;;4755:43:0::1;1376:1;1390:14:::0;1386:57;;;1430:5;1415:20;;-1:-1:-1;;1415:20:0;;;4606:202;:::o;7517:136::-;7575:7;7602:43;7606:1;7609;7602:43;;;;;;;;;;;;;;;;;:3;:43::i

Swarm Source

ipfs://269bef1e0e75cf70582cd7cc3c0567047d73ab5e5d80de670c7761bb44881e17
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.