More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,308 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake Single S... | 16858539 | 661 days ago | IN | 0 ETH | 0.00138133 | ||||
Claim Rewards | 16858538 | 661 days ago | IN | 0 ETH | 0.00088482 | ||||
Claim Rewards | 16532235 | 706 days ago | IN | 0 ETH | 0.00095605 | ||||
Claim Rewards | 16397224 | 725 days ago | IN | 0 ETH | 0.00089018 | ||||
Unstake Serum Pa... | 16397217 | 725 days ago | IN | 0 ETH | 0.00235258 | ||||
Claim Rewards | 16397064 | 725 days ago | IN | 0 ETH | 0.00101038 | ||||
Claim Rewards | 16397023 | 725 days ago | IN | 0 ETH | 0.00101233 | ||||
Claim Rewards | 16397004 | 725 days ago | IN | 0 ETH | 0.0010414 | ||||
Claim Rewards | 16205583 | 752 days ago | IN | 0 ETH | 0.00085393 | ||||
Claim Rewards | 16081915 | 769 days ago | IN | 0 ETH | 0.00064525 | ||||
Claim Rewards | 16008868 | 780 days ago | IN | 0 ETH | 0.0006028 | ||||
Claim Rewards | 15776867 | 812 days ago | IN | 0 ETH | 0.00177124 | ||||
Unstake Serum Pa... | 15677793 | 826 days ago | IN | 0 ETH | 0.00187547 | ||||
Claim Rewards | 15677789 | 826 days ago | IN | 0 ETH | 0.00075523 | ||||
Claim Rewards | 15599142 | 837 days ago | IN | 0 ETH | 0.00048457 | ||||
Stake Single Ser... | 15584740 | 839 days ago | IN | 0 ETH | 0.00323196 | ||||
Claim Rewards | 15487375 | 854 days ago | IN | 0 ETH | 0.00069706 | ||||
Claim Rewards | 15483883 | 854 days ago | IN | 0 ETH | 0.00044175 | ||||
Stake Single Ser... | 15473919 | 856 days ago | IN | 0 ETH | 0.00083294 | ||||
Claim Rewards | 15431750 | 863 days ago | IN | 0 ETH | 0.00096225 | ||||
Claim Rewards | 15431750 | 863 days ago | IN | 0 ETH | 0.00164773 | ||||
Claim Rewards | 15324453 | 880 days ago | IN | 0 ETH | 0.00090342 | ||||
Claim Rewards | 15323541 | 880 days ago | IN | 0 ETH | 0.00082347 | ||||
Claim Rewards | 15317549 | 881 days ago | IN | 0 ETH | 0.00099694 | ||||
Stake Pair Serum | 15310626 | 882 days ago | IN | 0 ETH | 0.00260197 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
VitriolStaker
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 1337 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/ISucker.sol"; contract VitriolStaker is Ownable { using EnumerableSet for EnumerableSet.UintSet; struct SerumPair { uint256 suckerId; } struct UserStake { EnumerableSet.UintSet pairSerums; EnumerableSet.UintSet singleSerums; uint112 lastRewardUpdate; uint256 rewardsAccumulated; } mapping (uint256 => SerumPair) public serumStakes; mapping(address => UserStake) private serumUsers; IERC721 suckerNft; IERC721 serumNft; ISucker suckerToken; uint256 public REWARD_FOR_SERUM_SINGLE = 567129629629629660000; uint256 public REWARD_FOR_SERUM_PAIR = 798611111111111100000; bool stakingEnd; modifier updateRewards(address user) { UserStake storage stakerUser = serumUsers[user]; uint256 rewardBlocks = block.timestamp - stakerUser.lastRewardUpdate; uint256 pairSerums = (rewardBlocks * REWARD_FOR_SERUM_PAIR) * stakerUser.pairSerums.length(); uint256 singleSerums = (rewardBlocks * REWARD_FOR_SERUM_SINGLE) * stakerUser.singleSerums.length(); stakerUser.lastRewardUpdate = uint112(block.timestamp); stakerUser.rewardsAccumulated += (pairSerums + singleSerums); _; } constructor(IERC721 _sucker, IERC721 _serum, ISucker _suckerToken) { suckerNft = _sucker; serumNft = _serum; suckerToken = _suckerToken; } function stakePairSerum(uint256[] memory serumIds, uint256[] memory suckerIds) external updateRewards(msg.sender) { require(serumIds.length == suckerIds.length, "NO_PAIR"); UserStake storage user = serumUsers[msg.sender]; for(uint256 i; i < serumIds.length;) { uint256 serumId = serumIds[i]; uint256 suckerId = suckerIds[i]; require(serumNft.ownerOf(serumId) == msg.sender && suckerNft.ownerOf(suckerId) == msg.sender, "NOT_OWNER"); user.pairSerums.add(serumId); serumStakes[serumId].suckerId = suckerId; serumNft.transferFrom(msg.sender, address(this), serumId); suckerNft.transferFrom(msg.sender, address(this), suckerId); unchecked { ++i; } } } function stakeSingleSerums(uint256[] memory serumIds) external updateRewards(msg.sender) { UserStake storage user = serumUsers[msg.sender]; for(uint256 i; i < serumIds.length;) { uint256 serumId = serumIds[i]; require(serumNft.ownerOf(serumId) == msg.sender, "NOT_OWNER"); user.singleSerums.add(serumId); serumNft.transferFrom(msg.sender, address(this), serumId); unchecked { ++i; } } } function unstakeSerumPairs(uint256[] memory serumIds) external updateRewards(msg.sender) { UserStake storage user = serumUsers[msg.sender]; for(uint256 i; i < serumIds.length;) { uint256 serumId = serumIds[i]; require(user.pairSerums.contains(serumId), "NOT_OWNER"); serumUsers[msg.sender].pairSerums.remove(serumId); uint256 suckerIdPair = serumStakes[serumId].suckerId; serumStakes[serumId].suckerId = 0; suckerNft.transferFrom(address(this), msg.sender, suckerIdPair); serumNft.transferFrom(address(this), msg.sender, serumId); unchecked { ++i; } } } function unstakeSingleSerums(uint256[] memory serumIds) external updateRewards(msg.sender) { UserStake storage user = serumUsers[msg.sender]; for(uint256 i; i < serumIds.length;) { uint256 serumId = serumIds[i]; require(user.singleSerums.contains(serumId), "NOT_OWNER"); serumUsers[msg.sender].singleSerums.remove(serumId); serumNft.transferFrom(address(this),msg.sender, serumId); unchecked { ++i; } } } function claimRewards() external updateRewards(msg.sender) { require(!stakingEnd, "STAKING_END"); UserStake storage user = serumUsers[msg.sender]; uint256 userRewards = user.rewardsAccumulated; require(userRewards > 0, "NO_REWARDS"); user.rewardsAccumulated = 0; suckerToken.mint(msg.sender, userRewards); } function editTokenEmissions(uint256 serumPair, uint256 noPair) external onlyOwner { REWARD_FOR_SERUM_PAIR = serumPair; REWARD_FOR_SERUM_SINGLE = noPair; } function editTokenAddresses(IERC721 _sucker, IERC721 _serum, ISucker _suck) external onlyOwner { suckerNft = _sucker; serumNft = _serum; suckerToken = _suck; } function endStaking(bool _end) external onlyOwner { stakingEnd = _end; } function getUser(address userAddress) view external returns(uint[] memory, uint[] memory, uint, uint) { UserStake storage user = serumUsers[userAddress]; uint[] memory serumsPaired = user.pairSerums.values(); uint[] memory singleSerums = user.singleSerums.values(); return (serumsPaired, singleSerums, user.lastRewardUpdate, user.rewardsAccumulated); } }
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface ISucker is IERC20 { function mint(address receiver, uint256 amount) external; }
// 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 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol) 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 // OpenZeppelin Contracts (last updated v4.6.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 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 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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 1337 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC721","name":"_sucker","type":"address"},{"internalType":"contract IERC721","name":"_serum","type":"address"},{"internalType":"contract ISucker","name":"_suckerToken","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"},{"inputs":[],"name":"REWARD_FOR_SERUM_PAIR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_FOR_SERUM_SINGLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"_sucker","type":"address"},{"internalType":"contract IERC721","name":"_serum","type":"address"},{"internalType":"contract ISucker","name":"_suck","type":"address"}],"name":"editTokenAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"serumPair","type":"uint256"},{"internalType":"uint256","name":"noPair","type":"uint256"}],"name":"editTokenEmissions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_end","type":"bool"}],"name":"endStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"getUser","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"serumStakes","outputs":[{"internalType":"uint256","name":"suckerId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"serumIds","type":"uint256[]"},{"internalType":"uint256[]","name":"suckerIds","type":"uint256[]"}],"name":"stakePairSerum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"serumIds","type":"uint256[]"}],"name":"stakeSingleSerums","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"serumIds","type":"uint256[]"}],"name":"unstakeSerumPairs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"serumIds","type":"uint256[]"}],"name":"unstakeSingleSerums","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052681ebe81315dd8ecfb60600655682b4af49e5521ca46606007553480156200002b57600080fd5b50604051620018ce380380620018ce8339810160408190526200004e9162000105565b62000059336200009c565b600380546001600160a01b039485166001600160a01b03199182161790915560048054938516938216939093179092556005805491909316911617905562000159565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200010257600080fd5b50565b6000806000606084860312156200011b57600080fd5b83516200012881620000ec565b60208501519093506200013b81620000ec565b60408501519092506200014e81620000ec565b809150509250925092565b61176580620001696000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063771a7480116100975780638da5cb5b116100665780638da5cb5b146101e1578063e6607519146101fc578063f2fde38b14610205578063f64b54e81461021857600080fd5b8063771a7480146101845780637b41f8541461019757806388960c6e146101c55780638c07cadc146101d857600080fd5b80634a17db47116100d35780634a17db471461012a5780634a35def31461013d5780636f77926b14610150578063715018a61461017c57600080fd5b80631118e1b9146100fa5780632bba307d1461010f578063372500ab14610122575b600080fd5b61010d6101083660046113e2565b61022b565b005b61010d61011d366004611404565b610295565b61010d610302565b61010d6101383660046114d7565b610510565b61010d61014b3660046114d7565b610771565b61016361015e366004611529565b6109ac565b6040516101739493929190611581565b60405180910390f35b61010d610a13565b61010d6101923660046115ba565b610a79565b6101b76101a536600461161e565b60016020526000908152604090205481565b604051908152602001610173565b61010d6101d3366004611637565b610e29565b6101b760075481565b6000546040516001600160a01b039091168152602001610173565b6101b760065481565b61010d610213366004611529565b610ecf565b61010d6102263660046114d7565b610fb1565b6000546001600160a01b0316331461028a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600791909155600655565b6000546001600160a01b031633146102ef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610281565b6008805460ff1916911515919091179055565b3360008181526002602052604081206004810154909190610333906dffffffffffffffffffffffffffff1642611698565b9050600061034083611197565b60075461034d90846116af565b61035791906116af565b9050600061036784600201611197565b60065461037490856116af565b61037e91906116af565b6004850180546dffffffffffffffffffffffffffff1916426dffffffffffffffffffffffffffff1617905590506103b581836116ce565b8460050160008282546103c891906116ce565b909155505060085460ff16156104205760405162461bcd60e51b815260206004820152600b60248201527f5354414b494e475f454e440000000000000000000000000000000000000000006044820152606401610281565b3360009081526002602052604090206005810154806104815760405162461bcd60e51b815260206004820152600a60248201527f4e4f5f52455741524453000000000000000000000000000000000000000000006044820152606401610281565b6000600583810191909155546040517f40c10f19000000000000000000000000000000000000000000000000000000008152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b1580156104ef57600080fd5b505af1158015610503573d6000803e3d6000fd5b5050505050505050505050565b3360008181526002602052604081206004810154909190610541906dffffffffffffffffffffffffffff1642611698565b9050600061054e83611197565b60075461055b90846116af565b61056591906116af565b9050600061057584600201611197565b60065461058290856116af565b61058c91906116af565b6004850180546dffffffffffffffffffffffffffff1916426dffffffffffffffffffffffffffff1617905590506105c381836116ce565b8460050160008282546105d691906116ce565b9091555050336000908152600260205260408120905b8751811015610767576000888281518110610609576106096116e6565b6020908102919091010151905061062083826111a7565b6106585760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610281565b33600090815260026020526040902061067190826111c2565b50600081815260016020526040808220805492905560035490516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156106d757600080fd5b505af11580156106eb573d6000803e3d6000fd5b5050600480546040516323b872dd60e01b81523092810192909252336024830152604482018690526001600160a01b031692506323b872dd9150606401600060405180830381600087803b15801561074257600080fd5b505af1158015610756573d6000803e3d6000fd5b5050505082600101925050506105ec565b5050505050505050565b33600081815260026020526040812060048101549091906107a2906dffffffffffffffffffffffffffff1642611698565b905060006107af83611197565b6007546107bc90846116af565b6107c691906116af565b905060006107d684600201611197565b6006546107e390856116af565b6107ed91906116af565b6004850180546dffffffffffffffffffffffffffff1916426dffffffffffffffffffffffffffff16179055905061082481836116ce565b84600501600082825461083791906116ce565b9091555050336000908152600260205260408120905b875181101561076757600088828151811061086a5761086a6116e6565b6020908102919091010151600480546040516331a9108f60e11b815291820183905291925033916001600160a01b031690636352211e90602401602060405180830381865afa1580156108c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e591906116fc565b6001600160a01b0316146109275760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610281565b61093460028401826111ce565b50600480546040516323b872dd60e01b81523392810192909252306024830152604482018390526001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561098857600080fd5b505af115801561099c573d6000803e3d6000fd5b505050508160010191505061084d565b6001600160a01b038116600090815260026020526040812060609182918190816109d5826111da565b905060006109e5836002016111da565b60048401546005909401549297509550506dffffffffffffffffffffffffffff909116925090509193509193565b6000546001600160a01b03163314610a6d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610281565b610a7760006111e7565b565b3360008181526002602052604081206004810154909190610aaa906dffffffffffffffffffffffffffff1642611698565b90506000610ab783611197565b600754610ac490846116af565b610ace91906116af565b90506000610ade84600201611197565b600654610aeb90856116af565b610af591906116af565b6004850180546dffffffffffffffffffffffffffff1916426dffffffffffffffffffffffffffff161790559050610b2c81836116ce565b846005016000828254610b3f91906116ce565b90915550508551875114610b955760405162461bcd60e51b815260206004820152600760248201527f4e4f5f50414952000000000000000000000000000000000000000000000000006044820152606401610281565b336000908152600260205260408120905b8851811015610e1e576000898281518110610bc357610bc36116e6565b602002602001015190506000898381518110610be157610be16116e6565b6020908102919091010151600480546040516331a9108f60e11b815291820185905291925033916001600160a01b031690636352211e90602401602060405180830381865afa158015610c38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5c91906116fc565b6001600160a01b0316148015610ce557506003546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa158015610cb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cda91906116fc565b6001600160a01b0316145b610d1d5760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610281565b610d2784836111ce565b50600082815260016020526040908190208290556004805491516323b872dd60e01b81523391810191909152306024820152604481018490526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015610d8f57600080fd5b505af1158015610da3573d6000803e3d6000fd5b50506003546040516323b872dd60e01b8152336004820152306024820152604481018590526001600160a01b0390911692506323b872dd9150606401600060405180830381600087803b158015610df957600080fd5b505af1158015610e0d573d6000803e3d6000fd5b505050508260010192505050610ba6565b505050505050505050565b6000546001600160a01b03163314610e835760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610281565b600380546001600160a01b0394851673ffffffffffffffffffffffffffffffffffffffff1991821617909155600480549385169382169390931790925560058054919093169116179055565b6000546001600160a01b03163314610f295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610281565b6001600160a01b038116610fa55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610281565b610fae816111e7565b50565b3360008181526002602052604081206004810154909190610fe2906dffffffffffffffffffffffffffff1642611698565b90506000610fef83611197565b600754610ffc90846116af565b61100691906116af565b9050600061101684600201611197565b60065461102390856116af565b61102d91906116af565b6004850180546dffffffffffffffffffffffffffff1916426dffffffffffffffffffffffffffff16179055905061106481836116ce565b84600501600082825461107791906116ce565b9091555050336000908152600260205260408120905b87518110156107675760008882815181106110aa576110aa6116e6565b602002602001015190506110ca81846002016111a790919063ffffffff16565b6111025760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610281565b33600090815260026020819052604090912061111f9101826111c2565b50600480546040516323b872dd60e01b81523092810192909252336024830152604482018390526001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561117357600080fd5b505af1158015611187573d6000803e3d6000fd5b505050508160010191505061108d565b60006111a1825490565b92915050565b600081815260018301602052604081205415155b9392505050565b60006111bb8383611244565b60006111bb8383611337565b606060006111bb83611386565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000818152600183016020526040812054801561132d576000611268600183611698565b855490915060009061127c90600190611698565b90508181146112e157600086600001828154811061129c5761129c6116e6565b90600052602060002001549050808760000184815481106112bf576112bf6116e6565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806112f2576112f2611719565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506111a1565b60009150506111a1565b600081815260018301602052604081205461137e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556111a1565b5060006111a1565b6060816000018054806020026020016040519081016040528092919081815260200182805480156113d657602002820191906000526020600020905b8154815260200190600101908083116113c2575b50505050509050919050565b600080604083850312156113f557600080fd5b50508035926020909101359150565b60006020828403121561141657600080fd5b813580151581146111bb57600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f83011261144d57600080fd5b8135602067ffffffffffffffff8083111561146a5761146a611426565b8260051b604051601f19603f8301168101818110848211171561148f5761148f611426565b6040529384528581018301938381019250878511156114ad57600080fd5b83870191505b848210156114cc578135835291830191908301906114b3565b979650505050505050565b6000602082840312156114e957600080fd5b813567ffffffffffffffff81111561150057600080fd5b61150c8482850161143c565b949350505050565b6001600160a01b0381168114610fae57600080fd5b60006020828403121561153b57600080fd5b81356111bb81611514565b600081518084526020808501945080840160005b838110156115765781518752958201959082019060010161155a565b509495945050505050565b6080815260006115946080830187611546565b82810360208401526115a68187611546565b604084019590955250506060015292915050565b600080604083850312156115cd57600080fd5b823567ffffffffffffffff808211156115e557600080fd5b6115f18683870161143c565b9350602085013591508082111561160757600080fd5b506116148582860161143c565b9150509250929050565b60006020828403121561163057600080fd5b5035919050565b60008060006060848603121561164c57600080fd5b833561165781611514565b9250602084013561166781611514565b9150604084013561167781611514565b809150509250925092565b634e487b7160e01b600052601160045260246000fd5b6000828210156116aa576116aa611682565b500390565b60008160001904831182151516156116c9576116c9611682565b500290565b600082198211156116e1576116e1611682565b500190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561170e57600080fd5b81516111bb81611514565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220e9dfac31fc43b069eec6fffe009755978dc1fbe0c2d2aa9697886f44e352416d64736f6c634300080c0033000000000000000000000000fcaecb01d2e095b2cf3e5293afd83bea5e9ff259000000000000000000000000f872857390285037ff6eb97266171890e7bb135d00000000000000000000000035bcf2b1c21562579c3d88ceb9d7149c96397545
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063771a7480116100975780638da5cb5b116100665780638da5cb5b146101e1578063e6607519146101fc578063f2fde38b14610205578063f64b54e81461021857600080fd5b8063771a7480146101845780637b41f8541461019757806388960c6e146101c55780638c07cadc146101d857600080fd5b80634a17db47116100d35780634a17db471461012a5780634a35def31461013d5780636f77926b14610150578063715018a61461017c57600080fd5b80631118e1b9146100fa5780632bba307d1461010f578063372500ab14610122575b600080fd5b61010d6101083660046113e2565b61022b565b005b61010d61011d366004611404565b610295565b61010d610302565b61010d6101383660046114d7565b610510565b61010d61014b3660046114d7565b610771565b61016361015e366004611529565b6109ac565b6040516101739493929190611581565b60405180910390f35b61010d610a13565b61010d6101923660046115ba565b610a79565b6101b76101a536600461161e565b60016020526000908152604090205481565b604051908152602001610173565b61010d6101d3366004611637565b610e29565b6101b760075481565b6000546040516001600160a01b039091168152602001610173565b6101b760065481565b61010d610213366004611529565b610ecf565b61010d6102263660046114d7565b610fb1565b6000546001600160a01b0316331461028a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600791909155600655565b6000546001600160a01b031633146102ef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610281565b6008805460ff1916911515919091179055565b3360008181526002602052604081206004810154909190610333906dffffffffffffffffffffffffffff1642611698565b9050600061034083611197565b60075461034d90846116af565b61035791906116af565b9050600061036784600201611197565b60065461037490856116af565b61037e91906116af565b6004850180546dffffffffffffffffffffffffffff1916426dffffffffffffffffffffffffffff1617905590506103b581836116ce565b8460050160008282546103c891906116ce565b909155505060085460ff16156104205760405162461bcd60e51b815260206004820152600b60248201527f5354414b494e475f454e440000000000000000000000000000000000000000006044820152606401610281565b3360009081526002602052604090206005810154806104815760405162461bcd60e51b815260206004820152600a60248201527f4e4f5f52455741524453000000000000000000000000000000000000000000006044820152606401610281565b6000600583810191909155546040517f40c10f19000000000000000000000000000000000000000000000000000000008152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b1580156104ef57600080fd5b505af1158015610503573d6000803e3d6000fd5b5050505050505050505050565b3360008181526002602052604081206004810154909190610541906dffffffffffffffffffffffffffff1642611698565b9050600061054e83611197565b60075461055b90846116af565b61056591906116af565b9050600061057584600201611197565b60065461058290856116af565b61058c91906116af565b6004850180546dffffffffffffffffffffffffffff1916426dffffffffffffffffffffffffffff1617905590506105c381836116ce565b8460050160008282546105d691906116ce565b9091555050336000908152600260205260408120905b8751811015610767576000888281518110610609576106096116e6565b6020908102919091010151905061062083826111a7565b6106585760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610281565b33600090815260026020526040902061067190826111c2565b50600081815260016020526040808220805492905560035490516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156106d757600080fd5b505af11580156106eb573d6000803e3d6000fd5b5050600480546040516323b872dd60e01b81523092810192909252336024830152604482018690526001600160a01b031692506323b872dd9150606401600060405180830381600087803b15801561074257600080fd5b505af1158015610756573d6000803e3d6000fd5b5050505082600101925050506105ec565b5050505050505050565b33600081815260026020526040812060048101549091906107a2906dffffffffffffffffffffffffffff1642611698565b905060006107af83611197565b6007546107bc90846116af565b6107c691906116af565b905060006107d684600201611197565b6006546107e390856116af565b6107ed91906116af565b6004850180546dffffffffffffffffffffffffffff1916426dffffffffffffffffffffffffffff16179055905061082481836116ce565b84600501600082825461083791906116ce565b9091555050336000908152600260205260408120905b875181101561076757600088828151811061086a5761086a6116e6565b6020908102919091010151600480546040516331a9108f60e11b815291820183905291925033916001600160a01b031690636352211e90602401602060405180830381865afa1580156108c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e591906116fc565b6001600160a01b0316146109275760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610281565b61093460028401826111ce565b50600480546040516323b872dd60e01b81523392810192909252306024830152604482018390526001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561098857600080fd5b505af115801561099c573d6000803e3d6000fd5b505050508160010191505061084d565b6001600160a01b038116600090815260026020526040812060609182918190816109d5826111da565b905060006109e5836002016111da565b60048401546005909401549297509550506dffffffffffffffffffffffffffff909116925090509193509193565b6000546001600160a01b03163314610a6d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610281565b610a7760006111e7565b565b3360008181526002602052604081206004810154909190610aaa906dffffffffffffffffffffffffffff1642611698565b90506000610ab783611197565b600754610ac490846116af565b610ace91906116af565b90506000610ade84600201611197565b600654610aeb90856116af565b610af591906116af565b6004850180546dffffffffffffffffffffffffffff1916426dffffffffffffffffffffffffffff161790559050610b2c81836116ce565b846005016000828254610b3f91906116ce565b90915550508551875114610b955760405162461bcd60e51b815260206004820152600760248201527f4e4f5f50414952000000000000000000000000000000000000000000000000006044820152606401610281565b336000908152600260205260408120905b8851811015610e1e576000898281518110610bc357610bc36116e6565b602002602001015190506000898381518110610be157610be16116e6565b6020908102919091010151600480546040516331a9108f60e11b815291820185905291925033916001600160a01b031690636352211e90602401602060405180830381865afa158015610c38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5c91906116fc565b6001600160a01b0316148015610ce557506003546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa158015610cb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cda91906116fc565b6001600160a01b0316145b610d1d5760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610281565b610d2784836111ce565b50600082815260016020526040908190208290556004805491516323b872dd60e01b81523391810191909152306024820152604481018490526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015610d8f57600080fd5b505af1158015610da3573d6000803e3d6000fd5b50506003546040516323b872dd60e01b8152336004820152306024820152604481018590526001600160a01b0390911692506323b872dd9150606401600060405180830381600087803b158015610df957600080fd5b505af1158015610e0d573d6000803e3d6000fd5b505050508260010192505050610ba6565b505050505050505050565b6000546001600160a01b03163314610e835760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610281565b600380546001600160a01b0394851673ffffffffffffffffffffffffffffffffffffffff1991821617909155600480549385169382169390931790925560058054919093169116179055565b6000546001600160a01b03163314610f295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610281565b6001600160a01b038116610fa55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610281565b610fae816111e7565b50565b3360008181526002602052604081206004810154909190610fe2906dffffffffffffffffffffffffffff1642611698565b90506000610fef83611197565b600754610ffc90846116af565b61100691906116af565b9050600061101684600201611197565b60065461102390856116af565b61102d91906116af565b6004850180546dffffffffffffffffffffffffffff1916426dffffffffffffffffffffffffffff16179055905061106481836116ce565b84600501600082825461107791906116ce565b9091555050336000908152600260205260408120905b87518110156107675760008882815181106110aa576110aa6116e6565b602002602001015190506110ca81846002016111a790919063ffffffff16565b6111025760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610281565b33600090815260026020819052604090912061111f9101826111c2565b50600480546040516323b872dd60e01b81523092810192909252336024830152604482018390526001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561117357600080fd5b505af1158015611187573d6000803e3d6000fd5b505050508160010191505061108d565b60006111a1825490565b92915050565b600081815260018301602052604081205415155b9392505050565b60006111bb8383611244565b60006111bb8383611337565b606060006111bb83611386565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000818152600183016020526040812054801561132d576000611268600183611698565b855490915060009061127c90600190611698565b90508181146112e157600086600001828154811061129c5761129c6116e6565b90600052602060002001549050808760000184815481106112bf576112bf6116e6565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806112f2576112f2611719565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506111a1565b60009150506111a1565b600081815260018301602052604081205461137e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556111a1565b5060006111a1565b6060816000018054806020026020016040519081016040528092919081815260200182805480156113d657602002820191906000526020600020905b8154815260200190600101908083116113c2575b50505050509050919050565b600080604083850312156113f557600080fd5b50508035926020909101359150565b60006020828403121561141657600080fd5b813580151581146111bb57600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f83011261144d57600080fd5b8135602067ffffffffffffffff8083111561146a5761146a611426565b8260051b604051601f19603f8301168101818110848211171561148f5761148f611426565b6040529384528581018301938381019250878511156114ad57600080fd5b83870191505b848210156114cc578135835291830191908301906114b3565b979650505050505050565b6000602082840312156114e957600080fd5b813567ffffffffffffffff81111561150057600080fd5b61150c8482850161143c565b949350505050565b6001600160a01b0381168114610fae57600080fd5b60006020828403121561153b57600080fd5b81356111bb81611514565b600081518084526020808501945080840160005b838110156115765781518752958201959082019060010161155a565b509495945050505050565b6080815260006115946080830187611546565b82810360208401526115a68187611546565b604084019590955250506060015292915050565b600080604083850312156115cd57600080fd5b823567ffffffffffffffff808211156115e557600080fd5b6115f18683870161143c565b9350602085013591508082111561160757600080fd5b506116148582860161143c565b9150509250929050565b60006020828403121561163057600080fd5b5035919050565b60008060006060848603121561164c57600080fd5b833561165781611514565b9250602084013561166781611514565b9150604084013561167781611514565b809150509250925092565b634e487b7160e01b600052601160045260246000fd5b6000828210156116aa576116aa611682565b500390565b60008160001904831182151516156116c9576116c9611682565b500290565b600082198211156116e1576116e1611682565b500190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561170e57600080fd5b81516111bb81611514565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220e9dfac31fc43b069eec6fffe009755978dc1fbe0c2d2aa9697886f44e352416d64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fcaecb01d2e095b2cf3e5293afd83bea5e9ff259000000000000000000000000f872857390285037ff6eb97266171890e7bb135d00000000000000000000000035bcf2b1c21562579c3d88ceb9d7149c96397545
-----Decoded View---------------
Arg [0] : _sucker (address): 0xfcAecB01D2e095b2Cf3E5293AfD83BeA5E9fF259
Arg [1] : _serum (address): 0xF872857390285037ff6EB97266171890e7bB135d
Arg [2] : _suckerToken (address): 0x35bCF2B1c21562579C3d88CeB9D7149c96397545
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000fcaecb01d2e095b2cf3e5293afd83bea5e9ff259
Arg [1] : 000000000000000000000000f872857390285037ff6eb97266171890e7bb135d
Arg [2] : 00000000000000000000000035bcf2b1c21562579c3d88ceb9d7149c96397545
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.