Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 89 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Switch Stage | 20120838 | 201 days ago | IN | 0 ETH | 0.0002824 | ||||
Buy Token With E... | 20057140 | 210 days ago | IN | 0.004 ETH | 0.00099548 | ||||
Buy Token With E... | 20029884 | 214 days ago | IN | 0.02 ETH | 0.00174472 | ||||
Switch Stage | 19890114 | 233 days ago | IN | 0 ETH | 0.00024722 | ||||
Buy Token With E... | 19870769 | 236 days ago | IN | 0.035 ETH | 0.00074782 | ||||
Buy Token With E... | 19870671 | 236 days ago | IN | 0.01 ETH | 0.00049597 | ||||
Buy Token With U... | 19870167 | 236 days ago | IN | 0 ETH | 0.00093092 | ||||
Buy Token With E... | 19862890 | 237 days ago | IN | 0.009 ETH | 0.00130904 | ||||
Buy Token With E... | 19810969 | 244 days ago | IN | 0.044 ETH | 0.00092475 | ||||
Buy Token With E... | 19806275 | 245 days ago | IN | 0.13 ETH | 0.00040182 | ||||
Buy Token With E... | 19781335 | 248 days ago | IN | 0.0013 ETH | 0.00086306 | ||||
Buy Token With E... | 19696333 | 260 days ago | IN | 0.03 ETH | 0.00090573 | ||||
Buy Token With E... | 19681938 | 262 days ago | IN | 0.001 ETH | 0.00197828 | ||||
Switch Stage | 19681927 | 262 days ago | IN | 0 ETH | 0.00078874 | ||||
Buy Token With E... | 19673859 | 263 days ago | IN | 0.04 ETH | 0.00171341 | ||||
Buy Token With E... | 19604143 | 273 days ago | IN | 0.004 ETH | 0.00145899 | ||||
Buy Token With E... | 19599367 | 274 days ago | IN | 0.06 ETH | 0.00177909 | ||||
Buy Token With E... | 19571975 | 278 days ago | IN | 0.33 ETH | 0.00313064 | ||||
Buy Token With E... | 19570564 | 278 days ago | IN | 0.002 ETH | 0.0050139 | ||||
Buy Token With E... | 19568890 | 278 days ago | IN | 0.0104 ETH | 0.0102614 | ||||
Buy Token With U... | 19562903 | 279 days ago | IN | 0 ETH | 0.00401169 | ||||
Buy Token With E... | 19548721 | 281 days ago | IN | 0.15 ETH | 0.00293795 | ||||
Buy Token With E... | 19547040 | 281 days ago | IN | 0.0015 ETH | 0.00309632 | ||||
Buy Token With E... | 19515717 | 286 days ago | IN | 0.005 ETH | 0.00247385 | ||||
Buy Token With E... | 19481376 | 290 days ago | IN | 0.005 ETH | 0.00343196 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
20057140 | 210 days ago | 0.00399978 ETH | ||||
20057140 | 210 days ago | 0.00000021 ETH | ||||
20029884 | 214 days ago | 0.01999999 ETH | ||||
20029884 | 214 days ago | 0 ETH | ||||
19870769 | 236 days ago | 0.03499854 ETH | ||||
19870769 | 236 days ago | 0.00000145 ETH | ||||
19870671 | 236 days ago | 0.00999813 ETH | ||||
19870671 | 236 days ago | 0.00000186 ETH | ||||
19862890 | 237 days ago | 0.00899983 ETH | ||||
19862890 | 237 days ago | 0.00000016 ETH | ||||
19810969 | 244 days ago | 0.04399954 ETH | ||||
19810969 | 244 days ago | 0.00000045 ETH | ||||
19806275 | 245 days ago | 0.12999839 ETH | ||||
19806275 | 245 days ago | 0.0000016 ETH | ||||
19781335 | 248 days ago | 0.00129969 ETH | ||||
19781335 | 248 days ago | 0.0000003 ETH | ||||
19696333 | 260 days ago | 0.02999906 ETH | ||||
19696333 | 260 days ago | 0.00000093 ETH | ||||
19681938 | 262 days ago | 0.00099857 ETH | ||||
19681938 | 262 days ago | 0.00000142 ETH | ||||
19673859 | 263 days ago | 0.0399998 ETH | ||||
19673859 | 263 days ago | 0.00000019 ETH | ||||
19604143 | 273 days ago | 0.00399941 ETH | ||||
19604143 | 273 days ago | 0.00000058 ETH | ||||
19599367 | 274 days ago | 0.05999926 ETH |
Loading...
Loading
Contract Name:
TaskChainPresaleV2
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; interface Aggregator { function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); } interface ITaskChainPresale { function getAvailableTokensInStage() external view returns(uint256); function tokensBought(address _user) external view returns(uint256); function tokensSoldPerStage(uint256 _stage) external view returns(uint256); } contract TaskChainPresaleV2 is Ownable, ReentrancyGuard, Pausable { using SafeERC20 for IERC20; // Addresses for the various roles in the contract address private fundsAddress; address private tokenHolderAddress; address public saleTokenAddress = 0x4C2e29dbc437C4b781963E5B2B393b1D4ea64b19; // Tokens and prices per stage uint256[11] public tokensInStages; uint256[11] public pricePerStage; // The token balance for each buyer mapping(address => uint256) public tokensBought; // Track which buyers have claimed their tokens mapping(address => bool) public tokensClaimed; mapping(uint256 => uint256) public tokensSoldPerStage; // Interfaces for the USDT token and the oracle price feed IERC20 public usdt; Aggregator public priceFeed; // Track whether claims are active and the current sale stage bool public claimActive; Stages public stage; ITaskChainPresale public taskChainPresaleV1 = ITaskChainPresale(0x49afa06E429f3Fd5B28Dd2980D673B72eD5dbf28); bool public isDataTransfferedFromV1; mapping(address => bool) public isUserDataTransfferedFromV1; // Stages of the sale enum Stages { BETA_STAGE, STAGE_1, STAGE_2, STAGE_3, STAGE_4, STAGE_5, STAGE_6, STAGE_7, STAGE_8, STAGE_9, STAGE_10 } // Events to be emitted by the contract event claimStart(bool claimActive); event TokenBought(address indexed buyer, uint256 amount, uint256 timestamp); event TokensClaimed( address indexed claimer, uint256 amount, uint256 timestamp ); /** * @dev Constructor for the presale contract * @param _usdt address to send USDT token * @param _oracle Oracle contract to fetch ETH/USDT price */ constructor( address _usdt, address _oracle ) ReentrancyGuard() nonZeroAddress(_usdt) nonZeroAddress(_oracle) { usdt = IERC20(_usdt); priceFeed = Aggregator(_oracle); tokenHolderAddress = 0xc493fD92b08579682935520e9779Ee71CbD29A09; fundsAddress = 0xC35A5df1Bc74C7e96AfA6e047890f46459369743; claimActive = false; stage = Stages.BETA_STAGE; tokensInStages = [ 280_000_000, 300_000_000, 300_000_000, 200_000_000, 200_000_000, 200_000_000, 200_000_000, 200_000_000, 200_000_000, 360_000_000, 360_000_000 ]; pricePerStage = [ 4000_000_000_000_000, 5000_000_000_000_000, 5200_000_000_000_000, 5500_000_000_000_000, 5700_000_000_000_000, 6000_000_000_000_000, 6500_000_000_000_000, 8000_000_000_000_000, 8500_000_000_000_000, 9000_000_000_000_000, 9500_000_000_000_000 ]; } modifier claimable() { require(claimActive == true, "Claiming is not active yet."); _; } modifier nonZeroAddress(address _addr) { require(_addr != address(0), "Address can't be zero"); _; } /** * @dev buyTokenWithETH allows users to buy tokens with ETH * @param _tokenAmount total number of tokens user wants to buy */ function buyTokenWithETH( uint256 _tokenAmount ) external payable nonReentrant whenNotPaused { require(_tokenAmount > 0, "Cannot buy zero tokens."); require( _tokenAmount <= getAvailableTokensInStage(), "Insufficient tokens available." ); uint256 ethCost = calculateEthCost(_tokenAmount); require(msg.value >= ethCost, "Not enough ETH sent."); // Calculate excess ETH by user uint256 excessAmount = msg.value - ethCost; // Refund the excess ETH to the buyer if (excessAmount > 0) { (bool successTransferExcess, ) = payable(msg.sender).call{ value: excessAmount }(""); require( successTransferExcess, "Failed to send ETH to funds address." ); } saveData(_tokenAmount); (bool success, ) = payable(fundsAddress).call{value: ethCost}(""); require(success, "Failed to send ETH to funds address."); emit TokenBought(msg.sender, _tokenAmount, block.timestamp); } /** * @dev buyTokenWithUSDT allows users to buy tokens with USDT * @param _tokenAmount total number of tokens user wants to buy */ function buyTokenWithUSDT( uint256 _tokenAmount ) public nonReentrant whenNotPaused { require(_tokenAmount > 0, "Cannot buy zero tokens."); require( _tokenAmount <= getAvailableTokensInStage(), "Insufficient tokens available." ); uint256 usdtCost = calculateUsdtCost(_tokenAmount); saveData(_tokenAmount); usdt.safeTransferFrom(msg.sender, fundsAddress, usdtCost); emit TokenBought(msg.sender, _tokenAmount, block.timestamp); } /** * @dev claimTokens allows users to claim tokens after the sale is over */ function claimTokens() external claimable nonReentrant { uint256 _tokensBought = getBoughtTokensAmount(msg.sender); require( _tokensBought > 0, "You have not bought any tokens." ); require( !tokensClaimed[msg.sender], "You have already claimed your tokens." ); tokensClaimed[msg.sender] = true; IERC20(saleTokenAddress).transferFrom( tokenHolderAddress, msg.sender, _tokensBought * 10 ** 18 ); emit TokensClaimed(msg.sender, _tokensBought, block.timestamp); } /** * @dev calculateEthCost helper function to calculate ETH cost for a given token amount */ function calculateEthCost( uint256 _tokenAmount ) public view returns (uint256) { uint256 price = pricePerStage[uint256(stage)]; (, int256 priceETH, , , ) = priceFeed.latestRoundData(); uint256 ethCost = (_tokenAmount * price * 10 ** 18) / (uint256(priceETH) * 10 ** 10); return ethCost; } /** * @dev EthToTokenHelper function to calculate ETH cost for a given token amount */ function EthToTokenHelper(uint _ethAmount) public view returns (uint256) { uint256 price = pricePerStage[uint256(stage)]; (, int256 priceETH, , , ) = priceFeed.latestRoundData(); uint256 tokenAmount = (_ethAmount * uint256(priceETH) * 10 ** 10) / (price * 10 ** 18); return tokenAmount; } /** * @dev USDTToTokenHelper function to calculate ETH cost for a given token amount */ function USDTToTokenHelper(uint _usdtAmount) public view returns (uint256) { uint256 price = pricePerStage[uint256(stage)]; uint256 tokenAmount = (_usdtAmount * 10 ** 12) / price; return tokenAmount; } /** * @dev calculateUsdtCost helper function to calculate UST cost for a given token amount */ function calculateUsdtCost( uint256 _tokenAmount ) public view returns (uint256) { uint256 price = pricePerStage[uint256(stage)]; uint256 usdtCost = (_tokenAmount * price) / (10 ** 12); return usdtCost; } function getAvailableTokensInStage() public view returns (uint256) { if(!isDataTransfferedFromV1){ return taskChainPresaleV1.getAvailableTokensInStage(); }else{ return tokensInStages[uint256(stage)] - tokensSoldPerStage[uint256(stage)]; } } function getBoughtTokensAmount(address _user) public view returns(uint256){ if(!isUserDataTransfferedFromV1[_user]){ return taskChainPresaleV1.tokensBought(_user); }else{ return tokensBought[_user]; } } function getSoldTokensInCurrentStage() public view returns(uint256){ if(!isDataTransfferedFromV1){ return taskChainPresaleV1.tokensSoldPerStage(uint256(stage)); }else{ return tokensSoldPerStage[uint256(stage)]; } } /** * @dev checks data from V1 and rewrites it on V2 if necessary */ function saveData(uint256 _tokenAmount) internal { if(!isDataTransfferedFromV1){ // Only first transaction should pass through this scope uint256 soldOnV1 = taskChainPresaleV1.tokensSoldPerStage(uint256(stage)); tokensSoldPerStage[uint256(stage)] = soldOnV1 + _tokenAmount; isDataTransfferedFromV1 = true; }else{ tokensSoldPerStage[uint256(stage)] += _tokenAmount; } if(!isUserDataTransfferedFromV1[msg.sender]){ // Only first transaction of user should pass through this scope uint256 tokensBoughtOnV1 = taskChainPresaleV1.tokensBought(msg.sender); tokensBought[msg.sender] = tokensBoughtOnV1 + _tokenAmount; isUserDataTransfferedFromV1[msg.sender] = true; }else{ tokensBought[msg.sender] += _tokenAmount; } } /** * @dev setFundsAddress allows owner to set the funds address * @param _fundsAddress address of the funds address */ function setFundsAddress( address _fundsAddress ) external onlyOwner nonZeroAddress(fundsAddress) { fundsAddress = _fundsAddress; } /** * @dev setTokenHolder allows owner to set the token holder address * @param _tokenHolder address of the token holder */ function setTokenHolder( address _tokenHolder ) external onlyOwner nonZeroAddress(_tokenHolder) { tokenHolderAddress = _tokenHolder; } /** * @dev switchStage allows owner to switch to the next stage */ function switchStage() external onlyOwner { require( uint256(stage) >= 0 && uint256(stage) <= 10, "Invalid stage transition." ); require(isDataTransfferedFromV1, "Transfer data from V1"); // If it's not the first stage, move the remaining tokens to the next stage if (uint256(stage) >= 0 && uint256(stage) <= 9) { uint256 remainingTokens = tokensInStages[uint256(stage)] - tokensSoldPerStage[uint256(stage)]; tokensInStages[uint256(stage) + 1] += remainingTokens; } // Move to the next stage stage = Stages(uint256(stage) + 1); } /** * @dev startClaim allows owner to start the claiming process */ function startClaim() external onlyOwner { claimActive = true; emit claimStart(claimActive); } /** * @dev pauseContract allows owner to pause the contract */ function pauseContract() external onlyOwner { _pause(); } /** * @dev unpauseContract allows owner to unpause the contract */ function unpauseContract() external onlyOwner { _unpause(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_usdt","type":"address"},{"internalType":"address","name":"_oracle","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokenBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"claimActive","type":"bool"}],"name":"claimStart","type":"event"},{"inputs":[{"internalType":"uint256","name":"_ethAmount","type":"uint256"}],"name":"EthToTokenHelper","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_usdtAmount","type":"uint256"}],"name":"USDTToTokenHelper","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"buyTokenWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"buyTokenWithUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"calculateEthCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"calculateUsdtCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAvailableTokensInStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getBoughtTokensAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSoldTokensInCurrentStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDataTransfferedFromV1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isUserDataTransfferedFromV1","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":"pauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceFeed","outputs":[{"internalType":"contract Aggregator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pricePerStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_fundsAddress","type":"address"}],"name":"setFundsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenHolder","type":"address"}],"name":"setTokenHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"enum TaskChainPresaleV2.Stages","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"taskChainPresaleV1","outputs":[{"internalType":"contract ITaskChainPresale","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokensBought","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokensClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensInStages","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensSoldPerStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdt","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052734c2e29dbc437c4b781963e5b2b393b1d4ea64b19600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507349afa06e429f3fd5b28dd2980d673b72ed5dbf28602060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000bb57600080fd5b5060405162003f4a38038062003f4a8339818101604052810190620000e1919062000758565b62000101620000f56200056660201b60201c565b6200056e60201b60201c565b600180819055506000600260006101000a81548160ff02191690831515021790555081600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000197576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200018e9062000800565b60405180910390fd5b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156200020b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002029062000800565b60405180910390fd5b83601e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073c493fd92b08579682935520e9779ee71cbd29a09600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073c35a5df1bc74c7e96afa6e047890f46459369743600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000601f60146101000a81548160ff0219169083151502179055506000601f60156101000a81548160ff0219169083600a8111156200037b576200037a62000822565b5b02179055506040518061016001604052806310b0760063ffffffff1681526020016311e1a30063ffffffff1681526020016311e1a30063ffffffff168152602001630bebc20063ffffffff168152602001630bebc20063ffffffff168152602001630bebc20063ffffffff168152602001630bebc20063ffffffff168152602001630bebc20063ffffffff168152602001630bebc20063ffffffff1681526020016315752a0063ffffffff1681526020016315752a0063ffffffff16815250600590600b6200044c92919062000632565b50604051806101600160405280660e35fa931a000066ffffffffffffff1681526020016611c37937e0800066ffffffffffffff1681526020016612795f58d5000066ffffffffffffff16815260200166138a388a43c00066ffffffffffffff1681526020016614401eab38400066ffffffffffffff168152602001661550f7dca7000066ffffffffffffff168152602001661717b72f0a400066ffffffffffffff168152602001661c6bf52634000066ffffffffffffff168152602001661e32b47897400066ffffffffffffff168152602001661ff973cafa800066ffffffffffffff1681526020016621c0331d5dc00066ffffffffffffff16815250601090600b6200055b9291906200067f565b505050505062000851565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82600b81019282156200066c579160200282015b828111156200066b578251829063ffffffff1690559160200191906001019062000646565b5b5090506200067b9190620006cf565b5090565b82600b8101928215620006bc579160200282015b82811115620006bb578251829066ffffffffffffff1690559160200191906001019062000693565b5b509050620006cb9190620006cf565b5090565b5b80821115620006ea576000816000905550600101620006d0565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200072082620006f3565b9050919050565b620007328162000713565b81146200073e57600080fd5b50565b600081519050620007528162000727565b92915050565b60008060408385031215620007725762000771620006ee565b5b6000620007828582860162000741565b9250506020620007958582860162000741565b9150509250929050565b600082825260208201905092915050565b7f416464726573732063616e2774206265207a65726f0000000000000000000000600082015250565b6000620007e86015836200079f565b9150620007f582620007b0565b602082019050919050565b600060208201905081810360008301526200081b81620007d9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6136e980620008616000396000f3fe6080604052600436106101ee5760003560e01c80638ae3a5011161010d578063bcd2f64a116100a0578063cbebd70f1161006f578063cbebd70f146106e4578063d4a6a2fd14610721578063ecbfc0771461074c578063f29d2f2814610763578063f2fde38b1461078c576101ee565b8063bcd2f64a14610628578063c040e6b814610651578063c7ab1ccd1461067c578063c9ba300f146106a7576101ee565b8063af5100bc116100dc578063af5100bc1461056c578063af82d983146105a9578063b2f827ca146105d4578063b33712c514610611576101ee565b80638ae3a501146104bd5780638da5cb5b146104e85780638e04118e14610513578063af2badea1461052f576101ee565b80634412224411610185578063624601b611610154578063624601b614610415578063715018a614610452578063741bef1a146104695780637f19abe014610494576101ee565b8063441222441461035957806348c54b9d146103965780634c5cdfdf146103ad5780635c975abb146103ea576101ee565b80632f48ab7d116101c15780632f48ab7d146102af5780633cb0b771146102da5780633d1860a814610317578063439766ce14610342576101ee565b806309214a07146101f35780630da1701c1461020a578063264d77971461024757806328f344ee14610284575b600080fd5b3480156101ff57600080fd5b506102086107b5565b005b34801561021657600080fd5b50610231600480360381019061022c91906126b3565b610a38565b60405161023e91906126ef565b60405180910390f35b34801561025357600080fd5b5061026e60048036038101906102699190612768565b610a53565b60405161027b91906126ef565b60405180910390f35b34801561029057600080fd5b50610299610a6b565b6040516102a691906127b0565b60405180910390f35b3480156102bb57600080fd5b506102c4610a7e565b6040516102d1919061282a565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc9190612768565b610aa4565b60405161030e91906127b0565b60405180910390f35b34801561032357600080fd5b5061032c610ac4565b6040516103399190612866565b60405180910390f35b34801561034e57600080fd5b50610357610aea565b005b34801561036557600080fd5b50610380600480360381019061037b91906126b3565b610afc565b60405161038d91906126ef565b60405180910390f35b3480156103a257600080fd5b506103ab610b17565b005b3480156103b957600080fd5b506103d460048036038101906103cf91906126b3565b610dec565b6040516103e191906126ef565b60405180910390f35b3480156103f657600080fd5b506103ff610e04565b60405161040c91906127b0565b60405180910390f35b34801561042157600080fd5b5061043c60048036038101906104379190612768565b610e1b565b60405161044991906127b0565b60405180910390f35b34801561045e57600080fd5b50610467610e3b565b005b34801561047557600080fd5b5061047e610e4f565b60405161048b91906128a2565b60405180910390f35b3480156104a057600080fd5b506104bb60048036038101906104b69190612768565b610e75565b005b3480156104c957600080fd5b506104d2610f55565b6040516104df91906126ef565b60405180910390f35b3480156104f457600080fd5b506104fd61108e565b60405161050a91906128cc565b60405180910390f35b61052d600480360381019061052891906126b3565b6110b7565b005b34801561053b57600080fd5b50610556600480360381019061055191906126b3565b6113a0565b60405161056391906126ef565b60405180910390f35b34801561057857600080fd5b50610593600480360381019061058e91906126b3565b6114cd565b6040516105a091906126ef565b60405180910390f35b3480156105b557600080fd5b506105be611533565b6040516105cb91906128cc565b60405180910390f35b3480156105e057600080fd5b506105fb60048036038101906105f69190612768565b611559565b60405161060891906126ef565b60405180910390f35b34801561061d57600080fd5b506106266116a6565b005b34801561063457600080fd5b5061064f600480360381019061064a91906126b3565b6116b8565b005b34801561065d57600080fd5b50610666611838565b604051610673919061295e565b60405180910390f35b34801561068857600080fd5b5061069161184b565b60405161069e91906126ef565b60405180910390f35b3480156106b357600080fd5b506106ce60048036038101906106c991906126b3565b61196f565b6040516106db91906126ef565b60405180910390f35b3480156106f057600080fd5b5061070b600480360381019061070691906126b3565b6119d5565b60405161071891906126ef565b60405180910390f35b34801561072d57600080fd5b50610736611b02565b60405161074391906127b0565b60405180910390f35b34801561075857600080fd5b50610761611b15565b005b34801561076f57600080fd5b5061078a60048036038101906107859190612768565b611b80565b005b34801561079857600080fd5b506107b360048036038101906107ae9190612768565b611c3e565b005b6107bd611cc2565b6000601f60159054906101000a900460ff16600a8111156107e1576107e06128e7565b5b101580156108115750600a601f60159054906101000a900460ff16600a81111561080e5761080d6128e7565b5b11155b610850576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610847906129d6565b60405180910390fd5b602060149054906101000a900460ff1661089f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089690612a42565b60405180910390fd5b6000601f60159054906101000a900460ff16600a8111156108c3576108c26128e7565b5b101580156108f357506009601f60159054906101000a900460ff16600a8111156108f0576108ef6128e7565b5b11155b156109cd576000601d6000601f60159054906101000a900460ff16600a8111156109205761091f6128e7565b5b8152602001908152602001600020546005601f60159054906101000a900460ff16600a811115610953576109526128e7565b5b600b811061096457610963612a62565b5b01546109709190612ac0565b90508060056001601f60159054906101000a900460ff16600a811115610999576109986128e7565b5b6109a39190612af4565b600b81106109b4576109b3612a62565b5b0160008282546109c49190612af4565b92505081905550505b6001601f60159054906101000a900460ff16600a8111156109f1576109f06128e7565b5b6109fb9190612af4565b600a811115610a0d57610a0c6128e7565b5b601f60156101000a81548160ff0219169083600a811115610a3157610a306128e7565b5b0217905550565b600581600b8110610a4857600080fd5b016000915090505481565b601b6020528060005260406000206000915090505481565b602060149054906101000a900460ff1681565b601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60216020528060005260406000206000915054906101000a900460ff1681565b602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610af2611cc2565b610afa611d40565b565b601081600b8110610b0c57600080fd5b016000915090505481565b60011515601f60149054906101000a900460ff16151514610b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6490612b96565b60405180910390fd5b610b75611da3565b6000610b8033611559565b905060008111610bc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbc90612c02565b60405180910390fd5b601c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4990612c94565b60405180910390fd5b6001601c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633670de0b6b3a764000085610d209190612cb4565b6040518463ffffffff1660e01b8152600401610d3e93929190612d0e565b602060405180830381600087803b158015610d5857600080fd5b505af1158015610d6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d909190612d71565b503373ffffffffffffffffffffffffffffffffffffffff167f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b8242604051610dd9929190612d9e565b60405180910390a250610dea611df3565b565b601d6020528060005260406000206000915090505481565b6000600260009054906101000a900460ff16905090565b601c6020528060005260406000206000915054906101000a900460ff1681565b610e43611cc2565b610e4d6000611dfc565b565b601f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e7d611cc2565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0790612e13565b60405180910390fd5b81600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000602060149054906101000a900460ff1661101257602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638ae3a5016040518163ffffffff1660e01b815260040160206040518083038186803b158015610fd357600080fd5b505afa158015610fe7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100b9190612e48565b905061108b565b601d6000601f60159054906101000a900460ff16600a811115611038576110376128e7565b5b8152602001908152602001600020546005601f60159054906101000a900460ff16600a81111561106b5761106a6128e7565b5b600b811061107c5761107b612a62565b5b01546110889190612ac0565b90505b90565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6110bf611da3565b6110c7611ec0565b6000811161110a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110190612ec1565b60405180910390fd5b611112610f55565b811115611154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114b90612f2d565b60405180910390fd5b600061115f826113a0565b9050803410156111a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119b90612f99565b60405180910390fd5b600081346111b29190612ac0565b9050600081111561126b5760003373ffffffffffffffffffffffffffffffffffffffff16826040516111e390612fea565b60006040518083038185875af1925050503d8060008114611220576040519150601f19603f3d011682016040523d82523d6000602084013e611225565b606091505b5050905080611269576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126090613071565b60405180910390fd5b505b61127483611f0a565b6000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16836040516112bc90612fea565b60006040518083038185875af1925050503d80600081146112f9576040519150601f19603f3d011682016040523d82523d6000602084013e6112fe565b606091505b5050905080611342576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133990613071565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f28cab0d660ed8aedd61a8c9db00b97f6a2d67e07d87795994f440b18bc5f1aa3854260405161138a929190612d9e565b60405180910390a250505061139d611df3565b50565b6000806010601f60159054906101000a900460ff16600a8111156113c7576113c66128e7565b5b600b81106113d8576113d7612a62565b5b015490506000601f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561144657600080fd5b505afa15801561145a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147e9190613109565b50505091505060006402540be400826114979190612cb4565b670de0b6b3a764000084876114ac9190612cb4565b6114b69190612cb4565b6114c091906131b3565b9050809350505050919050565b6000806010601f60159054906101000a900460ff16600a8111156114f4576114f36128e7565b5b600b811061150557611504612a62565b5b01549050600064e8d4a51000828561151d9190612cb4565b61152791906131b3565b90508092505050919050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000602160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661165e57602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663264d7797836040518263ffffffff1660e01b815260040161160791906128cc565b60206040518083038186803b15801561161f57600080fd5b505afa158015611633573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116579190612e48565b90506116a1565b601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b919050565b6116ae611cc2565b6116b66122a6565b565b6116c0611da3565b6116c8611ec0565b6000811161170b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170290612ec1565b60405180910390fd5b611713610f55565b811115611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174c90612f2d565b60405180910390fd5b6000611760826114cd565b905061176b82611f0a565b6117dc33600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612309909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f28cab0d660ed8aedd61a8c9db00b97f6a2d67e07d87795994f440b18bc5f1aa38342604051611824929190612d9e565b60405180910390a250611835611df3565b50565b601f60159054906101000a900460ff1681565b6000602060149054906101000a900460ff1661193457602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634c5cdfdf601f60159054906101000a900460ff16600a8111156118c1576118c06128e7565b5b6040518263ffffffff1660e01b81526004016118dd91906126ef565b60206040518083038186803b1580156118f557600080fd5b505afa158015611909573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192d9190612e48565b905061196c565b601d6000601f60159054906101000a900460ff16600a81111561195a576119596128e7565b5b81526020019081526020016000205490505b90565b6000806010601f60159054906101000a900460ff16600a811115611996576119956128e7565b5b600b81106119a7576119a6612a62565b5b0154905060008164e8d4a51000856119bf9190612cb4565b6119c991906131b3565b90508092505050919050565b6000806010601f60159054906101000a900460ff16600a8111156119fc576119fb6128e7565b5b600b8110611a0d57611a0c612a62565b5b015490506000601f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015611a7b57600080fd5b505afa158015611a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab39190613109565b5050509150506000670de0b6b3a764000083611acf9190612cb4565b6402540be4008387611ae19190612cb4565b611aeb9190612cb4565b611af591906131b3565b9050809350505050919050565b601f60149054906101000a900460ff1681565b611b1d611cc2565b6001601f60146101000a81548160ff0219169083151502179055507ff864daa2fad5ed4d2ac0634bf3343881cbc3662b641070d15f15e63ff35a9d2a601f60149054906101000a900460ff16604051611b7691906127b0565b60405180910390a1565b611b88611cc2565b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611bf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf090612e13565b60405180910390fd5b81600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b611c46611cc2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611cb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cad90613256565b60405180910390fd5b611cbf81611dfc565b50565b611cca612392565b73ffffffffffffffffffffffffffffffffffffffff16611ce861108e565b73ffffffffffffffffffffffffffffffffffffffff1614611d3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d35906132c2565b60405180910390fd5b565b611d48611ec0565b6001600260006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d8c612392565b604051611d9991906128cc565b60405180910390a1565b60026001541415611de9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de09061332e565b60405180910390fd5b6002600181905550565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611ec8610e04565b15611f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eff9061339a565b60405180910390fd5b565b602060149054906101000a900460ff16612053576000602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634c5cdfdf601f60159054906101000a900460ff16600a811115611f8057611f7f6128e7565b5b6040518263ffffffff1660e01b8152600401611f9c91906126ef565b60206040518083038186803b158015611fb457600080fd5b505afa158015611fc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fec9190612e48565b90508181611ffa9190612af4565b601d6000601f60159054906101000a900460ff16600a8111156120205761201f6128e7565b5b8152602001908152602001600020819055506001602060146101000a81548160ff0219169083151502179055505061209f565b80601d6000601f60159054906101000a900460ff16600a81111561207a576120796128e7565b5b815260200190815260200160002060008282546120979190612af4565b925050819055505b602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661224c576000602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663264d7797336040518263ffffffff1660e01b815260040161214d91906128cc565b60206040518083038186803b15801561216557600080fd5b505afa158015612179573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061219d9190612e48565b905081816121ab9190612af4565b601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550506122a3565b80601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461229b9190612af4565b925050819055505b50565b6122ae61239a565b6000600260006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6122f2612392565b6040516122ff91906128cc565b60405180910390a1565b61238c846323b872dd60e01b85858560405160240161232a93929190612d0e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506123e3565b50505050565b600033905090565b6123a2610e04565b6123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d890613406565b60405180910390fd5b565b6000612445826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124aa9092919063ffffffff16565b90506000815111156124a557808060200190518101906124659190612d71565b6124a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249b90613498565b60405180910390fd5b5b505050565b60606124b984846000856124c2565b90509392505050565b606082471015612507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fe9061352a565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161253091906135b9565b60006040518083038185875af1925050503d806000811461256d576040519150601f19603f3d011682016040523d82523d6000602084013e612572565b606091505b50915091506125838783838761258f565b92505050949350505050565b606083156125f2576000835114156125ea576125aa85612605565b6125e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e09061361c565b60405180910390fd5b5b8290506125fd565b6125fc8383612628565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008251111561263b5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266f9190613691565b60405180910390fd5b600080fd5b6000819050919050565b6126908161267d565b811461269b57600080fd5b50565b6000813590506126ad81612687565b92915050565b6000602082840312156126c9576126c8612678565b5b60006126d78482850161269e565b91505092915050565b6126e98161267d565b82525050565b600060208201905061270460008301846126e0565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006127358261270a565b9050919050565b6127458161272a565b811461275057600080fd5b50565b6000813590506127628161273c565b92915050565b60006020828403121561277e5761277d612678565b5b600061278c84828501612753565b91505092915050565b60008115159050919050565b6127aa81612795565b82525050565b60006020820190506127c560008301846127a1565b92915050565b6000819050919050565b60006127f06127eb6127e68461270a565b6127cb565b61270a565b9050919050565b6000612802826127d5565b9050919050565b6000612814826127f7565b9050919050565b61282481612809565b82525050565b600060208201905061283f600083018461281b565b92915050565b6000612850826127f7565b9050919050565b61286081612845565b82525050565b600060208201905061287b6000830184612857565b92915050565b600061288c826127f7565b9050919050565b61289c81612881565b82525050565b60006020820190506128b76000830184612893565b92915050565b6128c68161272a565b82525050565b60006020820190506128e160008301846128bd565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600b8110612927576129266128e7565b5b50565b600081905061293882612916565b919050565b60006129488261292a565b9050919050565b6129588161293d565b82525050565b6000602082019050612973600083018461294f565b92915050565b600082825260208201905092915050565b7f496e76616c6964207374616765207472616e736974696f6e2e00000000000000600082015250565b60006129c0601983612979565b91506129cb8261298a565b602082019050919050565b600060208201905081810360008301526129ef816129b3565b9050919050565b7f5472616e7366657220646174612066726f6d2056310000000000000000000000600082015250565b6000612a2c601583612979565b9150612a37826129f6565b602082019050919050565b60006020820190508181036000830152612a5b81612a1f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612acb8261267d565b9150612ad68361267d565b925082821015612ae957612ae8612a91565b5b828203905092915050565b6000612aff8261267d565b9150612b0a8361267d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612b3f57612b3e612a91565b5b828201905092915050565b7f436c61696d696e67206973206e6f7420616374697665207965742e0000000000600082015250565b6000612b80601b83612979565b9150612b8b82612b4a565b602082019050919050565b60006020820190508181036000830152612baf81612b73565b9050919050565b7f596f752068617665206e6f7420626f7567687420616e7920746f6b656e732e00600082015250565b6000612bec601f83612979565b9150612bf782612bb6565b602082019050919050565b60006020820190508181036000830152612c1b81612bdf565b9050919050565b7f596f75206861766520616c726561647920636c61696d656420796f757220746f60008201527f6b656e732e000000000000000000000000000000000000000000000000000000602082015250565b6000612c7e602583612979565b9150612c8982612c22565b604082019050919050565b60006020820190508181036000830152612cad81612c71565b9050919050565b6000612cbf8261267d565b9150612cca8361267d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612d0357612d02612a91565b5b828202905092915050565b6000606082019050612d2360008301866128bd565b612d3060208301856128bd565b612d3d60408301846126e0565b949350505050565b612d4e81612795565b8114612d5957600080fd5b50565b600081519050612d6b81612d45565b92915050565b600060208284031215612d8757612d86612678565b5b6000612d9584828501612d5c565b91505092915050565b6000604082019050612db360008301856126e0565b612dc060208301846126e0565b9392505050565b7f416464726573732063616e2774206265207a65726f0000000000000000000000600082015250565b6000612dfd601583612979565b9150612e0882612dc7565b602082019050919050565b60006020820190508181036000830152612e2c81612df0565b9050919050565b600081519050612e4281612687565b92915050565b600060208284031215612e5e57612e5d612678565b5b6000612e6c84828501612e33565b91505092915050565b7f43616e6e6f7420627579207a65726f20746f6b656e732e000000000000000000600082015250565b6000612eab601783612979565b9150612eb682612e75565b602082019050919050565b60006020820190508181036000830152612eda81612e9e565b9050919050565b7f496e73756666696369656e7420746f6b656e7320617661696c61626c652e0000600082015250565b6000612f17601e83612979565b9150612f2282612ee1565b602082019050919050565b60006020820190508181036000830152612f4681612f0a565b9050919050565b7f4e6f7420656e6f756768204554482073656e742e000000000000000000000000600082015250565b6000612f83601483612979565b9150612f8e82612f4d565b602082019050919050565b60006020820190508181036000830152612fb281612f76565b9050919050565b600081905092915050565b50565b6000612fd4600083612fb9565b9150612fdf82612fc4565b600082019050919050565b6000612ff582612fc7565b9150819050919050565b7f4661696c656420746f2073656e642045544820746f2066756e6473206164647260008201527f6573732e00000000000000000000000000000000000000000000000000000000602082015250565b600061305b602483612979565b915061306682612fff565b604082019050919050565b6000602082019050818103600083015261308a8161304e565b9050919050565b600069ffffffffffffffffffff82169050919050565b6130b081613091565b81146130bb57600080fd5b50565b6000815190506130cd816130a7565b92915050565b6000819050919050565b6130e6816130d3565b81146130f157600080fd5b50565b600081519050613103816130dd565b92915050565b600080600080600060a0868803121561312557613124612678565b5b6000613133888289016130be565b9550506020613144888289016130f4565b945050604061315588828901612e33565b935050606061316688828901612e33565b9250506080613177888289016130be565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006131be8261267d565b91506131c98361267d565b9250826131d9576131d8613184565b5b828204905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613240602683612979565b915061324b826131e4565b604082019050919050565b6000602082019050818103600083015261326f81613233565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006132ac602083612979565b91506132b782613276565b602082019050919050565b600060208201905081810360008301526132db8161329f565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613318601f83612979565b9150613323826132e2565b602082019050919050565b600060208201905081810360008301526133478161330b565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613384601083612979565b915061338f8261334e565b602082019050919050565b600060208201905081810360008301526133b381613377565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006133f0601483612979565b91506133fb826133ba565b602082019050919050565b6000602082019050818103600083015261341f816133e3565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613482602a83612979565b915061348d82613426565b604082019050919050565b600060208201905081810360008301526134b181613475565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613514602683612979565b915061351f826134b8565b604082019050919050565b6000602082019050818103600083015261354381613507565b9050919050565b600081519050919050565b60005b83811015613573578082015181840152602081019050613558565b83811115613582576000848401525b50505050565b60006135938261354a565b61359d8185612fb9565b93506135ad818560208601613555565b80840191505092915050565b60006135c58284613588565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613606601d83612979565b9150613611826135d0565b602082019050919050565b60006020820190508181036000830152613635816135f9565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006136638261363c565b61366d8185612979565b935061367d818560208601613555565b61368681613647565b840191505092915050565b600060208201905081810360008301526136ab8184613658565b90509291505056fea26469706673582212204bbd5f9580a92fa94a55f696c35627768145e8afb80360f0d6c682936aec2a4064736f6c63430008090033000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Deployed Bytecode
0x6080604052600436106101ee5760003560e01c80638ae3a5011161010d578063bcd2f64a116100a0578063cbebd70f1161006f578063cbebd70f146106e4578063d4a6a2fd14610721578063ecbfc0771461074c578063f29d2f2814610763578063f2fde38b1461078c576101ee565b8063bcd2f64a14610628578063c040e6b814610651578063c7ab1ccd1461067c578063c9ba300f146106a7576101ee565b8063af5100bc116100dc578063af5100bc1461056c578063af82d983146105a9578063b2f827ca146105d4578063b33712c514610611576101ee565b80638ae3a501146104bd5780638da5cb5b146104e85780638e04118e14610513578063af2badea1461052f576101ee565b80634412224411610185578063624601b611610154578063624601b614610415578063715018a614610452578063741bef1a146104695780637f19abe014610494576101ee565b8063441222441461035957806348c54b9d146103965780634c5cdfdf146103ad5780635c975abb146103ea576101ee565b80632f48ab7d116101c15780632f48ab7d146102af5780633cb0b771146102da5780633d1860a814610317578063439766ce14610342576101ee565b806309214a07146101f35780630da1701c1461020a578063264d77971461024757806328f344ee14610284575b600080fd5b3480156101ff57600080fd5b506102086107b5565b005b34801561021657600080fd5b50610231600480360381019061022c91906126b3565b610a38565b60405161023e91906126ef565b60405180910390f35b34801561025357600080fd5b5061026e60048036038101906102699190612768565b610a53565b60405161027b91906126ef565b60405180910390f35b34801561029057600080fd5b50610299610a6b565b6040516102a691906127b0565b60405180910390f35b3480156102bb57600080fd5b506102c4610a7e565b6040516102d1919061282a565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc9190612768565b610aa4565b60405161030e91906127b0565b60405180910390f35b34801561032357600080fd5b5061032c610ac4565b6040516103399190612866565b60405180910390f35b34801561034e57600080fd5b50610357610aea565b005b34801561036557600080fd5b50610380600480360381019061037b91906126b3565b610afc565b60405161038d91906126ef565b60405180910390f35b3480156103a257600080fd5b506103ab610b17565b005b3480156103b957600080fd5b506103d460048036038101906103cf91906126b3565b610dec565b6040516103e191906126ef565b60405180910390f35b3480156103f657600080fd5b506103ff610e04565b60405161040c91906127b0565b60405180910390f35b34801561042157600080fd5b5061043c60048036038101906104379190612768565b610e1b565b60405161044991906127b0565b60405180910390f35b34801561045e57600080fd5b50610467610e3b565b005b34801561047557600080fd5b5061047e610e4f565b60405161048b91906128a2565b60405180910390f35b3480156104a057600080fd5b506104bb60048036038101906104b69190612768565b610e75565b005b3480156104c957600080fd5b506104d2610f55565b6040516104df91906126ef565b60405180910390f35b3480156104f457600080fd5b506104fd61108e565b60405161050a91906128cc565b60405180910390f35b61052d600480360381019061052891906126b3565b6110b7565b005b34801561053b57600080fd5b50610556600480360381019061055191906126b3565b6113a0565b60405161056391906126ef565b60405180910390f35b34801561057857600080fd5b50610593600480360381019061058e91906126b3565b6114cd565b6040516105a091906126ef565b60405180910390f35b3480156105b557600080fd5b506105be611533565b6040516105cb91906128cc565b60405180910390f35b3480156105e057600080fd5b506105fb60048036038101906105f69190612768565b611559565b60405161060891906126ef565b60405180910390f35b34801561061d57600080fd5b506106266116a6565b005b34801561063457600080fd5b5061064f600480360381019061064a91906126b3565b6116b8565b005b34801561065d57600080fd5b50610666611838565b604051610673919061295e565b60405180910390f35b34801561068857600080fd5b5061069161184b565b60405161069e91906126ef565b60405180910390f35b3480156106b357600080fd5b506106ce60048036038101906106c991906126b3565b61196f565b6040516106db91906126ef565b60405180910390f35b3480156106f057600080fd5b5061070b600480360381019061070691906126b3565b6119d5565b60405161071891906126ef565b60405180910390f35b34801561072d57600080fd5b50610736611b02565b60405161074391906127b0565b60405180910390f35b34801561075857600080fd5b50610761611b15565b005b34801561076f57600080fd5b5061078a60048036038101906107859190612768565b611b80565b005b34801561079857600080fd5b506107b360048036038101906107ae9190612768565b611c3e565b005b6107bd611cc2565b6000601f60159054906101000a900460ff16600a8111156107e1576107e06128e7565b5b101580156108115750600a601f60159054906101000a900460ff16600a81111561080e5761080d6128e7565b5b11155b610850576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610847906129d6565b60405180910390fd5b602060149054906101000a900460ff1661089f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089690612a42565b60405180910390fd5b6000601f60159054906101000a900460ff16600a8111156108c3576108c26128e7565b5b101580156108f357506009601f60159054906101000a900460ff16600a8111156108f0576108ef6128e7565b5b11155b156109cd576000601d6000601f60159054906101000a900460ff16600a8111156109205761091f6128e7565b5b8152602001908152602001600020546005601f60159054906101000a900460ff16600a811115610953576109526128e7565b5b600b811061096457610963612a62565b5b01546109709190612ac0565b90508060056001601f60159054906101000a900460ff16600a811115610999576109986128e7565b5b6109a39190612af4565b600b81106109b4576109b3612a62565b5b0160008282546109c49190612af4565b92505081905550505b6001601f60159054906101000a900460ff16600a8111156109f1576109f06128e7565b5b6109fb9190612af4565b600a811115610a0d57610a0c6128e7565b5b601f60156101000a81548160ff0219169083600a811115610a3157610a306128e7565b5b0217905550565b600581600b8110610a4857600080fd5b016000915090505481565b601b6020528060005260406000206000915090505481565b602060149054906101000a900460ff1681565b601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60216020528060005260406000206000915054906101000a900460ff1681565b602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610af2611cc2565b610afa611d40565b565b601081600b8110610b0c57600080fd5b016000915090505481565b60011515601f60149054906101000a900460ff16151514610b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6490612b96565b60405180910390fd5b610b75611da3565b6000610b8033611559565b905060008111610bc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbc90612c02565b60405180910390fd5b601c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4990612c94565b60405180910390fd5b6001601c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633670de0b6b3a764000085610d209190612cb4565b6040518463ffffffff1660e01b8152600401610d3e93929190612d0e565b602060405180830381600087803b158015610d5857600080fd5b505af1158015610d6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d909190612d71565b503373ffffffffffffffffffffffffffffffffffffffff167f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b8242604051610dd9929190612d9e565b60405180910390a250610dea611df3565b565b601d6020528060005260406000206000915090505481565b6000600260009054906101000a900460ff16905090565b601c6020528060005260406000206000915054906101000a900460ff1681565b610e43611cc2565b610e4d6000611dfc565b565b601f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e7d611cc2565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0790612e13565b60405180910390fd5b81600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000602060149054906101000a900460ff1661101257602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638ae3a5016040518163ffffffff1660e01b815260040160206040518083038186803b158015610fd357600080fd5b505afa158015610fe7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100b9190612e48565b905061108b565b601d6000601f60159054906101000a900460ff16600a811115611038576110376128e7565b5b8152602001908152602001600020546005601f60159054906101000a900460ff16600a81111561106b5761106a6128e7565b5b600b811061107c5761107b612a62565b5b01546110889190612ac0565b90505b90565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6110bf611da3565b6110c7611ec0565b6000811161110a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110190612ec1565b60405180910390fd5b611112610f55565b811115611154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114b90612f2d565b60405180910390fd5b600061115f826113a0565b9050803410156111a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119b90612f99565b60405180910390fd5b600081346111b29190612ac0565b9050600081111561126b5760003373ffffffffffffffffffffffffffffffffffffffff16826040516111e390612fea565b60006040518083038185875af1925050503d8060008114611220576040519150601f19603f3d011682016040523d82523d6000602084013e611225565b606091505b5050905080611269576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126090613071565b60405180910390fd5b505b61127483611f0a565b6000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16836040516112bc90612fea565b60006040518083038185875af1925050503d80600081146112f9576040519150601f19603f3d011682016040523d82523d6000602084013e6112fe565b606091505b5050905080611342576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133990613071565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f28cab0d660ed8aedd61a8c9db00b97f6a2d67e07d87795994f440b18bc5f1aa3854260405161138a929190612d9e565b60405180910390a250505061139d611df3565b50565b6000806010601f60159054906101000a900460ff16600a8111156113c7576113c66128e7565b5b600b81106113d8576113d7612a62565b5b015490506000601f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561144657600080fd5b505afa15801561145a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147e9190613109565b50505091505060006402540be400826114979190612cb4565b670de0b6b3a764000084876114ac9190612cb4565b6114b69190612cb4565b6114c091906131b3565b9050809350505050919050565b6000806010601f60159054906101000a900460ff16600a8111156114f4576114f36128e7565b5b600b811061150557611504612a62565b5b01549050600064e8d4a51000828561151d9190612cb4565b61152791906131b3565b90508092505050919050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000602160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661165e57602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663264d7797836040518263ffffffff1660e01b815260040161160791906128cc565b60206040518083038186803b15801561161f57600080fd5b505afa158015611633573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116579190612e48565b90506116a1565b601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b919050565b6116ae611cc2565b6116b66122a6565b565b6116c0611da3565b6116c8611ec0565b6000811161170b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170290612ec1565b60405180910390fd5b611713610f55565b811115611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174c90612f2d565b60405180910390fd5b6000611760826114cd565b905061176b82611f0a565b6117dc33600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612309909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f28cab0d660ed8aedd61a8c9db00b97f6a2d67e07d87795994f440b18bc5f1aa38342604051611824929190612d9e565b60405180910390a250611835611df3565b50565b601f60159054906101000a900460ff1681565b6000602060149054906101000a900460ff1661193457602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634c5cdfdf601f60159054906101000a900460ff16600a8111156118c1576118c06128e7565b5b6040518263ffffffff1660e01b81526004016118dd91906126ef565b60206040518083038186803b1580156118f557600080fd5b505afa158015611909573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192d9190612e48565b905061196c565b601d6000601f60159054906101000a900460ff16600a81111561195a576119596128e7565b5b81526020019081526020016000205490505b90565b6000806010601f60159054906101000a900460ff16600a811115611996576119956128e7565b5b600b81106119a7576119a6612a62565b5b0154905060008164e8d4a51000856119bf9190612cb4565b6119c991906131b3565b90508092505050919050565b6000806010601f60159054906101000a900460ff16600a8111156119fc576119fb6128e7565b5b600b8110611a0d57611a0c612a62565b5b015490506000601f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015611a7b57600080fd5b505afa158015611a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab39190613109565b5050509150506000670de0b6b3a764000083611acf9190612cb4565b6402540be4008387611ae19190612cb4565b611aeb9190612cb4565b611af591906131b3565b9050809350505050919050565b601f60149054906101000a900460ff1681565b611b1d611cc2565b6001601f60146101000a81548160ff0219169083151502179055507ff864daa2fad5ed4d2ac0634bf3343881cbc3662b641070d15f15e63ff35a9d2a601f60149054906101000a900460ff16604051611b7691906127b0565b60405180910390a1565b611b88611cc2565b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611bf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf090612e13565b60405180910390fd5b81600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b611c46611cc2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611cb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cad90613256565b60405180910390fd5b611cbf81611dfc565b50565b611cca612392565b73ffffffffffffffffffffffffffffffffffffffff16611ce861108e565b73ffffffffffffffffffffffffffffffffffffffff1614611d3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d35906132c2565b60405180910390fd5b565b611d48611ec0565b6001600260006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d8c612392565b604051611d9991906128cc565b60405180910390a1565b60026001541415611de9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de09061332e565b60405180910390fd5b6002600181905550565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611ec8610e04565b15611f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eff9061339a565b60405180910390fd5b565b602060149054906101000a900460ff16612053576000602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634c5cdfdf601f60159054906101000a900460ff16600a811115611f8057611f7f6128e7565b5b6040518263ffffffff1660e01b8152600401611f9c91906126ef565b60206040518083038186803b158015611fb457600080fd5b505afa158015611fc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fec9190612e48565b90508181611ffa9190612af4565b601d6000601f60159054906101000a900460ff16600a8111156120205761201f6128e7565b5b8152602001908152602001600020819055506001602060146101000a81548160ff0219169083151502179055505061209f565b80601d6000601f60159054906101000a900460ff16600a81111561207a576120796128e7565b5b815260200190815260200160002060008282546120979190612af4565b925050819055505b602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661224c576000602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663264d7797336040518263ffffffff1660e01b815260040161214d91906128cc565b60206040518083038186803b15801561216557600080fd5b505afa158015612179573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061219d9190612e48565b905081816121ab9190612af4565b601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550506122a3565b80601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461229b9190612af4565b925050819055505b50565b6122ae61239a565b6000600260006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6122f2612392565b6040516122ff91906128cc565b60405180910390a1565b61238c846323b872dd60e01b85858560405160240161232a93929190612d0e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506123e3565b50505050565b600033905090565b6123a2610e04565b6123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d890613406565b60405180910390fd5b565b6000612445826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124aa9092919063ffffffff16565b90506000815111156124a557808060200190518101906124659190612d71565b6124a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249b90613498565b60405180910390fd5b5b505050565b60606124b984846000856124c2565b90509392505050565b606082471015612507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fe9061352a565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161253091906135b9565b60006040518083038185875af1925050503d806000811461256d576040519150601f19603f3d011682016040523d82523d6000602084013e612572565b606091505b50915091506125838783838761258f565b92505050949350505050565b606083156125f2576000835114156125ea576125aa85612605565b6125e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e09061361c565b60405180910390fd5b5b8290506125fd565b6125fc8383612628565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008251111561263b5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266f9190613691565b60405180910390fd5b600080fd5b6000819050919050565b6126908161267d565b811461269b57600080fd5b50565b6000813590506126ad81612687565b92915050565b6000602082840312156126c9576126c8612678565b5b60006126d78482850161269e565b91505092915050565b6126e98161267d565b82525050565b600060208201905061270460008301846126e0565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006127358261270a565b9050919050565b6127458161272a565b811461275057600080fd5b50565b6000813590506127628161273c565b92915050565b60006020828403121561277e5761277d612678565b5b600061278c84828501612753565b91505092915050565b60008115159050919050565b6127aa81612795565b82525050565b60006020820190506127c560008301846127a1565b92915050565b6000819050919050565b60006127f06127eb6127e68461270a565b6127cb565b61270a565b9050919050565b6000612802826127d5565b9050919050565b6000612814826127f7565b9050919050565b61282481612809565b82525050565b600060208201905061283f600083018461281b565b92915050565b6000612850826127f7565b9050919050565b61286081612845565b82525050565b600060208201905061287b6000830184612857565b92915050565b600061288c826127f7565b9050919050565b61289c81612881565b82525050565b60006020820190506128b76000830184612893565b92915050565b6128c68161272a565b82525050565b60006020820190506128e160008301846128bd565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600b8110612927576129266128e7565b5b50565b600081905061293882612916565b919050565b60006129488261292a565b9050919050565b6129588161293d565b82525050565b6000602082019050612973600083018461294f565b92915050565b600082825260208201905092915050565b7f496e76616c6964207374616765207472616e736974696f6e2e00000000000000600082015250565b60006129c0601983612979565b91506129cb8261298a565b602082019050919050565b600060208201905081810360008301526129ef816129b3565b9050919050565b7f5472616e7366657220646174612066726f6d2056310000000000000000000000600082015250565b6000612a2c601583612979565b9150612a37826129f6565b602082019050919050565b60006020820190508181036000830152612a5b81612a1f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612acb8261267d565b9150612ad68361267d565b925082821015612ae957612ae8612a91565b5b828203905092915050565b6000612aff8261267d565b9150612b0a8361267d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612b3f57612b3e612a91565b5b828201905092915050565b7f436c61696d696e67206973206e6f7420616374697665207965742e0000000000600082015250565b6000612b80601b83612979565b9150612b8b82612b4a565b602082019050919050565b60006020820190508181036000830152612baf81612b73565b9050919050565b7f596f752068617665206e6f7420626f7567687420616e7920746f6b656e732e00600082015250565b6000612bec601f83612979565b9150612bf782612bb6565b602082019050919050565b60006020820190508181036000830152612c1b81612bdf565b9050919050565b7f596f75206861766520616c726561647920636c61696d656420796f757220746f60008201527f6b656e732e000000000000000000000000000000000000000000000000000000602082015250565b6000612c7e602583612979565b9150612c8982612c22565b604082019050919050565b60006020820190508181036000830152612cad81612c71565b9050919050565b6000612cbf8261267d565b9150612cca8361267d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612d0357612d02612a91565b5b828202905092915050565b6000606082019050612d2360008301866128bd565b612d3060208301856128bd565b612d3d60408301846126e0565b949350505050565b612d4e81612795565b8114612d5957600080fd5b50565b600081519050612d6b81612d45565b92915050565b600060208284031215612d8757612d86612678565b5b6000612d9584828501612d5c565b91505092915050565b6000604082019050612db360008301856126e0565b612dc060208301846126e0565b9392505050565b7f416464726573732063616e2774206265207a65726f0000000000000000000000600082015250565b6000612dfd601583612979565b9150612e0882612dc7565b602082019050919050565b60006020820190508181036000830152612e2c81612df0565b9050919050565b600081519050612e4281612687565b92915050565b600060208284031215612e5e57612e5d612678565b5b6000612e6c84828501612e33565b91505092915050565b7f43616e6e6f7420627579207a65726f20746f6b656e732e000000000000000000600082015250565b6000612eab601783612979565b9150612eb682612e75565b602082019050919050565b60006020820190508181036000830152612eda81612e9e565b9050919050565b7f496e73756666696369656e7420746f6b656e7320617661696c61626c652e0000600082015250565b6000612f17601e83612979565b9150612f2282612ee1565b602082019050919050565b60006020820190508181036000830152612f4681612f0a565b9050919050565b7f4e6f7420656e6f756768204554482073656e742e000000000000000000000000600082015250565b6000612f83601483612979565b9150612f8e82612f4d565b602082019050919050565b60006020820190508181036000830152612fb281612f76565b9050919050565b600081905092915050565b50565b6000612fd4600083612fb9565b9150612fdf82612fc4565b600082019050919050565b6000612ff582612fc7565b9150819050919050565b7f4661696c656420746f2073656e642045544820746f2066756e6473206164647260008201527f6573732e00000000000000000000000000000000000000000000000000000000602082015250565b600061305b602483612979565b915061306682612fff565b604082019050919050565b6000602082019050818103600083015261308a8161304e565b9050919050565b600069ffffffffffffffffffff82169050919050565b6130b081613091565b81146130bb57600080fd5b50565b6000815190506130cd816130a7565b92915050565b6000819050919050565b6130e6816130d3565b81146130f157600080fd5b50565b600081519050613103816130dd565b92915050565b600080600080600060a0868803121561312557613124612678565b5b6000613133888289016130be565b9550506020613144888289016130f4565b945050604061315588828901612e33565b935050606061316688828901612e33565b9250506080613177888289016130be565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006131be8261267d565b91506131c98361267d565b9250826131d9576131d8613184565b5b828204905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613240602683612979565b915061324b826131e4565b604082019050919050565b6000602082019050818103600083015261326f81613233565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006132ac602083612979565b91506132b782613276565b602082019050919050565b600060208201905081810360008301526132db8161329f565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613318601f83612979565b9150613323826132e2565b602082019050919050565b600060208201905081810360008301526133478161330b565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613384601083612979565b915061338f8261334e565b602082019050919050565b600060208201905081810360008301526133b381613377565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006133f0601483612979565b91506133fb826133ba565b602082019050919050565b6000602082019050818103600083015261341f816133e3565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613482602a83612979565b915061348d82613426565b604082019050919050565b600060208201905081810360008301526134b181613475565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613514602683612979565b915061351f826134b8565b604082019050919050565b6000602082019050818103600083015261354381613507565b9050919050565b600081519050919050565b60005b83811015613573578082015181840152602081019050613558565b83811115613582576000848401525b50505050565b60006135938261354a565b61359d8185612fb9565b93506135ad818560208601613555565b80840191505092915050565b60006135c58284613588565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613606601d83612979565b9150613611826135d0565b602082019050919050565b60006020820190508181036000830152613635816135f9565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006136638261363c565b61366d8185612979565b935061367d818560208601613555565b61368681613647565b840191505092915050565b600060208201905081810360008301526136ab8184613658565b90509291505056fea26469706673582212204bbd5f9580a92fa94a55f696c35627768145e8afb80360f0d6c682936aec2a4064736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
-----Decoded View---------------
Arg [0] : _usdt (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [1] : _oracle (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [1] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
OP | 100.00% | $3,662.24 | 0.0001 | $0.366224 |
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.