CRC-20
Finance
Overview
Max Total Supply
14,142,729,237.469859875286334218 10SHARE
Holders
618
Market
Price
$4.08 @ 51.434528 CRO
Onchain Market Cap
$57,702,335,288.88
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
8.690729179224996531 10SHAREValue
$35.46 ( ~447.0266 CRO) [0.0000%]Loading...
Loading
Loading...
Loading
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
_10SHARE
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >0.6.12; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../interfaces/ITreasury.sol"; contract _10SHARE is ERC20Burnable, Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; mapping(address => bool) public operators; // TOTAL MAX SUPPLY = 100.000 10SHARE //uint256 public constant FARMING_POOL_REWARD_ALLOCATION = 325000000000000000000000; uint256 public constant DEV_FUND_POOL_ALLOCATION = 50000000000000000000000; uint256 public constant DAO_FUND_POOL_ALLOCATION = 50000000000000000000000; uint256 public constant EQUITY_FUND_POOL_ALLOCATION = 50000000000000000000000; ITreasury public treasury; uint256 public constant VESTING_DURATION = 315360000; uint256 public startTime; uint256 public endTime; uint256 public daoFundRewardRate; uint256 public equityFundRewardRate; uint256 public devFundRewardRate; address public equityFund; address public daoFund; address public devFund; uint256 public lastClaimedTime; bool public rewardPoolDistributed = false; uint256 public fundMultiplier = 10000; modifier onlyPools() { require(ITreasury(treasury).hasPool(msg.sender), "!pools"); _; } modifier onlyOperator() { require(operators[msg.sender], "Caller is not operator"); _; } // Track Share burned event ShareBurned(address indexed from, address indexed to, uint256 amount); // Track Share minted event ShareMinted(address indexed from, address indexed to, uint256 amount); event DaoClaimRewards(uint256 paid); event DevClaimRewards(uint256 paid); event EquityClaimRewards(uint256 paid); constructor(ITreasury _treasury, uint256 _startTime, address _daoFund, address _devFund, address _equityFund) public ERC20("10SHARE", "10SHARE") { operators[msg.sender] = true; _mint(msg.sender, 30 ether); _mint(0x67CF8F525d89a26f23f05dc7D8C811b0CDB5CbE0, 50 ether); startTime = _startTime; endTime = startTime + VESTING_DURATION; lastClaimedTime = startTime; daoFundRewardRate = DAO_FUND_POOL_ALLOCATION.div(VESTING_DURATION); devFundRewardRate = DEV_FUND_POOL_ALLOCATION.div(VESTING_DURATION); equityFundRewardRate = EQUITY_FUND_POOL_ALLOCATION.div(VESTING_DURATION); require(_devFund != address(0), "Address cannot be 0"); devFund = _devFund; require(_daoFund != address(0), "Address cannot be 0"); daoFund = _daoFund; require(_equityFund != address(0), "Address cannot be 0"); equityFund = _equityFund; treasury = _treasury; } function setDaoFund(address _daoFund) external onlyOperator { require(_daoFund != address(0), "zero"); daoFund = _daoFund; } function setEquityFund(address _equityFund) external onlyOperator { require(_equityFund != address(0), "zero"); equityFund = _equityFund; } function setDevFund(address _devFund) external onlyOperator { require(_devFund != address(0), "zero"); devFund = _devFund; } function unclaimedDaoFund() public view returns (uint256 _pending) { uint256 _now = block.timestamp; if (_now > endTime) _now = endTime; if (lastClaimedTime >= _now) return 0; _pending = _now.sub(lastClaimedTime).mul(daoFundRewardRate); } function unclaimedDevFund() public view returns (uint256 _pending) { uint256 _now = block.timestamp; if (_now > endTime) _now = endTime; if (lastClaimedTime >= _now) return 0; _pending = _now.sub(lastClaimedTime).mul(devFundRewardRate); } function unclaimedEquityFund() public view returns (uint256 _pending) { uint256 _now = block.timestamp; if (_now > endTime) _now = endTime; if (lastClaimedTime >= _now) return 0; _pending = _now.sub(lastClaimedTime).mul(equityFundRewardRate); } /** * @dev Claim pending rewards to community and dev fund */ function claimRewards() external { uint256 _pending = unclaimedDaoFund(); if (_pending > 0 && daoFund != address(0)) { emit DaoClaimRewards(_pending.mul(fundMultiplier).div(10000)); _mint(daoFund, _pending.mul(fundMultiplier).div(10000)); } _pending = unclaimedDevFund(); if (_pending > 0 && devFund != address(0)) { emit DevClaimRewards(_pending.mul(fundMultiplier).div(10000)); _mint(devFund, _pending.mul(fundMultiplier).div(10000)); } _pending = unclaimedEquityFund(); if (_pending > 0 && equityFund != address(0)) { emit EquityClaimRewards(_pending.mul(fundMultiplier).div(10000)); _mint(equityFund, _pending.mul(fundMultiplier).div(10000)); } lastClaimedTime = block.timestamp; } function setOperator(address operator, bool isOperator) public onlyOwner { require(operator != address(0), "operator address cannot be 0 address"); operators[operator] = isOperator; } function setFundMultiplier(uint256 _fundMultiplier) external onlyOperator { require(_fundMultiplier <= 100 * 10000, "Max fundMultiplier is 100x"); fundMultiplier = _fundMultiplier; } /** * @notice Operator mints 10SHARE to a recipient * @param recipient_ The address of recipient * @param amount_ The amount of 10SHARE to mint to */ function mint(address recipient_, uint256 amount_) public onlyOperator { _mint(recipient_, amount_); } function burn(uint256 amount) public override { super.burn(amount); } // This function is what other Pools will call to mint new SHARE function poolMint(address m_address, uint256 m_amount) external onlyPools { _mint(m_address, m_amount); emit ShareMinted(address(this), m_address, m_amount); } // This function is what other pools will call to burn SHARE function poolBurnFrom(address b_address, uint256 b_amount) external onlyPools { super.burnFrom(b_address, b_amount); emit ShareBurned(b_address, address(this), b_amount); } function governanceRecoverUnsupported( IERC20 _token, uint256 _amount, address _to ) external onlyOperator { require(_to != address(0), "cannot send to 0 address!"); _token.safeTransfer(_to, _amount); } function amIOperator() public view returns (bool) { if (operators[msg.sender]) return true; return false; } function setTreasuryAddress(ITreasury _treasury) public onlyOperator { require(address(_treasury) != address(0), "treasury address can't be 0!"); treasury = _treasury; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity >0.6.12; interface ITreasury { function epoch() external view returns (uint256); function startTime() external view returns (uint256); function nextEpochPoint() external view returns (uint256); function get10MBPrice() external view returns (uint256); function get10MBUpdatedPrice() external view returns (uint256); function buyBonds(uint256 amount, uint256 targetPrice) external; function redeemBonds(uint256 amount, uint256 targetPrice) external; function treasuryUpdates() external; function _update10MBPrice() external; function _update10SHAREPrice() external; function refreshCollateralRatio() external; function allocateSeigniorage() external; function hasPool(address _address) external view returns (bool); function info() external view returns ( uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256 ); function epochInfo() external view returns ( uint256, uint256, uint256, uint256 ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[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 = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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; } _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; _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; } _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 Spend `amount` form the allowance of `owner` toward `spender`. * * 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 (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 (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // 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.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract ITreasury","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"address","name":"_daoFund","type":"address"},{"internalType":"address","name":"_devFund","type":"address"},{"internalType":"address","name":"_equityFund","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"paid","type":"uint256"}],"name":"DaoClaimRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"paid","type":"uint256"}],"name":"DevClaimRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"paid","type":"uint256"}],"name":"EquityClaimRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ShareBurned","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":"amount","type":"uint256"}],"name":"ShareMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DAO_FUND_POOL_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_FUND_POOL_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EQUITY_FUND_POOL_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VESTING_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amIOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"daoFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoFundRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFundRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"equityFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"equityFundRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastClaimedTime","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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"b_address","type":"address"},{"internalType":"uint256","name":"b_amount","type":"uint256"}],"name":"poolBurnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"m_address","type":"address"},{"internalType":"uint256","name":"m_amount","type":"uint256"}],"name":"poolMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPoolDistributed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_daoFund","type":"address"}],"name":"setDaoFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devFund","type":"address"}],"name":"setDevFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_equityFund","type":"address"}],"name":"setEquityFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fundMultiplier","type":"uint256"}],"name":"setFundMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"isOperator","type":"bool"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ITreasury","name":"_treasury","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"contract ITreasury","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unclaimedDaoFund","outputs":[{"internalType":"uint256","name":"_pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unclaimedDevFund","outputs":[{"internalType":"uint256","name":"_pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unclaimedEquityFund","outputs":[{"internalType":"uint256","name":"_pending","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526011805460ff191690556127106012553480156200002157600080fd5b5060405162002401380380620024018339810160408190526200004491620004f8565b6040805180820182526007808252663130534841524560c81b602080840182815285518087019096529285528401528151919291620000869160039162000452565b5080516200009c90600490602084019062000452565b505050620000b9620000b36200030260201b60201c565b62000306565b336000818152600660205260409020805460ff19166001179055620000e8906801a055690d9db8000062000358565b620001117367cf8f525d89a26f23f05dc7d8c811b0cdb5cbe06802b5e3af16b188000062000358565b6008849055620001266312cc0300856200056b565b60095560085460105562000155690a968163f0a57b4000006312cc03006200043d602090811b6200119d17901c565b600a556200017e690a968163f0a57b4000006312cc03006200043d602090811b6200119d17901c565b600c55620001a7690a968163f0a57b4000006312cc03006200043d602090811b6200119d17901c565b600b556001600160a01b038216620001fc5760405162461bcd60e51b81526020600482015260136024820152720416464726573732063616e6e6f74206265203606c1b60448201526064015b60405180910390fd5b600f80546001600160a01b0319166001600160a01b03848116919091179091558316620002625760405162461bcd60e51b81526020600482015260136024820152720416464726573732063616e6e6f74206265203606c1b6044820152606401620001f3565b600e80546001600160a01b0319166001600160a01b03858116919091179091558116620002c85760405162461bcd60e51b81526020600482015260136024820152720416464726573732063616e6e6f74206265203606c1b6044820152606401620001f3565b600d80546001600160a01b039283166001600160a01b03199182161790915560078054969092169516949094179093555062000607915050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003b05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620001f3565b8060026000828254620003c491906200056b565b90915550506001600160a01b03821660009081526020819052604081208054839290620003f39084906200056b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006200044b828462000590565b9392505050565b8280546200046090620005b1565b90600052602060002090601f016020900481019282620004845760008555620004cf565b82601f106200049f57805160ff1916838001178555620004cf565b82800160010185558215620004cf579182015b82811115620004cf578251825591602001919060010190620004b2565b50620004dd929150620004e1565b5090565b5b80821115620004dd5760008155600101620004e2565b600080600080600060a0868803121562000510578081fd5b85516200051d81620005ee565b6020870151604088015191965094506200053781620005ee565b60608701519093506200054a81620005ee565b60808701519092506200055d81620005ee565b809150509295509295909350565b600082198211156200058b57634e487b7160e01b81526011600452602481fd5b500190565b600082620005ac57634e487b7160e01b81526012600452602481fd5b500490565b600181811c90821680620005c657607f821691505b60208210811415620005e857634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b03811681146200060457600080fd5b50565b611dea80620006176000396000f3fe608060405234801561001057600080fd5b50600436106102a05760003560e01c806354575af4116101675780639662676c116100ce578063c3ebc59311610087578063c3ebc59314610567578063dd62ed3e14610570578063f0bb405e146105a9578063f0f1772c146105b1578063f2fde38b146105c4578063f5e75cbd146105d757600080fd5b80639662676c146105185780639b55c1bc14610525578063a457c2d71461052e578063a9059cbb14610541578063ada2828d14610331578063ae4db9191461055457600080fd5b806375280dd41161012057806375280dd4146104c757806378e97925146104d057806379cc6790146104d95780638d934f74146104ec5780638da5cb5b146104ff57806395d89b411461051057600080fd5b806354575af41461044a578063558a72971461045d57806361d027b3146104705780636605bfda1461048357806370a0823114610496578063715018a6146104bf57600080fd5b80632e3367ce1161020b57806339509351116101c457806339509351146103db57806340c10f19146103ee57806342966c68146104015780634390d2a8146104145780634cfc4d301461043f5780634f337dd51461033157600080fd5b80632e3367ce146103a157806330e37a91146103aa578063313ce567146103b25780633197cbb6146103c157806334b9558e146103ca578063372500ab146103d357600080fd5b806318160ddd1161025d57806318160ddd146103505780631a5df6071461035857806323b872dd14610360578063273fd9dd146103735780632c07a624146103865780632c559d271461038e57600080fd5b806306fdde03146102a5578063095ea7b3146102c35780630a0c165a146102e65780630c407d56146102fb57806313e7c9d81461030e57806316103b7214610331575b600080fd5b6102ad6105ea565b6040516102ba9190611bf0565b60405180910390f35b6102d66102d1366004611b34565b61067c565b60405190151581526020016102ba565b6102f96102f4366004611b34565b610694565b005b6102f9610309366004611b34565b610798565b6102d661031c366004611a73565b60066020526000908152604090205460ff1681565b610342690a968163f0a57b40000081565b6040519081526020016102ba565b600254610342565b61034261088f565b6102d661036e366004611ac7565b6108db565b6102f9610381366004611bbc565b610901565b610342610988565b6102f961039c366004611a73565b6109c8565b610342600c5481565b6102d6610a3f565b604051601281526020016102ba565b61034260095481565b61034260105481565b6102f9610a63565b6102d66103e9366004611b34565b610c4e565b6102f96103fc366004611b34565b610c8d565b6102f961040f366004611bbc565b610cca565b600f54610427906001600160a01b031681565b6040516001600160a01b0390911681526020016102ba565b6103426312cc030081565b6102f9610458366004611b7b565b610cd6565b6102f961046b366004611b07565b610d74565b600754610427906001600160a01b031681565b6102f9610491366004611a73565b610e2b565b6103426104a4366004611a73565b6001600160a01b031660009081526020819052604090205490565b6102f9610ed2565b610342600b5481565b61034260085481565b6102f96104e7366004611b34565b610f08565b600e54610427906001600160a01b031681565b6005546001600160a01b0316610427565b6102ad610f1d565b6011546102d69060ff1681565b61034260125481565b6102d661053c366004611b34565b610f2c565b6102d661054f366004611b34565b610fc9565b6102f9610562366004611a73565b610fd7565b610342600a5481565b61034261057e366004611a8f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61034261104e565b6102f96105bf366004611a73565b61108e565b6102f96105d2366004611a73565b611105565b600d54610427906001600160a01b031681565b6060600380546105f990611d40565b80601f016020809104026020016040519081016040528092919081815260200182805461062590611d40565b80156106725780601f1061064757610100808354040283529160200191610672565b820191906000526020600020905b81548152906001019060200180831161065557829003601f168201915b5050505050905090565b60003361068a8185856111a9565b5060019392505050565b600754604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b1580156106d757600080fd5b505afa1580156106eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070f9190611b5f565b6107495760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b60448201526064015b60405180910390fd5b6107538282610f08565b60405181815230906001600160a01b038416907fdf05d6cb804e48c3130d5f7811e55947769ccdecf499faea489170f17df227cf906020015b60405180910390a35050565b600754604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b1580156107db57600080fd5b505afa1580156107ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108139190611b5f565b6108485760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b6044820152606401610740565b61085282826112cd565b6040518181526001600160a01b0383169030907ff4d2b66b63836b39ffec28f88533e0f50c9136ab7d8d9b9976f93d3880e802059060200161078c565b60095460009042908111156108a357506009545b80601054106108b457600091505090565b6108d5600a546108cf601054846113ac90919063ffffffff16565b906113b8565b91505090565b6000336108e98582856113c4565b6108f4858585611456565b60019150505b9392505050565b3360009081526006602052604090205460ff166109305760405162461bcd60e51b815260040161074090611c76565b620f42408111156109835760405162461bcd60e51b815260206004820152601a60248201527f4d61782066756e644d756c7469706c69657220697320313030780000000000006044820152606401610740565b601255565b600954600090429081111561099c57506009545b80601054106109ad57600091505090565b6108d5600c546108cf601054846113ac90919063ffffffff16565b3360009081526006602052604090205460ff166109f75760405162461bcd60e51b815260040161074090611c76565b6001600160a01b038116610a1d5760405162461bcd60e51b815260040161074090611c23565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526006602052604081205460ff1615610a5d5750600190565b50600090565b6000610a6d61088f565b9050600081118015610a895750600e546001600160a01b031615155b15610b0d577f58d7d48def23cbb56905009f441d5bd653abdb8e8d4d4f53948fb5af3d4ffb0b610ad0612710610aca601254856113b890919063ffffffff16565b9061119d565b60405190815260200160405180910390a1600e54601254610b0d916001600160a01b031690610b089061271090610aca9086906113b8565b6112cd565b610b15610988565b9050600081118015610b315750600f546001600160a01b031615155b15610baa577f91f807d676082a5295f5fa34f3d70483fc8a08f1010148721e3aa9dacc6b18c1610b72612710610aca601254856113b890919063ffffffff16565b60405190815260200160405180910390a1600f54601254610baa916001600160a01b031690610b089061271090610aca9086906113b8565b610bb261104e565b9050600081118015610bce5750600d546001600160a01b031615155b15610c47577f3d765f7f38dd99870b6065da2409ec7fb6a0216c7ef568a96c1e8fa228f2a1fc610c0f612710610aca601254856113b890919063ffffffff16565b60405190815260200160405180910390a1600d54601254610c47916001600160a01b031690610b089061271090610aca9086906113b8565b5042601055565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061068a9082908690610c88908790611ca6565b6111a9565b3360009081526006602052604090205460ff16610cbc5760405162461bcd60e51b815260040161074090611c76565b610cc682826112cd565b5050565b610cd381611624565b50565b3360009081526006602052604090205460ff16610d055760405162461bcd60e51b815260040161074090611c76565b6001600160a01b038116610d5b5760405162461bcd60e51b815260206004820152601960248201527f63616e6e6f742073656e6420746f2030206164647265737321000000000000006044820152606401610740565b610d6f6001600160a01b038416828461162e565b505050565b6005546001600160a01b03163314610d9e5760405162461bcd60e51b815260040161074090611c41565b6001600160a01b038216610e005760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f7220616464726573732063616e6e6f742062652030206164646044820152637265737360e01b6064820152608401610740565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b3360009081526006602052604090205460ff16610e5a5760405162461bcd60e51b815260040161074090611c76565b6001600160a01b038116610eb05760405162461bcd60e51b815260206004820152601c60248201527f747265617375727920616464726573732063616e2774206265203021000000006044820152606401610740565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610efc5760405162461bcd60e51b815260040161074090611c41565b610f066000611680565b565b610f138233836113c4565b610cc682826116d2565b6060600480546105f990611d40565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610fb15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610740565b610fbe82868684036111a9565b506001949350505050565b60003361068a818585611456565b3360009081526006602052604090205460ff166110065760405162461bcd60e51b815260040161074090611c76565b6001600160a01b03811661102c5760405162461bcd60e51b815260040161074090611c23565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600954600090429081111561106257506009545b806010541061107357600091505090565b6108d5600b546108cf601054846113ac90919063ffffffff16565b3360009081526006602052604090205460ff166110bd5760405162461bcd60e51b815260040161074090611c76565b6001600160a01b0381166110e35760405162461bcd60e51b815260040161074090611c23565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b0316331461112f5760405162461bcd60e51b815260040161074090611c41565b6001600160a01b0381166111945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610740565b610cd381611680565b60006108fa8284611cbe565b6001600160a01b03831661120b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610740565b6001600160a01b03821661126c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610740565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166113235760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610740565b80600260008282546113359190611ca6565b90915550506001600160a01b03821660009081526020819052604081208054839290611362908490611ca6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006108fa8284611cfd565b60006108fa8284611cde565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461145057818110156114435760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610740565b61145084848484036111a9565b50505050565b6001600160a01b0383166114ba5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610740565b6001600160a01b03821661151c5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610740565b6001600160a01b038316600090815260208190526040902054818110156115945760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610740565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906115cb908490611ca6565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161161791815260200190565b60405180910390a3611450565b610cd333826116d2565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d6f908490611820565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166117325760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610740565b6001600160a01b038216600090815260208190526040902054818110156117a65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610740565b6001600160a01b03831660009081526020819052604081208383039055600280548492906117d5908490611cfd565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000611875826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118f29092919063ffffffff16565b805190915015610d6f57808060200190518101906118939190611b5f565b610d6f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610740565b60606119018484600085611909565b949350505050565b60608247101561196a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610740565b6001600160a01b0385163b6119c15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610740565b600080866001600160a01b031685876040516119dd9190611bd4565b60006040518083038185875af1925050503d8060008114611a1a576040519150601f19603f3d011682016040523d82523d6000602084013e611a1f565b606091505b5091509150611a2f828286611a3a565b979650505050505050565b60608315611a495750816108fa565b825115611a595782518084602001fd5b8160405162461bcd60e51b81526004016107409190611bf0565b600060208284031215611a84578081fd5b81356108fa81611d91565b60008060408385031215611aa1578081fd5b8235611aac81611d91565b91506020830135611abc81611d91565b809150509250929050565b600080600060608486031215611adb578081fd5b8335611ae681611d91565b92506020840135611af681611d91565b929592945050506040919091013590565b60008060408385031215611b19578182fd5b8235611b2481611d91565b91506020830135611abc81611da6565b60008060408385031215611b46578182fd5b8235611b5181611d91565b946020939093013593505050565b600060208284031215611b70578081fd5b81516108fa81611da6565b600080600060608486031215611b8f578283fd5b8335611b9a81611d91565b9250602084013591506040840135611bb181611d91565b809150509250925092565b600060208284031215611bcd578081fd5b5035919050565b60008251611be6818460208701611d14565b9190910192915050565b6020815260008251806020840152611c0f816040850160208701611d14565b601f01601f19169190910160400192915050565b6020808252600490820152637a65726f60e01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527521b0b63632b91034b9903737ba1037b832b930ba37b960511b604082015260600190565b60008219821115611cb957611cb9611d7b565b500190565b600082611cd957634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611cf857611cf8611d7b565b500290565b600082821015611d0f57611d0f611d7b565b500390565b60005b83811015611d2f578181015183820152602001611d17565b838111156114505750506000910152565b600181811c90821680611d5457607f821691505b60208210811415611d7557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610cd357600080fd5b8015158114610cd357600080fdfea264697066735822122061b2b397837902aca6fc8cdc89d04c95a5af98988ce187c3417bb5eaac5c88fc64736f6c63430008040033000000000000000000000000562fe5786e0d16f9f84c53d8364d74a5a983fdb20000000000000000000000000000000000000000000000000000000062bf5240000000000000000000000000ba0a019324bc7e502e00b440842680e0d7cbafad000000000000000000000000ea04706c93e4264eab0320f1ce7a43aa714a77990000000000000000000000003f780ee03d46ed54525642ce670c93a395145032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102a05760003560e01c806354575af4116101675780639662676c116100ce578063c3ebc59311610087578063c3ebc59314610567578063dd62ed3e14610570578063f0bb405e146105a9578063f0f1772c146105b1578063f2fde38b146105c4578063f5e75cbd146105d757600080fd5b80639662676c146105185780639b55c1bc14610525578063a457c2d71461052e578063a9059cbb14610541578063ada2828d14610331578063ae4db9191461055457600080fd5b806375280dd41161012057806375280dd4146104c757806378e97925146104d057806379cc6790146104d95780638d934f74146104ec5780638da5cb5b146104ff57806395d89b411461051057600080fd5b806354575af41461044a578063558a72971461045d57806361d027b3146104705780636605bfda1461048357806370a0823114610496578063715018a6146104bf57600080fd5b80632e3367ce1161020b57806339509351116101c457806339509351146103db57806340c10f19146103ee57806342966c68146104015780634390d2a8146104145780634cfc4d301461043f5780634f337dd51461033157600080fd5b80632e3367ce146103a157806330e37a91146103aa578063313ce567146103b25780633197cbb6146103c157806334b9558e146103ca578063372500ab146103d357600080fd5b806318160ddd1161025d57806318160ddd146103505780631a5df6071461035857806323b872dd14610360578063273fd9dd146103735780632c07a624146103865780632c559d271461038e57600080fd5b806306fdde03146102a5578063095ea7b3146102c35780630a0c165a146102e65780630c407d56146102fb57806313e7c9d81461030e57806316103b7214610331575b600080fd5b6102ad6105ea565b6040516102ba9190611bf0565b60405180910390f35b6102d66102d1366004611b34565b61067c565b60405190151581526020016102ba565b6102f96102f4366004611b34565b610694565b005b6102f9610309366004611b34565b610798565b6102d661031c366004611a73565b60066020526000908152604090205460ff1681565b610342690a968163f0a57b40000081565b6040519081526020016102ba565b600254610342565b61034261088f565b6102d661036e366004611ac7565b6108db565b6102f9610381366004611bbc565b610901565b610342610988565b6102f961039c366004611a73565b6109c8565b610342600c5481565b6102d6610a3f565b604051601281526020016102ba565b61034260095481565b61034260105481565b6102f9610a63565b6102d66103e9366004611b34565b610c4e565b6102f96103fc366004611b34565b610c8d565b6102f961040f366004611bbc565b610cca565b600f54610427906001600160a01b031681565b6040516001600160a01b0390911681526020016102ba565b6103426312cc030081565b6102f9610458366004611b7b565b610cd6565b6102f961046b366004611b07565b610d74565b600754610427906001600160a01b031681565b6102f9610491366004611a73565b610e2b565b6103426104a4366004611a73565b6001600160a01b031660009081526020819052604090205490565b6102f9610ed2565b610342600b5481565b61034260085481565b6102f96104e7366004611b34565b610f08565b600e54610427906001600160a01b031681565b6005546001600160a01b0316610427565b6102ad610f1d565b6011546102d69060ff1681565b61034260125481565b6102d661053c366004611b34565b610f2c565b6102d661054f366004611b34565b610fc9565b6102f9610562366004611a73565b610fd7565b610342600a5481565b61034261057e366004611a8f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61034261104e565b6102f96105bf366004611a73565b61108e565b6102f96105d2366004611a73565b611105565b600d54610427906001600160a01b031681565b6060600380546105f990611d40565b80601f016020809104026020016040519081016040528092919081815260200182805461062590611d40565b80156106725780601f1061064757610100808354040283529160200191610672565b820191906000526020600020905b81548152906001019060200180831161065557829003601f168201915b5050505050905090565b60003361068a8185856111a9565b5060019392505050565b600754604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b1580156106d757600080fd5b505afa1580156106eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070f9190611b5f565b6107495760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b60448201526064015b60405180910390fd5b6107538282610f08565b60405181815230906001600160a01b038416907fdf05d6cb804e48c3130d5f7811e55947769ccdecf499faea489170f17df227cf906020015b60405180910390a35050565b600754604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b1580156107db57600080fd5b505afa1580156107ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108139190611b5f565b6108485760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b6044820152606401610740565b61085282826112cd565b6040518181526001600160a01b0383169030907ff4d2b66b63836b39ffec28f88533e0f50c9136ab7d8d9b9976f93d3880e802059060200161078c565b60095460009042908111156108a357506009545b80601054106108b457600091505090565b6108d5600a546108cf601054846113ac90919063ffffffff16565b906113b8565b91505090565b6000336108e98582856113c4565b6108f4858585611456565b60019150505b9392505050565b3360009081526006602052604090205460ff166109305760405162461bcd60e51b815260040161074090611c76565b620f42408111156109835760405162461bcd60e51b815260206004820152601a60248201527f4d61782066756e644d756c7469706c69657220697320313030780000000000006044820152606401610740565b601255565b600954600090429081111561099c57506009545b80601054106109ad57600091505090565b6108d5600c546108cf601054846113ac90919063ffffffff16565b3360009081526006602052604090205460ff166109f75760405162461bcd60e51b815260040161074090611c76565b6001600160a01b038116610a1d5760405162461bcd60e51b815260040161074090611c23565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526006602052604081205460ff1615610a5d5750600190565b50600090565b6000610a6d61088f565b9050600081118015610a895750600e546001600160a01b031615155b15610b0d577f58d7d48def23cbb56905009f441d5bd653abdb8e8d4d4f53948fb5af3d4ffb0b610ad0612710610aca601254856113b890919063ffffffff16565b9061119d565b60405190815260200160405180910390a1600e54601254610b0d916001600160a01b031690610b089061271090610aca9086906113b8565b6112cd565b610b15610988565b9050600081118015610b315750600f546001600160a01b031615155b15610baa577f91f807d676082a5295f5fa34f3d70483fc8a08f1010148721e3aa9dacc6b18c1610b72612710610aca601254856113b890919063ffffffff16565b60405190815260200160405180910390a1600f54601254610baa916001600160a01b031690610b089061271090610aca9086906113b8565b610bb261104e565b9050600081118015610bce5750600d546001600160a01b031615155b15610c47577f3d765f7f38dd99870b6065da2409ec7fb6a0216c7ef568a96c1e8fa228f2a1fc610c0f612710610aca601254856113b890919063ffffffff16565b60405190815260200160405180910390a1600d54601254610c47916001600160a01b031690610b089061271090610aca9086906113b8565b5042601055565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061068a9082908690610c88908790611ca6565b6111a9565b3360009081526006602052604090205460ff16610cbc5760405162461bcd60e51b815260040161074090611c76565b610cc682826112cd565b5050565b610cd381611624565b50565b3360009081526006602052604090205460ff16610d055760405162461bcd60e51b815260040161074090611c76565b6001600160a01b038116610d5b5760405162461bcd60e51b815260206004820152601960248201527f63616e6e6f742073656e6420746f2030206164647265737321000000000000006044820152606401610740565b610d6f6001600160a01b038416828461162e565b505050565b6005546001600160a01b03163314610d9e5760405162461bcd60e51b815260040161074090611c41565b6001600160a01b038216610e005760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f7220616464726573732063616e6e6f742062652030206164646044820152637265737360e01b6064820152608401610740565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b3360009081526006602052604090205460ff16610e5a5760405162461bcd60e51b815260040161074090611c76565b6001600160a01b038116610eb05760405162461bcd60e51b815260206004820152601c60248201527f747265617375727920616464726573732063616e2774206265203021000000006044820152606401610740565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610efc5760405162461bcd60e51b815260040161074090611c41565b610f066000611680565b565b610f138233836113c4565b610cc682826116d2565b6060600480546105f990611d40565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610fb15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610740565b610fbe82868684036111a9565b506001949350505050565b60003361068a818585611456565b3360009081526006602052604090205460ff166110065760405162461bcd60e51b815260040161074090611c76565b6001600160a01b03811661102c5760405162461bcd60e51b815260040161074090611c23565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600954600090429081111561106257506009545b806010541061107357600091505090565b6108d5600b546108cf601054846113ac90919063ffffffff16565b3360009081526006602052604090205460ff166110bd5760405162461bcd60e51b815260040161074090611c76565b6001600160a01b0381166110e35760405162461bcd60e51b815260040161074090611c23565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b0316331461112f5760405162461bcd60e51b815260040161074090611c41565b6001600160a01b0381166111945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610740565b610cd381611680565b60006108fa8284611cbe565b6001600160a01b03831661120b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610740565b6001600160a01b03821661126c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610740565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166113235760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610740565b80600260008282546113359190611ca6565b90915550506001600160a01b03821660009081526020819052604081208054839290611362908490611ca6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006108fa8284611cfd565b60006108fa8284611cde565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461145057818110156114435760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610740565b61145084848484036111a9565b50505050565b6001600160a01b0383166114ba5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610740565b6001600160a01b03821661151c5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610740565b6001600160a01b038316600090815260208190526040902054818110156115945760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610740565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906115cb908490611ca6565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161161791815260200190565b60405180910390a3611450565b610cd333826116d2565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d6f908490611820565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166117325760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610740565b6001600160a01b038216600090815260208190526040902054818110156117a65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610740565b6001600160a01b03831660009081526020819052604081208383039055600280548492906117d5908490611cfd565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000611875826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118f29092919063ffffffff16565b805190915015610d6f57808060200190518101906118939190611b5f565b610d6f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610740565b60606119018484600085611909565b949350505050565b60608247101561196a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610740565b6001600160a01b0385163b6119c15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610740565b600080866001600160a01b031685876040516119dd9190611bd4565b60006040518083038185875af1925050503d8060008114611a1a576040519150601f19603f3d011682016040523d82523d6000602084013e611a1f565b606091505b5091509150611a2f828286611a3a565b979650505050505050565b60608315611a495750816108fa565b825115611a595782518084602001fd5b8160405162461bcd60e51b81526004016107409190611bf0565b600060208284031215611a84578081fd5b81356108fa81611d91565b60008060408385031215611aa1578081fd5b8235611aac81611d91565b91506020830135611abc81611d91565b809150509250929050565b600080600060608486031215611adb578081fd5b8335611ae681611d91565b92506020840135611af681611d91565b929592945050506040919091013590565b60008060408385031215611b19578182fd5b8235611b2481611d91565b91506020830135611abc81611da6565b60008060408385031215611b46578182fd5b8235611b5181611d91565b946020939093013593505050565b600060208284031215611b70578081fd5b81516108fa81611da6565b600080600060608486031215611b8f578283fd5b8335611b9a81611d91565b9250602084013591506040840135611bb181611d91565b809150509250925092565b600060208284031215611bcd578081fd5b5035919050565b60008251611be6818460208701611d14565b9190910192915050565b6020815260008251806020840152611c0f816040850160208701611d14565b601f01601f19169190910160400192915050565b6020808252600490820152637a65726f60e01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527521b0b63632b91034b9903737ba1037b832b930ba37b960511b604082015260600190565b60008219821115611cb957611cb9611d7b565b500190565b600082611cd957634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611cf857611cf8611d7b565b500290565b600082821015611d0f57611d0f611d7b565b500390565b60005b83811015611d2f578181015183820152602001611d17565b838111156114505750506000910152565b600181811c90821680611d5457607f821691505b60208210811415611d7557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610cd357600080fd5b8015158114610cd357600080fdfea264697066735822122061b2b397837902aca6fc8cdc89d04c95a5af98988ce187c3417bb5eaac5c88fc64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000562fe5786e0d16f9f84c53d8364d74a5a983fdb20000000000000000000000000000000000000000000000000000000062bf5240000000000000000000000000ba0a019324bc7e502e00b440842680e0d7cbafad000000000000000000000000ea04706c93e4264eab0320f1ce7a43aa714a77990000000000000000000000003f780ee03d46ed54525642ce670c93a395145032
-----Decoded View---------------
Arg [0] : _treasury (address): 0x562FE5786e0D16f9f84c53d8364d74A5a983fDB2
Arg [1] : _startTime (uint256): 1656705600
Arg [2] : _daoFund (address): 0xBa0A019324BC7E502e00B440842680e0D7CBAfAD
Arg [3] : _devFund (address): 0xea04706c93e4264eaB0320F1ce7A43aa714a7799
Arg [4] : _equityFund (address): 0x3F780EE03D46ED54525642cE670C93A395145032
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000562fe5786e0d16f9f84c53d8364d74a5a983fdb2
Arg [1] : 0000000000000000000000000000000000000000000000000000000062bf5240
Arg [2] : 000000000000000000000000ba0a019324bc7e502e00b440842680e0d7cbafad
Arg [3] : 000000000000000000000000ea04706c93e4264eab0320f1ce7a43aa714a7799
Arg [4] : 0000000000000000000000003f780ee03d46ed54525642ce670c93a395145032
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.