More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 3,657 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 20376577 | 36 days ago | IN | 0 ETH | 0.00057555 | ||||
Claim Rewards | 20328491 | 43 days ago | IN | 0 ETH | 0.00048995 | ||||
Claim Rewards | 18208230 | 340 days ago | IN | 0 ETH | 0.00086266 | ||||
Claim Rewards | 18208217 | 340 days ago | IN | 0 ETH | 0.00118078 | ||||
Claim Rewards | 18208198 | 340 days ago | IN | 0 ETH | 0.00118078 | ||||
Claim Rewards | 18208195 | 340 days ago | IN | 0 ETH | 0.00118078 | ||||
Claim Rewards | 18196464 | 341 days ago | IN | 0 ETH | 0.00102334 | ||||
Claim Rewards | 18196411 | 341 days ago | IN | 0 ETH | 0.00102334 | ||||
Claim Rewards | 18196196 | 341 days ago | IN | 0 ETH | 0.00102334 | ||||
Claim Rewards | 18196188 | 341 days ago | IN | 0 ETH | 0.00102319 | ||||
Claim Rewards | 18196144 | 341 days ago | IN | 0 ETH | 0.00102334 | ||||
Claim Rewards | 18196135 | 341 days ago | IN | 0 ETH | 0.00102334 | ||||
Claim Rewards | 18196104 | 341 days ago | IN | 0 ETH | 0.0006778 | ||||
Claim Rewards | 18196069 | 341 days ago | IN | 0 ETH | 0.0006778 | ||||
Claim Rewards | 17011047 | 508 days ago | IN | 0 ETH | 0.00137376 | ||||
Claim Rewards | 17011029 | 508 days ago | IN | 0 ETH | 0.00183272 | ||||
Withdraw Tokens | 16807416 | 537 days ago | IN | 0 ETH | 0.00188493 | ||||
Withdraw | 16638846 | 560 days ago | IN | 0 ETH | 0.00599657 | ||||
Withdraw | 16622717 | 563 days ago | IN | 0 ETH | 0.00786495 | ||||
Withdraw | 16357043 | 600 days ago | IN | 0 ETH | 0.01376375 | ||||
Withdraw | 16340775 | 602 days ago | IN | 0 ETH | 0.00789675 | ||||
Withdraw | 16303679 | 607 days ago | IN | 0 ETH | 0.04586497 | ||||
Withdraw | 16303643 | 607 days ago | IN | 0 ETH | 0.20074332 | ||||
Withdraw | 16303584 | 607 days ago | IN | 0 ETH | 0.22426225 | ||||
Withdraw | 16303455 | 607 days ago | IN | 0 ETH | 0.07052102 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | ||||
---|---|---|---|---|---|---|---|
20376577 | 36 days ago | 0 ETH | |||||
20376577 | 36 days ago | 0 ETH | |||||
20328491 | 43 days ago | 0 ETH | |||||
18208230 | 340 days ago | 0 ETH | |||||
18208217 | 340 days ago | 0 ETH | |||||
18208198 | 340 days ago | 0 ETH | |||||
18208195 | 340 days ago | 0 ETH | |||||
18196464 | 341 days ago | 0 ETH | |||||
18196411 | 341 days ago | 0 ETH | |||||
18196196 | 341 days ago | 0 ETH | |||||
18196188 | 341 days ago | 0 ETH | |||||
18196144 | 341 days ago | 0 ETH | |||||
18196135 | 341 days ago | 0 ETH | |||||
18196104 | 341 days ago | 0 ETH | |||||
18196069 | 341 days ago | 0 ETH | |||||
17011047 | 508 days ago | 0 ETH | |||||
17011029 | 508 days ago | 0 ETH | |||||
16807416 | 537 days ago | 0 ETH | |||||
16807416 | 537 days ago | 0 ETH | |||||
16638846 | 560 days ago | 0 ETH | |||||
16638846 | 560 days ago | 0 ETH | |||||
16622717 | 563 days ago | 0 ETH | |||||
16622717 | 563 days ago | 0 ETH | |||||
16622717 | 563 days ago | 0 ETH | |||||
16622717 | 563 days ago | 0 ETH |
Loading...
Loading
Contract Name:
ZCAT_STAKING
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import '@openzeppelin/contracts/utils/math/Math.sol'; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract ZCAT_STAKING is Ownable, IERC721Receiver, ReentrancyGuard, Pausable { using EnumerableSet for EnumerableSet.UintSet; //addresses address nullAddress = 0x0000000000000000000000000000000000000000; address public stakingDestinationAddress; address public erc20Address; //uint256's uint256 public expiration; //rate governs how often you receive your token uint256 public rate; // mappings mapping(address => EnumerableSet.UintSet) private _deposits; mapping(address => mapping(uint256 => uint256)) public _depositBlocks; constructor( address _stakingDestinationAddress, uint256 _rate, uint256 _expiration, address _erc20Address ) { stakingDestinationAddress = _stakingDestinationAddress; rate = _rate; expiration = block.number + _expiration; erc20Address = _erc20Address; _pause(); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } /* STAKING MECHANICS */ // Set a multiplier for how many tokens to earn each time a block passes. function setRate(uint256 _rate) public onlyOwner() { rate = _rate; } // Set this to a block to disable the ability to continue accruing tokens past that block number. function setExpiration(uint256 _expiration) public onlyOwner() { expiration = block.number + _expiration; } //check deposit amount. function depositsOf(address account) external view returns (uint256[] memory) { EnumerableSet.UintSet storage depositSet = _deposits[account]; uint256[] memory tokenIds = new uint256[] (depositSet.length()); for (uint256 i; i < depositSet.length(); i++) { tokenIds[i] = depositSet.at(i); } return tokenIds; } function calculateRewards(address account, uint256[] memory tokenIds) public view returns (uint256[] memory rewards) { rewards = new uint256[](tokenIds.length); for (uint256 i; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; rewards[i] = rate * (_deposits[account].contains(tokenId) ? 1 : 0) * (Math.min(block.number, expiration) - _depositBlocks[account][tokenId]); } return rewards; } //reward amount by address/tokenIds[] function calculateReward(address account, uint256 tokenId) public view returns (uint256) { require(Math.min(block.number, expiration) > _depositBlocks[account][tokenId], "Invalid blocks"); return rate * (_deposits[account].contains(tokenId) ? 1 : 0) * (Math.min(block.number, expiration) - _depositBlocks[account][tokenId]); } //reward claim function function claimRewards(uint256[] calldata tokenIds) public whenNotPaused { uint256 reward; uint256 blockCur = Math.min(block.number, expiration); for (uint256 i; i < tokenIds.length; i++) { reward += calculateReward(msg.sender, tokenIds[i]); _depositBlocks[msg.sender][tokenIds[i]] = blockCur; } if (reward > 0) { IERC20(erc20Address).transfer(msg.sender, reward); } } //deposit function. function deposit(uint256[] calldata tokenIds) external whenNotPaused { require(msg.sender != stakingDestinationAddress, "Invalid address"); claimRewards(tokenIds); for (uint256 i; i < tokenIds.length; i++) { IERC721(stakingDestinationAddress).safeTransferFrom( msg.sender, address(this), tokenIds[i], "" ); _deposits[msg.sender].add(tokenIds[i]); } } //withdrawal function. function withdraw(uint256[] calldata tokenIds) external whenNotPaused nonReentrant() { claimRewards(tokenIds); for (uint256 i; i < tokenIds.length; i++) { require( _deposits[msg.sender].contains(tokenIds[i]), "Staking: token not deposited" ); _deposits[msg.sender].remove(tokenIds[i]); IERC721(stakingDestinationAddress).safeTransferFrom( address(this), msg.sender, tokenIds[i], "" ); } } //withdrawal function. function withdrawTokens() external onlyOwner { uint256 tokenSupply = IERC20(erc20Address).balanceOf(address(this)); IERC20(erc20Address).transfer(msg.sender, tokenSupply); } function onERC721Received( address, address, uint256, bytes calldata ) external pure override returns (bytes4) { return IERC721Receiver.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT 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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT 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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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`, 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 be 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT 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 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); }
{ "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":"address","name":"_stakingDestinationAddress","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"},{"internalType":"uint256","name":"_expiration","type":"uint256"},{"internalType":"address","name":"_erc20Address","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"_depositBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"calculateReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"calculateRewards","outputs":[{"internalType":"uint256[]","name":"rewards","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"expiration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_expiration","type":"uint256"}],"name":"setExpiration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingDestinationAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200005357600080fd5b5060405162002d3938038062002d3983398181016040528101906200007991906200033b565b620000996200008d6200017260201b60201c565b6200017a60201b60201c565b600180819055506000600260006101000a81548160ff02191690831515021790555083600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508260068190555081436200011191906200042f565b60058190555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001686200023e60201b60201c565b5050505062000556565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200024e620002f660201b60201c565b1562000291576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200028890620003fc565b60405180910390fd5b6001600260006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002dd6200017260201b60201c565b604051620002ec9190620003df565b60405180910390a1565b6000600260009054906101000a900460ff16905090565b6000815190506200031e8162000522565b92915050565b60008151905062000335816200053c565b92915050565b600080600080608085870312156200035257600080fd5b600062000362878288016200030d565b9450506020620003758782880162000324565b9350506040620003888782880162000324565b92505060606200039b878288016200030d565b91505092959194509250565b620003b2816200048c565b82525050565b6000620003c76010836200041e565b9150620003d482620004f9565b602082019050919050565b6000602082019050620003f66000830184620003a7565b92915050565b600060208201905081810360008301526200041781620003b8565b9050919050565b600082825260208201905092915050565b60006200043c82620004c0565b91506200044983620004c0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620004815762000480620004ca565b5b828201905092915050565b60006200049982620004a0565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6200052d816200048c565b81146200053957600080fd5b50565b6200054781620004c0565b81146200055357600080fd5b50565b6127d380620005666000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063598b8e71116100b85780638d8f2adb1161007c5780638d8f2adb146102f05780638da5cb5b146102fa578063983d95ce14610318578063b343ae1414610334578063e3a9db1a14610364578063f2fde38b1461039457610137565b8063598b8e71146102865780635c975abb146102a25780635eac6239146102c0578063715018a6146102dc5780638456cb59146102e657610137565b80632c4e722e116100ff5780632c4e722e1461020857806334fcf437146102265780633f4ba83a146102425780634665096d1461024c578063515a20ba1461026a57610137565b80630222a2c41461013c578063068c526f1461015a578063150b7a021461018a5780631852e8d9146101ba578063276184ae146101ea575b600080fd5b6101446103b0565b60405161015191906120f9565b60405180910390f35b610174600480360381019061016f9190611dad565b6103d6565b6040516101819190612187565b60405180910390f35b6101a4600480360381019061019f9190611d2d565b6105db565b6040516101b191906121c4565b60405180910390f35b6101d460048036038101906101cf9190611e01565b6105f0565b6040516101e191906122df565b60405180910390f35b6101f2610777565b6040516101ff91906120f9565b60405180910390f35b61021061079d565b60405161021d91906122df565b60405180910390f35b610240600480360381019061023b9190611eab565b6107a3565b005b61024a610829565b005b6102546108af565b60405161026191906122df565b60405180910390f35b610284600480360381019061027f9190611eab565b6108b5565b005b6102a0600480360381019061029b9190611e3d565b610946565b005b6102aa610bb0565b6040516102b791906121a9565b60405180910390f35b6102da60048036038101906102d59190611e3d565b610bc7565b005b6102e4610dec565b005b6102ee610e74565b005b6102f8610efa565b005b6103026110d8565b60405161030f91906120f9565b60405180910390f35b610332600480360381019061032d9190611e3d565b611101565b005b61034e60048036038101906103499190611e01565b6113fe565b60405161035b91906122df565b60405180910390f35b61037e60048036038101906103799190611d04565b611423565b60405161038b9190612187565b60405180910390f35b6103ae60048036038101906103a99190611d04565b61156c565b005b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060815167ffffffffffffffff811115610419577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156104475781602001602082028036833780820191505090505b50905060005b82518110156105d4576000838281518110610491577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828152602001908152602001600020546104f843600554611664565b6105029190612456565b61055382600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061167d90919063ffffffff16565b61055e576000610561565b60015b60ff1660065461057191906123fc565b61057b91906123fc565b8383815181106105b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505080806105cc9061252f565b91505061044d565b5092915050565b600063150b7a0260e01b905095945050505050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000205461064f43600554611664565b1161068f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610686906122bf565b60405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020546106ec43600554611664565b6106f69190612456565b61074783600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061167d90919063ffffffff16565b610752576000610755565b60015b60ff1660065461076591906123fc565b61076f91906123fc565b905092915050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b6107ab611697565b73ffffffffffffffffffffffffffffffffffffffff166107c96110d8565b73ffffffffffffffffffffffffffffffffffffffff161461081f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108169061225f565b60405180910390fd5b8060068190555050565b610831611697565b73ffffffffffffffffffffffffffffffffffffffff1661084f6110d8565b73ffffffffffffffffffffffffffffffffffffffff16146108a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089c9061225f565b60405180910390fd5b6108ad61169f565b565b60055481565b6108bd611697565b73ffffffffffffffffffffffffffffffffffffffff166108db6110d8565b73ffffffffffffffffffffffffffffffffffffffff1614610931576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109289061225f565b60405180910390fd5b804361093d91906123a6565b60058190555050565b61094e610bb0565b1561098e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109859061223f565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a16906121ff565b60405180910390fd5b610a298282610bc7565b60005b82829050811015610bab57600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3330868686818110610ab0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b8152600401610ad593929190612114565b600060405180830381600087803b158015610aef57600080fd5b505af1158015610b03573d6000803e3d6000fd5b50505050610b97838383818110610b43577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061174190919063ffffffff16565b508080610ba39061252f565b915050610a2c565b505050565b6000600260009054906101000a900460ff16905090565b610bcf610bb0565b15610c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c069061223f565b60405180910390fd5b600080610c1e43600554611664565b905060005b84849050811015610d2b57610c7733868684818110610c6b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356105f0565b83610c8291906123a6565b925081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000878785818110610cff577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201358152602001908152602001600020819055508080610d239061252f565b915050610c23565b506000821115610de657600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b8152600401610d9292919061215e565b602060405180830381600087803b158015610dac57600080fd5b505af1158015610dc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de49190611e82565b505b50505050565b610df4611697565b73ffffffffffffffffffffffffffffffffffffffff16610e126110d8565b73ffffffffffffffffffffffffffffffffffffffff1614610e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5f9061225f565b60405180910390fd5b610e72600061175b565b565b610e7c611697565b73ffffffffffffffffffffffffffffffffffffffff16610e9a6110d8565b73ffffffffffffffffffffffffffffffffffffffff1614610ef0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee79061225f565b60405180910390fd5b610ef861181f565b565b610f02611697565b73ffffffffffffffffffffffffffffffffffffffff16610f206110d8565b73ffffffffffffffffffffffffffffffffffffffff1614610f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6d9061225f565b60405180910390fd5b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fd391906120f9565b60206040518083038186803b158015610feb57600080fd5b505afa158015610fff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110239190611ed4565b9050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161108292919061215e565b602060405180830381600087803b15801561109c57600080fd5b505af11580156110b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d49190611e82565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611109610bb0565b15611149576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111409061223f565b60405180910390fd5b6002600154141561118f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111869061229f565b60405180910390fd5b60026001819055506111a18282610bc7565b60005b828290508110156113f25761123f8383838181106111eb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061167d90919063ffffffff16565b61127e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112759061227f565b60405180910390fd5b61130e8383838181106112ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206118c290919063ffffffff16565b50600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033868686818110611388577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b81526004016113ad93929190612114565b600060405180830381600087803b1580156113c757600080fd5b505af11580156113db573d6000803e3d6000fd5b5050505080806113ea9061252f565b9150506111a4565b50600180819055505050565b6008602052816000526040600020602052806000526040600020600091509150505481565b60606000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000611473826118dc565b67ffffffffffffffff8111156114b2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156114e05781602001602082028036833780820191505090505b50905060005b6114ef836118dc565b8110156115615761150981846118f190919063ffffffff16565b828281518110611542577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806115599061252f565b9150506114e6565b508092505050919050565b611574611697565b73ffffffffffffffffffffffffffffffffffffffff166115926110d8565b73ffffffffffffffffffffffffffffffffffffffff16146115e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115df9061225f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f9061221f565b60405180910390fd5b6116618161175b565b50565b60008183106116735781611675565b825b905092915050565b600061168f836000018360001b61190b565b905092915050565b600033905090565b6116a7610bb0565b6116e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116dd906121df565b60405180910390fd5b6000600260006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61172a611697565b60405161173791906120f9565b60405180910390a1565b6000611753836000018360001b61192e565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611827610bb0565b15611867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185e9061223f565b60405180910390fd5b6001600260006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118ab611697565b6040516118b891906120f9565b60405180910390a1565b60006118d4836000018360001b61199e565b905092915050565b60006118ea82600001611b24565b9050919050565b60006119008360000183611b35565b60001c905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600061193a838361190b565b611993578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611998565b600090505b92915050565b60008083600101600084815260200190815260200160002054905060008114611b185760006001826119d09190612456565b90506000600186600001805490506119e89190612456565b9050818114611aa3576000866000018281548110611a2f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110611a79577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611add577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611b1e565b60009150505b92915050565b600081600001805490509050919050565b6000826000018281548110611b73577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b6000611b99611b948461231f565b6122fa565b90508083825260208201905082856020860282011115611bb857600080fd5b60005b85811015611be85781611bce8882611cda565b845260208401935060208301925050600181019050611bbb565b5050509392505050565b600081359050611c0181612758565b92915050565b60008083601f840112611c1957600080fd5b8235905067ffffffffffffffff811115611c3257600080fd5b602083019150836020820283011115611c4a57600080fd5b9250929050565b600082601f830112611c6257600080fd5b8135611c72848260208601611b86565b91505092915050565b600081519050611c8a8161276f565b92915050565b60008083601f840112611ca257600080fd5b8235905067ffffffffffffffff811115611cbb57600080fd5b602083019150836001820283011115611cd357600080fd5b9250929050565b600081359050611ce981612786565b92915050565b600081519050611cfe81612786565b92915050565b600060208284031215611d1657600080fd5b6000611d2484828501611bf2565b91505092915050565b600080600080600060808688031215611d4557600080fd5b6000611d5388828901611bf2565b9550506020611d6488828901611bf2565b9450506040611d7588828901611cda565b935050606086013567ffffffffffffffff811115611d9257600080fd5b611d9e88828901611c90565b92509250509295509295909350565b60008060408385031215611dc057600080fd5b6000611dce85828601611bf2565b925050602083013567ffffffffffffffff811115611deb57600080fd5b611df785828601611c51565b9150509250929050565b60008060408385031215611e1457600080fd5b6000611e2285828601611bf2565b9250506020611e3385828601611cda565b9150509250929050565b60008060208385031215611e5057600080fd5b600083013567ffffffffffffffff811115611e6a57600080fd5b611e7685828601611c07565b92509250509250929050565b600060208284031215611e9457600080fd5b6000611ea284828501611c7b565b91505092915050565b600060208284031215611ebd57600080fd5b6000611ecb84828501611cda565b91505092915050565b600060208284031215611ee657600080fd5b6000611ef484828501611cef565b91505092915050565b6000611f0983836120db565b60208301905092915050565b611f1e8161248a565b82525050565b6000611f2f8261235b565b611f398185612373565b9350611f448361234b565b8060005b83811015611f75578151611f5c8882611efd565b9750611f6783612366565b925050600181019050611f48565b5085935050505092915050565b611f8b8161249c565b82525050565b611f9a816124a8565b82525050565b6000611fad601483612395565b9150611fb8826125e7565b602082019050919050565b6000611fd0600f83612395565b9150611fdb82612610565b602082019050919050565b6000611ff3602683612395565b9150611ffe82612639565b604082019050919050565b6000612016601083612395565b915061202182612688565b602082019050919050565b6000612039602083612395565b9150612044826126b1565b602082019050919050565b600061205c601c83612395565b9150612067826126da565b602082019050919050565b600061207f600083612384565b915061208a82612703565b600082019050919050565b60006120a2601f83612395565b91506120ad82612706565b602082019050919050565b60006120c5600e83612395565b91506120d08261272f565b602082019050919050565b6120e4816124f4565b82525050565b6120f3816124f4565b82525050565b600060208201905061210e6000830184611f15565b92915050565b60006080820190506121296000830186611f15565b6121366020830185611f15565b61214360408301846120ea565b818103606083015261215481612072565b9050949350505050565b60006040820190506121736000830185611f15565b61218060208301846120ea565b9392505050565b600060208201905081810360008301526121a18184611f24565b905092915050565b60006020820190506121be6000830184611f82565b92915050565b60006020820190506121d96000830184611f91565b92915050565b600060208201905081810360008301526121f881611fa0565b9050919050565b6000602082019050818103600083015261221881611fc3565b9050919050565b6000602082019050818103600083015261223881611fe6565b9050919050565b6000602082019050818103600083015261225881612009565b9050919050565b600060208201905081810360008301526122788161202c565b9050919050565b600060208201905081810360008301526122988161204f565b9050919050565b600060208201905081810360008301526122b881612095565b9050919050565b600060208201905081810360008301526122d8816120b8565b9050919050565b60006020820190506122f460008301846120ea565b92915050565b6000612304612315565b905061231082826124fe565b919050565b6000604051905090565b600067ffffffffffffffff82111561233a576123396125a7565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b60006123b1826124f4565b91506123bc836124f4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156123f1576123f0612578565b5b828201905092915050565b6000612407826124f4565b9150612412836124f4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561244b5761244a612578565b5b828202905092915050565b6000612461826124f4565b915061246c836124f4565b92508282101561247f5761247e612578565b5b828203905092915050565b6000612495826124d4565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b612507826125d6565b810181811067ffffffffffffffff82111715612526576125256125a7565b5b80604052505050565b600061253a826124f4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561256d5761256c612578565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f496e76616c696420616464726573730000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5374616b696e673a20746f6b656e206e6f74206465706f736974656400000000600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f496e76616c696420626c6f636b73000000000000000000000000000000000000600082015250565b6127618161248a565b811461276c57600080fd5b50565b6127788161249c565b811461278357600080fd5b50565b61278f816124f4565b811461279a57600080fd5b5056fea2646970667358221220e07ec3b6cd7e81f699f7a18646bf232312d6e47ccbb9ca35a668f93ff660b96564736f6c63430008040033000000000000000000000000de17efac631d766e509c8bb77fc9811b4a3c07500000000000000000000000000000000000000000000000000005ebd312a02aaa0000000000000000000000000000000000000000000000000000000000057e40000000000000000000000000db846f1cd31acc9a6db72a1c58dc1760485505f4
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063598b8e71116100b85780638d8f2adb1161007c5780638d8f2adb146102f05780638da5cb5b146102fa578063983d95ce14610318578063b343ae1414610334578063e3a9db1a14610364578063f2fde38b1461039457610137565b8063598b8e71146102865780635c975abb146102a25780635eac6239146102c0578063715018a6146102dc5780638456cb59146102e657610137565b80632c4e722e116100ff5780632c4e722e1461020857806334fcf437146102265780633f4ba83a146102425780634665096d1461024c578063515a20ba1461026a57610137565b80630222a2c41461013c578063068c526f1461015a578063150b7a021461018a5780631852e8d9146101ba578063276184ae146101ea575b600080fd5b6101446103b0565b60405161015191906120f9565b60405180910390f35b610174600480360381019061016f9190611dad565b6103d6565b6040516101819190612187565b60405180910390f35b6101a4600480360381019061019f9190611d2d565b6105db565b6040516101b191906121c4565b60405180910390f35b6101d460048036038101906101cf9190611e01565b6105f0565b6040516101e191906122df565b60405180910390f35b6101f2610777565b6040516101ff91906120f9565b60405180910390f35b61021061079d565b60405161021d91906122df565b60405180910390f35b610240600480360381019061023b9190611eab565b6107a3565b005b61024a610829565b005b6102546108af565b60405161026191906122df565b60405180910390f35b610284600480360381019061027f9190611eab565b6108b5565b005b6102a0600480360381019061029b9190611e3d565b610946565b005b6102aa610bb0565b6040516102b791906121a9565b60405180910390f35b6102da60048036038101906102d59190611e3d565b610bc7565b005b6102e4610dec565b005b6102ee610e74565b005b6102f8610efa565b005b6103026110d8565b60405161030f91906120f9565b60405180910390f35b610332600480360381019061032d9190611e3d565b611101565b005b61034e60048036038101906103499190611e01565b6113fe565b60405161035b91906122df565b60405180910390f35b61037e60048036038101906103799190611d04565b611423565b60405161038b9190612187565b60405180910390f35b6103ae60048036038101906103a99190611d04565b61156c565b005b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060815167ffffffffffffffff811115610419577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156104475781602001602082028036833780820191505090505b50905060005b82518110156105d4576000838281518110610491577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828152602001908152602001600020546104f843600554611664565b6105029190612456565b61055382600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061167d90919063ffffffff16565b61055e576000610561565b60015b60ff1660065461057191906123fc565b61057b91906123fc565b8383815181106105b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505080806105cc9061252f565b91505061044d565b5092915050565b600063150b7a0260e01b905095945050505050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000205461064f43600554611664565b1161068f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610686906122bf565b60405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020546106ec43600554611664565b6106f69190612456565b61074783600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061167d90919063ffffffff16565b610752576000610755565b60015b60ff1660065461076591906123fc565b61076f91906123fc565b905092915050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b6107ab611697565b73ffffffffffffffffffffffffffffffffffffffff166107c96110d8565b73ffffffffffffffffffffffffffffffffffffffff161461081f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108169061225f565b60405180910390fd5b8060068190555050565b610831611697565b73ffffffffffffffffffffffffffffffffffffffff1661084f6110d8565b73ffffffffffffffffffffffffffffffffffffffff16146108a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089c9061225f565b60405180910390fd5b6108ad61169f565b565b60055481565b6108bd611697565b73ffffffffffffffffffffffffffffffffffffffff166108db6110d8565b73ffffffffffffffffffffffffffffffffffffffff1614610931576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109289061225f565b60405180910390fd5b804361093d91906123a6565b60058190555050565b61094e610bb0565b1561098e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109859061223f565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a16906121ff565b60405180910390fd5b610a298282610bc7565b60005b82829050811015610bab57600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3330868686818110610ab0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b8152600401610ad593929190612114565b600060405180830381600087803b158015610aef57600080fd5b505af1158015610b03573d6000803e3d6000fd5b50505050610b97838383818110610b43577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061174190919063ffffffff16565b508080610ba39061252f565b915050610a2c565b505050565b6000600260009054906101000a900460ff16905090565b610bcf610bb0565b15610c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c069061223f565b60405180910390fd5b600080610c1e43600554611664565b905060005b84849050811015610d2b57610c7733868684818110610c6b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356105f0565b83610c8291906123a6565b925081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000878785818110610cff577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201358152602001908152602001600020819055508080610d239061252f565b915050610c23565b506000821115610de657600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b8152600401610d9292919061215e565b602060405180830381600087803b158015610dac57600080fd5b505af1158015610dc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de49190611e82565b505b50505050565b610df4611697565b73ffffffffffffffffffffffffffffffffffffffff16610e126110d8565b73ffffffffffffffffffffffffffffffffffffffff1614610e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5f9061225f565b60405180910390fd5b610e72600061175b565b565b610e7c611697565b73ffffffffffffffffffffffffffffffffffffffff16610e9a6110d8565b73ffffffffffffffffffffffffffffffffffffffff1614610ef0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee79061225f565b60405180910390fd5b610ef861181f565b565b610f02611697565b73ffffffffffffffffffffffffffffffffffffffff16610f206110d8565b73ffffffffffffffffffffffffffffffffffffffff1614610f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6d9061225f565b60405180910390fd5b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fd391906120f9565b60206040518083038186803b158015610feb57600080fd5b505afa158015610fff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110239190611ed4565b9050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161108292919061215e565b602060405180830381600087803b15801561109c57600080fd5b505af11580156110b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d49190611e82565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611109610bb0565b15611149576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111409061223f565b60405180910390fd5b6002600154141561118f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111869061229f565b60405180910390fd5b60026001819055506111a18282610bc7565b60005b828290508110156113f25761123f8383838181106111eb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061167d90919063ffffffff16565b61127e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112759061227f565b60405180910390fd5b61130e8383838181106112ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206118c290919063ffffffff16565b50600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033868686818110611388577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b81526004016113ad93929190612114565b600060405180830381600087803b1580156113c757600080fd5b505af11580156113db573d6000803e3d6000fd5b5050505080806113ea9061252f565b9150506111a4565b50600180819055505050565b6008602052816000526040600020602052806000526040600020600091509150505481565b60606000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000611473826118dc565b67ffffffffffffffff8111156114b2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156114e05781602001602082028036833780820191505090505b50905060005b6114ef836118dc565b8110156115615761150981846118f190919063ffffffff16565b828281518110611542577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806115599061252f565b9150506114e6565b508092505050919050565b611574611697565b73ffffffffffffffffffffffffffffffffffffffff166115926110d8565b73ffffffffffffffffffffffffffffffffffffffff16146115e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115df9061225f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f9061221f565b60405180910390fd5b6116618161175b565b50565b60008183106116735781611675565b825b905092915050565b600061168f836000018360001b61190b565b905092915050565b600033905090565b6116a7610bb0565b6116e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116dd906121df565b60405180910390fd5b6000600260006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61172a611697565b60405161173791906120f9565b60405180910390a1565b6000611753836000018360001b61192e565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611827610bb0565b15611867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185e9061223f565b60405180910390fd5b6001600260006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118ab611697565b6040516118b891906120f9565b60405180910390a1565b60006118d4836000018360001b61199e565b905092915050565b60006118ea82600001611b24565b9050919050565b60006119008360000183611b35565b60001c905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600061193a838361190b565b611993578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611998565b600090505b92915050565b60008083600101600084815260200190815260200160002054905060008114611b185760006001826119d09190612456565b90506000600186600001805490506119e89190612456565b9050818114611aa3576000866000018281548110611a2f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110611a79577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611add577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611b1e565b60009150505b92915050565b600081600001805490509050919050565b6000826000018281548110611b73577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b6000611b99611b948461231f565b6122fa565b90508083825260208201905082856020860282011115611bb857600080fd5b60005b85811015611be85781611bce8882611cda565b845260208401935060208301925050600181019050611bbb565b5050509392505050565b600081359050611c0181612758565b92915050565b60008083601f840112611c1957600080fd5b8235905067ffffffffffffffff811115611c3257600080fd5b602083019150836020820283011115611c4a57600080fd5b9250929050565b600082601f830112611c6257600080fd5b8135611c72848260208601611b86565b91505092915050565b600081519050611c8a8161276f565b92915050565b60008083601f840112611ca257600080fd5b8235905067ffffffffffffffff811115611cbb57600080fd5b602083019150836001820283011115611cd357600080fd5b9250929050565b600081359050611ce981612786565b92915050565b600081519050611cfe81612786565b92915050565b600060208284031215611d1657600080fd5b6000611d2484828501611bf2565b91505092915050565b600080600080600060808688031215611d4557600080fd5b6000611d5388828901611bf2565b9550506020611d6488828901611bf2565b9450506040611d7588828901611cda565b935050606086013567ffffffffffffffff811115611d9257600080fd5b611d9e88828901611c90565b92509250509295509295909350565b60008060408385031215611dc057600080fd5b6000611dce85828601611bf2565b925050602083013567ffffffffffffffff811115611deb57600080fd5b611df785828601611c51565b9150509250929050565b60008060408385031215611e1457600080fd5b6000611e2285828601611bf2565b9250506020611e3385828601611cda565b9150509250929050565b60008060208385031215611e5057600080fd5b600083013567ffffffffffffffff811115611e6a57600080fd5b611e7685828601611c07565b92509250509250929050565b600060208284031215611e9457600080fd5b6000611ea284828501611c7b565b91505092915050565b600060208284031215611ebd57600080fd5b6000611ecb84828501611cda565b91505092915050565b600060208284031215611ee657600080fd5b6000611ef484828501611cef565b91505092915050565b6000611f0983836120db565b60208301905092915050565b611f1e8161248a565b82525050565b6000611f2f8261235b565b611f398185612373565b9350611f448361234b565b8060005b83811015611f75578151611f5c8882611efd565b9750611f6783612366565b925050600181019050611f48565b5085935050505092915050565b611f8b8161249c565b82525050565b611f9a816124a8565b82525050565b6000611fad601483612395565b9150611fb8826125e7565b602082019050919050565b6000611fd0600f83612395565b9150611fdb82612610565b602082019050919050565b6000611ff3602683612395565b9150611ffe82612639565b604082019050919050565b6000612016601083612395565b915061202182612688565b602082019050919050565b6000612039602083612395565b9150612044826126b1565b602082019050919050565b600061205c601c83612395565b9150612067826126da565b602082019050919050565b600061207f600083612384565b915061208a82612703565b600082019050919050565b60006120a2601f83612395565b91506120ad82612706565b602082019050919050565b60006120c5600e83612395565b91506120d08261272f565b602082019050919050565b6120e4816124f4565b82525050565b6120f3816124f4565b82525050565b600060208201905061210e6000830184611f15565b92915050565b60006080820190506121296000830186611f15565b6121366020830185611f15565b61214360408301846120ea565b818103606083015261215481612072565b9050949350505050565b60006040820190506121736000830185611f15565b61218060208301846120ea565b9392505050565b600060208201905081810360008301526121a18184611f24565b905092915050565b60006020820190506121be6000830184611f82565b92915050565b60006020820190506121d96000830184611f91565b92915050565b600060208201905081810360008301526121f881611fa0565b9050919050565b6000602082019050818103600083015261221881611fc3565b9050919050565b6000602082019050818103600083015261223881611fe6565b9050919050565b6000602082019050818103600083015261225881612009565b9050919050565b600060208201905081810360008301526122788161202c565b9050919050565b600060208201905081810360008301526122988161204f565b9050919050565b600060208201905081810360008301526122b881612095565b9050919050565b600060208201905081810360008301526122d8816120b8565b9050919050565b60006020820190506122f460008301846120ea565b92915050565b6000612304612315565b905061231082826124fe565b919050565b6000604051905090565b600067ffffffffffffffff82111561233a576123396125a7565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b60006123b1826124f4565b91506123bc836124f4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156123f1576123f0612578565b5b828201905092915050565b6000612407826124f4565b9150612412836124f4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561244b5761244a612578565b5b828202905092915050565b6000612461826124f4565b915061246c836124f4565b92508282101561247f5761247e612578565b5b828203905092915050565b6000612495826124d4565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b612507826125d6565b810181811067ffffffffffffffff82111715612526576125256125a7565b5b80604052505050565b600061253a826124f4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561256d5761256c612578565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f496e76616c696420616464726573730000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5374616b696e673a20746f6b656e206e6f74206465706f736974656400000000600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f496e76616c696420626c6f636b73000000000000000000000000000000000000600082015250565b6127618161248a565b811461276c57600080fd5b50565b6127788161249c565b811461278357600080fd5b50565b61278f816124f4565b811461279a57600080fd5b5056fea2646970667358221220e07ec3b6cd7e81f699f7a18646bf232312d6e47ccbb9ca35a668f93ff660b96564736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000de17efac631d766e509c8bb77fc9811b4a3c07500000000000000000000000000000000000000000000000000005ebd312a02aaa0000000000000000000000000000000000000000000000000000000000057e40000000000000000000000000db846f1cd31acc9a6db72a1c58dc1760485505f4
-----Decoded View---------------
Arg [0] : _stakingDestinationAddress (address): 0xDE17efAc631D766E509c8bb77fc9811b4A3C0750
Arg [1] : _rate (uint256): 1666666666666666
Arg [2] : _expiration (uint256): 360000
Arg [3] : _erc20Address (address): 0xdb846f1cD31aCC9a6Db72a1C58dC1760485505f4
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000de17efac631d766e509c8bb77fc9811b4a3c0750
Arg [1] : 0000000000000000000000000000000000000000000000000005ebd312a02aaa
Arg [2] : 0000000000000000000000000000000000000000000000000000000000057e40
Arg [3] : 000000000000000000000000db846f1cd31acc9a6db72a1c58dc1760485505f4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.