More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 166 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy | 17867769 | 387 days ago | IN | 0.001 ETH | 0.00079867 | ||||
Buy | 17867751 | 387 days ago | IN | 0.001 ETH | 0.063894 | ||||
Buy | 17867626 | 388 days ago | IN | 0.001 ETH | 0.00079867 | ||||
Buy | 17867610 | 388 days ago | IN | 0.001 ETH | 0.00079897 | ||||
Buy | 17867571 | 388 days ago | IN | 0.001 ETH | 0.00074452 | ||||
Buy | 17734911 | 406 days ago | IN | 0.61 ETH | 0.00163539 | ||||
Withdraw Fund | 17734868 | 406 days ago | IN | 0 ETH | 0.00204475 | ||||
Buy | 17734862 | 406 days ago | IN | 1 ETH | 0.00123913 | ||||
Buy | 17734841 | 406 days ago | IN | 0.01 ETH | 0.00147864 | ||||
Buy | 17734841 | 406 days ago | IN | 1 ETH | 0.00147913 | ||||
Buy | 17734841 | 406 days ago | IN | 0.011 ETH | 0.00147913 | ||||
Buy | 17734840 | 406 days ago | IN | 0.1 ETH | 0.00149446 | ||||
Buy | 17734840 | 406 days ago | IN | 0.3 ETH | 0.00149446 | ||||
Buy | 17734840 | 406 days ago | IN | 0.1 ETH | 0.00149446 | ||||
Buy | 17734840 | 406 days ago | IN | 0.01 ETH | 0.00149397 | ||||
Buy | 17734840 | 406 days ago | IN | 4.5 ETH | 0.00149495 | ||||
Buy | 17734840 | 406 days ago | IN | 0.54 ETH | 0.00403225 | ||||
Buy | 17734839 | 406 days ago | IN | 0.1 ETH | 0.00339215 | ||||
Buy | 17734839 | 406 days ago | IN | 0.1 ETH | 0.00262552 | ||||
Buy | 17734839 | 406 days ago | IN | 0.09020919 ETH | 0.00337258 | ||||
Buy | 17734839 | 406 days ago | IN | 0.05 ETH | 0.00348493 | ||||
Buy | 17734839 | 406 days ago | IN | 0.00182981 ETH | 0.0027464 | ||||
Buy | 17734838 | 406 days ago | IN | 0.59 ETH | 0.00313726 | ||||
Buy | 17734838 | 406 days ago | IN | 0.08 ETH | 0.00313726 | ||||
Buy | 17734838 | 406 days ago | IN | 0.005 ETH | 0.00247542 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17734840 | 406 days ago | 0.4610436 ETH | ||||
17734840 | 406 days ago | 0.4610436 ETH | ||||
17734840 | 406 days ago | 0.54 ETH | ||||
17734839 | 406 days ago | 0.0210436 ETH | ||||
17734839 | 406 days ago | 0.1 ETH | ||||
17734839 | 406 days ago | 0.1 ETH | ||||
17734839 | 406 days ago | 0.09020919 ETH | ||||
17734839 | 406 days ago | 0.05 ETH | ||||
17734839 | 406 days ago | 0.00182981 ETH | ||||
17734838 | 406 days ago | 0.59 ETH | ||||
17734838 | 406 days ago | 0.08 ETH | ||||
17734838 | 406 days ago | 0.005 ETH | ||||
17734838 | 406 days ago | 1 ETH | ||||
17734838 | 406 days ago | 0.3 ETH | ||||
17734838 | 406 days ago | 0.07807 ETH | ||||
17734837 | 406 days ago | 0.00546425 ETH | ||||
17734837 | 406 days ago | 2.12047034 ETH | ||||
17734837 | 406 days ago | 4.5 ETH | ||||
17734837 | 406 days ago | 0.25018771 ETH | ||||
17734837 | 406 days ago | 1 ETH | ||||
17734836 | 406 days ago | 0.5 ETH | ||||
17734836 | 406 days ago | 0.25 ETH | ||||
17734836 | 406 days ago | 0.5 ETH | ||||
17734836 | 406 days ago | 1.98 ETH | ||||
17734836 | 406 days ago | 0.2 ETH |
Loading...
Loading
Contract Name:
TokenSale
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/cryptography/ECDSA.sol"; import "./interfaces/IWETH.sol"; // solhint-disable reason-string, not-rely-on-time contract TokenSale is Ownable, ReentrancyGuard { using ECDSA for bytes32; using SafeERC20 for IERC20; using SafeMath for uint256; event Buy(address indexed sender, address _token, uint256 _amountIn, uint256 _refundAmount, uint256 _amountOut); event Claim(address indexed _recipient, uint256 _claimAmount); event UpdatePrice(uint256 _initialPrice, uint256 _upRatio, uint256 _variation); event UpdateSaleTime(uint256 _whitelistSaleTime, uint256 _publicSaleTime, uint256 _publicSaleDuration); event UpdateSupportedToken(address indexed _token, bool _status); event UpdateCap(uint128 _cap, uint256 _whitelistSaleCap); uint256 private constant PRICE_PRECISION = 1e18; uint256 private constant RATIO_PRECISION = 1e9; address public immutable weth; address public immutable base; address public quota; address public signer; struct PriceData { uint96 initialPrice; uint32 upRatio; uint128 variation; } struct SaleTimeData { uint64 whitelistSaleTime; uint64 publicSaleTime; uint64 saleDuration; } SaleTimeData public saleTimeData; PriceData public priceData; uint128 public cap; uint128 public whitelistSaleCap; uint128 public totalSold; uint128 public whitelistSold; mapping(address => bool) public isSupported; mapping(address => uint256) public shares; mapping(address => bool) public claimed; constructor( address _weth, address _base, address _signer, uint128 _cap, uint128 _whitelistSaleCap, uint64 _whitelistSaleTime, uint64 _publicSaleTime, uint64 _publicSaleDuration, uint96 _initialPrice, uint32 _upRatio, uint128 _variation, address[] memory _tokens ) { weth = _weth; base = _base; updateSigner(_signer); updateCap(_cap, _whitelistSaleCap); updateSupportedTokens(_tokens, true); updatePrice(_initialPrice, _upRatio, _variation); updateSaleTime(_whitelistSaleTime, _publicSaleTime, _publicSaleDuration); } /********************************** View Functions **********************************/ /// @notice Return current price (base/quota) of quota token. /// @dev / totalSold \ /// CurrenetPrice = InitPrice * (1 + UpRatio * floor| --------- |) /// \ Variation / function getPrice() public view returns (uint256) { PriceData memory _data = priceData; uint256 _totalSold = totalSold; uint256 _level = _totalSold / _data.variation; return RATIO_PRECISION.add(_level.mul(_data.upRatio)).mul(_data.initialPrice).div(RATIO_PRECISION); } /********************************** Mutated Functions **********************************/ /// @notice Purchase some quota in contract using supported base token. /// /// @dev The contract will refund `_token` back to caller if the sale cap is not enough. /// /// @param _token The address of token used to buy quota token. /// @param _amountIn The amount of `_token` to use. /// @param _minOut The minimum recieved quota token. function buy( address _token, uint256 _amountIn, uint256 _minOut, bytes calldata signature ) external payable nonReentrant returns (uint256) { require(_amountIn > 0, "TokenSale: zero input amount"); // 1. check supported token require(isSupported[_token], "TokenSale: token not support"); // 2. check sale time and whitelist SaleTimeData memory _saleTime = saleTimeData; require(block.timestamp >= _saleTime.whitelistSaleTime, "TokenSale: sale not start"); require(block.timestamp <= _saleTime.publicSaleTime + _saleTime.saleDuration, "TokenSale: sale ended"); require(block.timestamp >= _saleTime.publicSaleTime || _isValidSignature(signature), "TokenSale: only whitelist"); // 3. determine account sale cap uint256 _cap = 0; if (block.timestamp < _saleTime.publicSaleTime) { _cap = whitelistSaleCap; } else { _cap = cap; } uint256 _totalSold = totalSold; uint256 _whitelistSold = whitelistSold; uint256 _saleCap = _cap.sub(_totalSold); require(_saleCap > 0, "TokenSale: sold out"); // 4. transfer token in contract if (_token == address(0)) { require(_amountIn == msg.value, "TokenSale: msg.value mismatch"); _token = weth; IWETH(_token).deposit{ value: _amountIn }(); } else { require(0 == msg.value, "TokenSale: nonzero msg.value"); uint256 _before = IERC20(_token).balanceOf(address(this)); IERC20(_token).safeTransferFrom(msg.sender, address(this), _amountIn); _amountIn = IERC20(_token).balanceOf(address(this)) - _before; } // 5. buy and update storage uint256 _price = getPrice(); uint256 _amountOut = _amountIn.mul(PRICE_PRECISION).div(_price); uint256 _refundAmount; if (_saleCap < _amountOut) { _refundAmount = (_amountOut - _saleCap).mul(_price).div(PRICE_PRECISION); _amountOut = _saleCap; } require(_amountOut >= _minOut, "TokenSale: insufficient output"); shares[msg.sender] += _amountOut; _totalSold += _amountOut; require(_totalSold <= uint128(-1), "TokenSale: overflow"); totalSold = uint128(_totalSold); if (block.timestamp < _saleTime.publicSaleTime) { _whitelistSold += _amountOut; require(_whitelistSold <= uint128(-1), "TokenSale: whitelist overflow"); whitelistSold = uint128(_whitelistSold); } // 6. refund extra token if (_refundAmount > 0) { _refundAmount = _refund(_token, _refundAmount); } emit Buy(msg.sender, msg.value > 0 ? address(0) : _token, _amountIn, _refundAmount, _amountOut); return _amountOut; } /// @notice Claim purchased quota token. function claim() external nonReentrant { // 1. check timestamp and claimed. SaleTimeData memory _saleTime = saleTimeData; require(block.timestamp > _saleTime.publicSaleTime + _saleTime.saleDuration, "TokenSale: sale not end"); require(!claimed[msg.sender], "TokenSale: already claimed"); // 2. check claiming amount uint256 _claimAmount = shares[msg.sender]; require(_claimAmount > 0, "TokenSale: no share to claim"); claimed[msg.sender] = true; address _quota = quota; // 3. transfer if (_claimAmount > 0) { IERC20(_quota).safeTransfer(msg.sender, _claimAmount); } emit Claim(msg.sender, _claimAmount); } /********************************** Restricted Functions **********************************/ function updateCap(uint128 _cap, uint128 _whitelistSaleCap) public onlyOwner { cap = _cap; whitelistSaleCap = _whitelistSaleCap; emit UpdateCap(_cap, _whitelistSaleCap); } /// @notice Update supported tokens. /// @param _tokens The list of addresses of token to update. /// @param _status The status to update. function updateSupportedTokens(address[] memory _tokens, bool _status) public onlyOwner { for (uint256 i = 0; i < _tokens.length; i++) { isSupported[_tokens[i]] = _status; emit UpdateSupportedToken(_tokens[i], _status); } } /// @notice Update signer /// @param _signer The address of signer to update. function updateSigner(address _signer) public onlyOwner() { signer = _signer; } /// @notice Update quota token /// @param _quota The address of quota token to update. function updateQuotaToken(address _quota) external onlyOwner { quota = _quota; } /// @notice Update sale start time, including whitelist/public sale start time and duration. /// /// @param _whitelistSaleTime The timestamp when whitelist sale started. /// @param _publicSaleTime The timestamp when public sale started. /// @param _publicSaleDuration The durarion of public sale in seconds. function updateSaleTime( uint64 _whitelistSaleTime, uint64 _publicSaleTime, uint64 _publicSaleDuration ) public onlyOwner { require(_whitelistSaleTime >= block.timestamp, "TokenSale: start time too small"); require(_whitelistSaleTime <= _publicSaleTime, "TokenSale: whitelist after public"); SaleTimeData memory _saleTime = saleTimeData; require( _saleTime.whitelistSaleTime == 0 || block.timestamp < _saleTime.whitelistSaleTime, "TokenSale: sale started" ); saleTimeData = SaleTimeData(_whitelistSaleTime, _publicSaleTime, _publicSaleDuration); emit UpdateSaleTime(_whitelistSaleTime, _publicSaleTime, _publicSaleDuration); } /// @notice Update token sale price info. /// @dev See comments in function `getPrice()` for the usage of each parameters. /// /// @param _initialPrice The initial price for the sale, with precision 1e18. /// @param _upRatio The up ratio for the token sale, with precision 1e9. /// @param _variation The variation for price change base on the amount of quota token sold. function updatePrice( uint96 _initialPrice, uint32 _upRatio, uint128 _variation ) public onlyOwner { require(_upRatio <= RATIO_PRECISION, "TokenSale: ratio too large"); require(_variation > 0, "TokenSale: zero variation"); SaleTimeData memory _saleTime = saleTimeData; require( _saleTime.whitelistSaleTime == 0 || block.timestamp < _saleTime.whitelistSaleTime, "TokenSale: sale started" ); priceData = PriceData(_initialPrice, _upRatio, _variation); emit UpdatePrice(_initialPrice, _upRatio, _variation); } function withdrawFund(address[] memory _tokens, address _recipient) external onlyOwner { for (uint256 i = 0; i < _tokens.length; i++) { if (_tokens[i] == address(0)) { uint256 _balance = address(this).balance; // solhint-disable-next-line avoid-low-level-calls (bool success, ) = _recipient.call{ value: _balance }(""); require(success, "TokenSale: failed to withdraw ETH"); } else { uint256 _balance = IERC20(_tokens[i]).balanceOf(address(this)); IERC20(_tokens[i]).safeTransfer(_recipient, _balance); } } } /********************************** Internal Functions **********************************/ /// @dev Refund extra token back to sender. /// @param _token The address of token to refund. /// @param _amount The amount of base token to refund. function _refund(address _token, uint256 _amount) internal returns (uint256) { if (msg.value > 0) { IWETH(_token).withdraw(_amount); // solhint-disable-next-line avoid-low-level-calls (bool success, ) = msg.sender.call{ value: _amount }(""); require(success, "TokenSale: failed to refund ETH"); } else { IERC20(_token).safeTransfer(msg.sender, _amount); } return _amount; } function _isValidSignature(bytes memory signature) view internal returns (bool) { bytes32 data = keccak256(abi.encodePacked(address(this), _msgSender())); return signer == data.toEthSignedMessageHash().recover(signature); } // solhint-disable-next-line no-empty-blocks receive() external payable {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length if (signature.length != 65) { revert("ECDSA: invalid signature length"); } // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover-bytes32-bytes-} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * replicates the behavior of the * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`] * JSON-RPC method. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./IERC20.sol"; import "../../math/SafeMath.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 SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; interface IWETH { function deposit() external payable; function withdraw(uint256 wad) external; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_base","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"uint128","name":"_cap","type":"uint128"},{"internalType":"uint128","name":"_whitelistSaleCap","type":"uint128"},{"internalType":"uint64","name":"_whitelistSaleTime","type":"uint64"},{"internalType":"uint64","name":"_publicSaleTime","type":"uint64"},{"internalType":"uint64","name":"_publicSaleDuration","type":"uint64"},{"internalType":"uint96","name":"_initialPrice","type":"uint96"},{"internalType":"uint32","name":"_upRatio","type":"uint32"},{"internalType":"uint128","name":"_variation","type":"uint128"},{"internalType":"address[]","name":"_tokens","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_refundAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountOut","type":"uint256"}],"name":"Buy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_claimAmount","type":"uint256"}],"name":"Claim","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":false,"internalType":"uint128","name":"_cap","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"_whitelistSaleCap","type":"uint256"}],"name":"UpdateCap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_initialPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_upRatio","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_variation","type":"uint256"}],"name":"UpdatePrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_whitelistSaleTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_publicSaleTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_publicSaleDuration","type":"uint256"}],"name":"UpdateSaleTime","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"UpdateSupportedToken","type":"event"},{"inputs":[],"name":"base","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"buy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isSupported","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceData","outputs":[{"internalType":"uint96","name":"initialPrice","type":"uint96"},{"internalType":"uint32","name":"upRatio","type":"uint32"},{"internalType":"uint128","name":"variation","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quota","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleTimeData","outputs":[{"internalType":"uint64","name":"whitelistSaleTime","type":"uint64"},{"internalType":"uint64","name":"publicSaleTime","type":"uint64"},{"internalType":"uint64","name":"saleDuration","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSold","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_cap","type":"uint128"},{"internalType":"uint128","name":"_whitelistSaleCap","type":"uint128"}],"name":"updateCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_initialPrice","type":"uint96"},{"internalType":"uint32","name":"_upRatio","type":"uint32"},{"internalType":"uint128","name":"_variation","type":"uint128"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_quota","type":"address"}],"name":"updateQuotaToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_whitelistSaleTime","type":"uint64"},{"internalType":"uint64","name":"_publicSaleTime","type":"uint64"},{"internalType":"uint64","name":"_publicSaleDuration","type":"uint64"}],"name":"updateSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"updateSupportedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSaleCap","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSold","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"withdrawFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040523480156200001157600080fd5b506040516200355f3803806200355f83398181016040526101808110156200003857600080fd5b815160208301516040808501516060860151608087015160a088015160c089015160e08a01516101008b01516101208c01516101408d01516101608e0180519a519c9e9b9d999c989b979a969995989497939692959194939182019284640100000000821115620000a857600080fd5b908301906020820185811115620000be57600080fd5b8251866020820283011164010000000082111715620000dc57600080fd5b82525081516020918201928201910280838360005b838110156200010b578181015183820152602001620000f1565b5050505090500160405250505060006200012a620001e260201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160601b031960608d811b82166080528c901b1660a0526200019d8a620001e6565b620001a9898962000270565b620001b681600162000345565b620001c384848462000470565b620001d0878787620006f0565b50505050505050505050505062000974565b3390565b620001f0620001e2565b6001600160a01b03166200020362000965565b6001600160a01b0316146200024e576040805162461bcd60e51b815260206004820181905260248201526000805160206200353f833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6200027a620001e2565b6001600160a01b03166200028d62000965565b6001600160a01b031614620002d8576040805162461bcd60e51b815260206004820181905260248201526000805160206200353f833981519152604482015290519081900360640190fd5b600680546001600160801b0319166001600160801b038481169182178116600160801b9185169182021790925560408051918252602082019290925281517ffb119651f1ec148f9a93cb55784aed624083adf7af6f218aa8738f959ce95da0929181900390910190a15050565b6200034f620001e2565b6001600160a01b03166200036262000965565b6001600160a01b031614620003ad576040805162461bcd60e51b815260206004820181905260248201526000805160206200353f833981519152604482015290519081900360640190fd5b60005b82518110156200046b578160086000858481518110620003cc57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055508281815181106200041857fe5b60200260200101516001600160a01b03167fd71e43dae5ba4386463c0ef49b6f19fc82aea6a936b4242ef04b99730c0ed4c38360405180821515815260200191505060405180910390a2600101620003b0565b505050565b6200047a620001e2565b6001600160a01b03166200048d62000965565b6001600160a01b031614620004d8576040805162461bcd60e51b815260206004820181905260248201526000805160206200353f833981519152604482015290519081900360640190fd5b633b9aca008263ffffffff16111562000538576040805162461bcd60e51b815260206004820152601a60248201527f546f6b656e53616c653a20726174696f20746f6f206c61726765000000000000604482015290519081900360640190fd5b6000816001600160801b03161162000597576040805162461bcd60e51b815260206004820152601960248201527f546f6b656e53616c653a207a65726f20766172696174696f6e00000000000000604482015290519081900360640190fd5b604080516060810182526004546001600160401b0380821680845268010000000000000000830482166020850152600160801b9092041692820192909252901580620005ec575080516001600160401b031642105b6200063e576040805162461bcd60e51b815260206004820152601760248201527f546f6b656e53616c653a2073616c652073746172746564000000000000000000604482015290519081900360640190fd5b60408051606080820183526001600160601b03871680835263ffffffff871660208085018290526001600160801b03888116958701869052600580546001600160601b031916851763ffffffff60601b19166c01000000000000000000000000850217909116600160801b870217905585519283528201528084019290925291517fd486fb0c0b873bd0a2d9bbbacab5868e17fb817e7985163ee9064598bde8cd9d929181900390910190a150505050565b620006fa620001e2565b6001600160a01b03166200070d62000965565b6001600160a01b03161462000758576040805162461bcd60e51b815260206004820181905260248201526000805160206200353f833981519152604482015290519081900360640190fd5b42836001600160401b03161015620007b7576040805162461bcd60e51b815260206004820152601f60248201527f546f6b656e53616c653a2073746172742074696d6520746f6f20736d616c6c00604482015290519081900360640190fd5b816001600160401b0316836001600160401b031611156200080a5760405162461bcd60e51b81526004018080602001828103825260218152602001806200351e6021913960400191505060405180910390fd5b604080516060810182526004546001600160401b0380821680845268010000000000000000830482166020850152600160801b90920416928201929092529015806200085f575080516001600160401b031642105b620008b1576040805162461bcd60e51b815260206004820152601760248201527f546f6b656e53616c653a2073616c652073746172746564000000000000000000604482015290519081900360640190fd5b60408051606080820183526001600160401b038781168084528782166020808601829052928816948601859052600480546001600160401b0319168317600160401b600160801b03191668010000000000000000830217600160801b600160c01b031916600160801b87021790558551918252918101919091528084019290925291517f60963b8e96f613676d4f5c6ae75c6b57faa0a2d559cac89a75fc53e0e355da8d929181900390910190a150505050565b6000546001600160a01b031690565b60805160601c60a05160601c612b7b620009a360003980610e10525080610b9d52806112125250612b7b6000f3fe6080604052600436106101a55760003560e01c806390c213b0116100e1578063aff6c6db1161008a578063cebe09c911610064578063cebe09c9146106f0578063e61a5fe414610705578063e78b9d0b14610755578063f2fde38b1461076a576101ac565b8063aff6c6db14610675578063c884ef831461068a578063ce7c2ac2146106bd576101ac565b8063a2323455116100bb578063a232345514610554578063a7ecd37e1461060f578063aafce8e814610642576101ac565b806390c213b0146104e95780639106d7ba1461052a57806398d5fdca1461053f576101ac565b80634f129c531161014e5780636f6d0e63116101285780636f6d0e6314610431578063715018a61461048457806383d4690e146104995780638da5cb5b146104d4576101ac565b80634f129c53146103375780635001f3b51461037e5780636c02557214610393576101ac565b8063355274ea1161017f578063355274ea146102dc5780633fc8cef31461030d5780634e71d92d14610322576101ac565b80631d12553c146101b1578063238ac933146101f957806334b4bc1c1461022a576101ac565b366101ac57005b600080fd5b3480156101bd57600080fd5b506101f7600480360360608110156101d457600080fd5b5067ffffffffffffffff813581169160208101358216916040909101351661079d565b005b34801561020557600080fd5b5061020e610a4a565b604080516001600160a01b039092168252519081900360200190f35b34801561023657600080fd5b506101f76004803603604081101561024d57600080fd5b81019060208101813564010000000081111561026857600080fd5b82018360208201111561027a57600080fd5b8035906020019184602083028401116401000000008311171561029c57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505050503515159050610a59565b3480156102e857600080fd5b506102f1610b8c565b604080516001600160801b039092168252519081900360200190f35b34801561031957600080fd5b5061020e610b9b565b34801561032e57600080fd5b506101f7610bbf565b34801561034357600080fd5b5061036a6004803603602081101561035a57600080fd5b50356001600160a01b0316610df9565b604080519115158252519081900360200190f35b34801561038a57600080fd5b5061020e610e0e565b61041f600480360360808110156103a957600080fd5b6001600160a01b0382351691602081013591604082013591908101906080810160608201356401000000008111156103e057600080fd5b8201836020820111156103f257600080fd5b8035906020019184600183028401116401000000008311171561041457600080fd5b509092509050610e32565b60408051918252519081900360200190f35b34801561043d57600080fd5b506101f76004803603606081101561045457600080fd5b5080356bffffffffffffffffffffffff1690602081013563ffffffff1690604001356001600160801b0316611650565b34801561049057600080fd5b506101f76118fc565b3480156104a557600080fd5b506101f7600480360360408110156104bc57600080fd5b506001600160801b03813581169160200135166119c7565b3480156104e057600080fd5b5061020e611ab1565b3480156104f557600080fd5b506104fe611ac0565b6040805167ffffffffffffffff9485168152928416602084015292168183015290519081900360600190f35b34801561053657600080fd5b506102f1611aeb565b34801561054b57600080fd5b5061041f611afa565b34801561056057600080fd5b506101f76004803603604081101561057757600080fd5b81019060208101813564010000000081111561059257600080fd5b8201836020820111156105a457600080fd5b803590602001918460208302840111640100000000831117156105c657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505090356001600160a01b03169150611bb89050565b34801561061b57600080fd5b506101f76004803603602081101561063257600080fd5b50356001600160a01b0316611dd0565b34801561064e57600080fd5b506101f76004803603602081101561066557600080fd5b50356001600160a01b0316611e73565b34801561068157600080fd5b506102f1611f16565b34801561069657600080fd5b5061036a600480360360208110156106ad57600080fd5b50356001600160a01b0316611f2c565b3480156106c957600080fd5b5061041f600480360360208110156106e057600080fd5b50356001600160a01b0316611f41565b3480156106fc57600080fd5b5061020e611f53565b34801561071157600080fd5b5061071a611f62565b604080516bffffffffffffffffffffffff909416845263ffffffff90921660208401526001600160801b031682820152519081900360600190f35b34801561076157600080fd5b506102f1611f9f565b34801561077657600080fd5b506101f76004803603602081101561078d57600080fd5b50356001600160a01b0316611fb5565b6107a56120d6565b6001600160a01b03166107b6611ab1565b6001600160a01b031614610811576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b428367ffffffffffffffff161015610870576040805162461bcd60e51b815260206004820152601f60248201527f546f6b656e53616c653a2073746172742074696d6520746f6f20736d616c6c00604482015290519081900360640190fd5b8167ffffffffffffffff168367ffffffffffffffff1611156108c35760405162461bcd60e51b8152600401808060200182810382526021815260200180612a296021913960400191505060405180910390fd5b6040805160608101825260045467ffffffffffffffff80821680845268010000000000000000830482166020850152600160801b90920416928201929092529015806109195750805167ffffffffffffffff1642105b61096a576040805162461bcd60e51b815260206004820152601760248201527f546f6b656e53616c653a2073616c652073746172746564000000000000000000604482015290519081900360640190fd5b604080516060808201835267ffffffffffffffff87811680845287821660208086018290529288169486018590526004805467ffffffffffffffff191683177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff16680100000000000000008302177fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff16600160801b87021790558551918252918101919091528084019290925291517f60963b8e96f613676d4f5c6ae75c6b57faa0a2d559cac89a75fc53e0e355da8d929181900390910190a150505050565b6003546001600160a01b031681565b610a616120d6565b6001600160a01b0316610a72611ab1565b6001600160a01b031614610acd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60005b8251811015610b87578160086000858481518110610aea57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550828181518110610b3557fe5b60200260200101516001600160a01b03167fd71e43dae5ba4386463c0ef49b6f19fc82aea6a936b4242ef04b99730c0ed4c38360405180821515815260200191505060405180910390a2600101610ad0565b505050565b6006546001600160801b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60026001541415610c17576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556040805160608101825260045467ffffffffffffffff8082168352680100000000000000008204811660208401819052600160801b9092048116938301849052919201164211610cb3576040805162461bcd60e51b815260206004820152601760248201527f546f6b656e53616c653a2073616c65206e6f7420656e64000000000000000000604482015290519081900360640190fd5b336000908152600a602052604090205460ff1615610d18576040805162461bcd60e51b815260206004820152601a60248201527f546f6b656e53616c653a20616c726561647920636c61696d6564000000000000604482015290519081900360640190fd5b3360009081526009602052604090205480610d7a576040805162461bcd60e51b815260206004820152601c60248201527f546f6b656e53616c653a206e6f20736861726520746f20636c61696d00000000604482015290519081900360640190fd5b336000908152600a60205260409020805460ff191660011790556002546001600160a01b03168115610dba57610dba6001600160a01b03821633846120da565b60408051838152905133917f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4919081900360200190a250506001805550565b60086020526000908152604090205460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b600060026001541415610e8c576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015584610ee3576040805162461bcd60e51b815260206004820152601c60248201527f546f6b656e53616c653a207a65726f20696e70757420616d6f756e7400000000604482015290519081900360640190fd5b6001600160a01b03861660009081526008602052604090205460ff16610f50576040805162461bcd60e51b815260206004820152601c60248201527f546f6b656e53616c653a20746f6b656e206e6f7420737570706f727400000000604482015290519081900360640190fd5b6040805160608101825260045467ffffffffffffffff80821680845268010000000000000000830482166020850152600160801b909204169282019290925290421015610fe4576040805162461bcd60e51b815260206004820152601960248201527f546f6b656e53616c653a2073616c65206e6f7420737461727400000000000000604482015290519081900360640190fd5b806040015181602001510167ffffffffffffffff1642111561104d576040805162461bcd60e51b815260206004820152601560248201527f546f6b656e53616c653a2073616c6520656e6465640000000000000000000000604482015290519081900360640190fd5b806020015167ffffffffffffffff16421015806110a457506110a484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061215a92505050565b6110f5576040805162461bcd60e51b815260206004820152601960248201527f546f6b656e53616c653a206f6e6c792077686974656c69737400000000000000604482015290519081900360640190fd5b6000816020015167ffffffffffffffff164210156111265750600654600160801b90046001600160801b0316611134565b506006546001600160801b03165b6007546001600160801b0380821691600160801b900416600061115784846121d8565b9050600081116111ae576040805162461bcd60e51b815260206004820152601360248201527f546f6b656e53616c653a20736f6c64206f757400000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038b1661128c57348a14611210576040805162461bcd60e51b815260206004820152601d60248201527f546f6b656e53616c653a206d73672e76616c7565206d69736d61746368000000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000009a508a6001600160a01b031663d0e30db08b6040518263ffffffff1660e01b81526004016000604051808303818588803b15801561126e57600080fd5b505af1158015611282573d6000803e3d6000fd5b50505050506113f0565b34156112df576040805162461bcd60e51b815260206004820152601c60248201527f546f6b656e53616c653a206e6f6e7a65726f206d73672e76616c756500000000604482015290519081900360640190fd5b60008b6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561132e57600080fd5b505afa158015611342573d6000803e3d6000fd5b505050506040513d602081101561135857600080fd5b505190506113716001600160a01b038d1633308e61223a565b808c6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156113bf57600080fd5b505afa1580156113d3573d6000803e3d6000fd5b505050506040513d60208110156113e957600080fd5b5051039a50505b60006113fa611afa565b9050600061141a826114148e670de0b6b3a76400006122c8565b90612328565b90506000818410156114445761143e670de0b6b3a7640000611414868503866122c8565b90508391505b8b821015611499576040805162461bcd60e51b815260206004820152601e60248201527f546f6b656e53616c653a20696e73756666696369656e74206f75747075740000604482015290519081900360640190fd5b336000908152600960205260409020805483019055948101946001600160801b0386111561150e576040805162461bcd60e51b815260206004820152601360248201527f546f6b656e53616c653a206f766572666c6f7700000000000000000000000000604482015290519081900360640190fd5b600780546fffffffffffffffffffffffffffffffff19166001600160801b038816179055602088015167ffffffffffffffff164210156115c357938101936001600160801b038511156115a8576040805162461bcd60e51b815260206004820152601d60248201527f546f6b656e53616c653a2077686974656c697374206f766572666c6f77000000604482015290519081900360640190fd5b600780546001600160801b03808816600160801b0291161790555b80156115d6576115d38e8261238f565b90505b337ef93dbdb72854b6b6fb35433086556f2635fc83c37080c667496fecfa650fb434611602578f611605565b60005b8f848660405180856001600160a01b0316815260200184815260200183815260200182815260200194505050505060405180910390a250600180559c9b505050505050505050505050565b6116586120d6565b6001600160a01b0316611669611ab1565b6001600160a01b0316146116c4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b633b9aca008263ffffffff161115611723576040805162461bcd60e51b815260206004820152601a60248201527f546f6b656e53616c653a20726174696f20746f6f206c61726765000000000000604482015290519081900360640190fd5b6000816001600160801b031611611781576040805162461bcd60e51b815260206004820152601960248201527f546f6b656e53616c653a207a65726f20766172696174696f6e00000000000000604482015290519081900360640190fd5b6040805160608101825260045467ffffffffffffffff80821680845268010000000000000000830482166020850152600160801b90920416928201929092529015806117d75750805167ffffffffffffffff1642105b611828576040805162461bcd60e51b815260206004820152601760248201527f546f6b656e53616c653a2073616c652073746172746564000000000000000000604482015290519081900360640190fd5b60408051606080820183526bffffffffffffffffffffffff871680835263ffffffff871660208085018290526001600160801b03888116958701869052600580546bffffffffffffffffffffffff191685177fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff166c01000000000000000000000000850217909116600160801b870217905585519283528201528084019290925291517fd486fb0c0b873bd0a2d9bbbacab5868e17fb817e7985163ee9064598bde8cd9d929181900390910190a150505050565b6119046120d6565b6001600160a01b0316611915611ab1565b6001600160a01b031614611970576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6119cf6120d6565b6001600160a01b03166119e0611ab1565b6001600160a01b031614611a3b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600680546fffffffffffffffffffffffffffffffff19166001600160801b038481169182178116600160801b9185169182021790925560408051918252602082019290925281517ffb119651f1ec148f9a93cb55784aed624083adf7af6f218aa8738f959ce95da0929181900390910190a15050565b6000546001600160a01b031690565b60045467ffffffffffffffff80821691680100000000000000008104821691600160801b9091041683565b6007546001600160801b031681565b604080516060810182526005546bffffffffffffffffffffffff8116825263ffffffff6c0100000000000000000000000082041660208301526001600160801b03600160801b909104811692820183905260075460009391169083908281611b5e57fe5b049050611bb0633b9aca0061141485600001516bffffffffffffffffffffffff16611baa611b9f886020015163ffffffff16876122c890919063ffffffff16565b633b9aca00906124b2565b906122c8565b935050505090565b611bc06120d6565b6001600160a01b0316611bd1611ab1565b6001600160a01b031614611c2c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60005b8251811015610b875760006001600160a01b0316838281518110611c4f57fe5b60200260200101516001600160a01b03161415611cff5760405147906000906001600160a01b0385169083908381818185875af1925050503d8060008114611cb3576040519150601f19603f3d011682016040523d82523d6000602084013e611cb8565b606091505b5050905080611cf85760405162461bcd60e51b8152600401808060200182810382526021815260200180612afb6021913960400191505060405180910390fd5b5050611dc8565b6000838281518110611d0d57fe5b60200260200101516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611d6157600080fd5b505afa158015611d75573d6000803e3d6000fd5b505050506040513d6020811015611d8b57600080fd5b50518451909150611dc69084908390879086908110611da657fe5b60200260200101516001600160a01b03166120da9092919063ffffffff16565b505b600101611c2f565b611dd86120d6565b6001600160a01b0316611de9611ab1565b6001600160a01b031614611e44576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b611e7b6120d6565b6001600160a01b0316611e8c611ab1565b6001600160a01b031614611ee7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600654600160801b90046001600160801b031681565b600a6020526000908152604090205460ff1681565b60096020526000908152604090205481565b6002546001600160a01b031681565b6005546bffffffffffffffffffffffff8116906c01000000000000000000000000810463ffffffff1690600160801b90046001600160801b031683565b600754600160801b90046001600160801b031681565b611fbd6120d6565b6001600160a01b0316611fce611ab1565b6001600160a01b031614612029576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661206e5760405162461bcd60e51b8152600401808060200182810382526026815260200180612a4a6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610b8790849061250c565b600080306121666120d6565b60405160200180836001600160a01b031660601b8152601401826001600160a01b031660601b8152601401925050506040516020818303038152906040528051906020012090506121c0836121ba836125bd565b9061260e565b6003546001600160a01b039182169116149392505050565b60008282111561222f576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526122c290859061250c565b50505050565b6000826122d757506000612234565b828202828482816122e457fe5b04146123215760405162461bcd60e51b8152600401808060200182810382526021815260200180612ada6021913960400191505060405180910390fd5b9392505050565b600080821161237e576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161238757fe5b049392505050565b6000341561249857826001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156123dd57600080fd5b505af11580156123f1573d6000803e3d6000fd5b50506040516000925033915084908381818185875af1925050503d8060008114612437576040519150601f19603f3d011682016040523d82523d6000602084013e61243c565b606091505b5050905080612492576040805162461bcd60e51b815260206004820152601f60248201527f546f6b656e53616c653a206661696c656420746f20726566756e642045544800604482015290519081900360640190fd5b506124ac565b6124ac6001600160a01b03841633846120da565b50919050565b600082820183811015612321576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000612561826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661268e9092919063ffffffff16565b805190915015610b875780806020019051602081101561258057600080fd5b5051610b875760405162461bcd60e51b815260040180806020018281038252602a815260200180612b1c602a913960400191505060405180910390fd5b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b60008151604114612666576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a612684868285856126a5565b9695505050505050565b606061269d8484600085612823565b949350505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156127065760405162461bcd60e51b8152600401808060200182810382526022815260200180612a706022913960400191505060405180910390fd5b8360ff16601b148061271b57508360ff16601c145b6127565760405162461bcd60e51b8152600401808060200182810382526022815260200180612ab86022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156127b2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661281a576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b6060824710156128645760405162461bcd60e51b8152600401808060200182810382526026815260200180612a926026913960400191505060405180910390fd5b61286d8561297e565b6128be576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106128fc5780518252601f1990920191602091820191016128dd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461295e576040519150601f19603f3d011682016040523d82523d6000602084013e612963565b606091505b5091509150612973828286612984565b979650505050505050565b3b151590565b60608315612993575081612321565b8251156129a35782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156129ed5781810151838201526020016129d5565b50505050905090810190601f168015612a1a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe546f6b656e53616c653a2077686974656c697374206166746572207075626c69634f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c7565416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c45434453413a20696e76616c6964207369676e6174757265202776272076616c7565536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77546f6b656e53616c653a206661696c656420746f207769746864726177204554485361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206b69821dadef3a0ee7e295b599cf486b80684c146781255e3c7b6172926613ce64736f6c63430007060033546f6b656e53616c653a2077686974656c697374206166746572207075626c69634f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000007ca9f03ffaefc3ff1e9fea46187928d7014e87fa00000000000000000000000000000000000000000000065a4da25d3016c0000000000000000000000000000000000000000000000000021e19e0c9bab24000000000000000000000000000000000000000000000000000000000000064b92fd00000000000000000000000000000000000000000000000000000000064b93de00000000000000000000000000000000000000000000000000000000064ba81500000000000000000000000000000000000000000000000000011c37937e0800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101a55760003560e01c806390c213b0116100e1578063aff6c6db1161008a578063cebe09c911610064578063cebe09c9146106f0578063e61a5fe414610705578063e78b9d0b14610755578063f2fde38b1461076a576101ac565b8063aff6c6db14610675578063c884ef831461068a578063ce7c2ac2146106bd576101ac565b8063a2323455116100bb578063a232345514610554578063a7ecd37e1461060f578063aafce8e814610642576101ac565b806390c213b0146104e95780639106d7ba1461052a57806398d5fdca1461053f576101ac565b80634f129c531161014e5780636f6d0e63116101285780636f6d0e6314610431578063715018a61461048457806383d4690e146104995780638da5cb5b146104d4576101ac565b80634f129c53146103375780635001f3b51461037e5780636c02557214610393576101ac565b8063355274ea1161017f578063355274ea146102dc5780633fc8cef31461030d5780634e71d92d14610322576101ac565b80631d12553c146101b1578063238ac933146101f957806334b4bc1c1461022a576101ac565b366101ac57005b600080fd5b3480156101bd57600080fd5b506101f7600480360360608110156101d457600080fd5b5067ffffffffffffffff813581169160208101358216916040909101351661079d565b005b34801561020557600080fd5b5061020e610a4a565b604080516001600160a01b039092168252519081900360200190f35b34801561023657600080fd5b506101f76004803603604081101561024d57600080fd5b81019060208101813564010000000081111561026857600080fd5b82018360208201111561027a57600080fd5b8035906020019184602083028401116401000000008311171561029c57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505050503515159050610a59565b3480156102e857600080fd5b506102f1610b8c565b604080516001600160801b039092168252519081900360200190f35b34801561031957600080fd5b5061020e610b9b565b34801561032e57600080fd5b506101f7610bbf565b34801561034357600080fd5b5061036a6004803603602081101561035a57600080fd5b50356001600160a01b0316610df9565b604080519115158252519081900360200190f35b34801561038a57600080fd5b5061020e610e0e565b61041f600480360360808110156103a957600080fd5b6001600160a01b0382351691602081013591604082013591908101906080810160608201356401000000008111156103e057600080fd5b8201836020820111156103f257600080fd5b8035906020019184600183028401116401000000008311171561041457600080fd5b509092509050610e32565b60408051918252519081900360200190f35b34801561043d57600080fd5b506101f76004803603606081101561045457600080fd5b5080356bffffffffffffffffffffffff1690602081013563ffffffff1690604001356001600160801b0316611650565b34801561049057600080fd5b506101f76118fc565b3480156104a557600080fd5b506101f7600480360360408110156104bc57600080fd5b506001600160801b03813581169160200135166119c7565b3480156104e057600080fd5b5061020e611ab1565b3480156104f557600080fd5b506104fe611ac0565b6040805167ffffffffffffffff9485168152928416602084015292168183015290519081900360600190f35b34801561053657600080fd5b506102f1611aeb565b34801561054b57600080fd5b5061041f611afa565b34801561056057600080fd5b506101f76004803603604081101561057757600080fd5b81019060208101813564010000000081111561059257600080fd5b8201836020820111156105a457600080fd5b803590602001918460208302840111640100000000831117156105c657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505090356001600160a01b03169150611bb89050565b34801561061b57600080fd5b506101f76004803603602081101561063257600080fd5b50356001600160a01b0316611dd0565b34801561064e57600080fd5b506101f76004803603602081101561066557600080fd5b50356001600160a01b0316611e73565b34801561068157600080fd5b506102f1611f16565b34801561069657600080fd5b5061036a600480360360208110156106ad57600080fd5b50356001600160a01b0316611f2c565b3480156106c957600080fd5b5061041f600480360360208110156106e057600080fd5b50356001600160a01b0316611f41565b3480156106fc57600080fd5b5061020e611f53565b34801561071157600080fd5b5061071a611f62565b604080516bffffffffffffffffffffffff909416845263ffffffff90921660208401526001600160801b031682820152519081900360600190f35b34801561076157600080fd5b506102f1611f9f565b34801561077657600080fd5b506101f76004803603602081101561078d57600080fd5b50356001600160a01b0316611fb5565b6107a56120d6565b6001600160a01b03166107b6611ab1565b6001600160a01b031614610811576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b428367ffffffffffffffff161015610870576040805162461bcd60e51b815260206004820152601f60248201527f546f6b656e53616c653a2073746172742074696d6520746f6f20736d616c6c00604482015290519081900360640190fd5b8167ffffffffffffffff168367ffffffffffffffff1611156108c35760405162461bcd60e51b8152600401808060200182810382526021815260200180612a296021913960400191505060405180910390fd5b6040805160608101825260045467ffffffffffffffff80821680845268010000000000000000830482166020850152600160801b90920416928201929092529015806109195750805167ffffffffffffffff1642105b61096a576040805162461bcd60e51b815260206004820152601760248201527f546f6b656e53616c653a2073616c652073746172746564000000000000000000604482015290519081900360640190fd5b604080516060808201835267ffffffffffffffff87811680845287821660208086018290529288169486018590526004805467ffffffffffffffff191683177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff16680100000000000000008302177fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff16600160801b87021790558551918252918101919091528084019290925291517f60963b8e96f613676d4f5c6ae75c6b57faa0a2d559cac89a75fc53e0e355da8d929181900390910190a150505050565b6003546001600160a01b031681565b610a616120d6565b6001600160a01b0316610a72611ab1565b6001600160a01b031614610acd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60005b8251811015610b87578160086000858481518110610aea57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550828181518110610b3557fe5b60200260200101516001600160a01b03167fd71e43dae5ba4386463c0ef49b6f19fc82aea6a936b4242ef04b99730c0ed4c38360405180821515815260200191505060405180910390a2600101610ad0565b505050565b6006546001600160801b031681565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b60026001541415610c17576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556040805160608101825260045467ffffffffffffffff8082168352680100000000000000008204811660208401819052600160801b9092048116938301849052919201164211610cb3576040805162461bcd60e51b815260206004820152601760248201527f546f6b656e53616c653a2073616c65206e6f7420656e64000000000000000000604482015290519081900360640190fd5b336000908152600a602052604090205460ff1615610d18576040805162461bcd60e51b815260206004820152601a60248201527f546f6b656e53616c653a20616c726561647920636c61696d6564000000000000604482015290519081900360640190fd5b3360009081526009602052604090205480610d7a576040805162461bcd60e51b815260206004820152601c60248201527f546f6b656e53616c653a206e6f20736861726520746f20636c61696d00000000604482015290519081900360640190fd5b336000908152600a60205260409020805460ff191660011790556002546001600160a01b03168115610dba57610dba6001600160a01b03821633846120da565b60408051838152905133917f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4919081900360200190a250506001805550565b60086020526000908152604090205460ff1681565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b600060026001541415610e8c576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015584610ee3576040805162461bcd60e51b815260206004820152601c60248201527f546f6b656e53616c653a207a65726f20696e70757420616d6f756e7400000000604482015290519081900360640190fd5b6001600160a01b03861660009081526008602052604090205460ff16610f50576040805162461bcd60e51b815260206004820152601c60248201527f546f6b656e53616c653a20746f6b656e206e6f7420737570706f727400000000604482015290519081900360640190fd5b6040805160608101825260045467ffffffffffffffff80821680845268010000000000000000830482166020850152600160801b909204169282019290925290421015610fe4576040805162461bcd60e51b815260206004820152601960248201527f546f6b656e53616c653a2073616c65206e6f7420737461727400000000000000604482015290519081900360640190fd5b806040015181602001510167ffffffffffffffff1642111561104d576040805162461bcd60e51b815260206004820152601560248201527f546f6b656e53616c653a2073616c6520656e6465640000000000000000000000604482015290519081900360640190fd5b806020015167ffffffffffffffff16421015806110a457506110a484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061215a92505050565b6110f5576040805162461bcd60e51b815260206004820152601960248201527f546f6b656e53616c653a206f6e6c792077686974656c69737400000000000000604482015290519081900360640190fd5b6000816020015167ffffffffffffffff164210156111265750600654600160801b90046001600160801b0316611134565b506006546001600160801b03165b6007546001600160801b0380821691600160801b900416600061115784846121d8565b9050600081116111ae576040805162461bcd60e51b815260206004820152601360248201527f546f6b656e53616c653a20736f6c64206f757400000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038b1661128c57348a14611210576040805162461bcd60e51b815260206004820152601d60248201527f546f6b656e53616c653a206d73672e76616c7565206d69736d61746368000000604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29a508a6001600160a01b031663d0e30db08b6040518263ffffffff1660e01b81526004016000604051808303818588803b15801561126e57600080fd5b505af1158015611282573d6000803e3d6000fd5b50505050506113f0565b34156112df576040805162461bcd60e51b815260206004820152601c60248201527f546f6b656e53616c653a206e6f6e7a65726f206d73672e76616c756500000000604482015290519081900360640190fd5b60008b6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561132e57600080fd5b505afa158015611342573d6000803e3d6000fd5b505050506040513d602081101561135857600080fd5b505190506113716001600160a01b038d1633308e61223a565b808c6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156113bf57600080fd5b505afa1580156113d3573d6000803e3d6000fd5b505050506040513d60208110156113e957600080fd5b5051039a50505b60006113fa611afa565b9050600061141a826114148e670de0b6b3a76400006122c8565b90612328565b90506000818410156114445761143e670de0b6b3a7640000611414868503866122c8565b90508391505b8b821015611499576040805162461bcd60e51b815260206004820152601e60248201527f546f6b656e53616c653a20696e73756666696369656e74206f75747075740000604482015290519081900360640190fd5b336000908152600960205260409020805483019055948101946001600160801b0386111561150e576040805162461bcd60e51b815260206004820152601360248201527f546f6b656e53616c653a206f766572666c6f7700000000000000000000000000604482015290519081900360640190fd5b600780546fffffffffffffffffffffffffffffffff19166001600160801b038816179055602088015167ffffffffffffffff164210156115c357938101936001600160801b038511156115a8576040805162461bcd60e51b815260206004820152601d60248201527f546f6b656e53616c653a2077686974656c697374206f766572666c6f77000000604482015290519081900360640190fd5b600780546001600160801b03808816600160801b0291161790555b80156115d6576115d38e8261238f565b90505b337ef93dbdb72854b6b6fb35433086556f2635fc83c37080c667496fecfa650fb434611602578f611605565b60005b8f848660405180856001600160a01b0316815260200184815260200183815260200182815260200194505050505060405180910390a250600180559c9b505050505050505050505050565b6116586120d6565b6001600160a01b0316611669611ab1565b6001600160a01b0316146116c4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b633b9aca008263ffffffff161115611723576040805162461bcd60e51b815260206004820152601a60248201527f546f6b656e53616c653a20726174696f20746f6f206c61726765000000000000604482015290519081900360640190fd5b6000816001600160801b031611611781576040805162461bcd60e51b815260206004820152601960248201527f546f6b656e53616c653a207a65726f20766172696174696f6e00000000000000604482015290519081900360640190fd5b6040805160608101825260045467ffffffffffffffff80821680845268010000000000000000830482166020850152600160801b90920416928201929092529015806117d75750805167ffffffffffffffff1642105b611828576040805162461bcd60e51b815260206004820152601760248201527f546f6b656e53616c653a2073616c652073746172746564000000000000000000604482015290519081900360640190fd5b60408051606080820183526bffffffffffffffffffffffff871680835263ffffffff871660208085018290526001600160801b03888116958701869052600580546bffffffffffffffffffffffff191685177fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff166c01000000000000000000000000850217909116600160801b870217905585519283528201528084019290925291517fd486fb0c0b873bd0a2d9bbbacab5868e17fb817e7985163ee9064598bde8cd9d929181900390910190a150505050565b6119046120d6565b6001600160a01b0316611915611ab1565b6001600160a01b031614611970576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6119cf6120d6565b6001600160a01b03166119e0611ab1565b6001600160a01b031614611a3b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600680546fffffffffffffffffffffffffffffffff19166001600160801b038481169182178116600160801b9185169182021790925560408051918252602082019290925281517ffb119651f1ec148f9a93cb55784aed624083adf7af6f218aa8738f959ce95da0929181900390910190a15050565b6000546001600160a01b031690565b60045467ffffffffffffffff80821691680100000000000000008104821691600160801b9091041683565b6007546001600160801b031681565b604080516060810182526005546bffffffffffffffffffffffff8116825263ffffffff6c0100000000000000000000000082041660208301526001600160801b03600160801b909104811692820183905260075460009391169083908281611b5e57fe5b049050611bb0633b9aca0061141485600001516bffffffffffffffffffffffff16611baa611b9f886020015163ffffffff16876122c890919063ffffffff16565b633b9aca00906124b2565b906122c8565b935050505090565b611bc06120d6565b6001600160a01b0316611bd1611ab1565b6001600160a01b031614611c2c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60005b8251811015610b875760006001600160a01b0316838281518110611c4f57fe5b60200260200101516001600160a01b03161415611cff5760405147906000906001600160a01b0385169083908381818185875af1925050503d8060008114611cb3576040519150601f19603f3d011682016040523d82523d6000602084013e611cb8565b606091505b5050905080611cf85760405162461bcd60e51b8152600401808060200182810382526021815260200180612afb6021913960400191505060405180910390fd5b5050611dc8565b6000838281518110611d0d57fe5b60200260200101516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611d6157600080fd5b505afa158015611d75573d6000803e3d6000fd5b505050506040513d6020811015611d8b57600080fd5b50518451909150611dc69084908390879086908110611da657fe5b60200260200101516001600160a01b03166120da9092919063ffffffff16565b505b600101611c2f565b611dd86120d6565b6001600160a01b0316611de9611ab1565b6001600160a01b031614611e44576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b611e7b6120d6565b6001600160a01b0316611e8c611ab1565b6001600160a01b031614611ee7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600654600160801b90046001600160801b031681565b600a6020526000908152604090205460ff1681565b60096020526000908152604090205481565b6002546001600160a01b031681565b6005546bffffffffffffffffffffffff8116906c01000000000000000000000000810463ffffffff1690600160801b90046001600160801b031683565b600754600160801b90046001600160801b031681565b611fbd6120d6565b6001600160a01b0316611fce611ab1565b6001600160a01b031614612029576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661206e5760405162461bcd60e51b8152600401808060200182810382526026815260200180612a4a6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610b8790849061250c565b600080306121666120d6565b60405160200180836001600160a01b031660601b8152601401826001600160a01b031660601b8152601401925050506040516020818303038152906040528051906020012090506121c0836121ba836125bd565b9061260e565b6003546001600160a01b039182169116149392505050565b60008282111561222f576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526122c290859061250c565b50505050565b6000826122d757506000612234565b828202828482816122e457fe5b04146123215760405162461bcd60e51b8152600401808060200182810382526021815260200180612ada6021913960400191505060405180910390fd5b9392505050565b600080821161237e576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161238757fe5b049392505050565b6000341561249857826001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156123dd57600080fd5b505af11580156123f1573d6000803e3d6000fd5b50506040516000925033915084908381818185875af1925050503d8060008114612437576040519150601f19603f3d011682016040523d82523d6000602084013e61243c565b606091505b5050905080612492576040805162461bcd60e51b815260206004820152601f60248201527f546f6b656e53616c653a206661696c656420746f20726566756e642045544800604482015290519081900360640190fd5b506124ac565b6124ac6001600160a01b03841633846120da565b50919050565b600082820183811015612321576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000612561826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661268e9092919063ffffffff16565b805190915015610b875780806020019051602081101561258057600080fd5b5051610b875760405162461bcd60e51b815260040180806020018281038252602a815260200180612b1c602a913960400191505060405180910390fd5b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b60008151604114612666576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a612684868285856126a5565b9695505050505050565b606061269d8484600085612823565b949350505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156127065760405162461bcd60e51b8152600401808060200182810382526022815260200180612a706022913960400191505060405180910390fd5b8360ff16601b148061271b57508360ff16601c145b6127565760405162461bcd60e51b8152600401808060200182810382526022815260200180612ab86022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156127b2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661281a576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b6060824710156128645760405162461bcd60e51b8152600401808060200182810382526026815260200180612a926026913960400191505060405180910390fd5b61286d8561297e565b6128be576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106128fc5780518252601f1990920191602091820191016128dd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461295e576040519150601f19603f3d011682016040523d82523d6000602084013e612963565b606091505b5091509150612973828286612984565b979650505050505050565b3b151590565b60608315612993575081612321565b8251156129a35782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156129ed5781810151838201526020016129d5565b50505050905090810190601f168015612a1a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe546f6b656e53616c653a2077686974656c697374206166746572207075626c69634f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c7565416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c45434453413a20696e76616c6964207369676e6174757265202776272076616c7565536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77546f6b656e53616c653a206661696c656420746f207769746864726177204554485361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206b69821dadef3a0ee7e295b599cf486b80684c146781255e3c7b6172926613ce64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000007ca9f03ffaefc3ff1e9fea46187928d7014e87fa00000000000000000000000000000000000000000000065a4da25d3016c0000000000000000000000000000000000000000000000000021e19e0c9bab24000000000000000000000000000000000000000000000000000000000000064b92fd00000000000000000000000000000000000000000000000000000000064b93de00000000000000000000000000000000000000000000000000000000064ba81500000000000000000000000000000000000000000000000000011c37937e0800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : _base (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : _signer (address): 0x7CA9f03fFaeFC3ff1e9FEA46187928D7014E87Fa
Arg [3] : _cap (uint128): 30000000000000000000000
Arg [4] : _whitelistSaleCap (uint128): 10000000000000000000000
Arg [5] : _whitelistSaleTime (uint64): 1689858000
Arg [6] : _publicSaleTime (uint64): 1689861600
Arg [7] : _publicSaleDuration (uint64): 1689944400
Arg [8] : _initialPrice (uint96): 5000000000000000
Arg [9] : _upRatio (uint32): 0
Arg [10] : _variation (uint128): 1000000000000000000
Arg [11] : _tokens (address[]): 0x0000000000000000000000000000000000000000
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 0000000000000000000000007ca9f03ffaefc3ff1e9fea46187928d7014e87fa
Arg [3] : 00000000000000000000000000000000000000000000065a4da25d3016c00000
Arg [4] : 00000000000000000000000000000000000000000000021e19e0c9bab2400000
Arg [5] : 0000000000000000000000000000000000000000000000000000000064b92fd0
Arg [6] : 0000000000000000000000000000000000000000000000000000000064b93de0
Arg [7] : 0000000000000000000000000000000000000000000000000000000064ba8150
Arg [8] : 0000000000000000000000000000000000000000000000000011c37937e08000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.