ERC-20
Overview
Max Total Supply
1,000,000 VOTE
Holders
293
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000000006596 VOTEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Vote
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 500 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "./ERC246.sol"; contract Vote is ERC246 { /** * @notice Constructor to initialize the governance token. * @param name_ The name of the ERC20 token. * @param symbol_ The symbol of the ERC20 token. * @param _initialSupply The initial token supply to be minted. */ constructor(string memory name_, string memory symbol_, uint256 _initialSupply) ERC246(name_, symbol_) { _mint(msg.sender, _initialSupply); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "./IERC246.sol"; /** * @title ERC246 * @dev ERC20 token with governance capabilities. Token holders can create and vote on proposals. * Proposals can execute multiple functions via encoded function calls, such as minting tokens, changing the name, airdrops, etc. */ abstract contract ERC246 is ERC20, IERC246, ReentrancyGuard { using Address for address; using Counters for Counters.Counter; /// @notice A struct representing a proposal. struct Proposal { address proposer; string title; address[] targets; // Target contract addresses to call bytes[] data; // Encoded function call data for each target uint256[] values; // ETH values to send with each call uint256 deadlineBlock; // Proposal voting deadline in block numbers uint256 enqueueBlock; // Proposal voting deadline in block numbers bool executed; // Whether the proposal has been executed bool accepted; // Whether the proposal has been accepted bool enqueued; // Whether the proposal has been enqueued for execution bool terminatedWithRejection; // Whether the proposal has been definitively rejected address[] voters; // List of voters mapping(address => bool) hasVoted; // Track voters to prevent double voting mapping(address => bool) voteSupport; // Track whether voter voted for (true) or against (false) } /// @notice Mapping from proposal ID to Proposal struct. mapping(uint256 => Proposal) public proposals; /// @notice Counter to keep track of proposal IDs. Counters.Counter public proposalIdCounter; /// @notice Minimum voting duration in blocks (initially set to 1 day, e.g., 5760 blocks) uint256 public minimumVotingDurationBlocks = 5760; /// @notice Minimum allowed voting duration in blocks. uint256 public constant MINIMUM_ALLOWED_PROPOSAL_DURATION_BLOCKS = 750; // Approximately 2.5 hours on Ethereum /// @notice Delay between proposal enqueueing and execution in blocks. uint256 public executionDelayInBlocks = 1200; //(~4 hours at 12s per block) /// @notice Minimum allowed proposal execution delay in blocks. uint256 public constant MINIMUM_ALLOWED_EXECUTION_DELAY_BLOCKS = 750; // Approximately 2.5 hours on Ethereum /// @notice The quorum needed for a proposal to be accepted expressed as a percentage of the supply in basis points uint256 public quorumSupplyPercentageBps = 400; /// @notice Minimum allowed quorum supply percentage basis points uint256 public constant MINIMUM_ALLOWED_QUORUM_SUPPLY_PERCENTAGE_BPS = 100; /// @notice Transfer fee in basis points (100 bps = 1%) uint256 public transferFeeBps = 0; /// @notice Max cap of 5% transfer fee uint256 public constant MAX_TRANSFER_FEE_BPS = 500; // Max 5% fee /// @notice Maximum percentage of the supply that can be minted via proposal expressed in basis points. uint256 public constant MAXIMUM_MINT_SUPPLY_PERCENTAGE_BPS = 500; /// @notice Mapping to track the block in which each user last received tokens. mapping(address => uint256) public lastTokenAcquisitionBlock; // Mapping to track the last block in which a function was executed mapping(bytes4 => uint256) public lastExecutionBlock; /// @notice Mapping to store minting airdrop allocations for each recipient. mapping(address => uint256) public mintAirdropAllocations; /// @notice Mapping to store treasury airdrop allocations for each recipient. mapping(address => uint256) public airdropAllocationsFromTreasury; /// @notice Total amount of tokens locked in the treasury for airdrop claims. uint256 public lockedTreasuryTokens; /// @notice The name of the token string private _name; /// @notice The symbol of the token string private _symbol; /** * @notice Modifier to restrict function access to only the governance contract (i.e., only callable via a proposal). */ modifier onlyGovernanceProposal() { require(msg.sender == address(this), "ERC246: Only callable via governance proposal"); _; } /** * @notice Modifier to ensure the function is only executed once per block (so, also once per proposal). * @dev Uses `msg.sig` to identify the function by its signature, regardless of parameters. */ modifier onlyOncePerBlock() { require(lastExecutionBlock[msg.sig] != block.number, "ERC246: Function already executed in this block"); lastExecutionBlock[msg.sig] = block.number; _; } /** * @notice Constructor to initialize the governance token. * @param name_ The name of the ERC20 token. * @param symbol_ The symbol of the ERC20 token. */ constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) { _name = name_; _symbol = symbol_; } // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Core governance functions ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /** * @notice Create a new proposal with multiple function calls. * @param _targets The target contract addresses for the proposal. * @param _data The encoded function calls (signature + parameters) to be executed if the proposal passes. * @param _votingDurationInBlocks The duration (in blocks) for which the proposal will be open for voting. */ function createProposal( string calldata _title, address[] memory _targets, bytes[] memory _data, uint256[] memory _values, uint256 _votingDurationInBlocks ) external override { require(balanceOf(msg.sender) > 0, "ERC246: Only token holders can create proposals"); require(_targets.length == _data.length && _data.length == _values.length, "ERC246: Targets, data and values length mismatch"); require(_votingDurationInBlocks >= minimumVotingDurationBlocks, "ERC246: Voting duration too short"); require(bytes(_title).length <= 50, "ERC246: Title cannot be longer than 50 characters"); uint256 proposalId = proposalIdCounter.current(); Proposal storage newProposal = proposals[proposalId]; newProposal.proposer = msg.sender; newProposal.title = _title; newProposal.deadlineBlock = block.number + _votingDurationInBlocks; newProposal.targets = _targets; newProposal.data = _data; newProposal.values = _values; proposalIdCounter.increment(); emit ProposalCreated(proposalId, _targets, _data, _values, newProposal.deadlineBlock); } /** * @notice Vote on an active proposal. * @param _proposalId The ID of the proposal to vote on. * @param _support A boolean indicating whether the vote is in favor (true) or against (false). */ function vote(uint256 _proposalId, bool _support) override external nonReentrant { Proposal storage proposal = _getProposal(_proposalId); require(block.number < proposal.deadlineBlock, "ERC246: Voting period has ended"); require(!proposal.hasVoted[msg.sender], "ERC246: You have already voted on this proposal"); // Register the voter's address proposal.voters.push(msg.sender); proposal.hasVoted[msg.sender] = true; proposal.voteSupport[msg.sender] = _support; emit VoteCast(msg.sender, _proposalId, _support); } /** * @notice Enqueue a proposal for execution after voting ends. * @dev After voting ends, anyone can call this to signal that the proposal should be executed after the time-lock. */ function enqueueProposal(uint256 _proposalId) override external { Proposal storage proposal = _getProposal(_proposalId); require(block.number >= proposal.deadlineBlock, "ERC246: Voting period not yet ended"); require(!proposal.enqueued, "ERC246: Proposal already enqueued"); require(!proposal.executed, "ERC246: Proposal already executed"); require(!proposal.terminatedWithRejection, "ERC246: Proposal has been rejected"); uint256 quorumThreshold = (totalSupply() * quorumSupplyPercentageBps) / 10000; (uint256 votesFor, uint256 votesAgainst) = getProposalCurrentOutcome(_proposalId); proposal.accepted = (votesFor + votesAgainst >= quorumThreshold) && (votesFor > votesAgainst); if (proposal.accepted) { proposal.enqueued = true; proposal.enqueueBlock = block.number; emit ProposalEnqueued(_proposalId, proposal.accepted); } else { proposal.terminatedWithRejection = true; emit ProposalRejected(_proposalId); } } /** * @notice Execute a proposal after the time-lock has passed. * @dev This uses the outcome snapshot stored during the `enqueueProposal` call. */ function executeProposal(uint256 _proposalId) external override nonReentrant { Proposal storage proposal = _getProposal(_proposalId); require(proposal.accepted, "ERC246: Cannot execute rejected proposal"); require(proposal.enqueued, "ERC246: Proposal must be enqueued first"); require(!proposal.executed, "ERC246: Proposal already executed"); require(!proposal.terminatedWithRejection, "ERC246: Proposal has been rejected"); uint256 executionBlock = proposal.enqueueBlock + executionDelayInBlocks; require(block.number >= executionBlock, "ERC246: Time-lock has not passed"); proposal.executed = true; for (uint256 i = 0; i < proposal.targets.length;) { (bool success, bytes memory returnData) = proposal.targets[i].call{value: proposal.values[i]}(proposal.data[i]); if (!success) { // If the call fails, try to decode the revert reason if (returnData.length > 0) { // The call reverted with a message, decode and revert with it assembly { let returndata_size := mload(returnData) revert(add(32, returnData), returndata_size) } } else { // No revert reason, fallback to generic error revert("ERC246: Execution failed for one of the targets"); } } unchecked { ++i; } } emit ProposalExecuted(_proposalId, true); } /** * @notice Allows the proposer or governance to delete a proposal. * @param _proposalId The ID of the proposal to delete. */ function deleteProposal(uint256 _proposalId) override external { Proposal storage proposal = _getProposal(_proposalId); // Ensure only proposer or governance can delete the proposal require(msg.sender == proposal.proposer || msg.sender == address(this), "ERC246: Only proposer or governance can delete"); require(!proposal.enqueued, "ERC246: Cannot delete an enqueued proposal"); require(!proposal.executed, "ERC246: Cannot delete an executed proposal"); // Delete the proposal from storage delete proposals[_proposalId]; emit ProposalDeleted(_proposalId); } // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Functions callable only via accepted proposal ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /** * @notice Update the token name (only callable via a governance proposal). * @param newName The new name of the token. */ function updateName(string calldata newName) external onlyGovernanceProposal { _name = newName; } /** * @notice Update the token symbol (only callable via a governance proposal). * @param newSymbol The new symbol of the token. */ function updateSymbol(string calldata newSymbol) external onlyGovernanceProposal { _symbol = newSymbol; } /** * @notice Update the minimum voting duration in blocks. * @dev This function can only be called via a governance proposal (using the `onlyGovernanceProposal` modifier). * @param _newMinimumDuration The new minimum voting duration in blocks. */ function updateMinimumVotingDurationBlocks(uint256 _newMinimumDuration) external onlyGovernanceProposal { require(_newMinimumDuration >= MINIMUM_ALLOWED_PROPOSAL_DURATION_BLOCKS, "ERC246: Minimum voting duration must be greater than MINIMUM_ALLOWED_PROPOSAL_DURATION_BLOCKS"); minimumVotingDurationBlocks = _newMinimumDuration; } /** * @notice Update the proposal execution delay in blocks. * @dev This function can only be called via a governance proposal (using the `onlyGovernanceProposal` modifier). * @param _newDelay The new proposal execution delay in blocks. */ function updateProposalExecutionDelayBlocks(uint256 _newDelay) external onlyGovernanceProposal { require(_newDelay >= MINIMUM_ALLOWED_EXECUTION_DELAY_BLOCKS, "ERC246: Proposal execution delay must be greater than MINIMUM_ALLOWED_EXECUTION_DELAY_BLOCKS"); executionDelayInBlocks = _newDelay; } /** * @notice Update the quorum supply percentage. * @dev This function can only be called via a governance proposal (using the `onlyGovernanceProposal` modifier). * @param _newQuorumSupplyPercentage The new proposal execution delay in blocks. */ function updateQuorumSupplyPercentage(uint256 _newQuorumSupplyPercentage) external onlyGovernanceProposal { require(_newQuorumSupplyPercentage >= MINIMUM_ALLOWED_QUORUM_SUPPLY_PERCENTAGE_BPS, "ERC246: Quorum supply percentage must be greater than MINIMUM_ALLOWED_QUORUM_SUPPLY_PERCENTAGE_BPS"); quorumSupplyPercentageBps = _newQuorumSupplyPercentage; } /** * @notice Update the transfer fee percentage (in basis points) via governance proposal. * @param newTransferFeeBps The new transfer fee (in basis points). */ function updateTransferFeeBps(uint256 newTransferFeeBps) external onlyGovernanceProposal { require(newTransferFeeBps <= MAX_TRANSFER_FEE_BPS, "ERC246: Transfer fee exceeds max limit"); transferFeeBps = newTransferFeeBps; } /** * @notice Transfer tokens from the contract's balance to a given recipient (only callable via a governance proposal). * @dev This function transfers tokens from the contract balance to the specified recipient. * It can only be called via an approved governance proposal. * @param _recipient The address to receive the transferred tokens. * @param _amount The amount of tokens to transfer from the contract's balance. */ function transferFromTreasury(address _recipient, uint256 _amount) external onlyGovernanceProposal { require(_recipient != address(0), "ERC246: Cannot transfer to the zero address"); require(balanceOf(address(this)) >= _amount, "ERC246: Insufficient contract balance"); _transfer(address(this), _recipient, _amount); } /** * @notice Mint new tokens (only callable via a governance proposal). * @dev This function mints tokens and ensures the total supply does not exceed * a certain percentage increase from the current supply. * @param _recipient The address to receive the newly minted tokens. * @param _amount The amount of tokens to mint. */ function mint(address _recipient, uint256 _amount) external onlyGovernanceProposal onlyOncePerBlock { require(_amount <= totalSupply() * MAXIMUM_MINT_SUPPLY_PERCENTAGE_BPS / 10000, "ERC246: Cannot mint a percentage of the supply greater than MAXIMUM_MINT_SUPPLY_PERCENTAGE"); _mint(_recipient, _amount); } /** * @notice Allocate tokens to a list of recipients for future airdrop claims (only callable via a governance proposal). * @dev This function sets up an airdrop allocation, which can be claimed by recipients later. * @param recipients The list of addresses to receive the airdropped tokens. * @param amounts The corresponding list of amounts of tokens allocated to each recipient. */ function airdropByMinting(address[] calldata recipients, uint256[] calldata amounts) external onlyGovernanceProposal onlyOncePerBlock{ require(recipients.length == amounts.length, "ERC246: Recipients and amounts length mismatch"); // Calculate the total amount of tokens to be minted uint256 totalMintAmount = 0; for (uint256 i = 0; i < amounts.length; i++) { totalMintAmount += amounts[i]; } require(totalMintAmount <= (totalSupply() * MAXIMUM_MINT_SUPPLY_PERCENTAGE_BPS) / 10000, "ERC246: Minting amount exceeds maximum supply percentage"); for (uint256 i = 0; i < recipients.length; i++) { mintAirdropAllocations[recipients[i]] += amounts[i]; } } /** * @notice Allocate tokens to a list of recipients for future claims using the contract’s treasury (only callable via governance proposal). * @dev This function sets up an airdrop allocation using treasury funds. * @param recipients The list of addresses to receive the airdropped tokens. * @param amounts The corresponding list of amounts of tokens allocated to each recipient. */ function airdropFromTreasury(address[] calldata recipients, uint256[] calldata amounts) external onlyGovernanceProposal { require(recipients.length == amounts.length, "ERC246: Recipients and amounts length mismatch"); uint256 totalAirdropAmount = 0; for (uint256 i = 0; i < recipients.length; i++) { totalAirdropAmount += amounts[i]; airdropAllocationsFromTreasury[recipients[i]] += amounts[i]; } require(balanceOf(address(this)) >= totalAirdropAmount, "ERC246: Insufficient contract balance for airdrop"); lockedTreasuryTokens += totalAirdropAmount; } /** * @notice Burn tokens from the contract's treasury (only callable via a governance proposal). * @dev This function burns tokens from the contract balance, reducing the total supply. * @param _amount The amount of tokens to burn from the contract's treasury. */ function burnFromTreasury(uint256 _amount) external onlyGovernanceProposal { _burn(address(this), _amount); } // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other utility functions ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /** * @notice Claim allocated airdrop tokens that were minted. * @dev This function allows recipients to claim their allocated airdrop tokens from minting. */ function claimMintAirdrop() external nonReentrant { uint256 amount = mintAirdropAllocations[msg.sender]; require(amount > 0, "ERC246: No airdrop tokens available to claim from mint"); mintAirdropAllocations[msg.sender] = 0; _mint(msg.sender, amount); } /** * @notice Claim allocated airdrop tokens from the contract's balance (treasury). * @dev This function allows recipients to claim their allocated airdrop tokens from treasury. */ function claimAirdropFromTreasury() external nonReentrant { uint256 amount = airdropAllocationsFromTreasury[msg.sender]; require(amount > 0, "ERC246: No airdrop tokens available to claim from treasury"); airdropAllocationsFromTreasury[msg.sender] = 0; lockedTreasuryTokens -= amount; _transfer(address(this), msg.sender, amount); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal override { // If the contract itself is the sender (i.e., tokens are being transferred from the treasury) if (from == address(this)) { // Ensure that the amount being transferred does not exceed the unlocked balance require(balanceOf(address(this)) - lockedTreasuryTokens >= amount, "ERC246: Insufficient unlocked treasury balance"); } if (to != address(0) && from != address(0)) { // Track the block number for token acquisition (for governance voting purposes) lastTokenAcquisitionBlock[to] = block.number; } super._beforeTokenTransfer(from, to, amount); } function _transfer(address from, address to, uint256 amount) internal override { // Apply transfer fee if applicable if (transferFeeBps > 0 && from != address(0) && to != address(0)) { uint256 feeAmount = (amount * transferFeeBps) / 10000; uint256 transferAmount = amount - feeAmount; // Transfer the fee to the treasury super._transfer(from, address(this), feeAmount); // Transfer the remaining amount to the recipient super._transfer(from, to, transferAmount); } else { // Perform the regular transfer if no fees super._transfer(from, to, amount); } } // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ View/pure functions ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /** * @notice Calculate the available voting power for an account. * @param _account The address of the voter. * @return The available voting power based on token balance. */ function _getVotingPower(address _account) internal view returns (uint256) { if (block.number == lastTokenAcquisitionBlock[_account]) {return 0;} return balanceOf(_account); } /** * @notice Get the current voting outcome of a proposal. * @dev This function calculates the total votes for and against a proposal based on the current token balances of voters. * It loops through all voters of the proposal and calculates their voting power. * @param _proposalId The ID of the proposal for which to retrieve the voting outcome. * @return votesFor The total votes in favor of the proposal, calculated from the voting power of supporting voters. * @return votesAgainst The total votes against the proposal, calculated from the voting power of opposing voters. */ function getProposalCurrentOutcome(uint256 _proposalId) override public view returns (uint256 votesFor, uint256 votesAgainst) { Proposal storage proposal = _getProposal(_proposalId); // Initialize votes for and against uint256 totalVotesFor = 0; uint256 totalVotesAgainst = 0; // Calculate voting power based on current token balances address[] memory voters = proposal.voters; uint256 numVoters = voters.length; for (uint256 i = 0; i < numVoters;) { address voter = voters[i]; uint256 currentVotingPower = _getVotingPower(voter); // Snapshot based on current balance if (proposal.voteSupport[voter]) { unchecked { totalVotesFor += currentVotingPower; } } else { unchecked { totalVotesAgainst += currentVotingPower; } } unchecked { ++i; } } return (totalVotesFor, totalVotesAgainst); } /** * @dev Internal function to retrieve a proposal and ensure it hasn't been deleted. * @param _proposalId The ID of the proposal to retrieve. * @return proposal The retrieved proposal. */ function _getProposal(uint256 _proposalId) private view returns (Proposal storage) { Proposal storage proposal = proposals[_proposalId]; require(proposal.proposer != address(0), "ERC246: Proposal does not exist or has been deleted"); return proposal; } /** * @notice Override the `name` function from ERC20 to allow dynamic updates via governance proposal. * @return The name of the token. */ function name() public view override returns (string memory) { return _name; } /** * @notice Override the `symbol` function from ERC20 to allow dynamic updates via governance proposal. * @return The symbol of the token. */ function symbol() public view override returns (string memory) { return _symbol; } /** * @notice Get target contract addresses of a proposal * @return An array of target contract addresses */ function getProposalTargets(uint256 _proposalId) public view returns (address[] memory) { return _getProposal(_proposalId).targets; } /** * @notice Get encoded functions call data of a proposal * @return An array of encoded functions call data */ function getProposalFunctionsData(uint256 _proposalId) public view returns (bytes[] memory) { return _getProposal(_proposalId).data; } /** * @notice Get ETH values of a proposal * @return An array of ETH values */ function getProposalETHValues(uint256 _proposalId) public view returns (uint256[] memory) { return _getProposal(_proposalId).values; } /** * @notice Get addresses who voted in a proposal * @return An array voter addresses */ function getProposalVoters(uint256 _proposalId) public view returns (address[] memory) { return _getProposal(_proposalId).voters; } /** * @notice Checks if a address has voted in a proposal * @return Boolean indicating if the address has voted */ function hasVoted(address _voter, uint256 _proposalId) public view returns (bool) { return _getProposal(_proposalId).hasVoted[_voter]; } /** * @notice Checks if a address has voted for or against a proposal * @return Boolean indicating voter's support */ function gatVoteSupport(address _voter, uint256 _proposalId) public view returns (bool) { return _getProposal(_proposalId).voteSupport[_voter]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; /** * @title IERC246 * @dev Interface for the ERCX governance token with proposal and voting functionality. */ interface IERC246 { /** * @notice Create a new proposal with multiple function calls. * @param _targets The target contract addresses for the proposal. * @param _data The encoded function calls (signature + parameters) to be executed if the proposal passes. * @param _values The amount of Ether to send with each function call. * @param _votingDurationInBlocks The duration (in blocks) for which the proposal will be open for voting. */ function createProposal(string memory title, address[] memory _targets, bytes[] memory _data, uint256[] memory _values, uint256 _votingDurationInBlocks) external; /** * @notice Vote on an active proposal. * @param _proposalId The ID of the proposal to vote on. * @param _support A boolean indicating whether the vote is in favor (true) or against (false). */ function vote(uint256 _proposalId, bool _support) external; /** * @notice Enqueue a proposal for execution after voting ends. * @param _proposalId The ID of the proposal to enqueue. */ function enqueueProposal(uint256 _proposalId) external; /** * @notice Execute the proposal if the voting period has ended and the proposal passed. * @param _proposalId The ID of the proposal to execute. */ function executeProposal(uint256 _proposalId) external; /** * @notice Allows the proposer or governance to delete a proposal. * @param _proposalId The ID of the proposal to delete. */ function deleteProposal(uint256 _proposalId) external; /** * @notice Get the current voting outcome of a proposal. * @param _proposalId The ID of the proposal to check. * @return votesFor The total votes in favor of the proposal. * @return votesAgainst The total votes against the proposal. */ function getProposalCurrentOutcome(uint256 _proposalId) external view returns (uint256 votesFor, uint256 votesAgainst); /** * @notice Event emitted when a new proposal is created. * @param proposalId The ID of the proposal. * @param targets The target contract addresses. * @param data The encoded function calls. * @param values The amount of Ether to send with each function call. * @param deadlineBlock The block number at which voting will end. */ event ProposalCreated(uint256 indexed proposalId, address[] targets, bytes[] data, uint256[] values, uint256 deadlineBlock); /** * @notice Event emitted when a vote is cast. * @param voter The address of the voter. * @param proposalId The ID of the proposal. * @param support Whether the vote was in favor or against the proposal. */ event VoteCast(address indexed voter, uint256 indexed proposalId, bool support); /** * @notice Event emitted when a proposal is enqueued for execution. * @param proposalId The ID of the proposal. * @param accepted Whether the proposal was accepted (true) or rejected (false). */ event ProposalEnqueued(uint256 indexed proposalId, bool indexed accepted); /** * @notice Event emitted when a proposal is executed. * @param proposalId The ID of the proposal. * @param accepted Whether the proposal was accepted (true) or rejected (false). */ event ProposalExecuted(uint256 indexed proposalId, bool indexed accepted); /** * @notice Event emitted when a proposal is rejected. * @param proposalId The ID of the proposal. */ event ProposalRejected(uint256 indexed proposalId); /** * @notice Event emitted when a proposal is deleted. * @param proposalId The ID of the proposal. */ event ProposalDeleted(uint256 indexed proposalId); }
{ "optimizer": { "enabled": true, "runs": 500 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
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":"uint256","name":"_initialSupply","type":"uint256"}],"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":"uint256","name":"proposalId","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"targets","type":"address[]"},{"indexed":false,"internalType":"bytes[]","name":"data","type":"bytes[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"deadlineBlock","type":"uint256"}],"name":"ProposalCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"ProposalDeleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"proposalId","type":"uint256"},{"indexed":true,"internalType":"bool","name":"accepted","type":"bool"}],"name":"ProposalEnqueued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"proposalId","type":"uint256"},{"indexed":true,"internalType":"bool","name":"accepted","type":"bool"}],"name":"ProposalExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"ProposalRejected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":true,"internalType":"uint256","name":"proposalId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"support","type":"bool"}],"name":"VoteCast","type":"event"},{"inputs":[],"name":"MAXIMUM_MINT_SUPPLY_PERCENTAGE_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TRANSFER_FEE_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_ALLOWED_EXECUTION_DELAY_BLOCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_ALLOWED_PROPOSAL_DURATION_BLOCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_ALLOWED_QUORUM_SUPPLY_PERCENTAGE_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"airdropAllocationsFromTreasury","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdropByMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdropFromTreasury","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":"uint256","name":"_amount","type":"uint256"}],"name":"burnFromTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAirdropFromTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimMintAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_title","type":"string"},{"internalType":"address[]","name":"_targets","type":"address[]"},{"internalType":"bytes[]","name":"_data","type":"bytes[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"uint256","name":"_votingDurationInBlocks","type":"uint256"}],"name":"createProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_proposalId","type":"uint256"}],"name":"deleteProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_proposalId","type":"uint256"}],"name":"enqueueProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_proposalId","type":"uint256"}],"name":"executeProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"executionDelayInBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_voter","type":"address"},{"internalType":"uint256","name":"_proposalId","type":"uint256"}],"name":"gatVoteSupport","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_proposalId","type":"uint256"}],"name":"getProposalCurrentOutcome","outputs":[{"internalType":"uint256","name":"votesFor","type":"uint256"},{"internalType":"uint256","name":"votesAgainst","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_proposalId","type":"uint256"}],"name":"getProposalETHValues","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_proposalId","type":"uint256"}],"name":"getProposalFunctionsData","outputs":[{"internalType":"bytes[]","name":"","type":"bytes[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_proposalId","type":"uint256"}],"name":"getProposalTargets","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_proposalId","type":"uint256"}],"name":"getProposalVoters","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_voter","type":"address"},{"internalType":"uint256","name":"_proposalId","type":"uint256"}],"name":"hasVoted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"bytes4","name":"","type":"bytes4"}],"name":"lastExecutionBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastTokenAcquisitionBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedTreasuryTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumVotingDurationBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"mintAirdropAllocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proposalIdCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proposals","outputs":[{"internalType":"address","name":"proposer","type":"address"},{"internalType":"string","name":"title","type":"string"},{"internalType":"uint256","name":"deadlineBlock","type":"uint256"},{"internalType":"uint256","name":"enqueueBlock","type":"uint256"},{"internalType":"bool","name":"executed","type":"bool"},{"internalType":"bool","name":"accepted","type":"bool"},{"internalType":"bool","name":"enqueued","type":"bool"},{"internalType":"bool","name":"terminatedWithRejection","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quorumSupplyPercentageBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFromTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMinimumDuration","type":"uint256"}],"name":"updateMinimumVotingDurationBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newName","type":"string"}],"name":"updateName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newDelay","type":"uint256"}],"name":"updateProposalExecutionDelayBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newQuorumSupplyPercentage","type":"uint256"}],"name":"updateQuorumSupplyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newSymbol","type":"string"}],"name":"updateSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTransferFeeBps","type":"uint256"}],"name":"updateTransferFeeBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_proposalId","type":"uint256"},{"internalType":"bool","name":"_support","type":"bool"}],"name":"vote","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526116806008556104b0600955610190600a556000600b553480156200002857600080fd5b5060405162004023380380620040238339810160408190526200004b916200033c565b8282818160036200005d83826200043d565b5060046200006c82826200043d565b505060016005555060116200008283826200043d565b5060126200009182826200043d565b505050620000a63382620000af60201b60201c565b50505062000551565b6001600160a01b0382166200010b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b620001196000838362000184565b80600260008282546200012d91906200051f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b306001600160a01b038416036200021c57601054306000908152602081905260409020548291620001b5916200053b565b10156200021c5760405162461bcd60e51b815260206004820152602e60248201527f4552433234363a20496e73756666696369656e7420756e6c6f636b656420747260448201526d6561737572792062616c616e636560901b606482015260840162000102565b6001600160a01b038216158015906200023d57506001600160a01b03831615155b156200025f576001600160a01b0382166000908152600c602052604090204390555b620002728383836001600160e01b038416565b505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200029f57600080fd5b81516001600160401b0380821115620002bc57620002bc62000277565b604051601f8301601f19908116603f01168101908282118183101715620002e757620002e762000277565b816040528381526020925086838588010111156200030457600080fd5b600091505b8382101562000328578582018301518183018401529082019062000309565b600093810190920192909252949350505050565b6000806000606084860312156200035257600080fd5b83516001600160401b03808211156200036a57600080fd5b62000378878388016200028d565b945060208601519150808211156200038f57600080fd5b506200039e868287016200028d565b925050604084015190509250925092565b600181811c90821680620003c457607f821691505b602082108103620003e557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200027257600081815260208120601f850160051c81016020861015620004145750805b601f850160051c820191505b81811015620004355782815560010162000420565b505050505050565b81516001600160401b0381111562000459576200045962000277565b62000471816200046a8454620003af565b84620003eb565b602080601f831160018114620004a95760008415620004905750858301515b600019600386901b1c1916600185901b17855562000435565b600085815260208120601f198616915b82811015620004da57888601518255948401946001909101908401620004b9565b5085821015620004f95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111562000535576200053562000509565b92915050565b8181038181111562000535576200053562000509565b613ac280620005616000396000f3fe608060405234801561001057600080fd5b506004361061034c5760003560e01c80636a60dacf116101bd578063a9059cbb116100f9578063c84f1c3a116100a2578063d59ce68d1161007c578063d59ce68d14610719578063dd62ed3e14610722578063f15c3fd41461075b578063f1c272451461071957600080fd5b8063c84f1c3a146106f3578063c9d27afe14610706578063cb4312981461048c57600080fd5b8063b977e078116100d3578063b977e078146106c4578063bf21d83e146106d7578063bff01a84146106e057600080fd5b8063a9059cbb14610680578063ab2f7e1314610693578063b526e731146106bb57600080fd5b806384da92a71161016657806395d89b411161014057806395d89b41146106325780639a41a1bc1461063a578063a457c2d71461065a578063a68f34f71461066d57600080fd5b806384da92a7146105f557806392a84c5d1461060857806393bed25b1461061257600080fd5b80638259d553116101975780638259d553146105a257806383c5639f146105b5578063845de37a146105d557600080fd5b80636a60dacf1461055e5780636b1029841461056657806370a082311461057957600080fd5b8063325e7b5b1161028c57806348a490fb116102355780635de78d7a1161020f5780635de78d7a146105275780635f9d99091461053057806364b63c391461054357806368fb95ca1461055657600080fd5b806348a490fb146104e1578063499657cb146104f4578063537f53121461051457600080fd5b806340c10f191161026657806340c10f19146104a85780634242d5ef146104bb57806342545825146104ce57600080fd5b8063325e7b5b1461046c578063352063391461048c578063395093511461049557600080fd5b8063193fb715116102f957806324ecf717116102d357806324ecf717146104215780632dfc16fe14610441578063313ce5671461044a578063324bb34a1461045957600080fd5b8063193fb715146103e85780631af93ea5146103fb57806323b872dd1461040e57600080fd5b80630d61b5191161032a5780630d61b519146103b9578063116e263f146103ce57806318160ddd146103d657600080fd5b8063013cf08b1461035157806306fdde0314610381578063095ea7b314610396575b600080fd5b61036461035f366004612fca565b610764565b604051610378989796959493929190613029565b60405180910390f35b610389610846565b6040516103789190613083565b6103a96103a43660046130b9565b6108d8565b6040519015158152602001610378565b6103cc6103c7366004612fca565b6108f2565b005b6103cc610cba565b6002545b604051908152602001610378565b6103cc6103f636600461312f565b610d6c565b6103a96104093660046130b9565b610f52565b6103a961041c36600461319b565b610f83565b61043461042f366004612fca565b610fa7565b604051610378919061321b565b6103da60085481565b60405160128152602001610378565b6103cc610467366004612fca565b611015565b6103da61047a36600461322e565b600e6020526000908152604090205481565b6103da6102ee81565b6103a96104a33660046130b9565b61109a565b6103cc6104b63660046130b9565b6110d9565b6103cc6104c9366004612fca565b61125d565b6103a96104dc3660046130b9565b61131f565b6103cc6104ef3660046130b9565b611350565b610507610502366004612fca565b611451565b604051610378919061329e565b6103cc6105223660046132f3565b611536565b6103da600b5481565b6103cc61053e366004612fca565b611567565b6103cc610551366004612fca565b611590565b6103da606481565b6103cc61165c565b6103cc610574366004612fca565b61171c565b6103da61058736600461322e565b6001600160a01b031660009081526020819052604090205490565b6103cc6105b0366004612fca565b6117de565b6103da6105c336600461322e565b600c6020526000908152604090205481565b6103da6105e336600461322e565b600f6020526000908152604090205481565b6103cc6106033660046132f3565b6119fd565b6007546103da9081565b610625610620366004612fca565b611a29565b6040516103789190613365565b610389611a8c565b6103da610648366004613378565b600d6020526000908152604090205481565b6103a96106683660046130b9565b611a9b565b61043461067b366004612fca565b611b2d565b6103a961068e3660046130b9565b611b99565b6106a66106a1366004612fca565b611ba7565b60408051928352602083019190915201610378565b6103da600a5481565b6103cc6106d236600461355c565b611ca0565b6103da60105481565b6103cc6106ee36600461312f565b611f61565b6103cc610701366004612fca565b6121fe565b6103cc610714366004613672565b6124a8565b6103da6101f481565b6103da6107303660046136a7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103da60095481565b600660205260009081526040902080546001820180546001600160a01b039092169291610790906136da565b80601f01602080910402602001604051908101604052809291908181526020018280546107bc906136da565b80156108095780601f106107de57610100808354040283529160200191610809565b820191906000526020600020905b8154815290600101906020018083116107ec57829003601f168201915b50505050600583015460068401546007909401549293909290915060ff808216916101008104821691620100008204811691630100000090041688565b606060118054610855906136da565b80601f0160208091040260200160405190810160405280929190818152602001828054610881906136da565b80156108ce5780601f106108a3576101008083540402835291602001916108ce565b820191906000526020600020905b8154815290600101906020018083116108b157829003601f168201915b5050505050905090565b6000336108e6818585612633565b60019150505b92915050565b6108fa612757565b6000610905826127b0565b6007810154909150610100900460ff166109775760405162461bcd60e51b815260206004820152602860248201527f4552433234363a2043616e6e6f7420657865637574652072656a6563746564206044820152671c1c9bdc1bdcd85b60c21b60648201526084015b60405180910390fd5b600781015462010000900460ff166109e15760405162461bcd60e51b815260206004820152602760248201527f4552433234363a2050726f706f73616c206d75737420626520656e71756575656044820152661908199a5c9cdd60ca1b606482015260840161096e565b600781015460ff1615610a405760405162461bcd60e51b815260206004820152602160248201527f4552433234363a2050726f706f73616c20616c726561647920657865637574656044820152601960fa1b606482015260840161096e565b60078101546301000000900460ff1615610aa75760405162461bcd60e51b815260206004820152602260248201527f4552433234363a2050726f706f73616c20686173206265656e2072656a656374604482015261195960f21b606482015260840161096e565b60006009548260060154610abb919061372a565b905080431015610b0d5760405162461bcd60e51b815260206004820181905260248201527f4552433234363a2054696d652d6c6f636b20686173206e6f7420706173736564604482015260640161096e565b60078201805460ff1916600117905560005b6002830154811015610c7c57600080846002018381548110610b4357610b4361373d565b6000918252602090912001546004860180546001600160a01b039092169185908110610b7157610b7161373d565b9060005260206000200154866003018581548110610b9157610b9161373d565b90600052602060002001604051610ba89190613753565b60006040518083038185875af1925050503d8060008114610be5576040519150601f19603f3d011682016040523d82523d6000602084013e610bea565b606091505b509150915081610c7257805115610c045780518082602001fd5b60405162461bcd60e51b815260206004820152602f60248201527f4552433234363a20457865637574696f6e206661696c656420666f72206f6e6560448201527f206f662074686520746172676574730000000000000000000000000000000000606482015260840161096e565b5050600101610b1f565b5060405160019084907f948f4a9cd986f1118c3fbd459f7a22b23c0693e1ca3ef06a6a8be5aa7d39cc0390600090a35050610cb76001600555565b50565b610cc2612757565b336000908152600e602052604090205480610d455760405162461bcd60e51b815260206004820152603660248201527f4552433234363a204e6f2061697264726f7020746f6b656e7320617661696c6160448201527f626c6520746f20636c61696d2066726f6d206d696e7400000000000000000000606482015260840161096e565b336000818152600e6020526040812055610d5f908261283b565b50610d6a6001600555565b565b333014610d8b5760405162461bcd60e51b815260040161096e906137c9565b828114610df15760405162461bcd60e51b815260206004820152602e60248201527f4552433234363a20526563697069656e747320616e6420616d6f756e7473206c60448201526d0cadccee8d040dad2e6dac2e8c6d60931b606482015260840161096e565b6000805b84811015610eae57838382818110610e0f57610e0f61373d565b9050602002013582610e21919061372a565b9150838382818110610e3557610e3561373d565b90506020020135600f6000888885818110610e5257610e5261373d565b9050602002016020810190610e67919061322e565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610e96919061372a565b90915550819050610ea681613816565b915050610df5565b5030600090815260208190526040902054811115610f345760405162461bcd60e51b815260206004820152603160248201527f4552433234363a20496e73756666696369656e7420636f6e747261637420626160448201527f6c616e636520666f722061697264726f70000000000000000000000000000000606482015260840161096e565b8060106000828254610f46919061372a565b90915550505050505050565b6000610f5d826127b0565b6001600160a01b03939093166000908152600a9093016020525050604090205460ff1690565b600033610f91858285612906565b610f9c858585612998565b506001949350505050565b6060610fb2826127b0565b60020180548060200260200160405190810160405280929190818152602001828054801561100957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610feb575b50505050509050919050565b3330146110345760405162461bcd60e51b815260040161096e906137c9565b6101f48111156110955760405162461bcd60e51b815260206004820152602660248201527f4552433234363a205472616e73666572206665652065786365656473206d6178604482015265081b1a5b5a5d60d21b606482015260840161096e565b600b55565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906108e690829086906110d490879061372a565b612633565b3330146110f85760405162461bcd60e51b815260040161096e906137c9565b600080356001600160e01b0319168152600d60205260409020544390036111795760405162461bcd60e51b815260206004820152602f60248201527f4552433234363a2046756e6374696f6e20616c7265616479206578656375746560448201526e6420696e207468697320626c6f636b60881b606482015260840161096e565b600080356001600160e01b0319168152600d60205260409020439055600254612710906101f4906111aa919061382f565b6111b49190613846565b81111561124f5760405162461bcd60e51b815260206004820152605a60248201527f4552433234363a2043616e6e6f74206d696e7420612070657263656e7461676560448201527f206f662074686520737570706c792067726561746572207468616e204d41584960648201527f4d554d5f4d494e545f535550504c595f50455243454e54414745000000000000608482015260a40161096e565b611259828261283b565b5050565b33301461127c5760405162461bcd60e51b815260040161096e906137c9565b6102ee81101561131a5760405162461bcd60e51b815260206004820152605c60248201527f4552433234363a2050726f706f73616c20657865637574696f6e2064656c617960448201527f206d7573742062652067726561746572207468616e204d494e494d554d5f414c60648201527f4c4f5745445f455845435554494f4e5f44454c41595f424c4f434b5300000000608482015260a40161096e565b600955565b600061132a826127b0565b6001600160a01b0393909316600090815260099093016020525050604090205460ff1690565b33301461136f5760405162461bcd60e51b815260040161096e906137c9565b6001600160a01b0382166113d95760405162461bcd60e51b815260206004820152602b60248201527f4552433234363a2043616e6e6f74207472616e7366657220746f20746865207a60448201526a65726f206164647265737360a81b606482015260840161096e565b306000908152602081905260409020548111156114465760405162461bcd60e51b815260206004820152602560248201527f4552433234363a20496e73756666696369656e7420636f6e74726163742062616044820152646c616e636560d81b606482015260840161096e565b611259308383612998565b606061145c826127b0565b600301805480602002602001604051908101604052809291908181526020016000905b8282101561152b57838290600052602060002001805461149e906136da565b80601f01602080910402602001604051908101604052809291908181526020018280546114ca906136da565b80156115175780601f106114ec57610100808354040283529160200191611517565b820191906000526020600020905b8154815290600101906020018083116114fa57829003601f168201915b50505050508152602001906001019061147f565b505050509050919050565b3330146115555760405162461bcd60e51b815260040161096e906137c9565b60126115628284836138ae565b505050565b3330146115865760405162461bcd60e51b815260040161096e906137c9565b610cb73082612a19565b3330146115af5760405162461bcd60e51b815260040161096e906137c9565b60648110156116575760405162461bcd60e51b815260206004820152606260248201527f4552433234363a2051756f72756d20737570706c792070657263656e7461676560448201527f206d7573742062652067726561746572207468616e204d494e494d554d5f414c60648201527f4c4f5745445f51554f52554d5f535550504c595f50455243454e544147455f42608482015261505360f01b60a482015260c40161096e565b600a55565b611664612757565b336000908152600f6020526040902054806116e75760405162461bcd60e51b815260206004820152603a60248201527f4552433234363a204e6f2061697264726f7020746f6b656e7320617661696c6160448201527f626c6520746f20636c61696d2066726f6d207472656173757279000000000000606482015260840161096e565b336000908152600f602052604081208190556010805483929061170b90849061396e565b90915550610d5f9050303383612998565b33301461173b5760405162461bcd60e51b815260040161096e906137c9565b6102ee8110156117d95760405162461bcd60e51b815260206004820152605d60248201527f4552433234363a204d696e696d756d20766f74696e67206475726174696f6e2060448201527f6d7573742062652067726561746572207468616e204d494e494d554d5f414c4c60648201527f4f5745445f50524f504f53414c5f4455524154494f4e5f424c4f434b53000000608482015260a40161096e565b600855565b60006117e9826127b0565b80549091506001600160a01b031633148061180357503330145b6118755760405162461bcd60e51b815260206004820152602e60248201527f4552433234363a204f6e6c792070726f706f736572206f7220676f7665726e6160448201527f6e63652063616e2064656c657465000000000000000000000000000000000000606482015260840161096e565b600781015462010000900460ff16156118e35760405162461bcd60e51b815260206004820152602a60248201527f4552433234363a2043616e6e6f742064656c65746520616e20656e717565756560448201526919081c1c9bdc1bdcd85b60b21b606482015260840161096e565b600781015460ff161561194b5760405162461bcd60e51b815260206004820152602a60248201527f4552433234363a2043616e6e6f742064656c65746520616e206578656375746560448201526919081c1c9bdc1bdcd85b60b21b606482015260840161096e565b600082815260066020526040812080546001600160a01b0319168155906119756001830182612e30565b611983600283016000612e6a565b611991600383016000612e88565b61199f600483016000612e6a565b6000600583018190556006830181905560078301805463ffffffff191690556119cc906008840190612e6a565b505060405182907f61c0d93dc2b610877e420b107c8d12e9185e46e04a505da758cc7f7329ae545f90600090a25050565b333014611a1c5760405162461bcd60e51b815260040161096e906137c9565b60116115628284836138ae565b6060611a34826127b0565b60040180548060200260200160405190810160405280929190818152602001828054801561100957602002820191906000526020600020905b815481526020019060010190808311611a6d5750505050509050919050565b606060128054610855906136da565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015611b205760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161096e565b610f9c8286868403612633565b6060611b38826127b0565b600801805480602002602001604051908101604052809291908181526020018280548015611009576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311610feb5750505050509050919050565b6000336108e6818585612998565b6000806000611bb5846127b0565b9050600080600083600801805480602002602001604051908101604052809291908181526020018280548015611c1457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611bf6575b505083519394506000925050505b81811015611c91576000838281518110611c3e57611c3e61373d565b602002602001015190506000611c5382612b57565b6001600160a01b0383166000908152600a8a01602052604090205490915060ff1615611c825795860195611c87565b948501945b5050600101611c22565b50929791965090945050505050565b3360009081526020819052604081205411611d235760405162461bcd60e51b815260206004820152602f60248201527f4552433234363a204f6e6c7920746f6b656e20686f6c646572732063616e206360448201527f72656174652070726f706f73616c730000000000000000000000000000000000606482015260840161096e565b82518451148015611d35575081518351145b611da75760405162461bcd60e51b815260206004820152603060248201527f4552433234363a20546172676574732c206461746120616e642076616c75657360448201527f206c656e677468206d69736d6174636800000000000000000000000000000000606482015260840161096e565b600854811015611e035760405162461bcd60e51b815260206004820152602160248201527f4552433234363a20566f74696e67206475726174696f6e20746f6f2073686f726044820152601d60fa1b606482015260840161096e565b6032851115611e7a5760405162461bcd60e51b815260206004820152603160248201527f4552433234363a205469746c652063616e6e6f74206265206c6f6e676572207460448201527f68616e2035302063686172616374657273000000000000000000000000000000606482015260840161096e565b6000611e8560075490565b600081815260066020526040902080546001600160a01b0319163317815590915060018101611eb5888a836138ae565b50611ec0834361372a565b60058201558551611eda9060028301906020890190612ea6565b508451611ef09060038301906020880190612f0b565b508351611f069060048301906020870190612f5d565b50611f15600780546001019055565b817f12cc3bfe346b47854c1dc285053f953e91e4af5597a19a7b89cc8b06595e75a18787878560050154604051611f4f9493929190613981565b60405180910390a25050505050505050565b333014611f805760405162461bcd60e51b815260040161096e906137c9565b600080356001600160e01b0319168152600d60205260409020544390036120015760405162461bcd60e51b815260206004820152602f60248201527f4552433234363a2046756e6374696f6e20616c7265616479206578656375746560448201526e6420696e207468697320626c6f636b60881b606482015260840161096e565b600080356001600160e01b0319168152600d602052604090204390558083146120835760405162461bcd60e51b815260206004820152602e60248201527f4552433234363a20526563697069656e747320616e6420616d6f756e7473206c60448201526d0cadccee8d040dad2e6dac2e8c6d60931b606482015260840161096e565b6000805b828110156120c7578383828181106120a1576120a161373d565b90506020020135826120b3919061372a565b9150806120bf81613816565b915050612087565b506127106101f46120d760025490565b6120e1919061382f565b6120eb9190613846565b8111156121605760405162461bcd60e51b815260206004820152603860248201527f4552433234363a204d696e74696e6720616d6f756e742065786365656473206d60448201527f6178696d756d20737570706c792070657263656e746167650000000000000000606482015260840161096e565b60005b848110156121f65783838281811061217d5761217d61373d565b90506020020135600e600088888581811061219a5761219a61373d565b90506020020160208101906121af919061322e565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546121de919061372a565b909155508190506121ee81613816565b915050612163565b505050505050565b6000612209826127b0565b9050806005015443101561226b5760405162461bcd60e51b815260206004820152602360248201527f4552433234363a20566f74696e6720706572696f64206e6f742079657420656e60448201526219195960ea1b606482015260840161096e565b600781015462010000900460ff16156122d05760405162461bcd60e51b815260206004820152602160248201527f4552433234363a2050726f706f73616c20616c726561647920656e71756575656044820152601960fa1b606482015260840161096e565b600781015460ff161561232f5760405162461bcd60e51b815260206004820152602160248201527f4552433234363a2050726f706f73616c20616c726561647920657865637574656044820152601960fa1b606482015260840161096e565b60078101546301000000900460ff16156123965760405162461bcd60e51b815260206004820152602260248201527f4552433234363a2050726f706f73616c20686173206265656e2072656a656374604482015261195960f21b606482015260840161096e565b6000612710600a546123a760025490565b6123b1919061382f565b6123bb9190613846565b90506000806123c985611ba7565b9092509050826123d9828461372a565b101580156123e657508082115b60078501805461ff0019166101009215158302179081905560ff91900416156124605760078401805462ff0000191662010000179081905543600686015560405161010090910460ff1615159086907fd2c3fd7b046e79d9a30c769bbc7934f1e39389ba4fecf7b7cca469d53540e4c890600090a36124a1565b60078401805463ff0000001916630100000017905560405185907fd92fba445edb3153b571e6df782d7a66fd0ce668519273670820ee3a86da0ef490600090a25b5050505050565b6124b0612757565b60006124bb836127b0565b9050806005015443106125105760405162461bcd60e51b815260206004820152601f60248201527f4552433234363a20566f74696e6720706572696f642068617320656e64656400604482015260640161096e565b33600090815260098201602052604090205460ff16156125985760405162461bcd60e51b815260206004820152602f60248201527f4552433234363a20596f75206861766520616c726561647920766f746564206f60448201527f6e20746869732070726f706f73616c0000000000000000000000000000000000606482015260840161096e565b600881018054600180820183556000928352602080842090920180546001600160a01b031916339081179091558084526009850183526040808520805460ff199081169094179055600a8601845293849020805487151593168317905592519081528592917fd356173ae8eeea8691aee4c1be712c314a975a3d43ebc48b08ca54d0dac91228910160405180910390a3506112596001600555565b6001600160a01b0383166126955760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161096e565b6001600160a01b0382166126f65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161096e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6002600554036127a95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161096e565b6002600555565b600081815260066020526040812080546001600160a01b03166108ec5760405162461bcd60e51b815260206004820152603360248201527f4552433234363a2050726f706f73616c20646f6573206e6f742065786973742060448201527f6f7220686173206265656e2064656c6574656400000000000000000000000000606482015260840161096e565b6001600160a01b0382166128915760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161096e565b61289d60008383612b9c565b80600260008282546128af919061372a565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461299257818110156129855760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161096e565b6129928484848403612633565b50505050565b6000600b541180156129b257506001600160a01b03831615155b80156129c657506001600160a01b03821615155b15612a0e576000612710600b54836129de919061382f565b6129e89190613846565b905060006129f6828461396e565b9050612a03853084612c81565b6124a1858583612c81565b611562838383612c81565b6001600160a01b038216612a795760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161096e565b612a8582600083612b9c565b6001600160a01b03821660009081526020819052604090205481811015612af95760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161096e565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b0381166000908152600c60205260408120544303612b7e57506000919050565b6001600160a01b0382166000908152602081905260409020546108ec565b306001600160a01b03841603612c3e57601054306000908152602081905260409020548291612bca9161396e565b1015612c3e5760405162461bcd60e51b815260206004820152602e60248201527f4552433234363a20496e73756666696369656e7420756e6c6f636b656420747260448201527f6561737572792062616c616e6365000000000000000000000000000000000000606482015260840161096e565b6001600160a01b03821615801590612c5e57506001600160a01b03831615155b1561156257506001600160a01b03166000908152600c6020526040902043905550565b6001600160a01b038316612ce55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161096e565b6001600160a01b038216612d475760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161096e565b612d52838383612b9c565b6001600160a01b03831660009081526020819052604090205481811015612dca5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161096e565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3612992565b508054612e3c906136da565b6000825580601f10612e4c575050565b601f016020900490600052602060002090810190610cb79190612f98565b5080546000825590600052602060002090810190610cb79190612f98565b5080546000825590600052602060002090810190610cb79190612fad565b828054828255906000526020600020908101928215612efb579160200282015b82811115612efb57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612ec6565b50612f07929150612f98565b5090565b828054828255906000526020600020908101928215612f51579160200282015b82811115612f515782518290612f4190826139cc565b5091602001919060010190612f2b565b50612f07929150612fad565b828054828255906000526020600020908101928215612efb579160200282015b82811115612efb578251825591602001919060010190612f7d565b5b80821115612f075760008155600101612f99565b80821115612f07576000612fc18282612e30565b50600101612fad565b600060208284031215612fdc57600080fd5b5035919050565b6000815180845260005b8181101561300957602081850181015186830182015201612fed565b506000602082860101526020601f19601f83011685010191505092915050565b60006101006001600160a01b038b16835280602084015261304c8184018b612fe3565b604084019990995250506060810195909552921515608085015290151560a0840152151560c0830152151560e09091015292915050565b6020815260006130966020830184612fe3565b9392505050565b80356001600160a01b03811681146130b457600080fd5b919050565b600080604083850312156130cc57600080fd5b6130d58361309d565b946020939093013593505050565b60008083601f8401126130f557600080fd5b50813567ffffffffffffffff81111561310d57600080fd5b6020830191508360208260051b850101111561312857600080fd5b9250929050565b6000806000806040858703121561314557600080fd5b843567ffffffffffffffff8082111561315d57600080fd5b613169888389016130e3565b9096509450602087013591508082111561318257600080fd5b5061318f878288016130e3565b95989497509550505050565b6000806000606084860312156131b057600080fd5b6131b98461309d565b92506131c76020850161309d565b9150604084013590509250925092565b600081518084526020808501945080840160005b838110156132105781516001600160a01b0316875295820195908201906001016131eb565b509495945050505050565b60208152600061309660208301846131d7565b60006020828403121561324057600080fd5b6130968261309d565b600081518084526020808501808196508360051b8101915082860160005b8581101561329157828403895261327f848351612fe3565b98850198935090840190600101613267565b5091979650505050505050565b6020815260006130966020830184613249565b60008083601f8401126132c357600080fd5b50813567ffffffffffffffff8111156132db57600080fd5b60208301915083602082850101111561312857600080fd5b6000806020838503121561330657600080fd5b823567ffffffffffffffff81111561331d57600080fd5b613329858286016132b1565b90969095509350505050565b600081518084526020808501945080840160005b8381101561321057815187529582019590820190600101613349565b6020815260006130966020830184613335565b60006020828403121561338a57600080fd5b81356001600160e01b03198116811461309657600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156133e1576133e16133a2565b604052919050565b600067ffffffffffffffff821115613403576134036133a2565b5060051b60200190565b6000601f838184011261341f57600080fd5b8235602061343461342f836133e9565b6133b8565b82815260059290921b8501810191818101908784111561345357600080fd5b8287015b848110156134ea57803567ffffffffffffffff808211156134785760008081fd5b818a0191508a603f83011261348d5760008081fd5b858201356040828211156134a3576134a36133a2565b6134b4828b01601f191689016133b8565b92508183528c818386010111156134cb5760008081fd5b8181850189850137506000908201870152845250918301918301613457565b50979650505050505050565b600082601f83011261350757600080fd5b8135602061351761342f836133e9565b82815260059290921b8401810191818101908684111561353657600080fd5b8286015b84811015613551578035835291830191830161353a565b509695505050505050565b60008060008060008060a0878903121561357557600080fd5b863567ffffffffffffffff8082111561358d57600080fd5b6135998a838b016132b1565b90985096506020915088820135818111156135b357600080fd5b8901601f81018b136135c457600080fd5b80356135d261342f826133e9565b81815260059190911b8201840190848101908d8311156135f157600080fd5b928501925b82841015613616576136078461309d565b825292850192908501906135f6565b9850505050604089013591508082111561362f57600080fd5b61363b8a838b0161340d565b9450606089013591508082111561365157600080fd5b5061365e89828a016134f6565b925050608087013590509295509295509295565b6000806040838503121561368557600080fd5b823591506020830135801515811461369c57600080fd5b809150509250929050565b600080604083850312156136ba57600080fd5b6136c38361309d565b91506136d16020840161309d565b90509250929050565b600181811c908216806136ee57607f821691505b60208210810361370e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156108ec576108ec613714565b634e487b7160e01b600052603260045260246000fd5b6000808354613761816136da565b60018281168015613779576001811461378e576137bd565b60ff19841687528215158302870194506137bd565b8760005260208060002060005b858110156137b45781548a82015290840190820161379b565b50505082870194505b50929695505050505050565b6020808252602d908201527f4552433234363a204f6e6c792063616c6c61626c652076696120676f7665726e60408201526c185b98d9481c1c9bdc1bdcd85b609a1b606082015260800190565b60006001820161382857613828613714565b5060010190565b80820281158282048414176108ec576108ec613714565b60008261386357634e487b7160e01b600052601260045260246000fd5b500490565b601f82111561156257600081815260208120601f850160051c8101602086101561388f5750805b601f850160051c820191505b818110156121f65782815560010161389b565b67ffffffffffffffff8311156138c6576138c66133a2565b6138da836138d483546136da565b83613868565b6000601f84116001811461390e57600085156138f65750838201355b600019600387901b1c1916600186901b1783556124a1565b600083815260209020601f19861690835b8281101561393f578685013582556020948501946001909201910161391f565b508682101561395c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b818103818111156108ec576108ec613714565b60808152600061399460808301876131d7565b82810360208401526139a68187613249565b905082810360408401526139ba8186613335565b91505082606083015295945050505050565b815167ffffffffffffffff8111156139e6576139e66133a2565b6139fa816139f484546136da565b84613868565b602080601f831160018114613a2f5760008415613a175750858301515b600019600386901b1c1916600185901b1785556121f6565b600085815260208120601f198616915b82811015613a5e57888601518255948401946001909101908401613a3f565b5085821015613a7c5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea2646970667358221220bcef97673a841a50beb2d77107b09c506fa068fce66dd319aac0e27361b4b30c64736f6c63430008140033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000000000000000000000000000000000000000000004566f7465000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004564f544500000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061034c5760003560e01c80636a60dacf116101bd578063a9059cbb116100f9578063c84f1c3a116100a2578063d59ce68d1161007c578063d59ce68d14610719578063dd62ed3e14610722578063f15c3fd41461075b578063f1c272451461071957600080fd5b8063c84f1c3a146106f3578063c9d27afe14610706578063cb4312981461048c57600080fd5b8063b977e078116100d3578063b977e078146106c4578063bf21d83e146106d7578063bff01a84146106e057600080fd5b8063a9059cbb14610680578063ab2f7e1314610693578063b526e731146106bb57600080fd5b806384da92a71161016657806395d89b411161014057806395d89b41146106325780639a41a1bc1461063a578063a457c2d71461065a578063a68f34f71461066d57600080fd5b806384da92a7146105f557806392a84c5d1461060857806393bed25b1461061257600080fd5b80638259d553116101975780638259d553146105a257806383c5639f146105b5578063845de37a146105d557600080fd5b80636a60dacf1461055e5780636b1029841461056657806370a082311461057957600080fd5b8063325e7b5b1161028c57806348a490fb116102355780635de78d7a1161020f5780635de78d7a146105275780635f9d99091461053057806364b63c391461054357806368fb95ca1461055657600080fd5b806348a490fb146104e1578063499657cb146104f4578063537f53121461051457600080fd5b806340c10f191161026657806340c10f19146104a85780634242d5ef146104bb57806342545825146104ce57600080fd5b8063325e7b5b1461046c578063352063391461048c578063395093511461049557600080fd5b8063193fb715116102f957806324ecf717116102d357806324ecf717146104215780632dfc16fe14610441578063313ce5671461044a578063324bb34a1461045957600080fd5b8063193fb715146103e85780631af93ea5146103fb57806323b872dd1461040e57600080fd5b80630d61b5191161032a5780630d61b519146103b9578063116e263f146103ce57806318160ddd146103d657600080fd5b8063013cf08b1461035157806306fdde0314610381578063095ea7b314610396575b600080fd5b61036461035f366004612fca565b610764565b604051610378989796959493929190613029565b60405180910390f35b610389610846565b6040516103789190613083565b6103a96103a43660046130b9565b6108d8565b6040519015158152602001610378565b6103cc6103c7366004612fca565b6108f2565b005b6103cc610cba565b6002545b604051908152602001610378565b6103cc6103f636600461312f565b610d6c565b6103a96104093660046130b9565b610f52565b6103a961041c36600461319b565b610f83565b61043461042f366004612fca565b610fa7565b604051610378919061321b565b6103da60085481565b60405160128152602001610378565b6103cc610467366004612fca565b611015565b6103da61047a36600461322e565b600e6020526000908152604090205481565b6103da6102ee81565b6103a96104a33660046130b9565b61109a565b6103cc6104b63660046130b9565b6110d9565b6103cc6104c9366004612fca565b61125d565b6103a96104dc3660046130b9565b61131f565b6103cc6104ef3660046130b9565b611350565b610507610502366004612fca565b611451565b604051610378919061329e565b6103cc6105223660046132f3565b611536565b6103da600b5481565b6103cc61053e366004612fca565b611567565b6103cc610551366004612fca565b611590565b6103da606481565b6103cc61165c565b6103cc610574366004612fca565b61171c565b6103da61058736600461322e565b6001600160a01b031660009081526020819052604090205490565b6103cc6105b0366004612fca565b6117de565b6103da6105c336600461322e565b600c6020526000908152604090205481565b6103da6105e336600461322e565b600f6020526000908152604090205481565b6103cc6106033660046132f3565b6119fd565b6007546103da9081565b610625610620366004612fca565b611a29565b6040516103789190613365565b610389611a8c565b6103da610648366004613378565b600d6020526000908152604090205481565b6103a96106683660046130b9565b611a9b565b61043461067b366004612fca565b611b2d565b6103a961068e3660046130b9565b611b99565b6106a66106a1366004612fca565b611ba7565b60408051928352602083019190915201610378565b6103da600a5481565b6103cc6106d236600461355c565b611ca0565b6103da60105481565b6103cc6106ee36600461312f565b611f61565b6103cc610701366004612fca565b6121fe565b6103cc610714366004613672565b6124a8565b6103da6101f481565b6103da6107303660046136a7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103da60095481565b600660205260009081526040902080546001820180546001600160a01b039092169291610790906136da565b80601f01602080910402602001604051908101604052809291908181526020018280546107bc906136da565b80156108095780601f106107de57610100808354040283529160200191610809565b820191906000526020600020905b8154815290600101906020018083116107ec57829003601f168201915b50505050600583015460068401546007909401549293909290915060ff808216916101008104821691620100008204811691630100000090041688565b606060118054610855906136da565b80601f0160208091040260200160405190810160405280929190818152602001828054610881906136da565b80156108ce5780601f106108a3576101008083540402835291602001916108ce565b820191906000526020600020905b8154815290600101906020018083116108b157829003601f168201915b5050505050905090565b6000336108e6818585612633565b60019150505b92915050565b6108fa612757565b6000610905826127b0565b6007810154909150610100900460ff166109775760405162461bcd60e51b815260206004820152602860248201527f4552433234363a2043616e6e6f7420657865637574652072656a6563746564206044820152671c1c9bdc1bdcd85b60c21b60648201526084015b60405180910390fd5b600781015462010000900460ff166109e15760405162461bcd60e51b815260206004820152602760248201527f4552433234363a2050726f706f73616c206d75737420626520656e71756575656044820152661908199a5c9cdd60ca1b606482015260840161096e565b600781015460ff1615610a405760405162461bcd60e51b815260206004820152602160248201527f4552433234363a2050726f706f73616c20616c726561647920657865637574656044820152601960fa1b606482015260840161096e565b60078101546301000000900460ff1615610aa75760405162461bcd60e51b815260206004820152602260248201527f4552433234363a2050726f706f73616c20686173206265656e2072656a656374604482015261195960f21b606482015260840161096e565b60006009548260060154610abb919061372a565b905080431015610b0d5760405162461bcd60e51b815260206004820181905260248201527f4552433234363a2054696d652d6c6f636b20686173206e6f7420706173736564604482015260640161096e565b60078201805460ff1916600117905560005b6002830154811015610c7c57600080846002018381548110610b4357610b4361373d565b6000918252602090912001546004860180546001600160a01b039092169185908110610b7157610b7161373d565b9060005260206000200154866003018581548110610b9157610b9161373d565b90600052602060002001604051610ba89190613753565b60006040518083038185875af1925050503d8060008114610be5576040519150601f19603f3d011682016040523d82523d6000602084013e610bea565b606091505b509150915081610c7257805115610c045780518082602001fd5b60405162461bcd60e51b815260206004820152602f60248201527f4552433234363a20457865637574696f6e206661696c656420666f72206f6e6560448201527f206f662074686520746172676574730000000000000000000000000000000000606482015260840161096e565b5050600101610b1f565b5060405160019084907f948f4a9cd986f1118c3fbd459f7a22b23c0693e1ca3ef06a6a8be5aa7d39cc0390600090a35050610cb76001600555565b50565b610cc2612757565b336000908152600e602052604090205480610d455760405162461bcd60e51b815260206004820152603660248201527f4552433234363a204e6f2061697264726f7020746f6b656e7320617661696c6160448201527f626c6520746f20636c61696d2066726f6d206d696e7400000000000000000000606482015260840161096e565b336000818152600e6020526040812055610d5f908261283b565b50610d6a6001600555565b565b333014610d8b5760405162461bcd60e51b815260040161096e906137c9565b828114610df15760405162461bcd60e51b815260206004820152602e60248201527f4552433234363a20526563697069656e747320616e6420616d6f756e7473206c60448201526d0cadccee8d040dad2e6dac2e8c6d60931b606482015260840161096e565b6000805b84811015610eae57838382818110610e0f57610e0f61373d565b9050602002013582610e21919061372a565b9150838382818110610e3557610e3561373d565b90506020020135600f6000888885818110610e5257610e5261373d565b9050602002016020810190610e67919061322e565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610e96919061372a565b90915550819050610ea681613816565b915050610df5565b5030600090815260208190526040902054811115610f345760405162461bcd60e51b815260206004820152603160248201527f4552433234363a20496e73756666696369656e7420636f6e747261637420626160448201527f6c616e636520666f722061697264726f70000000000000000000000000000000606482015260840161096e565b8060106000828254610f46919061372a565b90915550505050505050565b6000610f5d826127b0565b6001600160a01b03939093166000908152600a9093016020525050604090205460ff1690565b600033610f91858285612906565b610f9c858585612998565b506001949350505050565b6060610fb2826127b0565b60020180548060200260200160405190810160405280929190818152602001828054801561100957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610feb575b50505050509050919050565b3330146110345760405162461bcd60e51b815260040161096e906137c9565b6101f48111156110955760405162461bcd60e51b815260206004820152602660248201527f4552433234363a205472616e73666572206665652065786365656473206d6178604482015265081b1a5b5a5d60d21b606482015260840161096e565b600b55565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906108e690829086906110d490879061372a565b612633565b3330146110f85760405162461bcd60e51b815260040161096e906137c9565b600080356001600160e01b0319168152600d60205260409020544390036111795760405162461bcd60e51b815260206004820152602f60248201527f4552433234363a2046756e6374696f6e20616c7265616479206578656375746560448201526e6420696e207468697320626c6f636b60881b606482015260840161096e565b600080356001600160e01b0319168152600d60205260409020439055600254612710906101f4906111aa919061382f565b6111b49190613846565b81111561124f5760405162461bcd60e51b815260206004820152605a60248201527f4552433234363a2043616e6e6f74206d696e7420612070657263656e7461676560448201527f206f662074686520737570706c792067726561746572207468616e204d41584960648201527f4d554d5f4d494e545f535550504c595f50455243454e54414745000000000000608482015260a40161096e565b611259828261283b565b5050565b33301461127c5760405162461bcd60e51b815260040161096e906137c9565b6102ee81101561131a5760405162461bcd60e51b815260206004820152605c60248201527f4552433234363a2050726f706f73616c20657865637574696f6e2064656c617960448201527f206d7573742062652067726561746572207468616e204d494e494d554d5f414c60648201527f4c4f5745445f455845435554494f4e5f44454c41595f424c4f434b5300000000608482015260a40161096e565b600955565b600061132a826127b0565b6001600160a01b0393909316600090815260099093016020525050604090205460ff1690565b33301461136f5760405162461bcd60e51b815260040161096e906137c9565b6001600160a01b0382166113d95760405162461bcd60e51b815260206004820152602b60248201527f4552433234363a2043616e6e6f74207472616e7366657220746f20746865207a60448201526a65726f206164647265737360a81b606482015260840161096e565b306000908152602081905260409020548111156114465760405162461bcd60e51b815260206004820152602560248201527f4552433234363a20496e73756666696369656e7420636f6e74726163742062616044820152646c616e636560d81b606482015260840161096e565b611259308383612998565b606061145c826127b0565b600301805480602002602001604051908101604052809291908181526020016000905b8282101561152b57838290600052602060002001805461149e906136da565b80601f01602080910402602001604051908101604052809291908181526020018280546114ca906136da565b80156115175780601f106114ec57610100808354040283529160200191611517565b820191906000526020600020905b8154815290600101906020018083116114fa57829003601f168201915b50505050508152602001906001019061147f565b505050509050919050565b3330146115555760405162461bcd60e51b815260040161096e906137c9565b60126115628284836138ae565b505050565b3330146115865760405162461bcd60e51b815260040161096e906137c9565b610cb73082612a19565b3330146115af5760405162461bcd60e51b815260040161096e906137c9565b60648110156116575760405162461bcd60e51b815260206004820152606260248201527f4552433234363a2051756f72756d20737570706c792070657263656e7461676560448201527f206d7573742062652067726561746572207468616e204d494e494d554d5f414c60648201527f4c4f5745445f51554f52554d5f535550504c595f50455243454e544147455f42608482015261505360f01b60a482015260c40161096e565b600a55565b611664612757565b336000908152600f6020526040902054806116e75760405162461bcd60e51b815260206004820152603a60248201527f4552433234363a204e6f2061697264726f7020746f6b656e7320617661696c6160448201527f626c6520746f20636c61696d2066726f6d207472656173757279000000000000606482015260840161096e565b336000908152600f602052604081208190556010805483929061170b90849061396e565b90915550610d5f9050303383612998565b33301461173b5760405162461bcd60e51b815260040161096e906137c9565b6102ee8110156117d95760405162461bcd60e51b815260206004820152605d60248201527f4552433234363a204d696e696d756d20766f74696e67206475726174696f6e2060448201527f6d7573742062652067726561746572207468616e204d494e494d554d5f414c4c60648201527f4f5745445f50524f504f53414c5f4455524154494f4e5f424c4f434b53000000608482015260a40161096e565b600855565b60006117e9826127b0565b80549091506001600160a01b031633148061180357503330145b6118755760405162461bcd60e51b815260206004820152602e60248201527f4552433234363a204f6e6c792070726f706f736572206f7220676f7665726e6160448201527f6e63652063616e2064656c657465000000000000000000000000000000000000606482015260840161096e565b600781015462010000900460ff16156118e35760405162461bcd60e51b815260206004820152602a60248201527f4552433234363a2043616e6e6f742064656c65746520616e20656e717565756560448201526919081c1c9bdc1bdcd85b60b21b606482015260840161096e565b600781015460ff161561194b5760405162461bcd60e51b815260206004820152602a60248201527f4552433234363a2043616e6e6f742064656c65746520616e206578656375746560448201526919081c1c9bdc1bdcd85b60b21b606482015260840161096e565b600082815260066020526040812080546001600160a01b0319168155906119756001830182612e30565b611983600283016000612e6a565b611991600383016000612e88565b61199f600483016000612e6a565b6000600583018190556006830181905560078301805463ffffffff191690556119cc906008840190612e6a565b505060405182907f61c0d93dc2b610877e420b107c8d12e9185e46e04a505da758cc7f7329ae545f90600090a25050565b333014611a1c5760405162461bcd60e51b815260040161096e906137c9565b60116115628284836138ae565b6060611a34826127b0565b60040180548060200260200160405190810160405280929190818152602001828054801561100957602002820191906000526020600020905b815481526020019060010190808311611a6d5750505050509050919050565b606060128054610855906136da565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015611b205760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161096e565b610f9c8286868403612633565b6060611b38826127b0565b600801805480602002602001604051908101604052809291908181526020018280548015611009576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311610feb5750505050509050919050565b6000336108e6818585612998565b6000806000611bb5846127b0565b9050600080600083600801805480602002602001604051908101604052809291908181526020018280548015611c1457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611bf6575b505083519394506000925050505b81811015611c91576000838281518110611c3e57611c3e61373d565b602002602001015190506000611c5382612b57565b6001600160a01b0383166000908152600a8a01602052604090205490915060ff1615611c825795860195611c87565b948501945b5050600101611c22565b50929791965090945050505050565b3360009081526020819052604081205411611d235760405162461bcd60e51b815260206004820152602f60248201527f4552433234363a204f6e6c7920746f6b656e20686f6c646572732063616e206360448201527f72656174652070726f706f73616c730000000000000000000000000000000000606482015260840161096e565b82518451148015611d35575081518351145b611da75760405162461bcd60e51b815260206004820152603060248201527f4552433234363a20546172676574732c206461746120616e642076616c75657360448201527f206c656e677468206d69736d6174636800000000000000000000000000000000606482015260840161096e565b600854811015611e035760405162461bcd60e51b815260206004820152602160248201527f4552433234363a20566f74696e67206475726174696f6e20746f6f2073686f726044820152601d60fa1b606482015260840161096e565b6032851115611e7a5760405162461bcd60e51b815260206004820152603160248201527f4552433234363a205469746c652063616e6e6f74206265206c6f6e676572207460448201527f68616e2035302063686172616374657273000000000000000000000000000000606482015260840161096e565b6000611e8560075490565b600081815260066020526040902080546001600160a01b0319163317815590915060018101611eb5888a836138ae565b50611ec0834361372a565b60058201558551611eda9060028301906020890190612ea6565b508451611ef09060038301906020880190612f0b565b508351611f069060048301906020870190612f5d565b50611f15600780546001019055565b817f12cc3bfe346b47854c1dc285053f953e91e4af5597a19a7b89cc8b06595e75a18787878560050154604051611f4f9493929190613981565b60405180910390a25050505050505050565b333014611f805760405162461bcd60e51b815260040161096e906137c9565b600080356001600160e01b0319168152600d60205260409020544390036120015760405162461bcd60e51b815260206004820152602f60248201527f4552433234363a2046756e6374696f6e20616c7265616479206578656375746560448201526e6420696e207468697320626c6f636b60881b606482015260840161096e565b600080356001600160e01b0319168152600d602052604090204390558083146120835760405162461bcd60e51b815260206004820152602e60248201527f4552433234363a20526563697069656e747320616e6420616d6f756e7473206c60448201526d0cadccee8d040dad2e6dac2e8c6d60931b606482015260840161096e565b6000805b828110156120c7578383828181106120a1576120a161373d565b90506020020135826120b3919061372a565b9150806120bf81613816565b915050612087565b506127106101f46120d760025490565b6120e1919061382f565b6120eb9190613846565b8111156121605760405162461bcd60e51b815260206004820152603860248201527f4552433234363a204d696e74696e6720616d6f756e742065786365656473206d60448201527f6178696d756d20737570706c792070657263656e746167650000000000000000606482015260840161096e565b60005b848110156121f65783838281811061217d5761217d61373d565b90506020020135600e600088888581811061219a5761219a61373d565b90506020020160208101906121af919061322e565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546121de919061372a565b909155508190506121ee81613816565b915050612163565b505050505050565b6000612209826127b0565b9050806005015443101561226b5760405162461bcd60e51b815260206004820152602360248201527f4552433234363a20566f74696e6720706572696f64206e6f742079657420656e60448201526219195960ea1b606482015260840161096e565b600781015462010000900460ff16156122d05760405162461bcd60e51b815260206004820152602160248201527f4552433234363a2050726f706f73616c20616c726561647920656e71756575656044820152601960fa1b606482015260840161096e565b600781015460ff161561232f5760405162461bcd60e51b815260206004820152602160248201527f4552433234363a2050726f706f73616c20616c726561647920657865637574656044820152601960fa1b606482015260840161096e565b60078101546301000000900460ff16156123965760405162461bcd60e51b815260206004820152602260248201527f4552433234363a2050726f706f73616c20686173206265656e2072656a656374604482015261195960f21b606482015260840161096e565b6000612710600a546123a760025490565b6123b1919061382f565b6123bb9190613846565b90506000806123c985611ba7565b9092509050826123d9828461372a565b101580156123e657508082115b60078501805461ff0019166101009215158302179081905560ff91900416156124605760078401805462ff0000191662010000179081905543600686015560405161010090910460ff1615159086907fd2c3fd7b046e79d9a30c769bbc7934f1e39389ba4fecf7b7cca469d53540e4c890600090a36124a1565b60078401805463ff0000001916630100000017905560405185907fd92fba445edb3153b571e6df782d7a66fd0ce668519273670820ee3a86da0ef490600090a25b5050505050565b6124b0612757565b60006124bb836127b0565b9050806005015443106125105760405162461bcd60e51b815260206004820152601f60248201527f4552433234363a20566f74696e6720706572696f642068617320656e64656400604482015260640161096e565b33600090815260098201602052604090205460ff16156125985760405162461bcd60e51b815260206004820152602f60248201527f4552433234363a20596f75206861766520616c726561647920766f746564206f60448201527f6e20746869732070726f706f73616c0000000000000000000000000000000000606482015260840161096e565b600881018054600180820183556000928352602080842090920180546001600160a01b031916339081179091558084526009850183526040808520805460ff199081169094179055600a8601845293849020805487151593168317905592519081528592917fd356173ae8eeea8691aee4c1be712c314a975a3d43ebc48b08ca54d0dac91228910160405180910390a3506112596001600555565b6001600160a01b0383166126955760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161096e565b6001600160a01b0382166126f65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161096e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6002600554036127a95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161096e565b6002600555565b600081815260066020526040812080546001600160a01b03166108ec5760405162461bcd60e51b815260206004820152603360248201527f4552433234363a2050726f706f73616c20646f6573206e6f742065786973742060448201527f6f7220686173206265656e2064656c6574656400000000000000000000000000606482015260840161096e565b6001600160a01b0382166128915760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161096e565b61289d60008383612b9c565b80600260008282546128af919061372a565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461299257818110156129855760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161096e565b6129928484848403612633565b50505050565b6000600b541180156129b257506001600160a01b03831615155b80156129c657506001600160a01b03821615155b15612a0e576000612710600b54836129de919061382f565b6129e89190613846565b905060006129f6828461396e565b9050612a03853084612c81565b6124a1858583612c81565b611562838383612c81565b6001600160a01b038216612a795760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161096e565b612a8582600083612b9c565b6001600160a01b03821660009081526020819052604090205481811015612af95760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161096e565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b0381166000908152600c60205260408120544303612b7e57506000919050565b6001600160a01b0382166000908152602081905260409020546108ec565b306001600160a01b03841603612c3e57601054306000908152602081905260409020548291612bca9161396e565b1015612c3e5760405162461bcd60e51b815260206004820152602e60248201527f4552433234363a20496e73756666696369656e7420756e6c6f636b656420747260448201527f6561737572792062616c616e6365000000000000000000000000000000000000606482015260840161096e565b6001600160a01b03821615801590612c5e57506001600160a01b03831615155b1561156257506001600160a01b03166000908152600c6020526040902043905550565b6001600160a01b038316612ce55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161096e565b6001600160a01b038216612d475760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161096e565b612d52838383612b9c565b6001600160a01b03831660009081526020819052604090205481811015612dca5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161096e565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3612992565b508054612e3c906136da565b6000825580601f10612e4c575050565b601f016020900490600052602060002090810190610cb79190612f98565b5080546000825590600052602060002090810190610cb79190612f98565b5080546000825590600052602060002090810190610cb79190612fad565b828054828255906000526020600020908101928215612efb579160200282015b82811115612efb57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612ec6565b50612f07929150612f98565b5090565b828054828255906000526020600020908101928215612f51579160200282015b82811115612f515782518290612f4190826139cc565b5091602001919060010190612f2b565b50612f07929150612fad565b828054828255906000526020600020908101928215612efb579160200282015b82811115612efb578251825591602001919060010190612f7d565b5b80821115612f075760008155600101612f99565b80821115612f07576000612fc18282612e30565b50600101612fad565b600060208284031215612fdc57600080fd5b5035919050565b6000815180845260005b8181101561300957602081850181015186830182015201612fed565b506000602082860101526020601f19601f83011685010191505092915050565b60006101006001600160a01b038b16835280602084015261304c8184018b612fe3565b604084019990995250506060810195909552921515608085015290151560a0840152151560c0830152151560e09091015292915050565b6020815260006130966020830184612fe3565b9392505050565b80356001600160a01b03811681146130b457600080fd5b919050565b600080604083850312156130cc57600080fd5b6130d58361309d565b946020939093013593505050565b60008083601f8401126130f557600080fd5b50813567ffffffffffffffff81111561310d57600080fd5b6020830191508360208260051b850101111561312857600080fd5b9250929050565b6000806000806040858703121561314557600080fd5b843567ffffffffffffffff8082111561315d57600080fd5b613169888389016130e3565b9096509450602087013591508082111561318257600080fd5b5061318f878288016130e3565b95989497509550505050565b6000806000606084860312156131b057600080fd5b6131b98461309d565b92506131c76020850161309d565b9150604084013590509250925092565b600081518084526020808501945080840160005b838110156132105781516001600160a01b0316875295820195908201906001016131eb565b509495945050505050565b60208152600061309660208301846131d7565b60006020828403121561324057600080fd5b6130968261309d565b600081518084526020808501808196508360051b8101915082860160005b8581101561329157828403895261327f848351612fe3565b98850198935090840190600101613267565b5091979650505050505050565b6020815260006130966020830184613249565b60008083601f8401126132c357600080fd5b50813567ffffffffffffffff8111156132db57600080fd5b60208301915083602082850101111561312857600080fd5b6000806020838503121561330657600080fd5b823567ffffffffffffffff81111561331d57600080fd5b613329858286016132b1565b90969095509350505050565b600081518084526020808501945080840160005b8381101561321057815187529582019590820190600101613349565b6020815260006130966020830184613335565b60006020828403121561338a57600080fd5b81356001600160e01b03198116811461309657600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156133e1576133e16133a2565b604052919050565b600067ffffffffffffffff821115613403576134036133a2565b5060051b60200190565b6000601f838184011261341f57600080fd5b8235602061343461342f836133e9565b6133b8565b82815260059290921b8501810191818101908784111561345357600080fd5b8287015b848110156134ea57803567ffffffffffffffff808211156134785760008081fd5b818a0191508a603f83011261348d5760008081fd5b858201356040828211156134a3576134a36133a2565b6134b4828b01601f191689016133b8565b92508183528c818386010111156134cb5760008081fd5b8181850189850137506000908201870152845250918301918301613457565b50979650505050505050565b600082601f83011261350757600080fd5b8135602061351761342f836133e9565b82815260059290921b8401810191818101908684111561353657600080fd5b8286015b84811015613551578035835291830191830161353a565b509695505050505050565b60008060008060008060a0878903121561357557600080fd5b863567ffffffffffffffff8082111561358d57600080fd5b6135998a838b016132b1565b90985096506020915088820135818111156135b357600080fd5b8901601f81018b136135c457600080fd5b80356135d261342f826133e9565b81815260059190911b8201840190848101908d8311156135f157600080fd5b928501925b82841015613616576136078461309d565b825292850192908501906135f6565b9850505050604089013591508082111561362f57600080fd5b61363b8a838b0161340d565b9450606089013591508082111561365157600080fd5b5061365e89828a016134f6565b925050608087013590509295509295509295565b6000806040838503121561368557600080fd5b823591506020830135801515811461369c57600080fd5b809150509250929050565b600080604083850312156136ba57600080fd5b6136c38361309d565b91506136d16020840161309d565b90509250929050565b600181811c908216806136ee57607f821691505b60208210810361370e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156108ec576108ec613714565b634e487b7160e01b600052603260045260246000fd5b6000808354613761816136da565b60018281168015613779576001811461378e576137bd565b60ff19841687528215158302870194506137bd565b8760005260208060002060005b858110156137b45781548a82015290840190820161379b565b50505082870194505b50929695505050505050565b6020808252602d908201527f4552433234363a204f6e6c792063616c6c61626c652076696120676f7665726e60408201526c185b98d9481c1c9bdc1bdcd85b609a1b606082015260800190565b60006001820161382857613828613714565b5060010190565b80820281158282048414176108ec576108ec613714565b60008261386357634e487b7160e01b600052601260045260246000fd5b500490565b601f82111561156257600081815260208120601f850160051c8101602086101561388f5750805b601f850160051c820191505b818110156121f65782815560010161389b565b67ffffffffffffffff8311156138c6576138c66133a2565b6138da836138d483546136da565b83613868565b6000601f84116001811461390e57600085156138f65750838201355b600019600387901b1c1916600186901b1783556124a1565b600083815260209020601f19861690835b8281101561393f578685013582556020948501946001909201910161391f565b508682101561395c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b818103818111156108ec576108ec613714565b60808152600061399460808301876131d7565b82810360208401526139a68187613249565b905082810360408401526139ba8186613335565b91505082606083015295945050505050565b815167ffffffffffffffff8111156139e6576139e66133a2565b6139fa816139f484546136da565b84613868565b602080601f831160018114613a2f5760008415613a175750858301515b600019600386901b1c1916600185901b1785556121f6565b600085815260208120601f198616915b82811015613a5e57888601518255948401946001909101908401613a3f565b5085821015613a7c5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea2646970667358221220bcef97673a841a50beb2d77107b09c506fa068fce66dd319aac0e27361b4b30c64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000000000000000000000000000000000000000000004566f7465000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004564f544500000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Vote
Arg [1] : symbol_ (string): VOTE
Arg [2] : _initialSupply (uint256): 1000000000000000000000000
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000d3c21bcecceda1000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 566f746500000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 564f544500000000000000000000000000000000000000000000000000000000
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.