Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
97,439,283.830494255112890292 OH
Holders
193
Market
Price
$0.00 @ 0.000001 ETH
Onchain Market Cap
$296,330.40
Circulating Supply Market Cap
$124,283.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
73,333.3333333334 OHValue
$223.02 ( ~0.0668002066910097 Eth) [0.0753%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OhToken
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol"; import {IToken} from "./interfaces/IToken.sol"; import {OhSubscriber} from "./registry/OhSubscriber.sol"; /// @title Oh! Finance Token /// @notice Protocol Governance and Profit-Share ERC-20 Token contract OhToken is ERC20("Oh! Finance", "OH"), OhSubscriber, IToken { using SafeMath for uint256; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice The max token supply, minted on initialization. 100m tokens. uint256 public constant MAX_SUPPLY = 100000000e18; /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegator,address delegatee,uint256 nonce,uint256 deadline)"); /// @notice the EIP-712 typehash for approving token transfers via signature bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash used for replay protection, set at deployment // solhint-disable-next-line bytes32 public immutable DOMAIN_SEPARATOR; /// @notice Delegate votes from `msg.sender` to `delegatee` mapping(address => address) public delegates; /// @notice A record of votes checkpoints for each account, by index mapping(address => mapping(uint32 => Checkpoint)) public checkpoints; /// @notice A record of states for signing / validating signatures mapping(address => uint256) public nonces; /// @notice The number of checkpoints for each account mapping(address => uint32) public numCheckpoints; /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance); constructor(address registry_) OhSubscriber(registry_) { DOMAIN_SEPARATOR = keccak256( abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), keccak256(bytes("1")), getChainId(), address(this)) ); _mint(msg.sender, MAX_SUPPLY); } /// @notice Delegate votes from `msg.sender` to `delegatee` /// @param delegatee The address to delegate votes to function delegate(address delegatee) external override { return _delegate(msg.sender, delegatee); } /// @notice Delegates votes from `delegator` to `delegatee` /// @param delegator the address holding tokens /// @param delegatee The address to delegate votes to /// @param deadline The time at which to expire the signature /// @param v The recovery byte of the signature /// @param r Half of the ECDSA signature pair /// @param s Half of the ECDSA signature pair function delegateBySig( address delegator, address delegatee, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external override { // solhint-disable-next-line require(block.timestamp <= deadline, "Delegate: Invalid Expiration"); require(delegator != address(0), "Delegate: Invalid Delegator"); uint256 currentValidNonce = nonces[delegator]; bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(DELEGATION_TYPEHASH, delegator, delegatee, currentValidNonce, deadline)) ) ); require(delegator == ecrecover(digest, v, r, s), "Delegate: Invalid Signature"); nonces[delegator] = currentValidNonce.add(1); return _delegate(delegator, delegatee); } /// @dev implements the permit function per EIP-712 /// @param owner the owner of the funds /// @param spender the spender /// @param value the amount /// @param deadline the deadline timestamp, type(uint256).max for max deadline /// @param v the recovery byte of the signature /// @param r half of the ECDSA signature pair /// @param s half of the ECDSA signature pair function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external override { require(block.timestamp <= deadline, "Permit: Invalid Deadline"); require(owner != address(0), "Permit: Invalid Owner"); uint256 currentValidNonce = nonces[owner]; bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, currentValidNonce, deadline)) ) ); require(owner == ecrecover(digest, v, r, s), "Permit: Invalid Signature"); nonces[owner] = currentValidNonce.add(1); return _approve(owner, spender, value); } /// @notice Gets the current votes balance for `account` /// @param account The address to get votes balance /// @return The number of current votes for `account` function getCurrentVotes(address account) external view override returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /// @notice Determine the prior number of votes for an account as of a block number /// @dev Block number must be a finalized block or else this function will revert to prevent misinformation. /// @param account The address of the account to check /// @param blockNumber The block number to get the vote balance at /// @return The number of votes the account had as of the given block function getPriorVotes(address account, uint256 blockNumber) external view override returns (uint256) { require(blockNumber < block.number, "GetPriorVotes: Invalid Block"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } /// @notice Destroys an amount of tokens from the caller /// @param amount The amount of tokens to burn function burn(uint256 amount) public override { _burn(msg.sender, amount); } /// @notice Creates an amount of tokens on a recipient address /// @param recipient The receiver of the tokens /// @param amount The amount of tokens to mint /// @dev callable by governance only function mint(address recipient, uint256 amount) public override onlyGovernance { _mint(recipient, amount); } function _burn(address from, uint256 amount) internal override { super._burn(from, amount); _moveDelegates(delegates[from], address(0), amount); } function _mint(address to, uint256 amount) internal override { require(totalSupply().add(amount) <= MAX_SUPPLY, "Token: Max Supply Exceeded"); super._mint(to, amount); _moveDelegates(address(0), delegates[to], amount); } function _transfer( address from, address to, uint256 amount ) internal override { super._transfer(from, to, amount); _moveDelegates(delegates[from], delegates[to], amount); } function _delegate(address delegator, address delegatee) internal { address currentDelegate = delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying CAKEs (not scaled); delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } // move an amount of delegates from srcRep to dstRep function _moveDelegates( address srcRep, address dstRep, uint256 amount ) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld.add(amount); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = uint32(block.number); // if the user has already been delegated to this block, update vote count if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { // else write a new checkpoint with updated vote count checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function getChainId() internal pure returns (uint256 chainId) { // solhint-disable-next-line no-inline-assembly assembly { chainId := chainid() } } }
// SPDX-License-Identifier: MIT 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, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { 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) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; 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. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _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 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 virtual { _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 { } }
// SPDX-License-Identifier: MIT 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); }
// SPDX-License-Identifier: MIT 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); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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; } }
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; interface IRegistry { function governance() external view returns (address); function manager() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; interface ISubscriber { function registry() external view returns (address); function governance() external view returns (address); function manager() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; interface IToken { function delegate(address delegatee) external; function delegateBySig( address delegator, address delegatee, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function burn(uint256 amount) external; function mint(address recipient, uint256 amount) external; function getCurrentVotes(address account) external view returns (uint256); function getPriorVotes(address account, uint256 blockNumber) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import {Address} from "@openzeppelin/contracts/utils/Address.sol"; import {ISubscriber} from "../interfaces/ISubscriber.sol"; import {IRegistry} from "../interfaces/IRegistry.sol"; /// @title Oh! Finance Subscriber /// @notice Base Oh! Finance contract used to control access throughout the protocol abstract contract OhSubscriber is ISubscriber { address internal _registry; /// @notice Only allow authorized addresses (governance or manager) to execute a function modifier onlyAuthorized { require(msg.sender == governance() || msg.sender == manager(), "Subscriber: Only Authorized"); _; } /// @notice Only allow the governance address to execute a function modifier onlyGovernance { require(msg.sender == governance(), "Subscriber: Only Governance"); _; } /// @notice Construct contract with the Registry /// @param registry_ The address of the Registry constructor(address registry_) { require(Address.isContract(registry_), "Subscriber: Invalid Registry"); _registry = registry_; } /// @notice Get the Governance address /// @return The current Governance address function governance() public view override returns (address) { return IRegistry(registry()).governance(); } /// @notice Get the Manager address /// @return The current Manager address function manager() public view override returns (address) { return IRegistry(registry()).manager(); } /// @notice Get the Registry address /// @return The current Registry address function registry() public view override returns (address) { return _registry; } /// @notice Set the Registry for the contract. Only callable by Governance. /// @param registry_ The new registry /// @dev Requires sender to be Governance of the new Registry to avoid bricking. /// @dev Ideally should not be used function setRegistry(address registry_) external onlyGovernance { require(Address.isContract(registry_), "Subscriber: Invalid Registry"); _registry = registry_; require(msg.sender == governance(), "Subscriber: Bad Governance"); } }
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"registry_","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":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","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":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint256","name":"votes","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"},{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"registry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"registry_","type":"address"}],"name":"setRegistry","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"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620028c0380380620028c0833981810160405260208110156200003757600080fd5b5051604080518082018252600b81526a4f68212046696e616e636560a81b60208281019182528351808501909452600284526109e960f31b9084015281518493916200008791600391906200081e565b5080516200009d9060049060208401906200081e565b505060058054601260ff1990911617905550620000c6816200022c602090811b620014a917901c565b62000118576040805162461bcd60e51b815260206004820152601c60248201527f537562736372696265723a20496e76616c696420526567697374727900000000604482015290519081900360640190fd5b600580546001600160a01b0390921661010002610100600160a81b03199092169190911790557f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6200016962000232565b80516020918201206040805180820190915260018152603160f81b9201919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6620001b5620002cc565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b0316815260200195505050505050604051602081830303815290604052805190602001206080818152505062000225336a52b7d2dcc80cd2e4000000620002d060201b60201c565b50620008ca565b3b151590565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015620002c25780601f106200029657610100808354040283529160200191620002c2565b820191906000526020600020905b815481529060010190602001808311620002a457829003601f168201915b5050505050905090565b4690565b6a52b7d2dcc80cd2e4000000620002ff82620002eb62000395565b6200039b60201b620014af1790919060201c565b111562000353576040805162461bcd60e51b815260206004820152601a60248201527f546f6b656e3a204d617820537570706c79204578636565646564000000000000604482015290519081900360640190fd5b6200036a8282620003fd60201b620015091760201c565b6001600160a01b03808316600090815260066020526040812054620003919216836200050c565b5050565b60025490565b600082820183811015620003f6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821662000459576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620004676000838362000679565b62000483816002546200039b60201b620014af1790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620004b6918390620014af6200039b821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b816001600160a01b0316836001600160a01b0316141580156200052f5750600081115b1562000679576001600160a01b03831615620005d7576001600160a01b03831660009081526009602052604081205463ffffffff16908162000573576000620005a5565b6001600160a01b038516600090815260076020908152604080832063ffffffff60001987011684529091529020600101545b90506000620005c384836200067e60201b620015f91790919060201c565b9050620005d386848484620006dc565b5050505b6001600160a01b0382161562000679576001600160a01b03821660009081526009602052604081205463ffffffff1690816200061557600062000647565b6001600160a01b038416600090815260076020908152604080832063ffffffff60001987011684529091529020600101545b905060006200066584836200039b60201b620014af1790919060201c565b90506200067585848484620006dc565b5050505b505050565b600082821115620006d6576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b4363ffffffff8416158015906200072457506001600160a01b038516600090815260076020908152604080832063ffffffff6000198901811685529252909120548282169116145b1562000763576001600160a01b038516600090815260076020908152604080832063ffffffff60001989011684529091529020600101829055620007d4565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600784528681208b8616825284528681209551865490861663ffffffff19918216178755925160019687015590815260099092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620008565760008555620008a1565b82601f106200087157805160ff1916838001178555620008a1565b82800160010185558215620008a1579182015b82811115620008a157825182559160200191906001019062000884565b50620008af929150620008b3565b5090565b5b80821115620008af5760008155600101620008b4565b608051611fd1620008ef60003980610856528061100052806112e25250611fd16000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80635c19a95c1161010f578063a9059cbb116100a2578063d505accf11610071578063d505accf146105da578063dd62ed3e1461062b578063e7a324dc14610659578063f1127ed814610661576101e5565b8063a9059cbb14610517578063a91ee0dc14610543578063b20d7fa914610569578063b4b5ea57146105b4576101e5565b80637b103999116100de5780637b103999146104b55780637ecebe00146104bd57806395d89b41146104e3578063a457c2d7146104eb576101e5565b80635c19a95c146103fe5780636fcfff451461042457806370a0823114610463578063782d6fe114610489576101e5565b806332cb6b0c1161018757806342966c681161015657806342966c681461038f578063481c6a75146103ac578063587cde1e146103d05780635aa6e675146103f6576101e5565b806332cb6b0c146103255780633644e5151461032d578063395093511461033557806340c10f1914610361576101e5565b806320606b70116101c357806320606b70146102c157806323b872dd146102c957806330adf81f146102ff578063313ce56714610307576101e5565b806306fdde03146101ea578063095ea7b31461026757806318160ddd146102a7575b600080fd5b6101f26106b3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561022c578181015183820152602001610214565b50505050905090810190601f1680156102595780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102936004803603604081101561027d57600080fd5b506001600160a01b038135169060200135610749565b604080519115158252519081900360200190f35b6102af610767565b60408051918252519081900360200190f35b6102af61076d565b610293600480360360608110156102df57600080fd5b506001600160a01b03813581169160208101359091169060400135610791565b6102af610818565b61030f61083c565b6040805160ff9092168252519081900360200190f35b6102af610845565b6102af610854565b6102936004803603604081101561034b57600080fd5b506001600160a01b038135169060200135610878565b61038d6004803603604081101561037757600080fd5b506001600160a01b0381351690602001356108c6565b005b61038d600480360360208110156103a557600080fd5b5035610941565b6103b461094e565b604080516001600160a01b039092168252519081900360200190f35b6103b4600480360360208110156103e657600080fd5b50356001600160a01b03166109c1565b6103b46109dc565b61038d6004803603602081101561041457600080fd5b50356001600160a01b0316610a1e565b61044a6004803603602081101561043a57600080fd5b50356001600160a01b0316610a28565b6040805163ffffffff9092168252519081900360200190f35b6102af6004803603602081101561047957600080fd5b50356001600160a01b0316610a40565b6102af6004803603604081101561049f57600080fd5b506001600160a01b038135169060200135610a5b565b6103b4610c74565b6102af600480360360208110156104d357600080fd5b50356001600160a01b0316610c88565b6101f2610c9a565b6102936004803603604081101561050157600080fd5b506001600160a01b038135169060200135610cfb565b6102936004803603604081101561052d57600080fd5b506001600160a01b038135169060200135610d63565b61038d6004803603602081101561055957600080fd5b50356001600160a01b0316610d77565b61038d600480360360c081101561057f57600080fd5b506001600160a01b03813581169160208101359091169060408101359060ff6060820135169060808101359060a00135610ecb565b6102af600480360360208110156105ca57600080fd5b50356001600160a01b0316611149565b61038d600480360360e08110156105f057600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356111ad565b6102af6004803603604081101561064157600080fd5b506001600160a01b038135811691602001351661142d565b6102af611458565b6106936004803603604081101561067757600080fd5b5080356001600160a01b0316906020013563ffffffff1661147c565b6040805163ffffffff909316835260208301919091528051918290030190f35b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561073f5780601f106107145761010080835404028352916020019161073f565b820191906000526020600020905b81548152906001019060200180831161072257829003601f168201915b5050505050905090565b600061075d610756611656565b848461165a565b5060015b92915050565b60025490565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b600061079e848484611746565b61080e846107aa611656565b61080985604051806060016040528060288152602001611ee5602891396001600160a01b038a166000908152600160205260408120906107e8611656565b6001600160a01b031681526020810191909152604001600020549190611788565b61165a565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055460ff1690565b6a52b7d2dcc80cd2e400000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061075d610885611656565b846108098560016000610896611656565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906114af565b6108ce6109dc565b6001600160a01b0316336001600160a01b031614610933576040805162461bcd60e51b815260206004820152601b60248201527f537562736372696265723a204f6e6c7920476f7665726e616e63650000000000604482015290519081900360640190fd5b61093d828261181f565b5050565b61094b33826118bf565b50565b6000610958610c74565b6001600160a01b031663481c6a756040518163ffffffff1660e01b815260040160206040518083038186803b15801561099057600080fd5b505afa1580156109a4573d6000803e3d6000fd5b505050506040513d60208110156109ba57600080fd5b5051905090565b6006602052600090815260409020546001600160a01b031681565b60006109e6610c74565b6001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b15801561099057600080fd5b61094b33826118ef565b60096020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526020819052604090205490565b6000438210610ab1576040805162461bcd60e51b815260206004820152601c60248201527f4765745072696f72566f7465733a20496e76616c696420426c6f636b00000000604482015290519081900360640190fd5b6001600160a01b03831660009081526009602052604090205463ffffffff1680610adf576000915050610761565b6001600160a01b038416600090815260076020908152604080832063ffffffff600019860181168552925290912054168310610b4e576001600160a01b03841660009081526007602090815260408083206000199490940163ffffffff16835292905220600101549050610761565b6001600160a01b038416600090815260076020908152604080832083805290915290205463ffffffff16831015610b89576000915050610761565b600060001982015b8163ffffffff168163ffffffff161115610c3d576000600263ffffffff848403166001600160a01b038916600090815260076020908152604080832094909304860363ffffffff8181168452948252918390208351808501909452805490941680845260019094015490830152925090871415610c18576020015194506107619350505050565b805163ffffffff16871115610c2f57819350610c36565b6001820392505b5050610b91565b506001600160a01b038516600090815260076020908152604080832063ffffffff9094168352929052206001015491505092915050565b60055461010090046001600160a01b031690565b60086020526000908152604090205481565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561073f5780601f106107145761010080835404028352916020019161073f565b600061075d610d08611656565b8461080985604051806060016040528060258152602001611f776025913960016000610d32611656565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611788565b600061075d610d70611656565b8484611746565b610d7f6109dc565b6001600160a01b0316336001600160a01b031614610de4576040805162461bcd60e51b815260206004820152601b60248201527f537562736372696265723a204f6e6c7920476f7665726e616e63650000000000604482015290519081900360640190fd5b610ded816114a9565b610e3e576040805162461bcd60e51b815260206004820152601c60248201527f537562736372696265723a20496e76616c696420526567697374727900000000604482015290519081900360640190fd5b60058054610100600160a81b0319166101006001600160a01b03841602179055610e666109dc565b6001600160a01b0316336001600160a01b03161461094b576040805162461bcd60e51b815260206004820152601a60248201527f537562736372696265723a2042616420476f7665726e616e6365000000000000604482015290519081900360640190fd5b83421115610f20576040805162461bcd60e51b815260206004820152601c60248201527f44656c65676174653a20496e76616c69642045787069726174696f6e00000000604482015290519081900360640190fd5b6001600160a01b038616610f7b576040805162461bcd60e51b815260206004820152601b60248201527f44656c65676174653a20496e76616c69642044656c656761746f720000000000604482015290519081900360640190fd5b6001600160a01b0380871660008181526008602090815260408083205481517f6e12c49d4bb994bfc9ac87645136942a7d50ac01f816689809847f85f4c8f2d48185015280830195909552948a1660608501526080840185905260a08085018a90528151808603909101815260c08501825280519083012061190160f01b60e08601527f000000000000000000000000000000000000000000000000000000000000000060e286015261010280860191909152815180860390910181526101228501808352815191840191909120939052610142840180825283905260ff881661016285015261018284018790526101a284018690525191926001926101c28083019392601f198301929081900390910190855afa1580156110a1573d6000803e3d6000fd5b505050602060405103516001600160a01b0316886001600160a01b031614611110576040805162461bcd60e51b815260206004820152601b60248201527f44656c65676174653a20496e76616c6964205369676e61747572650000000000604482015290519081900360640190fd5b61111b8260016114af565b6001600160a01b03891660009081526008602052604090205561113e88886118ef565b50505b505050505050565b6001600160a01b03811660009081526009602052604081205463ffffffff16806111745760006111a6565b6001600160a01b038316600090815260076020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b83421115611202576040805162461bcd60e51b815260206004820152601860248201527f5065726d69743a20496e76616c696420446561646c696e650000000000000000604482015290519081900360640190fd5b6001600160a01b038716611255576040805162461bcd60e51b81526020600482015260156024820152742832b936b4ba1d1024b73b30b634b21027bbb732b960591b604482015290519081900360640190fd5b6001600160a01b0380881660008181526008602090815260408083205481517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98185015280830195909552948b166060850152608084018a905260a0840185905260c08085018a90528151808603909101815260e08501825280519083012061190160f01b6101008601527f000000000000000000000000000000000000000000000000000000000000000061010286015261012280860191909152815180860390910181526101428501808352815191840191909120939052610162840180825283905260ff88166101828501526101a284018790526101c284018690525191926001926101e28083019392601f198301929081900390910190855afa158015611384573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b0316146113f3576040805162461bcd60e51b815260206004820152601960248201527f5065726d69743a20496e76616c6964205369676e617475726500000000000000604482015290519081900360640190fd5b6113fe8260016114af565b6001600160a01b038a1660009081526008602052604090205561142289898961165a565b505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b7f6e12c49d4bb994bfc9ac87645136942a7d50ac01f816689809847f85f4c8f2d481565b60076020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b3b151590565b6000828201838110156111a6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216611564576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61157060008383611783565b60025461157d90826114af565b6002556001600160a01b0382166000908152602081905260409020546115a390826114af565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082821115611650576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b6001600160a01b03831661169f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611f536024913960400191505060405180910390fd5b6001600160a01b0382166116e45760405162461bcd60e51b8152600401808060200182810382526022815260200180611e9d6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b611751838383611984565b6001600160a01b0380841660009081526006602052604080822054858416835291205461178392918216911683611adf565b505050565b600081848411156118175760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117dc5781810151838201526020016117c4565b50505050905090810190601f1680156118095780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6a52b7d2dcc80cd2e400000061183d82611837610767565b906114af565b1115611890576040805162461bcd60e51b815260206004820152601a60248201527f546f6b656e3a204d617820537570706c79204578636565646564000000000000604482015290519081900360640190fd5b61189a8282611509565b6001600160a01b0380831660009081526006602052604081205461093d921683611adf565b6118c98282611c1c565b6001600160a01b0380831660009081526006602052604081205461093d92169083611adf565b6001600160a01b038083166000908152600660205260408120549091169061191684610a40565b6001600160a01b0385811660008181526006602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461197e828483611adf565b50505050565b6001600160a01b0383166119c95760405162461bcd60e51b8152600401808060200182810382526025815260200180611f2e6025913960400191505060405180910390fd5b6001600160a01b038216611a0e5760405162461bcd60e51b8152600401808060200182810382526023815260200180611e586023913960400191505060405180910390fd5b611a19838383611783565b611a5681604051806060016040528060268152602001611ebf602691396001600160a01b0386166000908152602081905260409020549190611788565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611a8590826114af565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b816001600160a01b0316836001600160a01b031614158015611b015750600081115b15611783576001600160a01b03831615611b93576001600160a01b03831660009081526009602052604081205463ffffffff169081611b41576000611b73565b6001600160a01b038516600090815260076020908152604080832063ffffffff60001987011684529091529020600101545b90506000611b8182856115f9565b9050611b8f86848484611d18565b5050505b6001600160a01b03821615611783576001600160a01b03821660009081526009602052604081205463ffffffff169081611bce576000611c00565b6001600160a01b038416600090815260076020908152604080832063ffffffff60001987011684529091529020600101545b90506000611c0e82856114af565b905061114185848484611d18565b6001600160a01b038216611c615760405162461bcd60e51b8152600401808060200182810382526021815260200180611f0d6021913960400191505060405180910390fd5b611c6d82600083611783565b611caa81604051806060016040528060228152602001611e7b602291396001600160a01b0385166000908152602081905260409020549190611788565b6001600160a01b038316600090815260208190526040902055600254611cd090826115f9565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b4363ffffffff841615801590611d5f57506001600160a01b038516600090815260076020908152604080832063ffffffff6000198901811685529252909120548282169116145b15611d9c576001600160a01b038516600090815260076020908152604080832063ffffffff60001989011684529091529020600101829055611e0d565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600784528681208b8616825284528681209551865490861663ffffffff19918216178755925160019687015590815260099092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a2505050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207343e56e86a2d5786813165ed392104515276b107e9084bb1314798d592bd02c64736f6c63430007060033000000000000000000000000b60406a48693c06142085f860cee9c14d72b217e
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80635c19a95c1161010f578063a9059cbb116100a2578063d505accf11610071578063d505accf146105da578063dd62ed3e1461062b578063e7a324dc14610659578063f1127ed814610661576101e5565b8063a9059cbb14610517578063a91ee0dc14610543578063b20d7fa914610569578063b4b5ea57146105b4576101e5565b80637b103999116100de5780637b103999146104b55780637ecebe00146104bd57806395d89b41146104e3578063a457c2d7146104eb576101e5565b80635c19a95c146103fe5780636fcfff451461042457806370a0823114610463578063782d6fe114610489576101e5565b806332cb6b0c1161018757806342966c681161015657806342966c681461038f578063481c6a75146103ac578063587cde1e146103d05780635aa6e675146103f6576101e5565b806332cb6b0c146103255780633644e5151461032d578063395093511461033557806340c10f1914610361576101e5565b806320606b70116101c357806320606b70146102c157806323b872dd146102c957806330adf81f146102ff578063313ce56714610307576101e5565b806306fdde03146101ea578063095ea7b31461026757806318160ddd146102a7575b600080fd5b6101f26106b3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561022c578181015183820152602001610214565b50505050905090810190601f1680156102595780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102936004803603604081101561027d57600080fd5b506001600160a01b038135169060200135610749565b604080519115158252519081900360200190f35b6102af610767565b60408051918252519081900360200190f35b6102af61076d565b610293600480360360608110156102df57600080fd5b506001600160a01b03813581169160208101359091169060400135610791565b6102af610818565b61030f61083c565b6040805160ff9092168252519081900360200190f35b6102af610845565b6102af610854565b6102936004803603604081101561034b57600080fd5b506001600160a01b038135169060200135610878565b61038d6004803603604081101561037757600080fd5b506001600160a01b0381351690602001356108c6565b005b61038d600480360360208110156103a557600080fd5b5035610941565b6103b461094e565b604080516001600160a01b039092168252519081900360200190f35b6103b4600480360360208110156103e657600080fd5b50356001600160a01b03166109c1565b6103b46109dc565b61038d6004803603602081101561041457600080fd5b50356001600160a01b0316610a1e565b61044a6004803603602081101561043a57600080fd5b50356001600160a01b0316610a28565b6040805163ffffffff9092168252519081900360200190f35b6102af6004803603602081101561047957600080fd5b50356001600160a01b0316610a40565b6102af6004803603604081101561049f57600080fd5b506001600160a01b038135169060200135610a5b565b6103b4610c74565b6102af600480360360208110156104d357600080fd5b50356001600160a01b0316610c88565b6101f2610c9a565b6102936004803603604081101561050157600080fd5b506001600160a01b038135169060200135610cfb565b6102936004803603604081101561052d57600080fd5b506001600160a01b038135169060200135610d63565b61038d6004803603602081101561055957600080fd5b50356001600160a01b0316610d77565b61038d600480360360c081101561057f57600080fd5b506001600160a01b03813581169160208101359091169060408101359060ff6060820135169060808101359060a00135610ecb565b6102af600480360360208110156105ca57600080fd5b50356001600160a01b0316611149565b61038d600480360360e08110156105f057600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356111ad565b6102af6004803603604081101561064157600080fd5b506001600160a01b038135811691602001351661142d565b6102af611458565b6106936004803603604081101561067757600080fd5b5080356001600160a01b0316906020013563ffffffff1661147c565b6040805163ffffffff909316835260208301919091528051918290030190f35b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561073f5780601f106107145761010080835404028352916020019161073f565b820191906000526020600020905b81548152906001019060200180831161072257829003601f168201915b5050505050905090565b600061075d610756611656565b848461165a565b5060015b92915050565b60025490565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b600061079e848484611746565b61080e846107aa611656565b61080985604051806060016040528060288152602001611ee5602891396001600160a01b038a166000908152600160205260408120906107e8611656565b6001600160a01b031681526020810191909152604001600020549190611788565b61165a565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055460ff1690565b6a52b7d2dcc80cd2e400000081565b7fa078fc2137bf6f5ae596d5e7ee3346ee69a5df7482f58a5f2159bf456899b42c81565b600061075d610885611656565b846108098560016000610896611656565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906114af565b6108ce6109dc565b6001600160a01b0316336001600160a01b031614610933576040805162461bcd60e51b815260206004820152601b60248201527f537562736372696265723a204f6e6c7920476f7665726e616e63650000000000604482015290519081900360640190fd5b61093d828261181f565b5050565b61094b33826118bf565b50565b6000610958610c74565b6001600160a01b031663481c6a756040518163ffffffff1660e01b815260040160206040518083038186803b15801561099057600080fd5b505afa1580156109a4573d6000803e3d6000fd5b505050506040513d60208110156109ba57600080fd5b5051905090565b6006602052600090815260409020546001600160a01b031681565b60006109e6610c74565b6001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b15801561099057600080fd5b61094b33826118ef565b60096020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526020819052604090205490565b6000438210610ab1576040805162461bcd60e51b815260206004820152601c60248201527f4765745072696f72566f7465733a20496e76616c696420426c6f636b00000000604482015290519081900360640190fd5b6001600160a01b03831660009081526009602052604090205463ffffffff1680610adf576000915050610761565b6001600160a01b038416600090815260076020908152604080832063ffffffff600019860181168552925290912054168310610b4e576001600160a01b03841660009081526007602090815260408083206000199490940163ffffffff16835292905220600101549050610761565b6001600160a01b038416600090815260076020908152604080832083805290915290205463ffffffff16831015610b89576000915050610761565b600060001982015b8163ffffffff168163ffffffff161115610c3d576000600263ffffffff848403166001600160a01b038916600090815260076020908152604080832094909304860363ffffffff8181168452948252918390208351808501909452805490941680845260019094015490830152925090871415610c18576020015194506107619350505050565b805163ffffffff16871115610c2f57819350610c36565b6001820392505b5050610b91565b506001600160a01b038516600090815260076020908152604080832063ffffffff9094168352929052206001015491505092915050565b60055461010090046001600160a01b031690565b60086020526000908152604090205481565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561073f5780601f106107145761010080835404028352916020019161073f565b600061075d610d08611656565b8461080985604051806060016040528060258152602001611f776025913960016000610d32611656565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611788565b600061075d610d70611656565b8484611746565b610d7f6109dc565b6001600160a01b0316336001600160a01b031614610de4576040805162461bcd60e51b815260206004820152601b60248201527f537562736372696265723a204f6e6c7920476f7665726e616e63650000000000604482015290519081900360640190fd5b610ded816114a9565b610e3e576040805162461bcd60e51b815260206004820152601c60248201527f537562736372696265723a20496e76616c696420526567697374727900000000604482015290519081900360640190fd5b60058054610100600160a81b0319166101006001600160a01b03841602179055610e666109dc565b6001600160a01b0316336001600160a01b03161461094b576040805162461bcd60e51b815260206004820152601a60248201527f537562736372696265723a2042616420476f7665726e616e6365000000000000604482015290519081900360640190fd5b83421115610f20576040805162461bcd60e51b815260206004820152601c60248201527f44656c65676174653a20496e76616c69642045787069726174696f6e00000000604482015290519081900360640190fd5b6001600160a01b038616610f7b576040805162461bcd60e51b815260206004820152601b60248201527f44656c65676174653a20496e76616c69642044656c656761746f720000000000604482015290519081900360640190fd5b6001600160a01b0380871660008181526008602090815260408083205481517f6e12c49d4bb994bfc9ac87645136942a7d50ac01f816689809847f85f4c8f2d48185015280830195909552948a1660608501526080840185905260a08085018a90528151808603909101815260c08501825280519083012061190160f01b60e08601527fa078fc2137bf6f5ae596d5e7ee3346ee69a5df7482f58a5f2159bf456899b42c60e286015261010280860191909152815180860390910181526101228501808352815191840191909120939052610142840180825283905260ff881661016285015261018284018790526101a284018690525191926001926101c28083019392601f198301929081900390910190855afa1580156110a1573d6000803e3d6000fd5b505050602060405103516001600160a01b0316886001600160a01b031614611110576040805162461bcd60e51b815260206004820152601b60248201527f44656c65676174653a20496e76616c6964205369676e61747572650000000000604482015290519081900360640190fd5b61111b8260016114af565b6001600160a01b03891660009081526008602052604090205561113e88886118ef565b50505b505050505050565b6001600160a01b03811660009081526009602052604081205463ffffffff16806111745760006111a6565b6001600160a01b038316600090815260076020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b83421115611202576040805162461bcd60e51b815260206004820152601860248201527f5065726d69743a20496e76616c696420446561646c696e650000000000000000604482015290519081900360640190fd5b6001600160a01b038716611255576040805162461bcd60e51b81526020600482015260156024820152742832b936b4ba1d1024b73b30b634b21027bbb732b960591b604482015290519081900360640190fd5b6001600160a01b0380881660008181526008602090815260408083205481517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98185015280830195909552948b166060850152608084018a905260a0840185905260c08085018a90528151808603909101815260e08501825280519083012061190160f01b6101008601527fa078fc2137bf6f5ae596d5e7ee3346ee69a5df7482f58a5f2159bf456899b42c61010286015261012280860191909152815180860390910181526101428501808352815191840191909120939052610162840180825283905260ff88166101828501526101a284018790526101c284018690525191926001926101e28083019392601f198301929081900390910190855afa158015611384573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b0316146113f3576040805162461bcd60e51b815260206004820152601960248201527f5065726d69743a20496e76616c6964205369676e617475726500000000000000604482015290519081900360640190fd5b6113fe8260016114af565b6001600160a01b038a1660009081526008602052604090205561142289898961165a565b505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b7f6e12c49d4bb994bfc9ac87645136942a7d50ac01f816689809847f85f4c8f2d481565b60076020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b3b151590565b6000828201838110156111a6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216611564576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61157060008383611783565b60025461157d90826114af565b6002556001600160a01b0382166000908152602081905260409020546115a390826114af565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082821115611650576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b6001600160a01b03831661169f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611f536024913960400191505060405180910390fd5b6001600160a01b0382166116e45760405162461bcd60e51b8152600401808060200182810382526022815260200180611e9d6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b611751838383611984565b6001600160a01b0380841660009081526006602052604080822054858416835291205461178392918216911683611adf565b505050565b600081848411156118175760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117dc5781810151838201526020016117c4565b50505050905090810190601f1680156118095780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6a52b7d2dcc80cd2e400000061183d82611837610767565b906114af565b1115611890576040805162461bcd60e51b815260206004820152601a60248201527f546f6b656e3a204d617820537570706c79204578636565646564000000000000604482015290519081900360640190fd5b61189a8282611509565b6001600160a01b0380831660009081526006602052604081205461093d921683611adf565b6118c98282611c1c565b6001600160a01b0380831660009081526006602052604081205461093d92169083611adf565b6001600160a01b038083166000908152600660205260408120549091169061191684610a40565b6001600160a01b0385811660008181526006602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461197e828483611adf565b50505050565b6001600160a01b0383166119c95760405162461bcd60e51b8152600401808060200182810382526025815260200180611f2e6025913960400191505060405180910390fd5b6001600160a01b038216611a0e5760405162461bcd60e51b8152600401808060200182810382526023815260200180611e586023913960400191505060405180910390fd5b611a19838383611783565b611a5681604051806060016040528060268152602001611ebf602691396001600160a01b0386166000908152602081905260409020549190611788565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611a8590826114af565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b816001600160a01b0316836001600160a01b031614158015611b015750600081115b15611783576001600160a01b03831615611b93576001600160a01b03831660009081526009602052604081205463ffffffff169081611b41576000611b73565b6001600160a01b038516600090815260076020908152604080832063ffffffff60001987011684529091529020600101545b90506000611b8182856115f9565b9050611b8f86848484611d18565b5050505b6001600160a01b03821615611783576001600160a01b03821660009081526009602052604081205463ffffffff169081611bce576000611c00565b6001600160a01b038416600090815260076020908152604080832063ffffffff60001987011684529091529020600101545b90506000611c0e82856114af565b905061114185848484611d18565b6001600160a01b038216611c615760405162461bcd60e51b8152600401808060200182810382526021815260200180611f0d6021913960400191505060405180910390fd5b611c6d82600083611783565b611caa81604051806060016040528060228152602001611e7b602291396001600160a01b0385166000908152602081905260409020549190611788565b6001600160a01b038316600090815260208190526040902055600254611cd090826115f9565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b4363ffffffff841615801590611d5f57506001600160a01b038516600090815260076020908152604080832063ffffffff6000198901811685529252909120548282169116145b15611d9c576001600160a01b038516600090815260076020908152604080832063ffffffff60001989011684529091529020600101829055611e0d565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600784528681208b8616825284528681209551865490861663ffffffff19918216178755925160019687015590815260099092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a2505050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207343e56e86a2d5786813165ed392104515276b107e9084bb1314798d592bd02c64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b60406a48693c06142085f860cee9c14d72b217e
-----Decoded View---------------
Arg [0] : registry_ (address): 0xb60406a48693c06142085f860Cee9C14D72B217E
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b60406a48693c06142085f860cee9c14d72b217e
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.