Overview
Max Total Supply
3,369.575882004744353114 GVT
Holders
1,277 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.141731401776609676 GVTValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NonRebasingGToken
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-07-17 */ // SPDX-License-Identifier: MIT AND AGPLv3 // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity >=0.6.0 <0.8.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) { 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/utils/Address.sol pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @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 SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity >=0.6.0 <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 GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return 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; } } // File: contracts/tokens/GERC20.sol pragma solidity >=0.6.0 <0.7.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: * 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}. * * ################### GERC20 additions to IERC20 ################### * _burn: Added paramater - burnAmount added to take rebased amount into account, * affects the Transfer event * _mint: Added paramater - mintAmount added to take rebased amount into account, * affects the Transfer event * _transfer: Added paramater - transferAmount added to take rebased amount into account, * affects the Transfer event * _decreaseApproved: Added function - internal function to allowed override of transferFrom * */ abstract contract GERC20 is Context, 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; constructor( string memory name, string memory symbol, uint8 decimals ) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @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 totalSupplyBase() public view returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOfBase(address account) public view 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, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view 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, 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`. * GERC20 addition - transferAmount added to take rebased amount into account * 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 transferAmount, 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, transferAmount); _balances[sender] = _balances[sender].sub( transferAmount, "ERC20: transfer amount exceeds balance" ); _balances[recipient] = _balances[recipient].add(transferAmount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * GERC20 addition - mintAmount added to take rebased amount into account * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint( address account, uint256 mintAmount, uint256 amount ) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, mintAmount); _totalSupply = _totalSupply.add(mintAmount); _balances[account] = _balances[account].add(mintAmount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * GERC20 addition - burnAmount added to take rebased amount into account * * 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 burnAmount, uint256 amount ) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), burnAmount); _balances[account] = _balances[account].sub( burnAmount, "ERC20: burn amount exceeds balance" ); _totalSupply = _totalSupply.sub(burnAmount); 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); } function _decreaseApproved( 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] = _allowances[owner][spender].sub(amount); emit Approval(owner, spender, _allowances[owner][spender]); } /** * @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 {} } // File: contracts/common/DecimalConstants.sol pragma solidity >=0.6.0 <0.7.0; contract DecimalConstants { uint8 public constant DEFAULT_DECIMALS = 18; // GToken and Controller use this decimals uint256 public constant DEFAULT_DECIMALS_FACTOR = uint256(10)**DEFAULT_DECIMALS; uint8 public constant CHAINLINK_PRICE_DECIMALS = 8; uint256 public constant CHAINLINK_PRICE_DECIMAL_FACTOR = uint256(10)**CHAINLINK_PRICE_DECIMALS; uint8 public constant PERCENTAGE_DECIMALS = 4; uint256 public constant PERCENTAGE_DECIMAL_FACTOR = uint256(10)**PERCENTAGE_DECIMALS; } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity >=0.6.0 <0.8.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. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { 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; } } // File: contracts/common/Whitelist.sol pragma solidity >=0.6.0 <0.7.0; contract Whitelist is Ownable { mapping(address => bool) public whitelist; event LogAddToWhitelist(address indexed user); event LogRemoveFromWhitelist(address indexed user); modifier onlyWhitelist() { require(whitelist[msg.sender], "only whitelist"); _; } function addToWhitelist(address user) external onlyOwner { require(user != address(0), 'WhiteList: 0x'); whitelist[user] = true; emit LogAddToWhitelist(user); } function removeFromWhitelist(address user) external onlyOwner { require(user != address(0), 'WhiteList: 0x'); whitelist[user] = false; emit LogRemoveFromWhitelist(user); } } // File: contracts/interfaces/IController.sol pragma solidity >=0.6.0 <0.7.0; interface IController { function stablecoins() external view returns (address[] memory); function stablecoinsCount() external view returns (uint256); function vaults() external view returns (address[] memory); function underlyingVaults(uint256 i) external view returns (address vault); function curveVault() external view returns (address); function pnl() external view returns (address); function insurance() external view returns (address); function lifeGuard() external view returns (address); function buoy() external view returns (address); function gvt() external view returns (address); function pwrd() external view returns (address); function reward() external view returns (address); function isBigFish(uint256 amount, bool _pwrd) external view returns (bool); function withdrawHandler() external view returns (address); function depositHandler() external view returns (address); function totalAssets() external view returns (uint256); function gTokenTotalAssets() external view returns (uint256); function eoaOnly(address sender) external; function getSkimPercent() external view returns (uint256); function gToken(bool _pwrd) external view returns (address); function emergencyState() external view returns (bool); function deadCoin() external view returns (uint256); } // File: contracts/interfaces/IERC20Detailed.sol pragma solidity >=0.6.0 <0.7.0; interface IERC20Detailed { function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); } // File: contracts/interfaces/IToken.sol pragma solidity >=0.6.0 <0.7.0; interface IToken { function factor() external view returns (uint256); function factor(uint256 totalAssets) external view returns (uint256); function mint( address account, uint256 _factor, uint256 amount ) external; function burn( address account, uint256 _factor, uint256 amount ) external; function burnAll(address account) external; function totalAssets() external view returns (uint256); function getPricePerShare() external view returns (uint256); function getShareAssets(uint256 shares) external view returns (uint256); function getAssets(address account) external view returns (uint256); } // File: contracts/tokens/GToken.sol pragma solidity >=0.6.0 <0.7.0; abstract contract GToken is GERC20, DecimalConstants, Whitelist, IToken { uint256 public constant BASE = DEFAULT_DECIMALS_FACTOR; using SafeERC20 for IERC20; using SafeMath for uint256; IController public ctrl; constructor( string memory name, string memory symbol, address controller ) public GERC20(name, symbol, DEFAULT_DECIMALS) { ctrl = IController(controller); } function setController(address controller) external onlyOwner { ctrl = IController(controller); } function factor() public view override returns (uint256) { return factor(totalAssets()); } function applyFactor( uint256 a, uint256 b, bool base ) internal pure returns (uint256 resultant) { uint256 _BASE = BASE; uint256 diff; if (base) { diff = a.mul(b) % _BASE; resultant = a.mul(b).div(_BASE); } else { diff = a.mul(_BASE) % b; resultant = a.mul(_BASE).div(b); } if (diff >= 5E17) { resultant = resultant.add(1); } } function factor(uint256 totalAssets) public view override returns (uint256) { if (totalSupplyBase() == 0) { return getInitialBase(); } if (totalAssets > 0) { return totalSupplyBase().mul(BASE).div(totalAssets); } return 0; } function totalAssets() public view override returns (uint256) { return ctrl.gTokenTotalAssets(); } function getInitialBase() internal pure virtual returns (uint256) { return BASE; } } // File: contracts/tokens/NonRebasingGToken.sol pragma solidity >=0.6.0 <0.7.0; contract NonRebasingGToken is GToken { uint256 public constant INIT_BASE = 5000000000000000; using SafeERC20 for IERC20; using SafeMath for uint256; event LogTransfer( address indexed sender, address indexed recipient, uint256 indexed amount, uint256 factor ); constructor( string memory name, string memory symbol, address controller ) public GToken(name, symbol, controller) {} function totalSupply() public view override returns (uint256) { return totalSupplyBase(); } function balanceOf(address account) public view override returns (uint256) { return balanceOfBase(account); } function transfer(address recipient, uint256 amount) public override returns (bool) { super._transfer(msg.sender, recipient, amount, amount); emit LogTransfer(msg.sender, recipient, amount, factor()); return true; } function getPricePerShare() public view override returns (uint256) { uint256 f = factor(); return f > 0 ? applyFactor(BASE, f, false) : 0; } function getShareAssets(uint256 shares) public view override returns (uint256) { return applyFactor(shares, getPricePerShare(), true); } function getAssets(address account) external view override returns (uint256) { return getShareAssets(balanceOf(account)); } function getInitialBase() internal pure override returns (uint256) { return INIT_BASE; } function mint( address account, uint256 _factor, uint256 amount ) external override onlyWhitelist { require(account != address(0), "mint: 0x"); require(amount > 0, "Amount is zero."); amount = applyFactor(amount, _factor, true); _mint(account, amount, amount); } function burn( address account, uint256 _factor, uint256 amount ) external override onlyWhitelist { require(account != address(0), "burn: 0x"); require(amount > 0, "Amount is zero."); amount = applyFactor(amount, _factor, true); _burn(account, amount, amount); } function burnAll(address account) external override onlyWhitelist { require(account != address(0), "burnAll: 0x"); uint256 amount = balanceOfBase(account); _burn(account, amount, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"controller","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"LogAddToWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"LogRemoveFromWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"factor","type":"uint256"}],"name":"LogTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CHAINLINK_PRICE_DECIMALS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CHAINLINK_PRICE_DECIMAL_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_DECIMALS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_DECIMALS_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INIT_BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENTAGE_DECIMALS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENTAGE_DECIMAL_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOfBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"_factor","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"burnAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ctrl","outputs":[{"internalType":"contract IController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalAssets","type":"uint256"}],"name":"factor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPricePerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"getShareAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"_factor","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001fb738038062001fb7833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260209081015185519093508592508491849184918491601291620001c69160039186019062000286565b508151620001dc90600490602085019062000286565b506005805460ff191660ff9290921691909117905550600090506200020062000282565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600780546001600160a01b0319166001600160a01b039290921691909117905550620003229350505050565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002c957805160ff1916838001178555620002f9565b82800160010185558215620002f9579182015b82811115620002f9578251825591602001919060010190620002dc565b50620003079291506200030b565b5090565b5b808211156200030757600081556001016200030c565b611c8580620003326000396000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c80637e9d2ac111610160578063a9059cbb116100d8578063e963f18f1161008c578063ec342ad011610071578063ec342ad01461069e578063f2fde38b146106a6578063f5298aca146106cc57610292565b8063e963f18f14610696578063ea0d5c521461069e57610292565b8063c5008f46116100bd578063c5008f461461063a578063dd62ed3e14610642578063e43252d71461067057610292565b8063a9059cbb14610606578063ae70b98a1461063257610292565b8063907064251161012f57806395d89b411161011457806395d89b41146105ac5780639b19251a146105b4578063a457c2d7146105da57610292565b8063907064251461057e57806392eefe9b1461058657610292565b80637e9d2ac1146105225780638ab1d681146105485780638c9c3b1e1461056e5780638da5cb5b1461057657610292565b8063313ce5671161020e5780636131858e116101c257806370a08231116101a757806370a08231146104ce578063715018a6146104f4578063742978da146104fc57610292565b80636131858e146104a95780636f923e73146104c657610292565b80633d68175c116101f35780633d68175c1461047557806342f37c751461047d57806354f703f8146104a157610292565b8063313ce5671461042b578063395093511461044957610292565b806311d1dcd21161026557806318160ddd1161024a57806318160ddd146103e557806323b872dd146103ed578063278cc7a01461042357610292565b806311d1dcd214610394578063156e29f6146103b157610292565b806301e1d1141461029757806306fdde03146102b1578063095ea7b31461032e5780630c8066bc1461036e575b600080fd5b61029f6106fe565b60408051918252519081900360200190f35b6102b961078d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102f35781810151838201526020016102db565b50505050905090810190601f1680156103205780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61035a6004803603604081101561034457600080fd5b506001600160a01b038135169060200135610823565b604080519115158252519081900360200190f35b61029f6004803603602081101561038457600080fd5b50356001600160a01b0316610841565b61029f600480360360208110156103aa57600080fd5b5035610860565b6103e3600480360360608110156103c757600080fd5b506001600160a01b038135169060208101359060400135610875565b005b61029f610998565b61035a6004803603606081101561040357600080fd5b506001600160a01b038135811691602081013590911690604001356109a7565b61029f610a2f565b610433610a35565b6040805160ff9092168252519081900360200190f35b61035a6004803603604081101561045f57600080fd5b506001600160a01b038135169060200135610a3e565b61029f610a8c565b610485610ac2565b604080516001600160a01b039092168252519081900360200190f35b61029f610ad1565b61029f600480360360208110156104bf57600080fd5b5035610ade565b610433610b2d565b61029f600480360360208110156104e457600080fd5b50356001600160a01b0316610b32565b6103e3610b3d565b61029f6004803603602081101561051257600080fd5b50356001600160a01b0316610c13565b6103e36004803603602081101561053857600080fd5b50356001600160a01b0316610c26565b6103e36004803603602081101561055e57600080fd5b50356001600160a01b0316610cf2565b61029f610e05565b610485610e10565b610433610e24565b6103e36004803603602081101561059c57600080fd5b50356001600160a01b0316610e29565b6102b9610ed2565b61035a600480360360208110156105ca57600080fd5b50356001600160a01b0316610f33565b61035a600480360360408110156105f057600080fd5b506001600160a01b038135169060200135610f48565b61035a6004803603604081101561061c57600080fd5b506001600160a01b038135169060200135610fb0565b61029f61100d565b610433611013565b61029f6004803603604081101561065857600080fd5b506001600160a01b0381358116916020013516611018565b6103e36004803603602081101561068657600080fd5b50356001600160a01b0316611043565b61029f611159565b61029f611161565b6103e3600480360360208110156106bc57600080fd5b50356001600160a01b031661116d565b6103e3600480360360608110156106e257600080fd5b506001600160a01b03813516906020810135906040013561129f565b600754604080517f4941995d00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b031691634941995d916004808301926020929190829003018186803b15801561075c57600080fd5b505afa158015610770573d6000803e3d6000fd5b505050506040513d602081101561078657600080fd5b5051905090565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108195780601f106107ee57610100808354040283529160200191610819565b820191906000526020600020905b8154815290600101906020018083116107fc57829003601f168201915b5050505050905090565b60006108376108306113bd565b84846113c1565b5060015b92915050565b6001600160a01b0381166000908152602081905260409020545b919050565b600061083b8261086e610a8c565b60016114ad565b3360009081526006602052604090205460ff166108ca576040805162461bcd60e51b815260206004820152600e60248201526d1bdb9b1e481dda1a5d195b1a5cdd60921b604482015290519081900360640190fd5b6001600160a01b038316610925576040805162461bcd60e51b815260206004820152600860248201527f6d696e743a203078000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6000811161097a576040805162461bcd60e51b815260206004820152600f60248201527f416d6f756e74206973207a65726f2e0000000000000000000000000000000000604482015290519081900360640190fd5b610986818360016114ad565b9050610993838283611535565b505050565b60006109a2610a2f565b905090565b60006109b584848485611626565b610a25846109c16113bd565b610a2085604051806060016040528060288152602001611b99602891396001600160a01b038a166000908152600160205260408120906109ff6113bd565b6001600160a01b031681526020810191909152604001600020549190611782565b6113c1565b5060019392505050565b60025490565b60055460ff1690565b6000610837610a4b6113bd565b84610a208560016000610a5c6113bd565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611819565b600080610a97610ad1565b905060008111610aa8576000610abc565b610abc670de0b6b3a76400008260006114ad565b91505090565b6007546001600160a01b031681565b60006109a2610ade6106fe565b6000610ae8610a2f565b610afb57610af461187a565b905061085b565b8115610b2557610af482610b1f670de0b6b3a7640000610b19610a2f565b90611885565b906118de565b506000919050565b600881565b600061083b82610841565b610b456113bd565b60055461010090046001600160a01b03908116911614610bac576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580547fffffffffffffffffffffff0000000000000000000000000000000000000000ff169055565b600061083b610c2183610b32565b610860565b3360009081526006602052604090205460ff16610c7b576040805162461bcd60e51b815260206004820152600e60248201526d1bdb9b1e481dda1a5d195b1a5cdd60921b604482015290519081900360640190fd5b6001600160a01b038116610cd6576040805162461bcd60e51b815260206004820152600b60248201527f6275726e416c6c3a203078000000000000000000000000000000000000000000604482015290519081900360640190fd5b6000610ce182610841565b9050610cee828283611920565b5050565b610cfa6113bd565b60055461010090046001600160a01b03908116911614610d61576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610dbc576040805162461bcd60e51b815260206004820152600d60248201527f57686974654c6973743a20307800000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116600081815260066020526040808220805460ff19169055517f9e9499495e2efd848d33cb197bde94612c1ec36f30605b60d445511e056069e19190a250565b6611c37937e0800081565b60055461010090046001600160a01b031690565b600481565b610e316113bd565b60055461010090046001600160a01b03908116911614610e98576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108195780601f106107ee57610100808354040283529160200191610819565b60066020526000908152604090205460ff1681565b6000610837610f556113bd565b84610a2085604051806060016040528060258152602001611c2b6025913960016000610f7f6113bd565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611782565b6000610fbe33848485611626565b816001600160a01b038416337f328ac8f1c0ed76ad17d4054f1664b45a0d48505ae685d3ee17016c4cb5fb597d610ff3610ad1565b60408051918252519081900360200190a450600192915050565b61271081565b601281565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61104b6113bd565b60055461010090046001600160a01b039081169116146110b2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661110d576040805162461bcd60e51b815260206004820152600d60248201527f57686974654c6973743a20307800000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116600081815260066020526040808220805460ff19166001179055517f4e3d8c117d484081f7268ed79cded71ad42979b92feb5f8f7f9824ac5cbfe3759190a250565b6305f5e10081565b670de0b6b3a764000081565b6111756113bd565b60055461010090046001600160a01b039081169116146111dc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166112215760405162461bcd60e51b8152600401808060200182810382526026815260200180611b0a6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b3360009081526006602052604090205460ff166112f4576040805162461bcd60e51b815260206004820152600e60248201526d1bdb9b1e481dda1a5d195b1a5cdd60921b604482015290519081900360640190fd5b6001600160a01b03831661134f576040805162461bcd60e51b815260206004820152600860248201527f6275726e3a203078000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600081116113a4576040805162461bcd60e51b815260206004820152600f60248201527f416d6f756e74206973207a65726f2e0000000000000000000000000000000000604482015290519081900360640190fd5b6113b0818360016114ad565b9050610993838283611920565b3390565b6001600160a01b0383166114065760405162461bcd60e51b8152600401808060200182810382526024815260200180611c076024913960400191505060405180910390fd5b6001600160a01b03821661144b5760405162461bcd60e51b8152600401808060200182810382526022815260200180611b306022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000670de0b6b3a76400008183156114e957816114ca8787611885565b816114d157fe5b0690506114e282610b1f8888611885565b925061150f565b846114f48784611885565b816114fb57fe5b06905061150c85610b1f8885611885565b92505b6706f05b59d3b20000811061152c57611529836001611819565b92505b50509392505050565b6001600160a01b038316611590576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61159c60008484610993565b6002546115a99083611819565b6002556001600160a01b0383166000908152602081905260409020546115cf9083611819565b6001600160a01b0384166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3505050565b6001600160a01b03841661166b5760405162461bcd60e51b8152600401808060200182810382526025815260200180611be26025913960400191505060405180910390fd5b6001600160a01b0383166116b05760405162461bcd60e51b8152600401808060200182810382526023815260200180611ac56023913960400191505060405180910390fd5b6116bb848484610993565b6116f882604051806060016040528060268152602001611b52602691396001600160a01b0387166000908152602081905260409020549190611782565b6001600160a01b0380861660009081526020819052604080822093909355908516815220546117279083611819565b6001600160a01b038085166000818152602081815260409182902094909455805185815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350505050565b600081848411156118115760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117d65781810151838201526020016117be565b50505050905090810190601f1680156118035780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611873576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6611c37937e0800090565b6000826118945750600061083b565b828202828482816118a157fe5b04146118735760405162461bcd60e51b8152600401808060200182810382526021815260200180611b786021913960400191505060405180910390fd5b600061187383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611a1d565b6001600160a01b0383166119655760405162461bcd60e51b8152600401808060200182810382526021815260200180611bc16021913960400191505060405180910390fd5b61197183600084610993565b6119ae82604051806060016040528060228152602001611ae8602291396001600160a01b0386166000908152602081905260409020549190611782565b6001600160a01b0384166000908152602081905260409020556002546119d49083611a82565b6002556040805182815290516000916001600160a01b038616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3505050565b60008183611a6c5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156117d65781810151838201526020016117be565b506000838581611a7857fe5b0495945050505050565b600061187383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061178256fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220983a40137688b91934bc274788507d59d4b633a6ad8c004a69fcf53acd4f909b64736f6c634300060c0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000006d1e68d2cc52696241fa17ae198f41ce84078328000000000000000000000000000000000000000000000000000000000000000f47726f205661756c7420546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034756540000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102925760003560e01c80637e9d2ac111610160578063a9059cbb116100d8578063e963f18f1161008c578063ec342ad011610071578063ec342ad01461069e578063f2fde38b146106a6578063f5298aca146106cc57610292565b8063e963f18f14610696578063ea0d5c521461069e57610292565b8063c5008f46116100bd578063c5008f461461063a578063dd62ed3e14610642578063e43252d71461067057610292565b8063a9059cbb14610606578063ae70b98a1461063257610292565b8063907064251161012f57806395d89b411161011457806395d89b41146105ac5780639b19251a146105b4578063a457c2d7146105da57610292565b8063907064251461057e57806392eefe9b1461058657610292565b80637e9d2ac1146105225780638ab1d681146105485780638c9c3b1e1461056e5780638da5cb5b1461057657610292565b8063313ce5671161020e5780636131858e116101c257806370a08231116101a757806370a08231146104ce578063715018a6146104f4578063742978da146104fc57610292565b80636131858e146104a95780636f923e73146104c657610292565b80633d68175c116101f35780633d68175c1461047557806342f37c751461047d57806354f703f8146104a157610292565b8063313ce5671461042b578063395093511461044957610292565b806311d1dcd21161026557806318160ddd1161024a57806318160ddd146103e557806323b872dd146103ed578063278cc7a01461042357610292565b806311d1dcd214610394578063156e29f6146103b157610292565b806301e1d1141461029757806306fdde03146102b1578063095ea7b31461032e5780630c8066bc1461036e575b600080fd5b61029f6106fe565b60408051918252519081900360200190f35b6102b961078d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102f35781810151838201526020016102db565b50505050905090810190601f1680156103205780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61035a6004803603604081101561034457600080fd5b506001600160a01b038135169060200135610823565b604080519115158252519081900360200190f35b61029f6004803603602081101561038457600080fd5b50356001600160a01b0316610841565b61029f600480360360208110156103aa57600080fd5b5035610860565b6103e3600480360360608110156103c757600080fd5b506001600160a01b038135169060208101359060400135610875565b005b61029f610998565b61035a6004803603606081101561040357600080fd5b506001600160a01b038135811691602081013590911690604001356109a7565b61029f610a2f565b610433610a35565b6040805160ff9092168252519081900360200190f35b61035a6004803603604081101561045f57600080fd5b506001600160a01b038135169060200135610a3e565b61029f610a8c565b610485610ac2565b604080516001600160a01b039092168252519081900360200190f35b61029f610ad1565b61029f600480360360208110156104bf57600080fd5b5035610ade565b610433610b2d565b61029f600480360360208110156104e457600080fd5b50356001600160a01b0316610b32565b6103e3610b3d565b61029f6004803603602081101561051257600080fd5b50356001600160a01b0316610c13565b6103e36004803603602081101561053857600080fd5b50356001600160a01b0316610c26565b6103e36004803603602081101561055e57600080fd5b50356001600160a01b0316610cf2565b61029f610e05565b610485610e10565b610433610e24565b6103e36004803603602081101561059c57600080fd5b50356001600160a01b0316610e29565b6102b9610ed2565b61035a600480360360208110156105ca57600080fd5b50356001600160a01b0316610f33565b61035a600480360360408110156105f057600080fd5b506001600160a01b038135169060200135610f48565b61035a6004803603604081101561061c57600080fd5b506001600160a01b038135169060200135610fb0565b61029f61100d565b610433611013565b61029f6004803603604081101561065857600080fd5b506001600160a01b0381358116916020013516611018565b6103e36004803603602081101561068657600080fd5b50356001600160a01b0316611043565b61029f611159565b61029f611161565b6103e3600480360360208110156106bc57600080fd5b50356001600160a01b031661116d565b6103e3600480360360608110156106e257600080fd5b506001600160a01b03813516906020810135906040013561129f565b600754604080517f4941995d00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b031691634941995d916004808301926020929190829003018186803b15801561075c57600080fd5b505afa158015610770573d6000803e3d6000fd5b505050506040513d602081101561078657600080fd5b5051905090565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108195780601f106107ee57610100808354040283529160200191610819565b820191906000526020600020905b8154815290600101906020018083116107fc57829003601f168201915b5050505050905090565b60006108376108306113bd565b84846113c1565b5060015b92915050565b6001600160a01b0381166000908152602081905260409020545b919050565b600061083b8261086e610a8c565b60016114ad565b3360009081526006602052604090205460ff166108ca576040805162461bcd60e51b815260206004820152600e60248201526d1bdb9b1e481dda1a5d195b1a5cdd60921b604482015290519081900360640190fd5b6001600160a01b038316610925576040805162461bcd60e51b815260206004820152600860248201527f6d696e743a203078000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6000811161097a576040805162461bcd60e51b815260206004820152600f60248201527f416d6f756e74206973207a65726f2e0000000000000000000000000000000000604482015290519081900360640190fd5b610986818360016114ad565b9050610993838283611535565b505050565b60006109a2610a2f565b905090565b60006109b584848485611626565b610a25846109c16113bd565b610a2085604051806060016040528060288152602001611b99602891396001600160a01b038a166000908152600160205260408120906109ff6113bd565b6001600160a01b031681526020810191909152604001600020549190611782565b6113c1565b5060019392505050565b60025490565b60055460ff1690565b6000610837610a4b6113bd565b84610a208560016000610a5c6113bd565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611819565b600080610a97610ad1565b905060008111610aa8576000610abc565b610abc670de0b6b3a76400008260006114ad565b91505090565b6007546001600160a01b031681565b60006109a2610ade6106fe565b6000610ae8610a2f565b610afb57610af461187a565b905061085b565b8115610b2557610af482610b1f670de0b6b3a7640000610b19610a2f565b90611885565b906118de565b506000919050565b600881565b600061083b82610841565b610b456113bd565b60055461010090046001600160a01b03908116911614610bac576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580547fffffffffffffffffffffff0000000000000000000000000000000000000000ff169055565b600061083b610c2183610b32565b610860565b3360009081526006602052604090205460ff16610c7b576040805162461bcd60e51b815260206004820152600e60248201526d1bdb9b1e481dda1a5d195b1a5cdd60921b604482015290519081900360640190fd5b6001600160a01b038116610cd6576040805162461bcd60e51b815260206004820152600b60248201527f6275726e416c6c3a203078000000000000000000000000000000000000000000604482015290519081900360640190fd5b6000610ce182610841565b9050610cee828283611920565b5050565b610cfa6113bd565b60055461010090046001600160a01b03908116911614610d61576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610dbc576040805162461bcd60e51b815260206004820152600d60248201527f57686974654c6973743a20307800000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116600081815260066020526040808220805460ff19169055517f9e9499495e2efd848d33cb197bde94612c1ec36f30605b60d445511e056069e19190a250565b6611c37937e0800081565b60055461010090046001600160a01b031690565b600481565b610e316113bd565b60055461010090046001600160a01b03908116911614610e98576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108195780601f106107ee57610100808354040283529160200191610819565b60066020526000908152604090205460ff1681565b6000610837610f556113bd565b84610a2085604051806060016040528060258152602001611c2b6025913960016000610f7f6113bd565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611782565b6000610fbe33848485611626565b816001600160a01b038416337f328ac8f1c0ed76ad17d4054f1664b45a0d48505ae685d3ee17016c4cb5fb597d610ff3610ad1565b60408051918252519081900360200190a450600192915050565b61271081565b601281565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61104b6113bd565b60055461010090046001600160a01b039081169116146110b2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661110d576040805162461bcd60e51b815260206004820152600d60248201527f57686974654c6973743a20307800000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116600081815260066020526040808220805460ff19166001179055517f4e3d8c117d484081f7268ed79cded71ad42979b92feb5f8f7f9824ac5cbfe3759190a250565b6305f5e10081565b670de0b6b3a764000081565b6111756113bd565b60055461010090046001600160a01b039081169116146111dc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166112215760405162461bcd60e51b8152600401808060200182810382526026815260200180611b0a6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b3360009081526006602052604090205460ff166112f4576040805162461bcd60e51b815260206004820152600e60248201526d1bdb9b1e481dda1a5d195b1a5cdd60921b604482015290519081900360640190fd5b6001600160a01b03831661134f576040805162461bcd60e51b815260206004820152600860248201527f6275726e3a203078000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600081116113a4576040805162461bcd60e51b815260206004820152600f60248201527f416d6f756e74206973207a65726f2e0000000000000000000000000000000000604482015290519081900360640190fd5b6113b0818360016114ad565b9050610993838283611920565b3390565b6001600160a01b0383166114065760405162461bcd60e51b8152600401808060200182810382526024815260200180611c076024913960400191505060405180910390fd5b6001600160a01b03821661144b5760405162461bcd60e51b8152600401808060200182810382526022815260200180611b306022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000670de0b6b3a76400008183156114e957816114ca8787611885565b816114d157fe5b0690506114e282610b1f8888611885565b925061150f565b846114f48784611885565b816114fb57fe5b06905061150c85610b1f8885611885565b92505b6706f05b59d3b20000811061152c57611529836001611819565b92505b50509392505050565b6001600160a01b038316611590576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61159c60008484610993565b6002546115a99083611819565b6002556001600160a01b0383166000908152602081905260409020546115cf9083611819565b6001600160a01b0384166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3505050565b6001600160a01b03841661166b5760405162461bcd60e51b8152600401808060200182810382526025815260200180611be26025913960400191505060405180910390fd5b6001600160a01b0383166116b05760405162461bcd60e51b8152600401808060200182810382526023815260200180611ac56023913960400191505060405180910390fd5b6116bb848484610993565b6116f882604051806060016040528060268152602001611b52602691396001600160a01b0387166000908152602081905260409020549190611782565b6001600160a01b0380861660009081526020819052604080822093909355908516815220546117279083611819565b6001600160a01b038085166000818152602081815260409182902094909455805185815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350505050565b600081848411156118115760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117d65781810151838201526020016117be565b50505050905090810190601f1680156118035780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611873576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6611c37937e0800090565b6000826118945750600061083b565b828202828482816118a157fe5b04146118735760405162461bcd60e51b8152600401808060200182810382526021815260200180611b786021913960400191505060405180910390fd5b600061187383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611a1d565b6001600160a01b0383166119655760405162461bcd60e51b8152600401808060200182810382526021815260200180611bc16021913960400191505060405180910390fd5b61197183600084610993565b6119ae82604051806060016040528060228152602001611ae8602291396001600160a01b0386166000908152602081905260409020549190611782565b6001600160a01b0384166000908152602081905260409020556002546119d49083611a82565b6002556040805182815290516000916001600160a01b038616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3505050565b60008183611a6c5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156117d65781810151838201526020016117be565b506000838581611a7857fe5b0495945050505050565b600061187383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061178256fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220983a40137688b91934bc274788507d59d4b633a6ad8c004a69fcf53acd4f909b64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000006d1e68d2cc52696241fa17ae198f41ce84078328000000000000000000000000000000000000000000000000000000000000000f47726f205661756c7420546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034756540000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Gro Vault Token
Arg [1] : symbol (string): GVT
Arg [2] : controller (address): 0x6D1e68d2cc52696241fA17Ae198f41Ce84078328
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000006d1e68d2cc52696241fa17ae198f41ce84078328
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [4] : 47726f205661756c7420546f6b656e0000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 4756540000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
40774:2484:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40459:112;;;:::i;:::-;;;;;;;;;;;;;;;;22394:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24490:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;24490:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;23627:114;;;;;;;;;;;;;;;;-1:-1:-1;23627:114:0;-1:-1:-1;;;;;23627:114:0;;:::i;41935:150::-;;;;;;;;;;;;;;;;-1:-1:-1;41935:150:0;;:::i;42348:335::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;42348:335:0;;;;;;;;;;;;;:::i;:::-;;41265:105;;;:::i;25133:462::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25133:462:0;;;;;;;;;;;;;;;;;:::i;23469:95::-;;;:::i;23321:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26004:218;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26004:218:0;;;;;;;;:::i;41764:163::-;;;:::i;39172:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;39172:23:0;;;;;;;;;;;;;;39534:104;;;:::i;40147:304::-;;;;;;;;;;;;;;;;-1:-1:-1;40147:304:0;;:::i;32833:50::-;;;:::i;41378:123::-;;;;;;;;;;;;;;;;-1:-1:-1;41378:123:0;-1:-1:-1;;;;;41378:123:0;;:::i;34886:148::-;;;:::i;42093:137::-;;;;;;;;;;;;;;;;-1:-1:-1;42093:137:0;-1:-1:-1;;;;;42093:137:0;;:::i;43034:221::-;;;;;;;;;;;;;;;;-1:-1:-1;43034:221:0;-1:-1:-1;;;;;43034:221:0;;:::i;36030:203::-;;;;;;;;;;;;;;;;-1:-1:-1;36030:203:0;-1:-1:-1;;;;;36030:203:0;;:::i;40818:52::-;;;:::i;34244:79::-;;;:::i;32991:45::-;;;:::i;39415:111::-;;;;;;;;;;;;;;;;-1:-1:-1;39415:111:0;-1:-1:-1;;;;;39415:111:0;;:::i;22596:87::-;;;:::i;35557:41::-;;;;;;;;;;;;;;;;-1:-1:-1;35557:41:0;-1:-1:-1;;;;;35557:41:0;;:::i;26725:400::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26725:400:0;;;;;;;;:::i;41509:247::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;41509:247:0;;;;;;;;:::i;33043:84::-;;;:::i;32654:43::-;;;:::i;24200:143::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;24200:143:0;;;;;;;;;;:::i;35830:192::-;;;;;;;;;;;;;;;;-1:-1:-1;35830:192:0;-1:-1:-1;;;;;35830:192:0;;:::i;32890:94::-;;;:::i;32747:79::-;;;:::i;35189:244::-;;;;;;;;;;;;;;;;-1:-1:-1;35189:244:0;-1:-1:-1;;;;;35189:244:0;;:::i;42691:335::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;42691:335:0;;;;;;;;;;;;;:::i;40459:112::-;40539:4;;:24;;;;;;;;40512:7;;-1:-1:-1;;;;;40539:4:0;;:22;;:24;;;;;;;;;;;;;;:4;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40539:24:0;;-1:-1:-1;40459:112:0;:::o;22394:83::-;22464:5;22457:12;;;;;;;;-1:-1:-1;;22457:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22431:13;;22457:12;;22464:5;;22457:12;;22464:5;22457:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22394:83;:::o;24490:169::-;24573:4;24590:39;24599:12;:10;:12::i;:::-;24613:7;24622:6;24590:8;:39::i;:::-;-1:-1:-1;24647:4:0;24490:169;;;;;:::o;23627:114::-;-1:-1:-1;;;;;23715:18:0;;23688:7;23715:18;;;;;;;;;;;23627:114;;;;:::o;41935:150::-;42005:7;42032:45;42044:6;42052:18;:16;:18::i;:::-;42072:4;42032:11;:45::i;42348:335::-;35772:10;35762:21;;;;:9;:21;;;;;;;;35754:48;;;;;-1:-1:-1;;;35754:48:0;;;;;;;;;;;;-1:-1:-1;;;35754:48:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;42497:21:0;::::1;42489:42;;;::::0;;-1:-1:-1;;;42489:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;42559:1;42550:6;:10;42542:38;;;::::0;;-1:-1:-1;;;42542:38:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;42600:34;42612:6;42620:7;42629:4;42600:11;:34::i;:::-;42591:43;;42645:30;42651:7;42660:6;42668;42645:5;:30::i;:::-;42348:335:::0;;;:::o;41265:105::-;41318:7;41345:17;:15;:17::i;:::-;41338:24;;41265:105;:::o;25133:462::-;25273:4;25290:44;25300:6;25308:9;25319:6;25327;25290:9;:44::i;:::-;25345:220;25368:6;25389:12;:10;:12::i;:::-;25416:138;25472:6;25416:138;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25416:19:0;;;;;;:11;:19;;;;;;25436:12;:10;:12::i;:::-;-1:-1:-1;;;;;25416:33:0;;;;;;;;;;;;-1:-1:-1;25416:33:0;;;:138;:37;:138::i;:::-;25345:8;:220::i;:::-;-1:-1:-1;25583:4:0;25133:462;;;;;:::o;23469:95::-;23544:12;;23469:95;:::o;23321:83::-;23387:9;;;;23321:83;:::o;26004:218::-;26092:4;26109:83;26118:12;:10;:12::i;:::-;26132:7;26141:50;26180:10;26141:11;:25;26153:12;:10;:12::i;:::-;-1:-1:-1;;;;;26141:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;26141:25:0;;;:34;;;;;;;;;;;:38;:50::i;41764:163::-;41822:7;41842:9;41854:8;:6;:8::i;:::-;41842:20;;41884:1;41880;:5;:39;;41918:1;41880:39;;;41888:27;32797:29;41906:1;41909:5;41888:11;:27::i;:::-;41873:46;;;41764:163;:::o;39172:23::-;;;-1:-1:-1;;;;;39172:23:0;;:::o;39534:104::-;39582:7;39609:21;39616:13;:11;:13::i;:::-;40214:7;40238:17;:15;:17::i;:::-;40234:78;;40284:16;:14;:16::i;:::-;40277:23;;;;40234:78;40328:15;;40324:99;;40367:44;40399:11;40367:27;32797:29;40367:17;:15;:17::i;:::-;:21;;:27::i;:::-;:31;;:44::i;40324:99::-;-1:-1:-1;40442:1:0;40147:304;;;:::o;32833:50::-;32882:1;32833:50;:::o;41378:123::-;41444:7;41471:22;41485:7;41471:13;:22::i;34886:148::-;34466:12;:10;:12::i;:::-;34456:6;;;;;-1:-1:-1;;;;;34456:6:0;;;:22;;;34448:67;;;;;-1:-1:-1;;;34448:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34977:6:::1;::::0;34956:40:::1;::::0;34993:1:::1;::::0;34977:6:::1;::::0;::::1;-1:-1:-1::0;;;;;34977:6:0::1;::::0;34956:40:::1;::::0;34993:1;;34956:40:::1;35007:6;:19:::0;;;::::1;::::0;;34886:148::o;42093:137::-;42161:7;42188:34;42203:18;42213:7;42203:9;:18::i;:::-;42188:14;:34::i;43034:221::-;35772:10;35762:21;;;;:9;:21;;;;;;;;35754:48;;;;;-1:-1:-1;;;35754:48:0;;;;;;;;;;;;-1:-1:-1;;;35754:48:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;43119:21:0;::::1;43111:45;;;::::0;;-1:-1:-1;;;43111:45:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;43167:14;43184:22;43198:7;43184:13;:22::i;:::-;43167:39;;43217:30;43223:7;43232:6;43240;43217:5;:30::i;:::-;35813:1;43034:221:::0;:::o;36030:203::-;34466:12;:10;:12::i;:::-;34456:6;;;;;-1:-1:-1;;;;;34456:6:0;;;:22;;;34448:67;;;;;-1:-1:-1;;;34448:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36111:18:0;::::1;36103:44;;;::::0;;-1:-1:-1;;;36103:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;36158:15:0;::::1;36176:5;36158:15:::0;;;:9:::1;:15;::::0;;;;;:23;;-1:-1:-1;;36158:23:0::1;::::0;;36197:28;::::1;::::0;36176:5;36197:28:::1;36030:203:::0;:::o;40818:52::-;40854:16;40818:52;:::o;34244:79::-;34309:6;;;;;-1:-1:-1;;;;;34309:6:0;;34244:79::o;32991:45::-;33035:1;32991:45;:::o;39415:111::-;34466:12;:10;:12::i;:::-;34456:6;;;;;-1:-1:-1;;;;;34456:6:0;;;:22;;;34448:67;;;;;-1:-1:-1;;;34448:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39488:4:::1;:30:::0;;;::::1;-1:-1:-1::0;;;;;39488:30:0;;;::::1;::::0;;;::::1;::::0;;39415:111::o;22596:87::-;22668:7;22661:14;;;;;;;;-1:-1:-1;;22661:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22635:13;;22661:14;;22668:7;;22661:14;;22668:7;22661:14;;;;;;;;;;;;;;;;;;;;;;;;35557:41;;;;;;;;;;;;;;;:::o;26725:400::-;26845:4;26867:228;26890:12;:10;:12::i;:::-;26917:7;26939:145;26996:15;26939:145;;;;;;;;;;;;;;;;;:11;:25;26951:12;:10;:12::i;:::-;-1:-1:-1;;;;;26939:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;26939:25:0;;;:34;;;;;;;;;;;:145;:38;:145::i;41509:247::-;41587:4;41604:54;41620:10;41632:9;41643:6;41651;41604:15;:54::i;:::-;41709:6;-1:-1:-1;;;;;41674:52:0;;41686:10;41674:52;41717:8;:6;:8::i;:::-;41674:52;;;;;;;;;;;;;;;-1:-1:-1;41744:4:0;41509:247;;;;:::o;33043:84::-;33095:32;33043:84;:::o;32654:43::-;32695:2;32654:43;:::o;24200:143::-;-1:-1:-1;;;;;24308:18:0;;;24281:7;24308:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;24200:143::o;35830:192::-;34466:12;:10;:12::i;:::-;34456:6;;;;;-1:-1:-1;;;;;34456:6:0;;;:22;;;34448:67;;;;;-1:-1:-1;;;34448:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35906:18:0;::::1;35898:44;;;::::0;;-1:-1:-1;;;35898:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;35953:15:0;::::1;;::::0;;;:9:::1;:15;::::0;;;;;:22;;-1:-1:-1;;35953:22:0::1;35971:4;35953:22;::::0;;35991:23;::::1;::::0;35953:15;35991:23:::1;35830:192:::0;:::o;32890:94::-;32947:37;32890:94;:::o;32747:79::-;32797:29;32747:79;:::o;35189:244::-;34466:12;:10;:12::i;:::-;34456:6;;;;;-1:-1:-1;;;;;34456:6:0;;;:22;;;34448:67;;;;;-1:-1:-1;;;34448:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35278:22:0;::::1;35270:73;;;;-1:-1:-1::0;;;35270:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35380:6;::::0;35359:38:::1;::::0;-1:-1:-1;;;;;35359:38:0;;::::1;::::0;35380:6:::1;::::0;::::1;;::::0;35359:38:::1;::::0;;;::::1;35408:6;:17:::0;;-1:-1:-1;;;;;35408:17:0;;::::1;;;::::0;;;::::1;::::0;;;::::1;::::0;;35189:244::o;42691:335::-;35772:10;35762:21;;;;:9;:21;;;;;;;;35754:48;;;;;-1:-1:-1;;;35754:48:0;;;;;;;;;;;;-1:-1:-1;;;35754:48:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;42840:21:0;::::1;42832:42;;;::::0;;-1:-1:-1;;;42832:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;42902:1;42893:6;:10;42885:38;;;::::0;;-1:-1:-1;;;42885:38:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;42943:34;42955:6;42963:7;42972:4;42943:11;:34::i;:::-;42934:43;;42988:30;42994:7;43003:6;43011;42988:5;:30::i;19640:106::-:0;19728:10;19640:106;:::o;30548:380::-;-1:-1:-1;;;;;30684:19:0;;30676:68;;;;-1:-1:-1;;;30676:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30763:21:0;;30755:68;;;;-1:-1:-1;;;30755:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30836:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;30888:32;;;;;;;;;;;;;;;;;30548:380;;;:::o;39646:493::-;39757:17;32797:29;39757:17;39841:208;;;;39884:5;39873:8;:1;39879;39873:5;:8::i;:::-;:16;;;;;;;-1:-1:-1;39916:19:0;39929:5;39916:8;:1;39922;39916:5;:8::i;:19::-;39904:31;;39841:208;;;39990:1;39975:12;:1;39981:5;39975;:12::i;:::-;:16;;;;;;;-1:-1:-1;40018:19:0;40035:1;40018:12;:1;40024:5;40018;:12::i;:19::-;40006:31;;39841:208;40071:4;40063;:12;40059:73;;40104:16;:9;40118:1;40104:13;:16::i;:::-;40092:28;;40059:73;39646:493;;;;;;;:::o;28727:444::-;-1:-1:-1;;;;;28865:21:0;;28857:65;;;;;-1:-1:-1;;;28857:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;28935:53;28964:1;28968:7;28977:10;28935:20;:53::i;:::-;29016:12;;:28;;29033:10;29016:16;:28::i;:::-;29001:12;:43;-1:-1:-1;;;;;29076:18:0;;:9;:18;;;;;;;;;;;:34;;29099:10;29076:22;:34::i;:::-;-1:-1:-1;;;;;29055:18:0;;:9;:18;;;;;;;;;;;:55;;;;29126:37;;;;;;;29055:18;;:9;;29126:37;;;;;;;;;;28727:444;;;:::o;27695:667::-;-1:-1:-1;;;;;27868:20:0;;27860:70;;;;-1:-1:-1;;;27860:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27949:23:0;;27941:71;;;;-1:-1:-1;;;27941:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28025:55;28046:6;28054:9;28065:14;28025:20;:55::i;:::-;28113:116;28149:14;28113:116;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28113:17:0;;:9;:17;;;;;;;;;;;;:116;:21;:116::i;:::-;-1:-1:-1;;;;;28093:17:0;;;:9;:17;;;;;;;;;;;:136;;;;28263:20;;;;;;;:40;;28288:14;28263:24;:40::i;:::-;-1:-1:-1;;;;;28240:20:0;;;:9;:20;;;;;;;;;;;;:63;;;;28319:35;;;;;;;28240:20;;28319:35;;;;;;;;;;;;;27695:667;;;;:::o;4687:192::-;4773:7;4809:12;4801:6;;;;4793:29;;;;-1:-1:-1;;;4793:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4845:5:0;;;4687:192::o;3784:181::-;3842:7;3874:5;;;3898:6;;;;3890:46;;;;;-1:-1:-1;;;3890:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3956:1;3784:181;-1:-1:-1;;;3784:181:0:o;42238:102::-;40854:16;42238:102;:::o;5138:471::-;5196:7;5441:6;5437:47;;-1:-1:-1;5471:1:0;5464:8;;5437:47;5508:5;;;5512:1;5508;:5;:1;5532:5;;;;;:10;5524:56;;;;-1:-1:-1;;;5524:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6085:132;6143:7;6170:39;6174:1;6177;6170:39;;;;;;;;;;;;;;;;;:3;:39::i;29587:521::-;-1:-1:-1;;;;;29725:21:0;;29717:67;;;;-1:-1:-1;;;29717:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29797:53;29818:7;29835:1;29839:10;29797:20;:53::i;:::-;29884:109;29921:10;29884:109;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29884:18:0;;:9;:18;;;;;;;;;;;;:109;:22;:109::i;:::-;-1:-1:-1;;;;;29863:18:0;;:9;:18;;;;;;;;;;:130;30019:12;;:28;;30036:10;30019:16;:28::i;:::-;30004:12;:43;30063:37;;;;;;;;30089:1;;-1:-1:-1;;;;;30063:37:0;;;;;;;;;;;;29587:521;;;:::o;6713:278::-;6799:7;6834:12;6827:5;6819:28;;;;-1:-1:-1;;;6819:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6858:9;6874:1;6870;:5;;;;;;;6713:278;-1:-1:-1;;;;;6713:278:0:o;4248:136::-;4306:7;4333:43;4337:1;4340;4333:43;;;;;;;;;;;;;;;;;:3;:43::i
Swarm Source
ipfs://983a40137688b91934bc274788507d59d4b633a6ad8c004a69fcf53acd4f909b
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.