Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 135 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 17858881 | 459 days ago | IN | 0 ETH | 0.00117667 | ||||
Withdraw | 17772534 | 471 days ago | IN | 0 ETH | 0.00196714 | ||||
Withdraw | 17655613 | 487 days ago | IN | 0 ETH | 0.00127513 | ||||
Withdraw | 17541930 | 503 days ago | IN | 0 ETH | 0.00094318 | ||||
Withdraw | 17501420 | 509 days ago | IN | 0 ETH | 0.00095057 | ||||
Withdraw | 17243428 | 545 days ago | IN | 0 ETH | 0.00343805 | ||||
Withdraw NFT | 17243424 | 545 days ago | IN | 0 ETH | 0.00640862 | ||||
Withdraw | 17221920 | 548 days ago | IN | 0 ETH | 0.00452583 | ||||
Withdraw | 17221903 | 548 days ago | IN | 0 ETH | 0.00494298 | ||||
Withdraw | 17144323 | 559 days ago | IN | 0 ETH | 0.0028569 | ||||
Deposit | 17114520 | 564 days ago | IN | 0 ETH | 0.00394109 | ||||
Deposit | 16996881 | 580 days ago | IN | 0 ETH | 0.00365848 | ||||
Withdraw | 16964889 | 585 days ago | IN | 0 ETH | 0.00153204 | ||||
Withdraw | 16932680 | 589 days ago | IN | 0 ETH | 0.00216768 | ||||
Withdraw NFT | 16932678 | 589 days ago | IN | 0 ETH | 0.00280153 | ||||
Deposit | 16927074 | 590 days ago | IN | 0 ETH | 0.00294504 | ||||
Withdraw | 16892942 | 595 days ago | IN | 0 ETH | 0.00215778 | ||||
Withdraw | 16876080 | 597 days ago | IN | 0 ETH | 0.00152836 | ||||
Deposit | 16875976 | 597 days ago | IN | 0 ETH | 0.00182683 | ||||
Deposit | 16865009 | 599 days ago | IN | 0 ETH | 0.00237325 | ||||
Withdraw | 16850262 | 601 days ago | IN | 0 ETH | 0.00622773 | ||||
Withdraw | 16849121 | 601 days ago | IN | 0 ETH | 0.0018051 | ||||
Deposit | 16848965 | 601 days ago | IN | 0 ETH | 0.00282579 | ||||
Withdraw | 16823996 | 605 days ago | IN | 0 ETH | 0.00153317 | ||||
Deposit | 16801389 | 608 days ago | IN | 0 ETH | 0.00656874 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TheStaking
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.7; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/INFT.sol"; import "./interfaces/ITHE.sol"; contract TheStaking is Ownable, ReentrancyGuard, ERC721Holder { using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint16 boostPointsBP; uint112 amount; uint256 startedAt; address[] NFTContracts; uint256[] NFTTokenIDs; } // Info of each pool. struct PoolInfo { IERC20 lpToken; // Address of LP token contract. } struct UsersNFTs { address NFTContract; uint256 TokenId; } //One day in seconds uint256 public ONE_DAY = 86400; //vitaliks address address vb = address(0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B); uint256 public pointsPerDay = 41; // The token IThe public The; // The boost nft contracts mapping(address => bool) public isNFTContract; // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; bool public started; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw( address indexed user, uint256 indexed pid, uint256 amount ); event NFTStaked( address indexed user, address indexed NFTContract, uint256 tokenID ); event NFTWithdrawn( address indexed user, address indexed NFTContract, uint256 tokenID ); event Emergency(uint256 timestamp, bool ifEmergency); mapping(IERC20 => bool) public poolExistence; modifier nonDuplicated(IERC20 _lpToken) { require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated"); _; } mapping(address => bool) public authorized; modifier onlyAuthorized() { require( authorized[msg.sender] == true, "onlyAuthorized: address not authorized" ); _; } constructor(IThe _the) { The = _the; started = false; } // Return number of pools function poolLength() external view returns (uint256) { return poolInfo.length; } // Return reward multiplier over the given _from to _to block. function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) { return (_to - _from); } function snapshotORGVotingPower(address _user) public view returns (uint256) { UserInfo storage user = userInfo[0][_user]; uint256 weightedVotingPower = getVotingPower(0, _user); uint256 theBalance = The.balanceOf(_user); uint256 total = weightedVotingPower + theBalance; if (_user != vb) { if (user.boostPointsBP == 0) { //no nft return total > 5000000 * 1e18 ? 5000000 * 1e18 : total; } else if (user.boostPointsBP == 41) { //bronze return total > 10000000 * 1e18 ? 10000000 * 1e18 : total; } else if (user.boostPointsBP == 82) { //silver return total > 20000000 * 1e18 ? 20000000 * 1e18 : total; } else if (user.boostPointsBP == 123) { //gold return total > 30000000 * 1e18 ? 30000000 * 1e18 : total; } else if (user.boostPointsBP == 206) { //diamond return total > 50000000 * 1e18 ? 50000000 * 1e18 : total; } } else { //if user is vitalik return total > 200000000 * 1e18 ? 200000000 * 1e18 : total; } return 0; } function getVotingPower(uint256 _pid, address _user) public view returns (uint256) { UserInfo storage user = userInfo[_pid][_user]; uint256 userWeightedAmount = 0; uint256 multiplier = getMultiplier(user.startedAt, block.timestamp); uint256 totalMultiplier = 10000 + (multiplier * (pointsPerDay + user.boostPointsBP)) / ONE_DAY; userWeightedAmount = (user.amount * totalMultiplier) / 10000; return userWeightedAmount; } function getUsersNFTs(uint256 _pid, address _user) public view returns (address[] memory, uint256[] memory) { UserInfo storage user = userInfo[_pid][_user]; uint256 nftCount = user.NFTContracts.length; address[] memory _nftContracts = new address[](nftCount); uint256[] memory _nftTokenIds = new uint256[](nftCount); for (uint256 i = 0; i < nftCount; i++) { _nftContracts[i] = user.NFTContracts[i]; _nftTokenIds[i] = user.NFTTokenIDs[i]; } return (_nftContracts, _nftTokenIds); } // Deposit tokens for rewards. function deposit(uint256 _pid, uint256 _amount) public nonReentrant { _deposit(msg.sender, _pid, _amount); } // Withdraw unlocked tokens. function withdraw(uint32 _pid, uint256 _amount) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount && _amount > 0, "withdraw: not good"); if (_amount == user.amount) { require(user.boostPointsBP == 0, "Withdraw NFTs first"); } user.amount = uint112(user.amount - _amount); pool.lpToken.safeTransfer(address(msg.sender), _amount); emit Withdraw(msg.sender, _pid, _amount); } // Withdraw previously staked NFT, loosing the rewards boost function withdrawNFT( uint256 _pid, address NFTContract, uint256 tokenID ) public nonReentrant { address sender = msg.sender; uint256 NFTIndex; bool tokenFound; uint256 length = userInfo[_pid][sender].NFTContracts.length; for (uint256 i; i < userInfo[_pid][sender].NFTContracts.length; i++) { if (userInfo[_pid][sender].NFTContracts[i] == NFTContract) { if (userInfo[_pid][sender].NFTTokenIDs[i] == tokenID) { tokenFound = true; NFTIndex = i; break; } } } require(tokenFound == true, "withdrawNFT, token not found"); userInfo[_pid][sender].boostPointsBP -= uint16( INFT(NFTContract).getStakingBP(tokenID) ); userInfo[_pid][sender].NFTContracts[NFTIndex] = userInfo[_pid][sender] .NFTContracts[length - 1]; userInfo[_pid][sender].NFTContracts.pop(); userInfo[_pid][sender].NFTTokenIDs[NFTIndex] = userInfo[_pid][sender] .NFTTokenIDs[length - 1]; userInfo[_pid][sender].NFTTokenIDs.pop(); INFT(NFTContract).safeTransferFrom(address(this), sender, tokenID); emit NFTWithdrawn(sender, NFTContract, tokenID); } function boostWithNFT( uint256 _pid, address NFTContract, uint256 tokenID ) public nonReentrant { require(msg.sender == tx.origin, "boostWithNFT : no contracts"); require( isNFTContract[NFTContract], "boostWithNFT: incorrect contract address" ); require( userInfo[_pid][msg.sender].amount >= 0, "Stake tokens before you deposit NFT" ); require( userInfo[_pid][msg.sender].NFTTokenIDs.length <= 1, "You can deposit maximum 1 NFT" ); INFT(NFTContract).safeTransferFrom(msg.sender, address(this), tokenID); userInfo[_pid][msg.sender].NFTContracts.push(NFTContract); userInfo[_pid][msg.sender].NFTTokenIDs.push(tokenID); userInfo[_pid][msg.sender].boostPointsBP += uint16( INFT(NFTContract).getStakingBP(tokenID) ); emit NFTWithdrawn(msg.sender, NFTContract, tokenID); } function depositFor( address sender, uint256 _pid, uint256 amount ) public onlyAuthorized { _deposit(sender, _pid, amount); } function add(IERC20 _lpToken) public onlyOwner nonDuplicated(_lpToken) { poolExistence[_lpToken] = true; poolInfo.push(PoolInfo({lpToken: _lpToken})); } function addNFTContract(address NFTcontract) public onlyOwner { isNFTContract[NFTcontract] = true; } // Pull out tokens accidentally sent to the contract. Doesnt work with the reward token or any staked token. Can only be called by the owner. function rescueToken(address tokenAddress) public onlyOwner { require( !poolExistence[IERC20(tokenAddress)], "rescueToken : wrong token address" ); uint256 bal = IERC20(tokenAddress).balanceOf(address(this)); IERC20(tokenAddress).transfer(msg.sender, bal); } function start() public onlyOwner { require(!started, "Can't stop staking"); started = true; } function authorize(address _address) public onlyOwner { authorized[_address] = true; } function unauthorize(address _address) public onlyOwner { authorized[_address] = false; } function _deposit( address sender, uint256 _pid, uint256 _amount ) internal { require(started, "Staking is not started yet"); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][sender]; if (_amount > 0) { pool.lpToken.safeTransferFrom( address(msg.sender), address(this), _amount ); if (user.amount > 0) { uint256 userVotingPower = getVotingPower(_pid, sender); uint256 totalMultiplier = ((userVotingPower + _amount) * 10000) / (user.amount + _amount); uint256 multiplier = (ONE_DAY * (totalMultiplier - 10000)) / (pointsPerDay + user.boostPointsBP); user.startedAt = block.timestamp - multiplier; } else { user.startedAt = block.timestamp; } user.amount = uint112(user.amount + _amount); } emit Deposit(sender, _pid, _amount); } }
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IThe is IERC20 { }
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface INFT is IERC721 { function getStakingBP(uint256 _tokenID) external view returns (uint256); }
// 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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 (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 (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 v4.4.1 (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// 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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IThe","name":"_the","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bool","name":"ifEmergency","type":"bool"}],"name":"Emergency","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"NFTContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"NFTStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"NFTContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"NFTWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ONE_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"The","outputs":[{"internalType":"contract IThe","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_lpToken","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NFTcontract","type":"address"}],"name":"addNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"authorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"NFTContract","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"boostWithNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"getUsersNFTs","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"getVotingPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isNFTContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pointsPerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"snapshotORGVotingPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"unauthorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint16","name":"boostPointsBP","type":"uint16"},{"internalType":"uint112","name":"amount","type":"uint112"},{"internalType":"uint256","name":"startedAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_pid","type":"uint32"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"NFTContract","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"withdrawNFT","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526201518060025573ab5801a7d398351b8be11c439e05c5b3259aec9b600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060296004553480156200007257600080fd5b50604051620044243803806200442483398181016040528101906200009891906200026c565b620000b8620000ac6200012260201b60201c565b6200012a60201b60201c565b6001808190555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600960006101000a81548160ff021916908315150217905550506200029e565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200022082620001f3565b9050919050565b6000620002348262000213565b9050919050565b620002468162000227565b81146200025257600080fd5b50565b60008151905062000266816200023b565b92915050565b600060208284031215620002855762000284620001ee565b5b6000620002958482850162000255565b91505092915050565b61417680620002ae6000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063863e76db11610104578063b9181611116100a2578063dbdad43211610071578063dbdad4321461052f578063e2bbb1581461055f578063f0b37c041461057b578063f2fde38b14610597576101cf565b8063b9181611146104a9578063be9a6555146104d9578063cbd258b5146104e3578063cfac5d7c14610513576101cf565b806390998c9d116100de57806390998c9d1461040c57806393f1a40b1461043d578063a52acb4b1461046f578063b6a5d7de1461048d576101cf565b8063863e76db146103a05780638da5cb5b146103be5780638dbb1e3a146103dc576101cf565b80632d5310e7116101715780634cf5fbf51161014b5780634cf5fbf51461032e57806354cf5e8b1461034a5780635975e3321461037a578063715018a614610396576101cf565b80632d5310e7146102d85780633bb1bde7146102f45780634460d3cf14610312576101cf565b80630e19dc3a116101ad5780630e19dc3a1461023e578063150b7a021461025a5780631526fe271461028a5780631f2698ab146102ba576101cf565b8063081e3eda146101d457806309aaf684146101f25780630a3b0a4f14610222575b600080fd5b6101dc6105b3565b6040516101e99190612bd4565b60405180910390f35b61020c60048036038101906102079190612c61565b6105c0565b6040516102199190612ca9565b60405180910390f35b61023c60048036038101906102379190612d02565b6105e0565b005b61025860048036038101906102539190612d97565b61076d565b005b610274600480360381019061026f9190612f1d565b610a25565b6040516102819190612fdb565b60405180910390f35b6102a4600480360381019061029f9190612ff6565b610a39565b6040516102b19190613082565b60405180910390f35b6102c2610a83565b6040516102cf9190612ca9565b60405180910390f35b6102f260048036038101906102ed919061309d565b610a96565b005b6102fc611233565b6040516103099190612bd4565b60405180910390f35b61032c60048036038101906103279190612c61565b611239565b005b610348600480360381019061034391906130f0565b6113cf565b005b610364600480360381019061035f9190612c61565b611472565b6040516103719190612bd4565b60405180910390f35b610394600480360381019061038f919061309d565b6117a4565b005b61039e611d13565b005b6103a8611d27565b6040516103b59190612bd4565b60405180910390f35b6103c6611d2d565b6040516103d39190613152565b60405180910390f35b6103f660048036038101906103f1919061316d565b611d56565b6040516104039190612bd4565b60405180910390f35b610426600480360381019061042191906131ad565b611d6c565b604051610434929190613369565b60405180910390f35b610457600480360381019061045291906131ad565b611f67565b604051610466939291906133e6565b60405180910390f35b610477611fc6565b604051610484919061343e565b60405180910390f35b6104a760048036038101906104a29190612c61565b611fec565b005b6104c360048036038101906104be9190612c61565b61204f565b6040516104d09190612ca9565b60405180910390f35b6104e161206f565b005b6104fd60048036038101906104f89190612d02565b6120e4565b60405161050a9190612ca9565b60405180910390f35b61052d60048036038101906105289190612c61565b612104565b005b610549600480360381019061054491906131ad565b612167565b6040516105569190612bd4565b60405180910390f35b6105796004803603810190610574919061316d565b612272565b005b61059560048036038101906105909190612c61565b612291565b005b6105b160048036038101906105ac9190612c61565b6122f4565b005b6000600780549050905090565b60066020528060005260406000206000915054906101000a900460ff1681565b6105e8612377565b8060001515600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461067c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610673906134b6565b60405180910390fd5b6001600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600760405180602001604052808473ffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b6107756123f5565b600060078363ffffffff1681548110610791576107906134d6565b5b9060005260206000200190506000600860008563ffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050828160000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff16101580156108355750600083115b610874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086b90613551565b60405180910390fd5b8060000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff1683036109035760008160000160009054906101000a900461ffff1661ffff1614610902576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f9906135bd565b60405180910390fd5b5b828160000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff1661093d919061360c565b8160000160026101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055506109c233848460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166124449092919063ffffffff16565b8363ffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56885604051610a0f9190612bd4565b60405180910390a35050610a216124ca565b5050565b600063150b7a0260e01b9050949350505050565b60078181548110610a4957600080fd5b906000526020600020016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081565b600960009054906101000a900460ff1681565b610a9e6123f5565b600033905060008060006008600088815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020180549050905060005b6008600089815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020180549050811015610cba578673ffffffffffffffffffffffffffffffffffffffff16600860008a815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018281548110610bde57610bdd6134d6565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610ca75785600860008a815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018281548110610c8a57610c896134d6565b5b906000526020600020015403610ca65760019250809350610cba565b5b8080610cb290613640565b915050610b04565b506001151582151514610d02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf9906136d4565b60405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff1663fc197704866040518263ffffffff1660e01b8152600401610d3b9190612bd4565b602060405180830381865afa158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7c9190613709565b6008600089815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff16610deb9190613736565b92506101000a81548161ffff021916908361ffff1602179055506008600088815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600182610e65919061360c565b81548110610e7657610e756134d6565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166008600089815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018481548110610f0657610f056134d6565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506008600088815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201805480610fb157610fb061376c565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556008600088815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301600182611046919061360c565b81548110611057576110566134d6565b5b90600052602060002001546008600089815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030184815481106110c7576110c66134d6565b5b90600052602060002001819055506008600088815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018054806111385761113761376c565b5b600190038181906000526020600020016000905590558573ffffffffffffffffffffffffffffffffffffffff166342842e0e3086886040518463ffffffff1660e01b815260040161118b9392919061379b565b600060405180830381600087803b1580156111a557600080fd5b505af11580156111b9573d6000803e3d6000fd5b505050508573ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb8760405161121a9190612bd4565b60405180910390a35050505061122e6124ca565b505050565b60045481565b611241612377565b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156112ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c590613844565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113099190613152565b602060405180830381865afa158015611326573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134a9190613709565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611387929190613864565b6020604051808303816000875af11580156113a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ca91906138b9565b505050565b60011515600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145990613958565b60405180910390fd5b61146d8383836124d3565b505050565b6000806008600080815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006114d4600085612167565b90506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b81526004016115339190613152565b602060405180830381865afa158015611550573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115749190613709565b9050600081836115849190613978565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16146117665760008460000160009054906101000a900461ffff1661ffff1603611629576a0422ca8b0a00a4250000008111611611578061161e565b6a0422ca8b0a00a4250000005b94505050505061179f565b60298460000160009054906101000a900461ffff1661ffff1603611677576a084595161401484a000000811161165f578061166c565b6a084595161401484a0000005b94505050505061179f565b60528460000160009054906101000a900461ffff1661ffff16036116c5576a108b2a2c2802909400000081116116ad57806116ba565b6a108b2a2c280290940000005b94505050505061179f565b607b8460000160009054906101000a900461ffff1661ffff1603611713576a18d0bf423c03d8de00000081116116fb5780611708565b6a18d0bf423c03d8de0000005b94505050505061179f565b60ce8460000160009054906101000a900461ffff1661ffff1603611761576a295be96e6406697200000081116117495780611756565b6a295be96e640669720000005b94505050505061179f565b611796565b6aa56fa5b99019a5c8000000811161177e578061178b565b6aa56fa5b99019a5c80000005b94505050505061179f565b60009450505050505b919050565b6117ac6123f5565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461181a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611811906139f8565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166118a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189d90613a8a565b60405180910390fd5b60006008600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff161015611967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195e90613b1c565b60405180910390fd5b60016008600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301805490501115611a01576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f890613b88565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166342842e0e3330846040518463ffffffff1660e01b8152600401611a3e9392919061379b565b600060405180830381600087803b158015611a5857600080fd5b505af1158015611a6c573d6000803e3d6000fd5b505050506008600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506008600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018190806001815401808255809150506001900390600052602060002001600090919091909150558173ffffffffffffffffffffffffffffffffffffffff1663fc197704826040518263ffffffff1660e01b8152600401611bd79190612bd4565b602060405180830381865afa158015611bf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c189190613709565b6008600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff16611c879190613ba8565b92506101000a81548161ffff021916908361ffff1602179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb83604051611cfe9190612bd4565b60405180910390a3611d0e6124ca565b505050565b611d1b612377565b611d2560006127d2565b565b60025481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008282611d64919061360c565b905092915050565b60608060006008600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160020180549050905060008167ffffffffffffffff811115611deb57611dea612df2565b5b604051908082528060200260200182016040528015611e195781602001602082028036833780820191505090505b50905060008267ffffffffffffffff811115611e3857611e37612df2565b5b604051908082528060200260200182016040528015611e665781602001602082028036833780820191505090505b50905060005b83811015611f5557846002018181548110611e8a57611e896134d6565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838281518110611ec857611ec76134d6565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050846003018181548110611f1857611f176134d6565b5b9060005260206000200154828281518110611f3657611f356134d6565b5b6020026020010181815250508080611f4d90613640565b915050611e6c565b50818195509550505050509250929050565b6008602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900461ffff16908060000160029054906101000a90046dffffffffffffffffffffffffffff16908060010154905083565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611ff4612377565b6001600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600b6020528060005260406000206000915054906101000a900460ff1681565b612077612377565b600960009054906101000a900460ff16156120c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120be90613c2a565b60405180910390fd5b6001600960006101000a81548160ff021916908315150217905550565b600a6020528060005260406000206000915054906101000a900460ff1681565b61210c612377565b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000806008600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000806121cd836001015442611d56565b905060006002548460000160009054906101000a900461ffff1661ffff166004546121f89190613978565b836122039190613c4a565b61220d9190613cbb565b61271061221a9190613978565b9050612710818560000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff166122599190613c4a565b6122639190613cbb565b92508294505050505092915050565b61227a6123f5565b6122853383836124d3565b61228d6124ca565b5050565b612299612377565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6122fc612377565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361236b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236290613d5e565b60405180910390fd5b612374816127d2565b50565b61237f612896565b73ffffffffffffffffffffffffffffffffffffffff1661239d611d2d565b73ffffffffffffffffffffffffffffffffffffffff16146123f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ea90613dca565b60405180910390fd5b565b60026001540361243a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243190613e36565b60405180910390fd5b6002600181905550565b6124c58363a9059cbb60e01b8484604051602401612463929190613864565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061289e565b505050565b60018081905550565b600960009054906101000a900460ff16612522576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251990613ea2565b60405180910390fd5b600060078381548110612538576125376134d6565b5b90600052602060002001905060006008600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600083111561277c576125f23330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612965909392919063ffffffff16565b60008160000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff1611156127015760006126358587612167565b90506000848360000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff166126739190613978565b61271086846126829190613978565b61268c9190613c4a565b6126969190613cbb565b905060008360000160009054906101000a900461ffff1661ffff166004546126be9190613978565b612710836126cc919061360c565b6002546126d99190613c4a565b6126e39190613cbb565b905080426126f1919061360c565b846001018190555050505061270b565b4281600101819055505b828160000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff166127459190613978565b8160000160026101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055505b838573ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040516127c39190612bd4565b60405180910390a35050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000612900826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166129ee9092919063ffffffff16565b9050600081511115612960578080602001905181019061292091906138b9565b61295f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295690613f34565b60405180910390fd5b5b505050565b6129e8846323b872dd60e01b8585856040516024016129869392919061379b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061289e565b50505050565b60606129fd8484600085612a06565b90509392505050565b606082471015612a4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4290613fc6565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612a749190614057565b60006040518083038185875af1925050503d8060008114612ab1576040519150601f19603f3d011682016040523d82523d6000602084013e612ab6565b606091505b5091509150612ac787838387612ad3565b92505050949350505050565b60608315612b35576000835103612b2d57612aed85612b48565b612b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b23906140ba565b60405180910390fd5b5b829050612b40565b612b3f8383612b6b565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115612b7e5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb2919061411e565b60405180910390fd5b6000819050919050565b612bce81612bbb565b82525050565b6000602082019050612be96000830184612bc5565b92915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612c2e82612c03565b9050919050565b612c3e81612c23565b8114612c4957600080fd5b50565b600081359050612c5b81612c35565b92915050565b600060208284031215612c7757612c76612bf9565b5b6000612c8584828501612c4c565b91505092915050565b60008115159050919050565b612ca381612c8e565b82525050565b6000602082019050612cbe6000830184612c9a565b92915050565b6000612ccf82612c23565b9050919050565b612cdf81612cc4565b8114612cea57600080fd5b50565b600081359050612cfc81612cd6565b92915050565b600060208284031215612d1857612d17612bf9565b5b6000612d2684828501612ced565b91505092915050565b600063ffffffff82169050919050565b612d4881612d2f565b8114612d5357600080fd5b50565b600081359050612d6581612d3f565b92915050565b612d7481612bbb565b8114612d7f57600080fd5b50565b600081359050612d9181612d6b565b92915050565b60008060408385031215612dae57612dad612bf9565b5b6000612dbc85828601612d56565b9250506020612dcd85828601612d82565b9150509250929050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612e2a82612de1565b810181811067ffffffffffffffff82111715612e4957612e48612df2565b5b80604052505050565b6000612e5c612bef565b9050612e688282612e21565b919050565b600067ffffffffffffffff821115612e8857612e87612df2565b5b612e9182612de1565b9050602081019050919050565b82818337600083830152505050565b6000612ec0612ebb84612e6d565b612e52565b905082815260208101848484011115612edc57612edb612ddc565b5b612ee7848285612e9e565b509392505050565b600082601f830112612f0457612f03612dd7565b5b8135612f14848260208601612ead565b91505092915050565b60008060008060808587031215612f3757612f36612bf9565b5b6000612f4587828801612c4c565b9450506020612f5687828801612c4c565b9350506040612f6787828801612d82565b925050606085013567ffffffffffffffff811115612f8857612f87612bfe565b5b612f9487828801612eef565b91505092959194509250565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612fd581612fa0565b82525050565b6000602082019050612ff06000830184612fcc565b92915050565b60006020828403121561300c5761300b612bf9565b5b600061301a84828501612d82565b91505092915050565b6000819050919050565b600061304861304361303e84612c03565b613023565b612c03565b9050919050565b600061305a8261302d565b9050919050565b600061306c8261304f565b9050919050565b61307c81613061565b82525050565b60006020820190506130976000830184613073565b92915050565b6000806000606084860312156130b6576130b5612bf9565b5b60006130c486828701612d82565b93505060206130d586828701612c4c565b92505060406130e686828701612d82565b9150509250925092565b60008060006060848603121561310957613108612bf9565b5b600061311786828701612c4c565b935050602061312886828701612d82565b925050604061313986828701612d82565b9150509250925092565b61314c81612c23565b82525050565b60006020820190506131676000830184613143565b92915050565b6000806040838503121561318457613183612bf9565b5b600061319285828601612d82565b92505060206131a385828601612d82565b9150509250929050565b600080604083850312156131c4576131c3612bf9565b5b60006131d285828601612d82565b92505060206131e385828601612c4c565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61322281612c23565b82525050565b60006132348383613219565b60208301905092915050565b6000602082019050919050565b6000613258826131ed565b61326281856131f8565b935061326d83613209565b8060005b8381101561329e5781516132858882613228565b975061329083613240565b925050600181019050613271565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6132e081612bbb565b82525050565b60006132f283836132d7565b60208301905092915050565b6000602082019050919050565b6000613316826132ab565b61332081856132b6565b935061332b836132c7565b8060005b8381101561335c57815161334388826132e6565b975061334e836132fe565b92505060018101905061332f565b5085935050505092915050565b60006040820190508181036000830152613383818561324d565b90508181036020830152613397818461330b565b90509392505050565b600061ffff82169050919050565b6133b7816133a0565b82525050565b60006dffffffffffffffffffffffffffff82169050919050565b6133e0816133bd565b82525050565b60006060820190506133fb60008301866133ae565b61340860208301856133d7565b6134156040830184612bc5565b949350505050565b60006134288261304f565b9050919050565b6134388161341d565b82525050565b6000602082019050613453600083018461342f565b92915050565b600082825260208201905092915050565b7f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000600082015250565b60006134a0601983613459565b91506134ab8261346a565b602082019050919050565b600060208201905081810360008301526134cf81613493565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f77697468647261773a206e6f7420676f6f640000000000000000000000000000600082015250565b600061353b601283613459565b915061354682613505565b602082019050919050565b6000602082019050818103600083015261356a8161352e565b9050919050565b7f5769746864726177204e46547320666972737400000000000000000000000000600082015250565b60006135a7601383613459565b91506135b282613571565b602082019050919050565b600060208201905081810360008301526135d68161359a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061361782612bbb565b915061362283612bbb565b925082820390508181111561363a576136396135dd565b5b92915050565b600061364b82612bbb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361367d5761367c6135dd565b5b600182019050919050565b7f77697468647261774e46542c20746f6b656e206e6f7420666f756e6400000000600082015250565b60006136be601c83613459565b91506136c982613688565b602082019050919050565b600060208201905081810360008301526136ed816136b1565b9050919050565b60008151905061370381612d6b565b92915050565b60006020828403121561371f5761371e612bf9565b5b600061372d848285016136f4565b91505092915050565b6000613741826133a0565b915061374c836133a0565b9250828203905061ffff811115613766576137656135dd565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006060820190506137b06000830186613143565b6137bd6020830185613143565b6137ca6040830184612bc5565b949350505050565b7f726573637565546f6b656e203a2077726f6e6720746f6b656e2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061382e602183613459565b9150613839826137d2565b604082019050919050565b6000602082019050818103600083015261385d81613821565b9050919050565b60006040820190506138796000830185613143565b6138866020830184612bc5565b9392505050565b61389681612c8e565b81146138a157600080fd5b50565b6000815190506138b38161388d565b92915050565b6000602082840312156138cf576138ce612bf9565b5b60006138dd848285016138a4565b91505092915050565b7f6f6e6c79417574686f72697a65643a2061646472657373206e6f74206175746860008201527f6f72697a65640000000000000000000000000000000000000000000000000000602082015250565b6000613942602683613459565b915061394d826138e6565b604082019050919050565b6000602082019050818103600083015261397181613935565b9050919050565b600061398382612bbb565b915061398e83612bbb565b92508282019050808211156139a6576139a56135dd565b5b92915050565b7f626f6f7374576974684e4654203a206e6f20636f6e7472616374730000000000600082015250565b60006139e2601b83613459565b91506139ed826139ac565b602082019050919050565b60006020820190508181036000830152613a11816139d5565b9050919050565b7f626f6f7374576974684e46543a20696e636f727265637420636f6e747261637460008201527f2061646472657373000000000000000000000000000000000000000000000000602082015250565b6000613a74602883613459565b9150613a7f82613a18565b604082019050919050565b60006020820190508181036000830152613aa381613a67565b9050919050565b7f5374616b6520746f6b656e73206265666f726520796f75206465706f7369742060008201527f4e46540000000000000000000000000000000000000000000000000000000000602082015250565b6000613b06602383613459565b9150613b1182613aaa565b604082019050919050565b60006020820190508181036000830152613b3581613af9565b9050919050565b7f596f752063616e206465706f736974206d6178696d756d2031204e4654000000600082015250565b6000613b72601d83613459565b9150613b7d82613b3c565b602082019050919050565b60006020820190508181036000830152613ba181613b65565b9050919050565b6000613bb3826133a0565b9150613bbe836133a0565b9250828201905061ffff811115613bd857613bd76135dd565b5b92915050565b7f43616e27742073746f70207374616b696e670000000000000000000000000000600082015250565b6000613c14601283613459565b9150613c1f82613bde565b602082019050919050565b60006020820190508181036000830152613c4381613c07565b9050919050565b6000613c5582612bbb565b9150613c6083612bbb565b9250828202613c6e81612bbb565b91508282048414831517613c8557613c846135dd565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613cc682612bbb565b9150613cd183612bbb565b925082613ce157613ce0613c8c565b5b828204905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613d48602683613459565b9150613d5382613cec565b604082019050919050565b60006020820190508181036000830152613d7781613d3b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613db4602083613459565b9150613dbf82613d7e565b602082019050919050565b60006020820190508181036000830152613de381613da7565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613e20601f83613459565b9150613e2b82613dea565b602082019050919050565b60006020820190508181036000830152613e4f81613e13565b9050919050565b7f5374616b696e67206973206e6f74207374617274656420796574000000000000600082015250565b6000613e8c601a83613459565b9150613e9782613e56565b602082019050919050565b60006020820190508181036000830152613ebb81613e7f565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613f1e602a83613459565b9150613f2982613ec2565b604082019050919050565b60006020820190508181036000830152613f4d81613f11565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613fb0602683613459565b9150613fbb82613f54565b604082019050919050565b60006020820190508181036000830152613fdf81613fa3565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561401a578082015181840152602081019050613fff565b60008484015250505050565b600061403182613fe6565b61403b8185613ff1565b935061404b818560208601613ffc565b80840191505092915050565b60006140638284614026565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006140a4601d83613459565b91506140af8261406e565b602082019050919050565b600060208201905081810360008301526140d381614097565b9050919050565b600081519050919050565b60006140f0826140da565b6140fa8185613459565b935061410a818560208601613ffc565b61411381612de1565b840191505092915050565b6000602082019050818103600083015261413881846140e5565b90509291505056fea2646970667358221220ffd9057ea890ae56cbe42d3464a81e8a1b64820eacb5266eb33f893a72bd12ba64736f6c634300081100330000000000000000000000000cba60ca5ef4d42f92a5070a8fedd13be93e2861
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063863e76db11610104578063b9181611116100a2578063dbdad43211610071578063dbdad4321461052f578063e2bbb1581461055f578063f0b37c041461057b578063f2fde38b14610597576101cf565b8063b9181611146104a9578063be9a6555146104d9578063cbd258b5146104e3578063cfac5d7c14610513576101cf565b806390998c9d116100de57806390998c9d1461040c57806393f1a40b1461043d578063a52acb4b1461046f578063b6a5d7de1461048d576101cf565b8063863e76db146103a05780638da5cb5b146103be5780638dbb1e3a146103dc576101cf565b80632d5310e7116101715780634cf5fbf51161014b5780634cf5fbf51461032e57806354cf5e8b1461034a5780635975e3321461037a578063715018a614610396576101cf565b80632d5310e7146102d85780633bb1bde7146102f45780634460d3cf14610312576101cf565b80630e19dc3a116101ad5780630e19dc3a1461023e578063150b7a021461025a5780631526fe271461028a5780631f2698ab146102ba576101cf565b8063081e3eda146101d457806309aaf684146101f25780630a3b0a4f14610222575b600080fd5b6101dc6105b3565b6040516101e99190612bd4565b60405180910390f35b61020c60048036038101906102079190612c61565b6105c0565b6040516102199190612ca9565b60405180910390f35b61023c60048036038101906102379190612d02565b6105e0565b005b61025860048036038101906102539190612d97565b61076d565b005b610274600480360381019061026f9190612f1d565b610a25565b6040516102819190612fdb565b60405180910390f35b6102a4600480360381019061029f9190612ff6565b610a39565b6040516102b19190613082565b60405180910390f35b6102c2610a83565b6040516102cf9190612ca9565b60405180910390f35b6102f260048036038101906102ed919061309d565b610a96565b005b6102fc611233565b6040516103099190612bd4565b60405180910390f35b61032c60048036038101906103279190612c61565b611239565b005b610348600480360381019061034391906130f0565b6113cf565b005b610364600480360381019061035f9190612c61565b611472565b6040516103719190612bd4565b60405180910390f35b610394600480360381019061038f919061309d565b6117a4565b005b61039e611d13565b005b6103a8611d27565b6040516103b59190612bd4565b60405180910390f35b6103c6611d2d565b6040516103d39190613152565b60405180910390f35b6103f660048036038101906103f1919061316d565b611d56565b6040516104039190612bd4565b60405180910390f35b610426600480360381019061042191906131ad565b611d6c565b604051610434929190613369565b60405180910390f35b610457600480360381019061045291906131ad565b611f67565b604051610466939291906133e6565b60405180910390f35b610477611fc6565b604051610484919061343e565b60405180910390f35b6104a760048036038101906104a29190612c61565b611fec565b005b6104c360048036038101906104be9190612c61565b61204f565b6040516104d09190612ca9565b60405180910390f35b6104e161206f565b005b6104fd60048036038101906104f89190612d02565b6120e4565b60405161050a9190612ca9565b60405180910390f35b61052d60048036038101906105289190612c61565b612104565b005b610549600480360381019061054491906131ad565b612167565b6040516105569190612bd4565b60405180910390f35b6105796004803603810190610574919061316d565b612272565b005b61059560048036038101906105909190612c61565b612291565b005b6105b160048036038101906105ac9190612c61565b6122f4565b005b6000600780549050905090565b60066020528060005260406000206000915054906101000a900460ff1681565b6105e8612377565b8060001515600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461067c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610673906134b6565b60405180910390fd5b6001600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600760405180602001604052808473ffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b6107756123f5565b600060078363ffffffff1681548110610791576107906134d6565b5b9060005260206000200190506000600860008563ffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050828160000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff16101580156108355750600083115b610874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086b90613551565b60405180910390fd5b8060000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff1683036109035760008160000160009054906101000a900461ffff1661ffff1614610902576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f9906135bd565b60405180910390fd5b5b828160000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff1661093d919061360c565b8160000160026101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055506109c233848460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166124449092919063ffffffff16565b8363ffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56885604051610a0f9190612bd4565b60405180910390a35050610a216124ca565b5050565b600063150b7a0260e01b9050949350505050565b60078181548110610a4957600080fd5b906000526020600020016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081565b600960009054906101000a900460ff1681565b610a9e6123f5565b600033905060008060006008600088815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020180549050905060005b6008600089815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020180549050811015610cba578673ffffffffffffffffffffffffffffffffffffffff16600860008a815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018281548110610bde57610bdd6134d6565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610ca75785600860008a815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018281548110610c8a57610c896134d6565b5b906000526020600020015403610ca65760019250809350610cba565b5b8080610cb290613640565b915050610b04565b506001151582151514610d02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf9906136d4565b60405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff1663fc197704866040518263ffffffff1660e01b8152600401610d3b9190612bd4565b602060405180830381865afa158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7c9190613709565b6008600089815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff16610deb9190613736565b92506101000a81548161ffff021916908361ffff1602179055506008600088815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600182610e65919061360c565b81548110610e7657610e756134d6565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166008600089815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018481548110610f0657610f056134d6565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506008600088815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201805480610fb157610fb061376c565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556008600088815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301600182611046919061360c565b81548110611057576110566134d6565b5b90600052602060002001546008600089815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030184815481106110c7576110c66134d6565b5b90600052602060002001819055506008600088815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018054806111385761113761376c565b5b600190038181906000526020600020016000905590558573ffffffffffffffffffffffffffffffffffffffff166342842e0e3086886040518463ffffffff1660e01b815260040161118b9392919061379b565b600060405180830381600087803b1580156111a557600080fd5b505af11580156111b9573d6000803e3d6000fd5b505050508573ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb8760405161121a9190612bd4565b60405180910390a35050505061122e6124ca565b505050565b60045481565b611241612377565b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156112ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c590613844565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113099190613152565b602060405180830381865afa158015611326573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134a9190613709565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611387929190613864565b6020604051808303816000875af11580156113a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ca91906138b9565b505050565b60011515600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145990613958565b60405180910390fd5b61146d8383836124d3565b505050565b6000806008600080815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006114d4600085612167565b90506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b81526004016115339190613152565b602060405180830381865afa158015611550573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115749190613709565b9050600081836115849190613978565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16146117665760008460000160009054906101000a900461ffff1661ffff1603611629576a0422ca8b0a00a4250000008111611611578061161e565b6a0422ca8b0a00a4250000005b94505050505061179f565b60298460000160009054906101000a900461ffff1661ffff1603611677576a084595161401484a000000811161165f578061166c565b6a084595161401484a0000005b94505050505061179f565b60528460000160009054906101000a900461ffff1661ffff16036116c5576a108b2a2c2802909400000081116116ad57806116ba565b6a108b2a2c280290940000005b94505050505061179f565b607b8460000160009054906101000a900461ffff1661ffff1603611713576a18d0bf423c03d8de00000081116116fb5780611708565b6a18d0bf423c03d8de0000005b94505050505061179f565b60ce8460000160009054906101000a900461ffff1661ffff1603611761576a295be96e6406697200000081116117495780611756565b6a295be96e640669720000005b94505050505061179f565b611796565b6aa56fa5b99019a5c8000000811161177e578061178b565b6aa56fa5b99019a5c80000005b94505050505061179f565b60009450505050505b919050565b6117ac6123f5565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461181a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611811906139f8565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166118a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189d90613a8a565b60405180910390fd5b60006008600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff161015611967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195e90613b1c565b60405180910390fd5b60016008600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301805490501115611a01576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f890613b88565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166342842e0e3330846040518463ffffffff1660e01b8152600401611a3e9392919061379b565b600060405180830381600087803b158015611a5857600080fd5b505af1158015611a6c573d6000803e3d6000fd5b505050506008600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506008600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018190806001815401808255809150506001900390600052602060002001600090919091909150558173ffffffffffffffffffffffffffffffffffffffff1663fc197704826040518263ffffffff1660e01b8152600401611bd79190612bd4565b602060405180830381865afa158015611bf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c189190613709565b6008600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff16611c879190613ba8565b92506101000a81548161ffff021916908361ffff1602179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb83604051611cfe9190612bd4565b60405180910390a3611d0e6124ca565b505050565b611d1b612377565b611d2560006127d2565b565b60025481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008282611d64919061360c565b905092915050565b60608060006008600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160020180549050905060008167ffffffffffffffff811115611deb57611dea612df2565b5b604051908082528060200260200182016040528015611e195781602001602082028036833780820191505090505b50905060008267ffffffffffffffff811115611e3857611e37612df2565b5b604051908082528060200260200182016040528015611e665781602001602082028036833780820191505090505b50905060005b83811015611f5557846002018181548110611e8a57611e896134d6565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838281518110611ec857611ec76134d6565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050846003018181548110611f1857611f176134d6565b5b9060005260206000200154828281518110611f3657611f356134d6565b5b6020026020010181815250508080611f4d90613640565b915050611e6c565b50818195509550505050509250929050565b6008602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900461ffff16908060000160029054906101000a90046dffffffffffffffffffffffffffff16908060010154905083565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611ff4612377565b6001600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600b6020528060005260406000206000915054906101000a900460ff1681565b612077612377565b600960009054906101000a900460ff16156120c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120be90613c2a565b60405180910390fd5b6001600960006101000a81548160ff021916908315150217905550565b600a6020528060005260406000206000915054906101000a900460ff1681565b61210c612377565b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000806008600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000806121cd836001015442611d56565b905060006002548460000160009054906101000a900461ffff1661ffff166004546121f89190613978565b836122039190613c4a565b61220d9190613cbb565b61271061221a9190613978565b9050612710818560000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff166122599190613c4a565b6122639190613cbb565b92508294505050505092915050565b61227a6123f5565b6122853383836124d3565b61228d6124ca565b5050565b612299612377565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6122fc612377565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361236b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236290613d5e565b60405180910390fd5b612374816127d2565b50565b61237f612896565b73ffffffffffffffffffffffffffffffffffffffff1661239d611d2d565b73ffffffffffffffffffffffffffffffffffffffff16146123f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ea90613dca565b60405180910390fd5b565b60026001540361243a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243190613e36565b60405180910390fd5b6002600181905550565b6124c58363a9059cbb60e01b8484604051602401612463929190613864565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061289e565b505050565b60018081905550565b600960009054906101000a900460ff16612522576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251990613ea2565b60405180910390fd5b600060078381548110612538576125376134d6565b5b90600052602060002001905060006008600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600083111561277c576125f23330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612965909392919063ffffffff16565b60008160000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff1611156127015760006126358587612167565b90506000848360000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff166126739190613978565b61271086846126829190613978565b61268c9190613c4a565b6126969190613cbb565b905060008360000160009054906101000a900461ffff1661ffff166004546126be9190613978565b612710836126cc919061360c565b6002546126d99190613c4a565b6126e39190613cbb565b905080426126f1919061360c565b846001018190555050505061270b565b4281600101819055505b828160000160029054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff166127459190613978565b8160000160026101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055505b838573ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040516127c39190612bd4565b60405180910390a35050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000612900826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166129ee9092919063ffffffff16565b9050600081511115612960578080602001905181019061292091906138b9565b61295f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295690613f34565b60405180910390fd5b5b505050565b6129e8846323b872dd60e01b8585856040516024016129869392919061379b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061289e565b50505050565b60606129fd8484600085612a06565b90509392505050565b606082471015612a4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4290613fc6565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612a749190614057565b60006040518083038185875af1925050503d8060008114612ab1576040519150601f19603f3d011682016040523d82523d6000602084013e612ab6565b606091505b5091509150612ac787838387612ad3565b92505050949350505050565b60608315612b35576000835103612b2d57612aed85612b48565b612b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b23906140ba565b60405180910390fd5b5b829050612b40565b612b3f8383612b6b565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115612b7e5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb2919061411e565b60405180910390fd5b6000819050919050565b612bce81612bbb565b82525050565b6000602082019050612be96000830184612bc5565b92915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612c2e82612c03565b9050919050565b612c3e81612c23565b8114612c4957600080fd5b50565b600081359050612c5b81612c35565b92915050565b600060208284031215612c7757612c76612bf9565b5b6000612c8584828501612c4c565b91505092915050565b60008115159050919050565b612ca381612c8e565b82525050565b6000602082019050612cbe6000830184612c9a565b92915050565b6000612ccf82612c23565b9050919050565b612cdf81612cc4565b8114612cea57600080fd5b50565b600081359050612cfc81612cd6565b92915050565b600060208284031215612d1857612d17612bf9565b5b6000612d2684828501612ced565b91505092915050565b600063ffffffff82169050919050565b612d4881612d2f565b8114612d5357600080fd5b50565b600081359050612d6581612d3f565b92915050565b612d7481612bbb565b8114612d7f57600080fd5b50565b600081359050612d9181612d6b565b92915050565b60008060408385031215612dae57612dad612bf9565b5b6000612dbc85828601612d56565b9250506020612dcd85828601612d82565b9150509250929050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612e2a82612de1565b810181811067ffffffffffffffff82111715612e4957612e48612df2565b5b80604052505050565b6000612e5c612bef565b9050612e688282612e21565b919050565b600067ffffffffffffffff821115612e8857612e87612df2565b5b612e9182612de1565b9050602081019050919050565b82818337600083830152505050565b6000612ec0612ebb84612e6d565b612e52565b905082815260208101848484011115612edc57612edb612ddc565b5b612ee7848285612e9e565b509392505050565b600082601f830112612f0457612f03612dd7565b5b8135612f14848260208601612ead565b91505092915050565b60008060008060808587031215612f3757612f36612bf9565b5b6000612f4587828801612c4c565b9450506020612f5687828801612c4c565b9350506040612f6787828801612d82565b925050606085013567ffffffffffffffff811115612f8857612f87612bfe565b5b612f9487828801612eef565b91505092959194509250565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612fd581612fa0565b82525050565b6000602082019050612ff06000830184612fcc565b92915050565b60006020828403121561300c5761300b612bf9565b5b600061301a84828501612d82565b91505092915050565b6000819050919050565b600061304861304361303e84612c03565b613023565b612c03565b9050919050565b600061305a8261302d565b9050919050565b600061306c8261304f565b9050919050565b61307c81613061565b82525050565b60006020820190506130976000830184613073565b92915050565b6000806000606084860312156130b6576130b5612bf9565b5b60006130c486828701612d82565b93505060206130d586828701612c4c565b92505060406130e686828701612d82565b9150509250925092565b60008060006060848603121561310957613108612bf9565b5b600061311786828701612c4c565b935050602061312886828701612d82565b925050604061313986828701612d82565b9150509250925092565b61314c81612c23565b82525050565b60006020820190506131676000830184613143565b92915050565b6000806040838503121561318457613183612bf9565b5b600061319285828601612d82565b92505060206131a385828601612d82565b9150509250929050565b600080604083850312156131c4576131c3612bf9565b5b60006131d285828601612d82565b92505060206131e385828601612c4c565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61322281612c23565b82525050565b60006132348383613219565b60208301905092915050565b6000602082019050919050565b6000613258826131ed565b61326281856131f8565b935061326d83613209565b8060005b8381101561329e5781516132858882613228565b975061329083613240565b925050600181019050613271565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6132e081612bbb565b82525050565b60006132f283836132d7565b60208301905092915050565b6000602082019050919050565b6000613316826132ab565b61332081856132b6565b935061332b836132c7565b8060005b8381101561335c57815161334388826132e6565b975061334e836132fe565b92505060018101905061332f565b5085935050505092915050565b60006040820190508181036000830152613383818561324d565b90508181036020830152613397818461330b565b90509392505050565b600061ffff82169050919050565b6133b7816133a0565b82525050565b60006dffffffffffffffffffffffffffff82169050919050565b6133e0816133bd565b82525050565b60006060820190506133fb60008301866133ae565b61340860208301856133d7565b6134156040830184612bc5565b949350505050565b60006134288261304f565b9050919050565b6134388161341d565b82525050565b6000602082019050613453600083018461342f565b92915050565b600082825260208201905092915050565b7f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000600082015250565b60006134a0601983613459565b91506134ab8261346a565b602082019050919050565b600060208201905081810360008301526134cf81613493565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f77697468647261773a206e6f7420676f6f640000000000000000000000000000600082015250565b600061353b601283613459565b915061354682613505565b602082019050919050565b6000602082019050818103600083015261356a8161352e565b9050919050565b7f5769746864726177204e46547320666972737400000000000000000000000000600082015250565b60006135a7601383613459565b91506135b282613571565b602082019050919050565b600060208201905081810360008301526135d68161359a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061361782612bbb565b915061362283612bbb565b925082820390508181111561363a576136396135dd565b5b92915050565b600061364b82612bbb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361367d5761367c6135dd565b5b600182019050919050565b7f77697468647261774e46542c20746f6b656e206e6f7420666f756e6400000000600082015250565b60006136be601c83613459565b91506136c982613688565b602082019050919050565b600060208201905081810360008301526136ed816136b1565b9050919050565b60008151905061370381612d6b565b92915050565b60006020828403121561371f5761371e612bf9565b5b600061372d848285016136f4565b91505092915050565b6000613741826133a0565b915061374c836133a0565b9250828203905061ffff811115613766576137656135dd565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006060820190506137b06000830186613143565b6137bd6020830185613143565b6137ca6040830184612bc5565b949350505050565b7f726573637565546f6b656e203a2077726f6e6720746f6b656e2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061382e602183613459565b9150613839826137d2565b604082019050919050565b6000602082019050818103600083015261385d81613821565b9050919050565b60006040820190506138796000830185613143565b6138866020830184612bc5565b9392505050565b61389681612c8e565b81146138a157600080fd5b50565b6000815190506138b38161388d565b92915050565b6000602082840312156138cf576138ce612bf9565b5b60006138dd848285016138a4565b91505092915050565b7f6f6e6c79417574686f72697a65643a2061646472657373206e6f74206175746860008201527f6f72697a65640000000000000000000000000000000000000000000000000000602082015250565b6000613942602683613459565b915061394d826138e6565b604082019050919050565b6000602082019050818103600083015261397181613935565b9050919050565b600061398382612bbb565b915061398e83612bbb565b92508282019050808211156139a6576139a56135dd565b5b92915050565b7f626f6f7374576974684e4654203a206e6f20636f6e7472616374730000000000600082015250565b60006139e2601b83613459565b91506139ed826139ac565b602082019050919050565b60006020820190508181036000830152613a11816139d5565b9050919050565b7f626f6f7374576974684e46543a20696e636f727265637420636f6e747261637460008201527f2061646472657373000000000000000000000000000000000000000000000000602082015250565b6000613a74602883613459565b9150613a7f82613a18565b604082019050919050565b60006020820190508181036000830152613aa381613a67565b9050919050565b7f5374616b6520746f6b656e73206265666f726520796f75206465706f7369742060008201527f4e46540000000000000000000000000000000000000000000000000000000000602082015250565b6000613b06602383613459565b9150613b1182613aaa565b604082019050919050565b60006020820190508181036000830152613b3581613af9565b9050919050565b7f596f752063616e206465706f736974206d6178696d756d2031204e4654000000600082015250565b6000613b72601d83613459565b9150613b7d82613b3c565b602082019050919050565b60006020820190508181036000830152613ba181613b65565b9050919050565b6000613bb3826133a0565b9150613bbe836133a0565b9250828201905061ffff811115613bd857613bd76135dd565b5b92915050565b7f43616e27742073746f70207374616b696e670000000000000000000000000000600082015250565b6000613c14601283613459565b9150613c1f82613bde565b602082019050919050565b60006020820190508181036000830152613c4381613c07565b9050919050565b6000613c5582612bbb565b9150613c6083612bbb565b9250828202613c6e81612bbb565b91508282048414831517613c8557613c846135dd565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613cc682612bbb565b9150613cd183612bbb565b925082613ce157613ce0613c8c565b5b828204905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613d48602683613459565b9150613d5382613cec565b604082019050919050565b60006020820190508181036000830152613d7781613d3b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613db4602083613459565b9150613dbf82613d7e565b602082019050919050565b60006020820190508181036000830152613de381613da7565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613e20601f83613459565b9150613e2b82613dea565b602082019050919050565b60006020820190508181036000830152613e4f81613e13565b9050919050565b7f5374616b696e67206973206e6f74207374617274656420796574000000000000600082015250565b6000613e8c601a83613459565b9150613e9782613e56565b602082019050919050565b60006020820190508181036000830152613ebb81613e7f565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613f1e602a83613459565b9150613f2982613ec2565b604082019050919050565b60006020820190508181036000830152613f4d81613f11565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613fb0602683613459565b9150613fbb82613f54565b604082019050919050565b60006020820190508181036000830152613fdf81613fa3565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561401a578082015181840152602081019050613fff565b60008484015250505050565b600061403182613fe6565b61403b8185613ff1565b935061404b818560208601613ffc565b80840191505092915050565b60006140638284614026565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006140a4601d83613459565b91506140af8261406e565b602082019050919050565b600060208201905081810360008301526140d381614097565b9050919050565b600081519050919050565b60006140f0826140da565b6140fa8185613459565b935061410a818560208601613ffc565b61411381612de1565b840191505092915050565b6000602082019050818103600083015261413881846140e5565b90509291505056fea2646970667358221220ffd9057ea890ae56cbe42d3464a81e8a1b64820eacb5266eb33f893a72bd12ba64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000cba60ca5ef4d42f92a5070a8fedd13be93e2861
-----Decoded View---------------
Arg [0] : _the (address): 0x0cbA60Ca5eF4D42f92A5070A8fEDD13BE93E2861
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000cba60ca5ef4d42f92a5070a8fedd13be93e2861
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.000224 | 13,164,572.9725 | $2,954.79 |
Loading...
Loading
[ 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.