More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 312 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Rewards | 14228840 | 967 days ago | IN | 0 ETH | 0.00703997 | ||||
Stake To Level2 | 13990612 | 1004 days ago | IN | 0 ETH | 0.0330627 | ||||
Unstake From Lev... | 13990554 | 1004 days ago | IN | 0 ETH | 0.02463629 | ||||
Unstake From Lev... | 13990546 | 1004 days ago | IN | 0 ETH | 0.01708282 | ||||
Stake To Level2 | 13990531 | 1004 days ago | IN | 0 ETH | 0.02346423 | ||||
Set Accepted Nft... | 13983186 | 1005 days ago | IN | 0 ETH | 0.006692 | ||||
Set Accepted Nft... | 13982880 | 1005 days ago | IN | 0 ETH | 0.00552336 | ||||
Mint Nft With Re... | 13977487 | 1006 days ago | IN | 0 ETH | 0.02355314 | ||||
Claim Rewards | 13977482 | 1006 days ago | IN | 0 ETH | 0.0187168 | ||||
Claim Rewards | 13972980 | 1006 days ago | IN | 0 ETH | 0.05105467 | ||||
Mint Nft With Re... | 13971225 | 1007 days ago | IN | 0 ETH | 0.00685751 | ||||
Claim Rewards | 13970956 | 1007 days ago | IN | 0 ETH | 0.00728551 | ||||
Stake To Level2 | 13957543 | 1009 days ago | IN | 0 ETH | 0.01776768 | ||||
Mint Nft With Re... | 13957257 | 1009 days ago | IN | 0 ETH | 0.00925844 | ||||
Claim Rewards | 13957253 | 1009 days ago | IN | 0 ETH | 0.01043215 | ||||
Stake To Level1 | 13951227 | 1010 days ago | IN | 0 ETH | 0.01866992 | ||||
Stake To Level1 | 13945553 | 1011 days ago | IN | 0 ETH | 0.01757128 | ||||
Mint Nft With Re... | 13939508 | 1012 days ago | IN | 0 ETH | 0.00822564 | ||||
Claim Rewards | 13939503 | 1012 days ago | IN | 0 ETH | 0.01574216 | ||||
Stake To Level1 | 13938201 | 1012 days ago | IN | 0 ETH | 0.01113253 | ||||
Mint Nft With Re... | 13938176 | 1012 days ago | IN | 0 ETH | 0.00514618 | ||||
Claim Rewards | 13938173 | 1012 days ago | IN | 0 ETH | 0.00467418 | ||||
Mint Nft With Re... | 13937956 | 1012 days ago | IN | 0 ETH | 0.0073384 | ||||
Claim Rewards | 13937951 | 1012 days ago | IN | 0 ETH | 0.00653094 | ||||
Mint Nft With Re... | 13935601 | 1012 days ago | IN | 0 ETH | 0.00876962 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Staking
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 10000 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/utils/structs/EnumerableSet.sol'; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; interface IERC20Mintable is IERC20 { function mint(address to, uint256 amount) external; } interface IBlocBurgers { function reservePrivate(uint256 reserveAmount, address reserveAddress) external; function transferOwnership(address newOwner) external; function ticketCounter() external view returns (uint256); function maxTotalSupply() external view returns (uint256); } contract Staking is IERC721Receiver, Ownable, ReentrancyGuard { using EnumerableSet for EnumerableSet.UintSet; using SafeMath for uint256; event NftsRewarded(address indexed receiver, uint256 indexed amount); uint256 public rewardRate; uint256 public rewardRateBonusMultiplier; uint256 public nftMintPriceStage1; uint256 public nftMintPriceStage2; uint256 public nftMintPriceStage3; uint256 public nftMintPriceStage4; uint256 public lossEventMod; // set 10 for 10% uint256 public mintEventMod; // set 20 for 5% address public acceptedNftAddress; address public rewardTokenAddress; address public vaultAddress; mapping(address => mapping(uint256 => uint256)) public level1Timestamps; mapping(address => EnumerableSet.UintSet) private level1TokenIds; mapping(address => mapping(uint256 => uint256)) public level2Timestamps; mapping(address => EnumerableSet.UintSet) private level2TokenIds; uint256 public lastRandomSeed; constructor( address _acceptedNftAddress, address _rewardTokenAddress, address _vaultAddress, uint256 _rewardRate, uint256 _rewardRateBonusMultiplier, uint256 _nftMintPriceStage1, uint256 _nftMintPriceStage2, uint256 _nftMintPriceStage3, uint256 _nftMintPriceStage4, uint256 _mintEventMod, uint256 _lossEventMod ) { rewardRate = _rewardRate; rewardRateBonusMultiplier = _rewardRateBonusMultiplier; acceptedNftAddress = _acceptedNftAddress; rewardTokenAddress = _rewardTokenAddress; vaultAddress = _vaultAddress; nftMintPriceStage1 = _nftMintPriceStage1; nftMintPriceStage2 = _nftMintPriceStage2; nftMintPriceStage3 = _nftMintPriceStage3; nftMintPriceStage4 = _nftMintPriceStage4; mintEventMod = _mintEventMod; lossEventMod = _lossEventMod; } function stakeToLevel1(uint256[] calldata tokenIds) external { for (uint256 i; i < tokenIds.length; i++) { IERC721(acceptedNftAddress).safeTransferFrom(_msgSender(), address(this), tokenIds[i], ''); level1TokenIds[_msgSender()].add(tokenIds[i]); level1Timestamps[_msgSender()][tokenIds[i]] = block.timestamp; } } function unstakeFromLevel1(uint256[] calldata tokenIds) public nonReentrant { uint256 totalRewards = 0; for (uint256 i; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; require(level1TokenIds[_msgSender()].contains(tokenId), 'Data contains not staked token ID'); uint256 lastTimestampForTokenId = level1Timestamps[_msgSender()][tokenId]; if (lastTimestampForTokenId > 0) { level1TokenIds[_msgSender()].remove(tokenId); IERC721(acceptedNftAddress).safeTransferFrom(address(this), _msgSender(), tokenId, ''); uint256 rewardForTokenId = block.timestamp.sub(lastTimestampForTokenId).mul(rewardRate); totalRewards = totalRewards.add(rewardForTokenId); level1Timestamps[_msgSender()][tokenId] = block.timestamp; } } if (totalRewards > 0) IERC20Mintable(rewardTokenAddress).mint(_msgSender(), totalRewards); } function level1TokenIdsForAddress(address ownerAddress) external view returns (uint256[] memory) { EnumerableSet.UintSet storage addressLevel1TokenIds = level1TokenIds[ownerAddress]; uint256[] memory tokenIds = new uint256[](addressLevel1TokenIds.length()); for (uint256 i; i < addressLevel1TokenIds.length(); i++) { tokenIds[i] = addressLevel1TokenIds.at(i); } return tokenIds; } function stakeToLevel2(uint256[] calldata tokenIds) external { for (uint256 i; i < tokenIds.length; i++) { IERC721(acceptedNftAddress).safeTransferFrom(_msgSender(), address(this), tokenIds[i], ''); level2TokenIds[_msgSender()].add(tokenIds[i]); level2Timestamps[_msgSender()][tokenIds[i]] = block.timestamp; } } function unstakeFromLevel2(uint256[] calldata tokenIds) public nonReentrant { uint256 totalRewards = 0; uint256 totalReservations = 0; uint256 nftsReserved = IBlocBurgers(acceptedNftAddress).ticketCounter(); uint256 maxTotalSupply = IBlocBurgers(acceptedNftAddress).maxTotalSupply(); for (uint256 i; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; require(level2TokenIds[_msgSender()].contains(tokenId), 'Data contains not staked token ID'); uint256 lastTimestampForTokenId = level2Timestamps[_msgSender()][tokenId]; if (lastTimestampForTokenId > 0) { level2TokenIds[_msgSender()].remove(tokenId); address nftReceiverAddress = _msgSender(); uint256 randomNumber = getRandomNumber(tokenId); if (randomNumber % lossEventMod == 0) { // 10% chance for nft lost nftReceiverAddress = vaultAddress; } else if (randomNumber % mintEventMod == 0) { // 5% chance for new burger, but check supply if (nftsReserved.add(totalReservations.add(1)) <= maxTotalSupply) { totalReservations = totalReservations.add(1); } } lastRandomSeed = randomNumber; IERC721(acceptedNftAddress).safeTransferFrom(address(this), nftReceiverAddress, tokenId, ''); uint256 rewardForTokenId = block.timestamp.sub(lastTimestampForTokenId).mul(rewardRate); uint256 increasedRewardForTokenId = rewardForTokenId.mul(rewardRateBonusMultiplier); totalRewards = totalRewards.add(increasedRewardForTokenId); level2Timestamps[_msgSender()][tokenId] = block.timestamp; } } if (totalReservations > 0) { IBlocBurgers(acceptedNftAddress).reservePrivate(totalReservations, _msgSender()); emit NftsRewarded(_msgSender(), totalReservations); } if (totalRewards > 0) IERC20Mintable(rewardTokenAddress).mint(_msgSender(), totalRewards); } function level2TokenIdsForAddress(address ownerAddress) external view returns (uint256[] memory) { EnumerableSet.UintSet storage addressLevel2TokenIds = level2TokenIds[ownerAddress]; uint256[] memory tokenIds = new uint256[](addressLevel2TokenIds.length()); for (uint256 i; i < addressLevel2TokenIds.length(); i++) { tokenIds[i] = addressLevel2TokenIds.at(i); } return tokenIds; } function claimRewards() public nonReentrant { uint256 level1TokenIdsSetSize = level1TokenIds[_msgSender()].length(); uint256 level2TokenIdsSetSize = level2TokenIds[_msgSender()].length(); require(level1TokenIdsSetSize.add(level2TokenIdsSetSize) > 0, "Nothing staked"); uint256 totalRewards = 0; for (uint256 i; i < level1TokenIdsSetSize; i++) { uint256 tokenId = level1TokenIds[_msgSender()].at(i); uint256 lastTimestampForTokenId = level1Timestamps[_msgSender()][tokenId]; if (lastTimestampForTokenId > 0) { uint256 rewardForTokenId = block.timestamp.sub(lastTimestampForTokenId).mul(rewardRate); totalRewards = totalRewards.add(rewardForTokenId); level1Timestamps[_msgSender()][tokenId] = block.timestamp; } } for (uint256 i; i < level2TokenIdsSetSize; i++) { uint256 tokenId = level2TokenIds[_msgSender()].at(i); uint256 lastTimestampForTokenId = level2Timestamps[_msgSender()][tokenId]; if (lastTimestampForTokenId > 0) { uint256 rewardForTokenId = block.timestamp.sub(lastTimestampForTokenId).mul(rewardRate); uint256 increasedRewardForTokenId = rewardForTokenId.mul(rewardRateBonusMultiplier); totalRewards = totalRewards.add(increasedRewardForTokenId); level2Timestamps[_msgSender()][tokenId] = block.timestamp; } } require(totalRewards > 0, "Nothing to claim"); IERC20Mintable(rewardTokenAddress).mint(_msgSender(), totalRewards); } function calculateLevel1Rewards(address ownerAddress) public view returns (uint256) { uint256 totalRewards = 0; for (uint256 i; i < level1TokenIds[ownerAddress].length(); i++) { uint256 tokenId = level1TokenIds[ownerAddress].at(i); uint256 lastTimestampForTokenId = level1Timestamps[ownerAddress][tokenId]; if (lastTimestampForTokenId > 0) { uint256 rewardForTokenId = block.timestamp.sub(lastTimestampForTokenId).mul(rewardRate); totalRewards = totalRewards.add(rewardForTokenId); } } return totalRewards; } function calculateLevel2Rewards(address ownerAddress) public view returns (uint256) { uint256 totalRewards = 0; for (uint256 i; i < level2TokenIds[ownerAddress].length(); i++) { uint256 tokenId = level2TokenIds[ownerAddress].at(i); uint256 lastTimestampForTokenId = level2Timestamps[ownerAddress][tokenId]; if (lastTimestampForTokenId > 0) { uint256 rewardForTokenId = block.timestamp.sub(lastTimestampForTokenId).mul(rewardRate); uint256 increasedRewardForTokenId = rewardForTokenId.mul(rewardRateBonusMultiplier); totalRewards = totalRewards.add(increasedRewardForTokenId); } } return totalRewards; } function calculateTotalRewards(address ownerAddress) public view returns (uint256) { return calculateLevel1Rewards(ownerAddress).add(calculateLevel2Rewards(ownerAddress)); } function mintNftWithRewardTokens(uint256 amount) public nonReentrant { require(amount > 0, "Wrong amount"); uint256 nftsReserved = IBlocBurgers(acceptedNftAddress).ticketCounter(); uint256 maxTotalSupply = IBlocBurgers(acceptedNftAddress).maxTotalSupply(); require(nftsReserved.add(amount) <= maxTotalSupply, "Exceeds max supply"); uint256 tokenBalance = IERC20Mintable(rewardTokenAddress).balanceOf(_msgSender()); uint256 nftMintPrice = nftMintPriceStage4; if (nftsReserved <= 1000) { nftMintPrice = nftMintPriceStage1; } else if (nftsReserved <= 2000) { nftMintPrice = nftMintPriceStage2; } else if (nftsReserved <= 3000) { nftMintPrice = nftMintPriceStage3; } uint256 payableTokenAmount = nftMintPrice.mul(amount); require(payableTokenAmount <= tokenBalance, "Not enough token balance"); uint256 allowance = IERC20Mintable(rewardTokenAddress).allowance(_msgSender(), address(this)); require(payableTokenAmount <= allowance, "Not enough token allowance"); IERC20Mintable(rewardTokenAddress).transferFrom(_msgSender(), vaultAddress, payableTokenAmount); IBlocBurgers(acceptedNftAddress).reservePrivate(amount, _msgSender()); } function setAcceptedNftAddress(address _acceptedNftAddress) external onlyOwner { acceptedNftAddress = _acceptedNftAddress; } function setRewardTokenAddress(address _rewardTokenAddress) external onlyOwner { rewardTokenAddress = _rewardTokenAddress; } function setVaultAddress(address _vaultAddress) external onlyOwner { vaultAddress = _vaultAddress; } function setRewardRate(uint256 _rewardRate) external onlyOwner { rewardRate = _rewardRate; } function setRewardRateBonusMultiplier(uint256 _bonusMultiplier) external onlyOwner { rewardRateBonusMultiplier = _bonusMultiplier; } function setMintEventMod(uint256 _mintEventMod) external onlyOwner { mintEventMod = _mintEventMod; } function setLossEventMod(uint256 _lossEventMod) external onlyOwner { lossEventMod = _lossEventMod; } function setNftMintPriceStage1(uint256 _nftMintPrice) external onlyOwner { nftMintPriceStage1 = _nftMintPrice; } function setNftMintPriceStage2(uint256 _nftMintPrice) external onlyOwner { nftMintPriceStage2 = _nftMintPrice; } function setNftMintPriceStage3(uint256 _nftMintPrice) external onlyOwner { nftMintPriceStage3 = _nftMintPrice; } function setNftMintPriceStage4(uint256 _nftMintPrice) external onlyOwner { nftMintPriceStage4 = _nftMintPrice; } function setAcceptedNftContractOwnership(address _newOwner) external onlyOwner { IBlocBurgers(acceptedNftAddress).transferOwnership(_newOwner); } function getRandomNumber(uint256 seed) internal view returns (uint256) { return uint256(keccak256(abi.encodePacked( tx.origin, blockhash(block.number - 1), block.timestamp, seed, lastRandomSeed ))) & 0xFFFF; } 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 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; // 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; /** * @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 "../../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 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; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// 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 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": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_acceptedNftAddress","type":"address"},{"internalType":"address","name":"_rewardTokenAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"uint256","name":"_rewardRate","type":"uint256"},{"internalType":"uint256","name":"_rewardRateBonusMultiplier","type":"uint256"},{"internalType":"uint256","name":"_nftMintPriceStage1","type":"uint256"},{"internalType":"uint256","name":"_nftMintPriceStage2","type":"uint256"},{"internalType":"uint256","name":"_nftMintPriceStage3","type":"uint256"},{"internalType":"uint256","name":"_nftMintPriceStage4","type":"uint256"},{"internalType":"uint256","name":"_mintEventMod","type":"uint256"},{"internalType":"uint256","name":"_lossEventMod","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NftsRewarded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"acceptedNftAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ownerAddress","type":"address"}],"name":"calculateLevel1Rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ownerAddress","type":"address"}],"name":"calculateLevel2Rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ownerAddress","type":"address"}],"name":"calculateTotalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRandomSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"level1Timestamps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ownerAddress","type":"address"}],"name":"level1TokenIdsForAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"level2Timestamps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ownerAddress","type":"address"}],"name":"level2TokenIdsForAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lossEventMod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEventMod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintNftWithRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nftMintPriceStage1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftMintPriceStage2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftMintPriceStage3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftMintPriceStage4","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRateBonusMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_acceptedNftAddress","type":"address"}],"name":"setAcceptedNftAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setAcceptedNftContractOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lossEventMod","type":"uint256"}],"name":"setLossEventMod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintEventMod","type":"uint256"}],"name":"setMintEventMod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftMintPrice","type":"uint256"}],"name":"setNftMintPriceStage1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftMintPrice","type":"uint256"}],"name":"setNftMintPriceStage2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftMintPrice","type":"uint256"}],"name":"setNftMintPriceStage3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftMintPrice","type":"uint256"}],"name":"setNftMintPriceStage4","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardRate","type":"uint256"}],"name":"setRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bonusMultiplier","type":"uint256"}],"name":"setRewardRateBonusMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardTokenAddress","type":"address"}],"name":"setRewardTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"setVaultAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeToLevel1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeToLevel2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstakeFromLevel1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstakeFromLevel2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162002c5938038062002c5983398101604081905262000034916200011e565b6200003f33620000b1565b60018055600297909755600395909555600a80546001600160a01b03199081166001600160a01b039b8c1617909155600b80548216998b1699909917909855600c80549098169690981695909517909555600455600593909355600691909155600792909255600955600855620001b8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200011957600080fd5b919050565b60008060008060008060008060008060006101608c8e03121562000140578687fd5b6200014b8c62000101565b9a506200015b60208d0162000101565b99506200016b60408d0162000101565b985060608c0151975060808c0151965060a08c0151955060c08c0151945060e08c015193506101008c015192506101208c015191506101408c015190509295989b509295989b9093969950565b612a9180620001c86000396000f3fe608060405234801561001057600080fd5b50600436106102d35760003560e01c80635a47fd8211610186578063943c89b8116100e3578063c58e2e1711610097578063eb794c3f11610071578063eb794c3f146105f8578063f2fde38b1461060b578063f528babd1461061e57600080fd5b8063c58e2e17146105bc578063d62833cb146105dc578063d92d9668146105ef57600080fd5b80639c2f62be116100c85780639c2f62be1461058d5780639e447fc6146105a0578063be2c6628146105b357600080fd5b8063943c89b8146105675780639a6acf201461057a57600080fd5b80637a5374881161013a57806385535cc51161011f57806385535cc5146105305780638980e6ba146105435780638da5cb5b1461055657600080fd5b80637a5374881461051e5780637b0a47ee1461052757600080fd5b80636f3340d31161016b5780636f3340d3146104d857806370c8a37114610503578063715018a61461051657600080fd5b80635a47fd821461049a57806363688282146104c557600080fd5b806335e56f771161023457806347ca1f48116101e85780634d570606116101cd5780634d570606146104615780634de7e473146104745780634f15da6c1461048757600080fd5b806347ca1f481461043b5780634a21e5de1461044e57600080fd5b80633fcd1dde116102195780633fcd1dde14610416578063430bf08a1461041f578063467ae26c1461043257600080fd5b806335e56f7714610405578063372500ab1461040e57600080fd5b80631db548b71161028b5780632695f099116102705780632695f099146103d657806328ab9cc0146103e957806334aa96a5146103f257600080fd5b80631db548b7146103b057806321c79317146103c357600080fd5b806311ca25cd116102bc57806311ca25cd14610309578063125f9e3314610334578063150b7a021461034757600080fd5b806305a0429d146102d85780630dde44fa146102ed575b600080fd5b6102eb6102e636600461290c565b610631565b005b6102f660075481565b6040519081526020015b60405180910390f35b600a5461031c906001600160a01b031681565b6040516001600160a01b039091168152602001610300565b600b5461031c906001600160a01b031681565b61037f6103553660046127bd565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610300565b6102eb6103be3660046127a3565b610695565b6102eb6103d136600461287c565b610729565b6102eb6103e43660046127a3565b610ca5565b6102f660045481565b6102eb61040036600461290c565b610d7a565b6102f660065481565b6102eb610dd9565b6102f660035481565b600c5461031c906001600160a01b031681565b6102f660095481565b6102f66104493660046127a3565b61110e565b6102eb61045c36600461290c565b6111e4565b6102eb61046f36600461290c565b611243565b6102eb61048236600461290c565b6112a2565b6102f66104953660046127a3565b611301565b6102f66104a8366004612853565b600f60209081526000928352604080842090915290825290205481565b6102eb6104d336600461290c565b6113b6565b6102f66104e6366004612853565b600d60209081526000928352604080842090915290825290205481565b6102f66105113660046127a3565b611415565b6102eb611438565b6102f660055481565b6102f660025481565b6102eb61053e3660046127a3565b61149e565b6102eb61055136600461287c565b611532565b6000546001600160a01b031661031c565b6102eb61057536600461287c565b611803565b6102eb6105883660046127a3565b61198d565b6102eb61059b36600461287c565b611a21565b6102eb6105ae36600461290c565b611b87565b6102f660115481565b6105cf6105ca3660046127a3565b611be6565b604051610300919061293c565b6102eb6105ea36600461290c565b611cbe565b6102f660085481565b6102eb61060636600461290c565b611d1d565b6102eb6106193660046127a3565b6122bf565b6105cf61062c3660046127a3565b6123a1565b6000546001600160a01b031633146106905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600855565b6000546001600160a01b031633146106ef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600a80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6002600154141561077c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610687565b60026001819055506000806000600a60009054906101000a90046001600160a01b03166001600160a01b0316638c4d59d06040518163ffffffff1660e01b815260040160206040518083038186803b1580156107d757600080fd5b505afa1580156107eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080f9190612924565b90506000600a60009054906101000a90046001600160a01b03166001600160a01b0316632ab4d0526040518163ffffffff1660e01b815260040160206040518083038186803b15801561086157600080fd5b505afa158015610875573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108999190612924565b905060005b85811015610b395760008787838181106108c857634e487b7160e01b600052603260045260246000fd5b9050602002013590506108ff81601060006108e03390565b6001600160a01b03168152602081019190915260400160002090612471565b6109715760405162461bcd60e51b815260206004820152602160248201527f4461746120636f6e7461696e73206e6f74207374616b656420746f6b656e204960448201527f44000000000000000000000000000000000000000000000000000000000000006064820152608401610687565b336000908152600f602090815260408083208484529091529020548015610b24576109bb8260106000335b6001600160a01b0316815260208101919091526040016000209061248c565b503360006109c884612498565b9050600854816109d89190612a25565b6109ef57600c546001600160a01b03169150610a29565b6009546109fc9082612a25565b610a295785610a16610a0f8a6001612535565b8990612535565b11610a2957610a26886001612535565b97505b6011819055600a546040517fb88d4fde0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0384811660248301526044820187905260806064830152600060848301529091169063b88d4fde9060a401600060405180830381600087803b158015610aa957600080fd5b505af1158015610abd573d6000803e3d6000fd5b505060025460009250610adb9150610ad54287612541565b9061254d565b90506000610af46003548361254d90919063ffffffff16565b9050610b008b82612535565b336000908152600f602090815260408083208a845290915290204290559a50505050505b50508080610b31906129ec565b91505061089e565b508215610c0857600a546001600160a01b031663ddd9fb4684336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b158015610bb257600080fd5b505af1158015610bc6573d6000803e3d6000fd5b5050505082610bd23390565b6001600160a01b03167fdbf1736f8bce579ca3d1049f1c99a2d93a14e936518272719dc17d0ce405b8db60405160405180910390a35b8315610c9957600b546001600160a01b03166340c10f19336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260248101879052604401600060405180830381600087803b158015610c8057600080fd5b505af1158015610c94573d6000803e3d6000fd5b505050505b50506001805550505050565b6000546001600160a01b03163314610cff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600a546040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301529091169063f2fde38b90602401600060405180830381600087803b158015610d5f57600080fd5b505af1158015610d73573d6000803e3d6000fd5b5050505050565b6000546001600160a01b03163314610dd45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600555565b60026001541415610e2c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610687565b60026001556000610e60600e82335b6001600160a01b03166001600160a01b03168152602001908152602001600020612559565b90506000610e7060108233610e3b565b90506000610e7e8383612535565b11610ecb5760405162461bcd60e51b815260206004820152600e60248201527f4e6f7468696e67207374616b65640000000000000000000000000000000000006044820152606401610687565b6000805b83811015610f7b576000610f0182600e83335b6001600160a01b03168152602081019190915260400160002090612563565b336000908152600d602090815260408083208484529091529020549091508015610f6657600254600090610f3990610ad54285612541565b9050610f458582612535565b336000908152600d6020908152604080832087845290915290204290559450505b50508080610f73906129ec565b915050610ecf565b5060005b8281101561102a576000610f968260108333610ee2565b336000908152600f60209081526040808320848452909152902054909150801561101557600254600090610fce90610ad54285612541565b90506000610fe76003548361254d90919063ffffffff16565b9050610ff38682612535565b336000908152600f602090815260408083208884529091529020429055955050505b50508080611022906129ec565b915050610f7f565b506000811161107b5760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d000000000000000000000000000000006044820152606401610687565b600b546001600160a01b03166340c10f19336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b1580156110ed57600080fd5b505af1158015611101573d6000803e3d6000fd5b5050600180555050505050565b600080805b6001600160a01b038416600090815260106020526040902061113490612559565b8110156111dd576001600160a01b038416600090815260106020526040812061115d9083612563565b6001600160a01b0386166000908152600f6020908152604080832084845290915290205490915080156111c85760025460009061119e90610ad54285612541565b905060006111b76003548361254d90919063ffffffff16565b90506111c38682612535565b955050505b505080806111d5906129ec565b915050611113565b5092915050565b6000546001600160a01b0316331461123e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600655565b6000546001600160a01b0316331461129d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600955565b6000546001600160a01b031633146112fc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600755565b600080805b6001600160a01b0384166000908152600e6020526040902061132790612559565b8110156111dd576001600160a01b0384166000908152600e602052604081206113509083612563565b6001600160a01b0386166000908152600d6020908152604080832084845290915290205490915080156113a15760025460009061139190610ad54285612541565b905061139d8582612535565b9450505b505080806113ae906129ec565b915050611306565b6000546001600160a01b031633146114105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600455565b60006114326114238361110e565b61142c84611301565b90612535565b92915050565b6000546001600160a01b031633146114925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b61149c600061256f565b565b6000546001600160a01b031633146114f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600260015414156115855760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610687565b60026001556000805b828110156117685760008484838181106115b857634e487b7160e01b600052603260045260246000fd5b9050602002013590506115d081600e60006108e03390565b6116425760405162461bcd60e51b815260206004820152602160248201527f4461746120636f6e7461696e73206e6f74207374616b656420746f6b656e204960448201527f44000000000000000000000000000000000000000000000000000000000000006064820152608401610687565b336000908152600d6020908152604080832084845290915290205480156117535761167182600e60003361099c565b50600a546001600160a01b031663b88d4fde30336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0392831660048201529116602482015260448101859052608060648201526000608482015260a401600060405180830381600087803b1580156116fa57600080fd5b505af115801561170e573d6000803e3d6000fd5b5050600254600092506117269150610ad54285612541565b90506117328582612535565b336000908152600d6020908152604080832087845290915290204290559450505b50508080611760906129ec565b91505061158e565b5080156117fa57600b546001600160a01b03166340c10f19336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b1580156117e157600080fd5b505af11580156117f5573d6000803e3d6000fd5b505050505b50506001805550565b60005b8181101561198857600a546001600160a01b031663b88d4fde333086868681811061184157634e487b7160e01b600052603260045260246000fd5b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152608060648201526000608482015260a401600060405180830381600087803b1580156118be57600080fd5b505af11580156118d2573d6000803e3d6000fd5b5050505061192a8383838181106118f957634e487b7160e01b600052603260045260246000fd5b90506020020135600e600061190b3390565b6001600160a01b031681526020810191909152604001600020906125d7565b50336000908152600d60205260408120429185858581811061195c57634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020819055508080611980906129ec565b915050611806565b505050565b6000546001600160a01b031633146119e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60005b8181101561198857600a546001600160a01b031663b88d4fde3330868686818110611a5f57634e487b7160e01b600052603260045260246000fd5b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152608060648201526000608482015260a401600060405180830381600087803b158015611adc57600080fd5b505af1158015611af0573d6000803e3d6000fd5b50505050611b29838383818110611b1757634e487b7160e01b600052603260045260246000fd5b905060200201356010600061190b3390565b50336000908152600f602052604081204291858585818110611b5b57634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020819055508080611b7f906129ec565b915050611a24565b6000546001600160a01b03163314611be15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600255565b6001600160a01b0381166000908152600e60205260408120606091611c0a82612559565b67ffffffffffffffff811115611c3057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611c59578160200160208202803683370190505b50905060005b611c6883612559565b811015611cb657611c798382612563565b828281518110611c9957634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611cae816129ec565b915050611c5f565b509392505050565b6000546001600160a01b03163314611d185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600355565b60026001541415611d705760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610687565b600260015580611dc25760405162461bcd60e51b815260206004820152600c60248201527f57726f6e6720616d6f756e7400000000000000000000000000000000000000006044820152606401610687565b600a54604080517f8c4d59d000000000000000000000000000000000000000000000000000000000815290516000926001600160a01b031691638c4d59d0916004808301926020929190829003018186803b158015611e2057600080fd5b505afa158015611e34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e589190612924565b90506000600a60009054906101000a90046001600160a01b03166001600160a01b0316632ab4d0526040518163ffffffff1660e01b815260040160206040518083038186803b158015611eaa57600080fd5b505afa158015611ebe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee29190612924565b905080611eef8385612535565b1115611f3d5760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820737570706c7900000000000000000000000000006044820152606401610687565b600b546000906001600160a01b03166370a08231336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015611fa957600080fd5b505afa158015611fbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe19190612924565b6007549091506103e88411611ff95750600454612019565b6107d0841161200b5750600554612019565b610bb8841161201957506006545b6000612025828761254d565b9050828111156120775760405162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f75676820746f6b656e2062616c616e636500000000000000006044820152606401610687565b600b546000906001600160a01b031663dd62ed3e336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b1580156120e957600080fd5b505afa1580156120fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121219190612924565b9050808211156121735760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f75676820746f6b656e20616c6c6f77616e63650000000000006044820152606401610687565b600b546001600160a01b03166323b872dd33600c5460405160e084901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b0392831660048201529116602482015260448101859052606401602060405180830381600087803b1580156121ef57600080fd5b505af1158015612203573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222791906128ec565b50600a546001600160a01b031663ddd9fb4688336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b15801561229a57600080fd5b505af11580156122ae573d6000803e3d6000fd5b505060018055505050505050505050565b6000546001600160a01b031633146123195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b6001600160a01b0381166123955760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610687565b61239e8161256f565b50565b6001600160a01b03811660009081526010602052604081206060916123c582612559565b67ffffffffffffffff8111156123eb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612414578160200160208202803683370190505b50905060005b61242383612559565b811015611cb6576124348382612563565b82828151811061245457634e487b7160e01b600052603260045260246000fd5b602090810291909101015280612469816129ec565b91505061241a565b600081815260018301602052604081205415155b9392505050565b600061248583836125e3565b6000326124a66001436129d5565b60115460405160609390931b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660208401529040603483015242605483015260748201849052609482015260b401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012061ffff1692915050565b60006124858284612980565b600061248582846129d5565b60006124858284612998565b6000611432825490565b60006124858383612700565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006124858383612738565b600081815260018301602052604081205480156126f65760006126076001836129d5565b855490915060009061261b906001906129d5565b905081811461269c57600086600001828154811061264957634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061267a57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806126bb57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611432565b6000915050611432565b600082600001828154811061272557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600081815260018301602052604081205461277f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611432565b506000611432565b80356001600160a01b038116811461279e57600080fd5b919050565b6000602082840312156127b4578081fd5b61248582612787565b6000806000806000608086880312156127d4578081fd5b6127dd86612787565b94506127eb60208701612787565b935060408601359250606086013567ffffffffffffffff8082111561280e578283fd5b818801915088601f830112612821578283fd5b81358181111561282f578384fd5b896020828501011115612840578384fd5b9699959850939650602001949392505050565b60008060408385031215612865578182fd5b61286e83612787565b946020939093013593505050565b6000806020838503121561288e578182fd5b823567ffffffffffffffff808211156128a5578384fd5b818501915085601f8301126128b8578384fd5b8135818111156128c6578485fd5b8660208260051b85010111156128da578485fd5b60209290920196919550909350505050565b6000602082840312156128fd578081fd5b81518015158114612485578182fd5b60006020828403121561291d578081fd5b5035919050565b600060208284031215612935578081fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b8181101561297457835183529284019291840191600101612958565b50909695505050505050565b6000821982111561299357612993612a45565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156129d0576129d0612a45565b500290565b6000828210156129e7576129e7612a45565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612a1e57612a1e612a45565b5060010190565b600082612a4057634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220235add4cac66fa461ef9bee24ffd40134352e58e6763d67b0273b0ea561680a864736f6c6343000804003300000000000000000000000058d2035cc2aa0d9d8b8a02b1192bf20d17bf726f0000000000000000000000004ba01fd3ab1d33eb69fa45dd5f5d9e9c2d58279e000000000000000000000000f4b896bc0365b3eb9e2ba9c9934fcc3363cbf76100000000000000000000000000000000000000000000000000041ca7e961012f000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000005150ae84a8cdf000000000000000000000000000000000000000000000000000a2a15d09519be0000000000000000000000000000000000000000000000000014542ba12a337c0000000000000000000000000000000000000000000000000021e19e0c9bab24000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102d35760003560e01c80635a47fd8211610186578063943c89b8116100e3578063c58e2e1711610097578063eb794c3f11610071578063eb794c3f146105f8578063f2fde38b1461060b578063f528babd1461061e57600080fd5b8063c58e2e17146105bc578063d62833cb146105dc578063d92d9668146105ef57600080fd5b80639c2f62be116100c85780639c2f62be1461058d5780639e447fc6146105a0578063be2c6628146105b357600080fd5b8063943c89b8146105675780639a6acf201461057a57600080fd5b80637a5374881161013a57806385535cc51161011f57806385535cc5146105305780638980e6ba146105435780638da5cb5b1461055657600080fd5b80637a5374881461051e5780637b0a47ee1461052757600080fd5b80636f3340d31161016b5780636f3340d3146104d857806370c8a37114610503578063715018a61461051657600080fd5b80635a47fd821461049a57806363688282146104c557600080fd5b806335e56f771161023457806347ca1f48116101e85780634d570606116101cd5780634d570606146104615780634de7e473146104745780634f15da6c1461048757600080fd5b806347ca1f481461043b5780634a21e5de1461044e57600080fd5b80633fcd1dde116102195780633fcd1dde14610416578063430bf08a1461041f578063467ae26c1461043257600080fd5b806335e56f7714610405578063372500ab1461040e57600080fd5b80631db548b71161028b5780632695f099116102705780632695f099146103d657806328ab9cc0146103e957806334aa96a5146103f257600080fd5b80631db548b7146103b057806321c79317146103c357600080fd5b806311ca25cd116102bc57806311ca25cd14610309578063125f9e3314610334578063150b7a021461034757600080fd5b806305a0429d146102d85780630dde44fa146102ed575b600080fd5b6102eb6102e636600461290c565b610631565b005b6102f660075481565b6040519081526020015b60405180910390f35b600a5461031c906001600160a01b031681565b6040516001600160a01b039091168152602001610300565b600b5461031c906001600160a01b031681565b61037f6103553660046127bd565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610300565b6102eb6103be3660046127a3565b610695565b6102eb6103d136600461287c565b610729565b6102eb6103e43660046127a3565b610ca5565b6102f660045481565b6102eb61040036600461290c565b610d7a565b6102f660065481565b6102eb610dd9565b6102f660035481565b600c5461031c906001600160a01b031681565b6102f660095481565b6102f66104493660046127a3565b61110e565b6102eb61045c36600461290c565b6111e4565b6102eb61046f36600461290c565b611243565b6102eb61048236600461290c565b6112a2565b6102f66104953660046127a3565b611301565b6102f66104a8366004612853565b600f60209081526000928352604080842090915290825290205481565b6102eb6104d336600461290c565b6113b6565b6102f66104e6366004612853565b600d60209081526000928352604080842090915290825290205481565b6102f66105113660046127a3565b611415565b6102eb611438565b6102f660055481565b6102f660025481565b6102eb61053e3660046127a3565b61149e565b6102eb61055136600461287c565b611532565b6000546001600160a01b031661031c565b6102eb61057536600461287c565b611803565b6102eb6105883660046127a3565b61198d565b6102eb61059b36600461287c565b611a21565b6102eb6105ae36600461290c565b611b87565b6102f660115481565b6105cf6105ca3660046127a3565b611be6565b604051610300919061293c565b6102eb6105ea36600461290c565b611cbe565b6102f660085481565b6102eb61060636600461290c565b611d1d565b6102eb6106193660046127a3565b6122bf565b6105cf61062c3660046127a3565b6123a1565b6000546001600160a01b031633146106905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600855565b6000546001600160a01b031633146106ef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600a80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6002600154141561077c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610687565b60026001819055506000806000600a60009054906101000a90046001600160a01b03166001600160a01b0316638c4d59d06040518163ffffffff1660e01b815260040160206040518083038186803b1580156107d757600080fd5b505afa1580156107eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080f9190612924565b90506000600a60009054906101000a90046001600160a01b03166001600160a01b0316632ab4d0526040518163ffffffff1660e01b815260040160206040518083038186803b15801561086157600080fd5b505afa158015610875573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108999190612924565b905060005b85811015610b395760008787838181106108c857634e487b7160e01b600052603260045260246000fd5b9050602002013590506108ff81601060006108e03390565b6001600160a01b03168152602081019190915260400160002090612471565b6109715760405162461bcd60e51b815260206004820152602160248201527f4461746120636f6e7461696e73206e6f74207374616b656420746f6b656e204960448201527f44000000000000000000000000000000000000000000000000000000000000006064820152608401610687565b336000908152600f602090815260408083208484529091529020548015610b24576109bb8260106000335b6001600160a01b0316815260208101919091526040016000209061248c565b503360006109c884612498565b9050600854816109d89190612a25565b6109ef57600c546001600160a01b03169150610a29565b6009546109fc9082612a25565b610a295785610a16610a0f8a6001612535565b8990612535565b11610a2957610a26886001612535565b97505b6011819055600a546040517fb88d4fde0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0384811660248301526044820187905260806064830152600060848301529091169063b88d4fde9060a401600060405180830381600087803b158015610aa957600080fd5b505af1158015610abd573d6000803e3d6000fd5b505060025460009250610adb9150610ad54287612541565b9061254d565b90506000610af46003548361254d90919063ffffffff16565b9050610b008b82612535565b336000908152600f602090815260408083208a845290915290204290559a50505050505b50508080610b31906129ec565b91505061089e565b508215610c0857600a546001600160a01b031663ddd9fb4684336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b158015610bb257600080fd5b505af1158015610bc6573d6000803e3d6000fd5b5050505082610bd23390565b6001600160a01b03167fdbf1736f8bce579ca3d1049f1c99a2d93a14e936518272719dc17d0ce405b8db60405160405180910390a35b8315610c9957600b546001600160a01b03166340c10f19336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260248101879052604401600060405180830381600087803b158015610c8057600080fd5b505af1158015610c94573d6000803e3d6000fd5b505050505b50506001805550505050565b6000546001600160a01b03163314610cff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600a546040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301529091169063f2fde38b90602401600060405180830381600087803b158015610d5f57600080fd5b505af1158015610d73573d6000803e3d6000fd5b5050505050565b6000546001600160a01b03163314610dd45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600555565b60026001541415610e2c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610687565b60026001556000610e60600e82335b6001600160a01b03166001600160a01b03168152602001908152602001600020612559565b90506000610e7060108233610e3b565b90506000610e7e8383612535565b11610ecb5760405162461bcd60e51b815260206004820152600e60248201527f4e6f7468696e67207374616b65640000000000000000000000000000000000006044820152606401610687565b6000805b83811015610f7b576000610f0182600e83335b6001600160a01b03168152602081019190915260400160002090612563565b336000908152600d602090815260408083208484529091529020549091508015610f6657600254600090610f3990610ad54285612541565b9050610f458582612535565b336000908152600d6020908152604080832087845290915290204290559450505b50508080610f73906129ec565b915050610ecf565b5060005b8281101561102a576000610f968260108333610ee2565b336000908152600f60209081526040808320848452909152902054909150801561101557600254600090610fce90610ad54285612541565b90506000610fe76003548361254d90919063ffffffff16565b9050610ff38682612535565b336000908152600f602090815260408083208884529091529020429055955050505b50508080611022906129ec565b915050610f7f565b506000811161107b5760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d000000000000000000000000000000006044820152606401610687565b600b546001600160a01b03166340c10f19336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b1580156110ed57600080fd5b505af1158015611101573d6000803e3d6000fd5b5050600180555050505050565b600080805b6001600160a01b038416600090815260106020526040902061113490612559565b8110156111dd576001600160a01b038416600090815260106020526040812061115d9083612563565b6001600160a01b0386166000908152600f6020908152604080832084845290915290205490915080156111c85760025460009061119e90610ad54285612541565b905060006111b76003548361254d90919063ffffffff16565b90506111c38682612535565b955050505b505080806111d5906129ec565b915050611113565b5092915050565b6000546001600160a01b0316331461123e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600655565b6000546001600160a01b0316331461129d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600955565b6000546001600160a01b031633146112fc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600755565b600080805b6001600160a01b0384166000908152600e6020526040902061132790612559565b8110156111dd576001600160a01b0384166000908152600e602052604081206113509083612563565b6001600160a01b0386166000908152600d6020908152604080832084845290915290205490915080156113a15760025460009061139190610ad54285612541565b905061139d8582612535565b9450505b505080806113ae906129ec565b915050611306565b6000546001600160a01b031633146114105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600455565b60006114326114238361110e565b61142c84611301565b90612535565b92915050565b6000546001600160a01b031633146114925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b61149c600061256f565b565b6000546001600160a01b031633146114f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600260015414156115855760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610687565b60026001556000805b828110156117685760008484838181106115b857634e487b7160e01b600052603260045260246000fd5b9050602002013590506115d081600e60006108e03390565b6116425760405162461bcd60e51b815260206004820152602160248201527f4461746120636f6e7461696e73206e6f74207374616b656420746f6b656e204960448201527f44000000000000000000000000000000000000000000000000000000000000006064820152608401610687565b336000908152600d6020908152604080832084845290915290205480156117535761167182600e60003361099c565b50600a546001600160a01b031663b88d4fde30336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0392831660048201529116602482015260448101859052608060648201526000608482015260a401600060405180830381600087803b1580156116fa57600080fd5b505af115801561170e573d6000803e3d6000fd5b5050600254600092506117269150610ad54285612541565b90506117328582612535565b336000908152600d6020908152604080832087845290915290204290559450505b50508080611760906129ec565b91505061158e565b5080156117fa57600b546001600160a01b03166340c10f19336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b1580156117e157600080fd5b505af11580156117f5573d6000803e3d6000fd5b505050505b50506001805550565b60005b8181101561198857600a546001600160a01b031663b88d4fde333086868681811061184157634e487b7160e01b600052603260045260246000fd5b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152608060648201526000608482015260a401600060405180830381600087803b1580156118be57600080fd5b505af11580156118d2573d6000803e3d6000fd5b5050505061192a8383838181106118f957634e487b7160e01b600052603260045260246000fd5b90506020020135600e600061190b3390565b6001600160a01b031681526020810191909152604001600020906125d7565b50336000908152600d60205260408120429185858581811061195c57634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020819055508080611980906129ec565b915050611806565b505050565b6000546001600160a01b031633146119e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60005b8181101561198857600a546001600160a01b031663b88d4fde3330868686818110611a5f57634e487b7160e01b600052603260045260246000fd5b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152608060648201526000608482015260a401600060405180830381600087803b158015611adc57600080fd5b505af1158015611af0573d6000803e3d6000fd5b50505050611b29838383818110611b1757634e487b7160e01b600052603260045260246000fd5b905060200201356010600061190b3390565b50336000908152600f602052604081204291858585818110611b5b57634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020819055508080611b7f906129ec565b915050611a24565b6000546001600160a01b03163314611be15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600255565b6001600160a01b0381166000908152600e60205260408120606091611c0a82612559565b67ffffffffffffffff811115611c3057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611c59578160200160208202803683370190505b50905060005b611c6883612559565b811015611cb657611c798382612563565b828281518110611c9957634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611cae816129ec565b915050611c5f565b509392505050565b6000546001600160a01b03163314611d185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b600355565b60026001541415611d705760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610687565b600260015580611dc25760405162461bcd60e51b815260206004820152600c60248201527f57726f6e6720616d6f756e7400000000000000000000000000000000000000006044820152606401610687565b600a54604080517f8c4d59d000000000000000000000000000000000000000000000000000000000815290516000926001600160a01b031691638c4d59d0916004808301926020929190829003018186803b158015611e2057600080fd5b505afa158015611e34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e589190612924565b90506000600a60009054906101000a90046001600160a01b03166001600160a01b0316632ab4d0526040518163ffffffff1660e01b815260040160206040518083038186803b158015611eaa57600080fd5b505afa158015611ebe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee29190612924565b905080611eef8385612535565b1115611f3d5760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820737570706c7900000000000000000000000000006044820152606401610687565b600b546000906001600160a01b03166370a08231336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015611fa957600080fd5b505afa158015611fbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe19190612924565b6007549091506103e88411611ff95750600454612019565b6107d0841161200b5750600554612019565b610bb8841161201957506006545b6000612025828761254d565b9050828111156120775760405162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f75676820746f6b656e2062616c616e636500000000000000006044820152606401610687565b600b546000906001600160a01b031663dd62ed3e336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b1580156120e957600080fd5b505afa1580156120fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121219190612924565b9050808211156121735760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f75676820746f6b656e20616c6c6f77616e63650000000000006044820152606401610687565b600b546001600160a01b03166323b872dd33600c5460405160e084901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b0392831660048201529116602482015260448101859052606401602060405180830381600087803b1580156121ef57600080fd5b505af1158015612203573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222791906128ec565b50600a546001600160a01b031663ddd9fb4688336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b15801561229a57600080fd5b505af11580156122ae573d6000803e3d6000fd5b505060018055505050505050505050565b6000546001600160a01b031633146123195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610687565b6001600160a01b0381166123955760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610687565b61239e8161256f565b50565b6001600160a01b03811660009081526010602052604081206060916123c582612559565b67ffffffffffffffff8111156123eb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612414578160200160208202803683370190505b50905060005b61242383612559565b811015611cb6576124348382612563565b82828151811061245457634e487b7160e01b600052603260045260246000fd5b602090810291909101015280612469816129ec565b91505061241a565b600081815260018301602052604081205415155b9392505050565b600061248583836125e3565b6000326124a66001436129d5565b60115460405160609390931b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660208401529040603483015242605483015260748201849052609482015260b401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012061ffff1692915050565b60006124858284612980565b600061248582846129d5565b60006124858284612998565b6000611432825490565b60006124858383612700565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006124858383612738565b600081815260018301602052604081205480156126f65760006126076001836129d5565b855490915060009061261b906001906129d5565b905081811461269c57600086600001828154811061264957634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061267a57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806126bb57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611432565b6000915050611432565b600082600001828154811061272557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600081815260018301602052604081205461277f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611432565b506000611432565b80356001600160a01b038116811461279e57600080fd5b919050565b6000602082840312156127b4578081fd5b61248582612787565b6000806000806000608086880312156127d4578081fd5b6127dd86612787565b94506127eb60208701612787565b935060408601359250606086013567ffffffffffffffff8082111561280e578283fd5b818801915088601f830112612821578283fd5b81358181111561282f578384fd5b896020828501011115612840578384fd5b9699959850939650602001949392505050565b60008060408385031215612865578182fd5b61286e83612787565b946020939093013593505050565b6000806020838503121561288e578182fd5b823567ffffffffffffffff808211156128a5578384fd5b818501915085601f8301126128b8578384fd5b8135818111156128c6578485fd5b8660208260051b85010111156128da578485fd5b60209290920196919550909350505050565b6000602082840312156128fd578081fd5b81518015158114612485578182fd5b60006020828403121561291d578081fd5b5035919050565b600060208284031215612935578081fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b8181101561297457835183529284019291840191600101612958565b50909695505050505050565b6000821982111561299357612993612a45565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156129d0576129d0612a45565b500290565b6000828210156129e7576129e7612a45565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612a1e57612a1e612a45565b5060010190565b600082612a4057634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220235add4cac66fa461ef9bee24ffd40134352e58e6763d67b0273b0ea561680a864736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000058d2035cc2aa0d9d8b8a02b1192bf20d17bf726f0000000000000000000000004ba01fd3ab1d33eb69fa45dd5f5d9e9c2d58279e000000000000000000000000f4b896bc0365b3eb9e2ba9c9934fcc3363cbf76100000000000000000000000000000000000000000000000000041ca7e961012f000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000005150ae84a8cdf000000000000000000000000000000000000000000000000000a2a15d09519be0000000000000000000000000000000000000000000000000014542ba12a337c0000000000000000000000000000000000000000000000000021e19e0c9bab24000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a
-----Decoded View---------------
Arg [0] : _acceptedNftAddress (address): 0x58d2035cc2AA0D9d8b8A02B1192bF20d17bf726F
Arg [1] : _rewardTokenAddress (address): 0x4Ba01Fd3Ab1d33EB69FA45dD5f5D9e9c2d58279e
Arg [2] : _vaultAddress (address): 0xF4B896BC0365b3eb9E2bA9C9934fCC3363cbf761
Arg [3] : _rewardRate (uint256): 1157407407407407
Arg [4] : _rewardRateBonusMultiplier (uint256): 3
Arg [5] : _nftMintPriceStage1 (uint256): 1500000000000000000000
Arg [6] : _nftMintPriceStage2 (uint256): 3000000000000000000000
Arg [7] : _nftMintPriceStage3 (uint256): 6000000000000000000000
Arg [8] : _nftMintPriceStage4 (uint256): 10000000000000000000000
Arg [9] : _mintEventMod (uint256): 20
Arg [10] : _lossEventMod (uint256): 10
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000058d2035cc2aa0d9d8b8a02b1192bf20d17bf726f
Arg [1] : 0000000000000000000000004ba01fd3ab1d33eb69fa45dd5f5d9e9c2d58279e
Arg [2] : 000000000000000000000000f4b896bc0365b3eb9e2ba9c9934fcc3363cbf761
Arg [3] : 00000000000000000000000000000000000000000000000000041ca7e961012f
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 00000000000000000000000000000000000000000000005150ae84a8cdf00000
Arg [6] : 0000000000000000000000000000000000000000000000a2a15d09519be00000
Arg [7] : 00000000000000000000000000000000000000000000014542ba12a337c00000
Arg [8] : 00000000000000000000000000000000000000000000021e19e0c9bab2400000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 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.