Source Code
Overview
GLMR Balance
GLMR Value
$0.00View more zero value Internal Transactions in Advanced View mode
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ListingList
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.8.13;
// SPDX-License-Identifier: MIT
import "Ownable.sol";
import "IERC20.sol";
import "ERC721.sol";
/// @title ListingList
/// @notice Contract for recording nft contracts eligible for Zoo Dao Battles.
contract ListingList is Ownable, ERC721
{
struct CollectionRecord
{
uint256 decayRate;
uint256 rateOfIncrease;
uint256 weightAtTheStart;
}
struct VePositionInfo
{
uint256 expirationDate;
uint256 zooLocked;
address collection;
uint256 decayRate;
}
IERC20 public zoo; // Zoo collection interface.
/// @notice Event records address of allowed nft contract.
event NewContractAllowed(address indexed collection, address royalteRecipient);
event ContractDisallowed(address indexed collection, address royalteRecipient);
event RoyalteRecipientChanged(address indexed collection, address recipient);
event VotedForCollection(address indexed collection, address indexed voter, uint256 amount);
event ZooUnlocked(address indexed voter,address indexed collection, uint256 amount);
mapping (address => uint256) public lastUpdatedEpochsForCollection;
// Nft contract => allowed or not.
mapping (address => bool) public eligibleCollections;
// Nft contract => address recipient.
mapping (address => address) public royalteRecipient;
// collection => epoch number => Record
mapping (address => mapping (uint256 => CollectionRecord)) public collectionRecords;
mapping (uint256 => VePositionInfo) public vePositions;
mapping (address => uint256[]) public tokenOfOwnerByIndex;
uint256 public epochDuration;
uint256 public startDate;
uint256 public minTimelock;
uint256 public maxTimelock;
uint256 public vePositionIndex = 1;
uint256 public endEpochOfIncentiveRewards;
constructor(address _zoo, uint256 _duration, uint256 _minTimelock, uint256 _maxTimelock, uint256 _incentiveRewardsDuration) ERC721("veZoo", "VEZOO")
{
require(_minTimelock <= _duration, "Duration should be more than minTimeLock");
zoo = IERC20(_zoo);
startDate = block.timestamp;
epochDuration = _duration;
minTimelock = _minTimelock;
maxTimelock = _maxTimelock;
endEpochOfIncentiveRewards = _incentiveRewardsDuration / _duration + 1;
}
function getEpochNumber(uint256 timestamp) public view returns (uint256)
{
return (timestamp - startDate) / epochDuration + 1;// epoch numbers must start from 1
}
function getVectorForEpoch(address collection, uint256 epochIndex) public view returns (uint256)
{
require(lastUpdatedEpochsForCollection[collection] >= epochIndex, "Epoch record was not updated");
return computeVectorForEpoch(collection, epochIndex);
}
// address(0) for total (collection sum)
/// @notice Function to get ve-model pool weight for nft collection.
function poolWeight(address collection, uint256 epochIndex) public view returns(uint256 weight)
{
require(lastUpdatedEpochsForCollection[collection] >= epochIndex, "Epoch and colletion records were not updated");
return collectionRecords[collection][epochIndex].weightAtTheStart;
}
function updateCurrentEpochAndReturnPoolWeight(address collection) public returns (uint256 weight)
{
uint256 epochNumber = getEpochNumber(block.timestamp);
uint256 i = lastUpdatedEpochsForCollection[collection];
weight = poolWeight(collection, i);
while (i < epochNumber)
{
CollectionRecord storage collectionRecord = collectionRecords[collection][i + 1];
CollectionRecord storage collectionRecordOfPreviousEpoch = collectionRecords[collection][i];
uint256 decreasingOfWeight = computeVectorForEpoch(collection, i) * epochDuration;
if (collectionRecordOfPreviousEpoch.weightAtTheStart + collectionRecord.weightAtTheStart >= decreasingOfWeight)
collectionRecord.weightAtTheStart = collectionRecord.weightAtTheStart + collectionRecordOfPreviousEpoch.weightAtTheStart - computeVectorForEpoch(collection, i) * epochDuration;
else
collectionRecord.weightAtTheStart = 0;
collectionRecord.decayRate += collectionRecordOfPreviousEpoch.decayRate;
collectionRecord.rateOfIncrease += collectionRecordOfPreviousEpoch.rateOfIncrease;
i++;
weight = collectionRecord.weightAtTheStart;
}
lastUpdatedEpochsForCollection[collection] = epochNumber;
}
/* ========== Eligible projects and royalte managemenet ===========*/
/// @notice Function to allow new NFT contract into eligible projects.
/// @param collection - address of new Nft contract.
function allowNewContractForStaking(address collection, address _royalteRecipient) external onlyOwner
{
eligibleCollections[collection] = true; // Boolean for contract to be allowed for staking.
royalteRecipient[collection] = _royalteRecipient; // Recipient for % of reward from that nft collection.
lastUpdatedEpochsForCollection[collection] = getEpochNumber(block.timestamp);
emit NewContractAllowed(collection, _royalteRecipient); // Emits event that new contract are allowed.
}
/// @notice Function to allow multiplie contracts into eligible projects.
function batchAllowNewContract(address[] calldata tokens, address[] calldata royalteRecipients) external onlyOwner
{
for (uint256 i = 0; i < tokens.length; i++)
{
eligibleCollections[tokens[i]] = true;
royalteRecipient[tokens[i]] = royalteRecipients[i]; // Recipient for % of reward from that nft collection.
emit NewContractAllowed(tokens[i], royalteRecipients[i]); // Emits event that new contract are allowed.
}
}
/// @notice Function to disallow contract from eligible projects and change royalte recipient for already staked nft.
function disallowContractFromStaking(address collection, address recipient) external onlyOwner
{
eligibleCollections[collection] = false;
royalteRecipient[collection] = recipient; // Recipient for % of reward from that nft collection.
emit ContractDisallowed(collection, recipient); // Emits event that new contract are allowed.
}
/// @notice Function to set or change royalte recipient without removing from eligible projects.
function setRoyalteRecipient(address collection, address recipient) external onlyOwner
{
royalteRecipient[collection] = recipient;
emit RoyalteRecipientChanged(collection, recipient);
}
/* ========== Ve-Model voting part ===========*/
function voteForNftCollection(address collection, uint256 amount, uint256 lockTime) public
{
require(eligibleCollections[collection], "NFT collection is not allowed");
require(lockTime <= maxTimelock && lockTime >= minTimelock, "incorrect lockTime");
zoo.transferFrom(msg.sender, address(this), amount);
addRecordForNewPosition(collection, amount, lockTime, msg.sender);
tokenOfOwnerByIndex[msg.sender].push(vePositionIndex);
_mint(msg.sender, vePositionIndex++);
}
function unlockZoo(uint256 positionId) external
{
VePositionInfo storage vePosition = vePositions[positionId];
require(ownerOf(positionId) == msg.sender);
uint256 currentEpoch = getEpochNumber(block.timestamp);
require(block.timestamp >= vePosition.expirationDate, "time lock doesn't expire");
zoo.transfer(msg.sender, vePosition.zooLocked);
_burn(positionId);
emit ZooUnlocked(msg.sender, vePosition.collection, vePosition.zooLocked);
}
function prolongate(uint256 positionId, uint256 lockTime) external
{
require(lockTime <= maxTimelock && lockTime >= minTimelock, "incorrect lockTime");
VePositionInfo storage vePosition = vePositions[positionId];
require(ownerOf(positionId) == msg.sender);
uint256 currentEpoch = getEpochNumber(block.timestamp);
uint256 expirationEpoch = getEpochNumber(vePosition.expirationDate);
address collection = vePosition.collection;
uint256 decayRate = vePosition.decayRate;
updateCurrentEpochAndReturnPoolWeight(collection);
updateCurrentEpochAndReturnPoolWeight(address(0));
if (vePosition.expirationDate < block.timestamp)
{
collectionRecords[collection][expirationEpoch].rateOfIncrease -= decayRate;
collectionRecords[collection][getEpochNumber(block.timestamp)].rateOfIncrease += decayRate;
}
addRecordForNewPosition(collection, vePosition.zooLocked, lockTime, msg.sender);
}
function addRecordForNewPosition(address collection, uint256 amount, uint256 lockTime, address owner) internal
{
uint256 weight = amount * lockTime / maxTimelock;
uint256 currentEpoch = getEpochNumber(block.timestamp);
uint256 unlockEpoch = getEpochNumber(block.timestamp + lockTime);
uint256 decay = weight / lockTime;
vePositions[vePositionIndex] = VePositionInfo(block.timestamp + lockTime, amount, collection, decay);
collectionRecords[address(0)][currentEpoch + 1].decayRate += decay;
collectionRecords[address(0)][currentEpoch + 1].weightAtTheStart += weight;
collectionRecords[collection][currentEpoch + 1].decayRate += decay;
collectionRecords[collection][currentEpoch + 1].weightAtTheStart += weight;
collectionRecords[address(0)][unlockEpoch].rateOfIncrease += decay;
collectionRecords[collection][unlockEpoch].rateOfIncrease += decay;
emit VotedForCollection(collection, msg.sender, amount);
}
function computeVectorForEpoch(address collection, uint256 epochIndex) internal view returns (uint256)
{
CollectionRecord storage collectionRecord = collectionRecords[collection][epochIndex];
return collectionRecord.decayRate - collectionRecord.rateOfIncrease;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
/**
* @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
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "IERC721.sol";
import "IERC721Receiver.sol";
import "IERC721Metadata.sol";
import "Address.sol";
import "Context.sol";
import "Strings.sol";
import "ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @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.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "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
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
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
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}{
"evmVersion": "istanbul",
"optimizer": {
"enabled": true,
"runs": 200
},
"libraries": {
"ListingList.sol": {}
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_zoo","type":"address"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_minTimelock","type":"uint256"},{"internalType":"uint256","name":"_maxTimelock","type":"uint256"},{"internalType":"uint256","name":"_incentiveRewardsDuration","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"address","name":"royalteRecipient","type":"address"}],"name":"ContractDisallowed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"address","name":"royalteRecipient","type":"address"}],"name":"NewContractAllowed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"RoyalteRecipientChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"VotedForCollection","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ZooUnlocked","type":"event"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"_royalteRecipient","type":"address"}],"name":"allowNewContractForStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"address[]","name":"royalteRecipients","type":"address[]"}],"name":"batchAllowNewContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"collectionRecords","outputs":[{"internalType":"uint256","name":"decayRate","type":"uint256"},{"internalType":"uint256","name":"rateOfIncrease","type":"uint256"},{"internalType":"uint256","name":"weightAtTheStart","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"disallowContractFromStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"eligibleCollections","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endEpochOfIncentiveRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epochDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getEpochNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"epochIndex","type":"uint256"}],"name":"getVectorForEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdatedEpochsForCollection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTimelock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minTimelock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"epochIndex","type":"uint256"}],"name":"poolWeight","outputs":[{"internalType":"uint256","name":"weight","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"},{"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"prolongate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"royalteRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"setRoyalteRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"}],"name":"unlockZoo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"updateCurrentEpochAndReturnPoolWeight","outputs":[{"internalType":"uint256","name":"weight","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vePositionIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vePositions","outputs":[{"internalType":"uint256","name":"expirationDate","type":"uint256"},{"internalType":"uint256","name":"zooLocked","type":"uint256"},{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"decayRate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"voteForNftCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zoo","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405260016012553480156200001657600080fd5b5060405162002c4638038062002c46833981016040819052620000399162000273565b6040518060400160405280600581526020016476655a6f6f60d81b8152506040518060400160405280600581526020016456455a4f4f60d81b8152506200008f620000896200017960201b60201c565b6200017d565b8151620000a4906001906020850190620001cd565b508051620000ba906002906020840190620001cd565b50505083831115620001235760405162461bcd60e51b815260206004820152602860248201527f4475726174696f6e2073686f756c64206265206d6f7265207468616e206d696e60448201526754696d654c6f636b60c01b606482015260840160405180910390fd5b600780546001600160a01b0319166001600160a01b03871617905542600f55600e849055601083905560118290556200015d8482620002ca565b6200016a906001620002ed565b60135550620003509350505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001db9062000314565b90600052602060002090601f016020900481019282620001ff57600085556200024a565b82601f106200021a57805160ff19168380011785556200024a565b828001600101855582156200024a579182015b828111156200024a5782518255916020019190600101906200022d565b50620002589291506200025c565b5090565b5b808211156200025857600081556001016200025d565b600080600080600060a086880312156200028c57600080fd5b85516001600160a01b0381168114620002a457600080fd5b602087015160408801516060890151608090990151929a91995097965090945092505050565b600082620002e857634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156200030f57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200032957607f821691505b6020821081036200034a57634e487b7160e01b600052602260045260246000fd5b50919050565b6128e680620003606000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c8063768e7f151161013b578063bc1fd34b116100b8578063da4525231161007c578063da452523146105ad578063e608ba3c146105c0578063e985e9c5146105d3578063f2fde38b1461060f578063f60656631461062257600080fd5b8063bc1fd34b146104b9578063c23ce493146104c2578063c87489ab146104d5578063c87b56dd14610545578063d13d9cab1461055857600080fd5b8063a22cb465116100ff578063a22cb46514610444578063ae11d18a14610457578063b79c5f5d1461046a578063b88d4fde14610493578063ba34b2b1146104a657600080fd5b8063768e7f15146103f25780637b6a8777146104055780638da5cb5b1461041857806395d89b41146104295780639f94ad9c1461043157600080fd5b80632f6ea097116101c95780635cfd894b1161018d5780635cfd894b1461038e5780636352211e146103a157806365845b78146103b457806370a08231146103d7578063715018a6146103ea57600080fd5b80632f6ea097146103395780632f745c591461034c57806342842e0e1461035f5780634ff0876a146103725780635364600c1461037b57600080fd5b8063141d7e8b11610210578063141d7e8b146102e15780631a70ff3b146102ea5780631c552f001461030a57806323b872dd1461031d57806325429e7d1461033057600080fd5b806301ffc9a71461024d57806306fdde0314610275578063081812fc1461028a578063095ea7b3146102b55780630b97bc86146102ca575b600080fd5b61026061025b366004612272565b61062b565b60405190151581526020015b60405180910390f35b61027d61067d565b60405161026c91906122e7565b61029d6102983660046122fa565b61070f565b6040516001600160a01b03909116815260200161026c565b6102c86102c336600461232f565b6107a9565b005b6102d3600f5481565b60405190815260200161026c565b6102d360125481565b6102d36102f8366004612359565b60086020526000908152604090205481565b6102d36103183660046122fa565b6108be565b6102c861032b366004612374565b6108e6565b6102d360105481565b6102c86103473660046123b0565b610917565b6102d361035a36600461232f565b6109b8565b6102c861036d366004612374565b6109e9565b6102d3600e5481565b6102d361038936600461232f565b610a04565b6102c861039c3660046123b0565b610a7d565b61029d6103af3660046122fa565b610b07565b6102606103c2366004612359565b60096020526000908152604090205460ff1681565b6102d36103e5366004612359565b610b7e565b6102c8610c05565b6102c86104003660046123e3565b610c3b565b60075461029d906001600160a01b031681565b6000546001600160a01b031661029d565b61027d610dc6565b6102c861043f366004612462565b610dd5565b6102c86104523660046124dc565b610f8e565b6102c86104653660046123b0565b610f9d565b61029d610478366004612359565b600a602052600090815260409020546001600160a01b031681565b6102c86104a1366004612529565b611065565b6102c86104b4366004612605565b61109d565b6102d360115481565b6102d36104d0366004612359565b61120b565b6105166104e33660046122fa565b600c602052600090815260409020805460018201546002830154600390930154919290916001600160a01b039091169084565b60405161026c949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b61027d6105533660046122fa565b611391565b61059261056636600461232f565b600b60209081526000928352604080842090915290825290208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161026c565b6102d36105bb36600461232f565b611478565b6102c86105ce3660046122fa565b611521565b6102606105e13660046123b0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6102c861061d366004612359565b611681565b6102d360135481565b60006001600160e01b031982166380ac58cd60e01b148061065c57506001600160e01b03198216635b5e139f60e01b145b8061067757506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461068c90612627565b80601f01602080910402602001604051908101604052809291908181526020018280546106b890612627565b80156107055780601f106106da57610100808354040283529160200191610705565b820191906000526020600020905b8154815290600101906020018083116106e857829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b031661078d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006107b482610b07565b9050806001600160a01b0316836001600160a01b0316036108215760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610784565b336001600160a01b038216148061083d575061083d81336105e1565b6108af5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610784565b6108b9838361171c565b505050565b6000600e54600f54836108d19190612677565b6108db91906126a4565b6106779060016126b8565b6108f0338261178a565b61090c5760405162461bcd60e51b8152600401610784906126d0565b6108b9838383611881565b6000546001600160a01b031633146109415760405162461bcd60e51b815260040161078490612721565b6001600160a01b038281166000818152600960209081526040808320805460ff19169055600a82529182902080546001600160a01b0319169486169485179055905192835290917fed56dcf731f82025e5167f49bf3757c45a353b06a7eb49f07b16bd1892fc0b7691015b60405180910390a25050565b600d60205281600052604060002081815481106109d457600080fd5b90600052602060002001600091509150505481565b6108b983838360405180602001604052806000815250611065565b6001600160a01b038216600090815260086020526040812054821115610a6c5760405162461bcd60e51b815260206004820152601c60248201527f45706f6368207265636f726420776173206e6f742075706461746564000000006044820152606401610784565b610a768383611a1d565b9392505050565b6000546001600160a01b03163314610aa75760405162461bcd60e51b815260040161078490612721565b6001600160a01b038281166000818152600a602090815260409182902080546001600160a01b0319169486169485179055905192835290917f6f0fdbd47473e03fab56da29ca709c25e097617616ec19757e8e686962a923bb91016109ac565b6000818152600360205260408120546001600160a01b0316806106775760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610784565b60006001600160a01b038216610be95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610784565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610c2f5760405162461bcd60e51b815260040161078490612721565b610c396000611a51565b565b6001600160a01b03831660009081526009602052604090205460ff16610ca35760405162461bcd60e51b815260206004820152601d60248201527f4e465420636f6c6c656374696f6e206973206e6f7420616c6c6f7765640000006044820152606401610784565b6011548111158015610cb757506010548110155b610cf85760405162461bcd60e51b8152602060048201526012602482015271696e636f7272656374206c6f636b54696d6560701b6044820152606401610784565b6007546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610d4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d739190612756565b50610d8083838333611aa1565b336000818152600d6020908152604082206012805482546001810184559285529284209091019190915580546108b99392909190610dbd83612773565b91905055611d84565b60606002805461068c90612627565b6000546001600160a01b03163314610dff5760405162461bcd60e51b815260040161078490612721565b60005b83811015610f8757600160096000878785818110610e2257610e2261278c565b9050602002016020810190610e379190612359565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055828282818110610e7157610e7161278c565b9050602002016020810190610e869190612359565b600a6000878785818110610e9c57610e9c61278c565b9050602002016020810190610eb19190612359565b6001600160a01b039081168252602082019290925260400160002080546001600160a01b03191692909116919091179055848482818110610ef457610ef461278c565b9050602002016020810190610f099190612359565b6001600160a01b03167f8158d99f2329effc889e3e6ffc3c31903fb2bcba179a7041e58f8a9cec06786e848484818110610f4557610f4561278c565b9050602002016020810190610f5a9190612359565b6040516001600160a01b03909116815260200160405180910390a280610f7f81612773565b915050610e02565b5050505050565b610f99338383611ec6565b5050565b6000546001600160a01b03163314610fc75760405162461bcd60e51b815260040161078490612721565b6001600160a01b038083166000908152600960209081526040808320805460ff19166001179055600a909152902080549183166001600160a01b0319909216919091179055611015426108be565b6001600160a01b0383811660008181526008602090815260409182902094909455519184168252917f8158d99f2329effc889e3e6ffc3c31903fb2bcba179a7041e58f8a9cec06786e91016109ac565b61106f338361178a565b61108b5760405162461bcd60e51b8152600401610784906126d0565b61109784848484611f8c565b50505050565b60115481111580156110b157506010548110155b6110f25760405162461bcd60e51b8152602060048201526012602482015271696e636f7272656374206c6f636b54696d6560701b6044820152606401610784565b6000828152600c602052604090203361110a84610b07565b6001600160a01b03161461111d57600080fd5b6000611128426108be565b9050600061113983600001546108be565b600284015460038501549192506001600160a01b0316906111598261120b565b50611164600061120b565b5084544211156111f2576001600160a01b0382166000908152600b60209081526040808320868452909152812060010180548392906111a4908490612677565b90915550506001600160a01b0382166000908152600b6020526040812082916111cc426108be565b815260200190815260200160002060010160008282546111ec91906126b8565b90915550505b6112028286600101548833611aa1565b50505050505050565b600080611217426108be565b6001600160a01b03841660009081526008602052604090205490915061123d8482611478565b92505b81811015611370576001600160a01b0384166000908152600b602052604081208161126c8460016126b8565b8152602080820192909252604090810160009081206001600160a01b0389168252600b8452828220868352909352908120600e54929350916112ae8886611a1d565b6112b891906127a2565b905080836002015483600201546112cf91906126b8565b1061131357600e546112e18886611a1d565b6112eb91906127a2565b826002015484600201546112ff91906126b8565b6113099190612677565b600284015561131b565b600060028401555b81548354849060009061132f9084906126b8565b92505081905550816001015483600101600082825461134e91906126b8565b9091555084905061135e81612773565b94505082600201549550505050611240565b506001600160a01b0390921660009081526008602052604090209190915590565b6000818152600360205260409020546060906001600160a01b03166114105760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610784565b600061142760408051602081019091526000815290565b905060008151116114475760405180602001604052806000815250610a76565b8061145184611fbf565b6040516020016114629291906127c1565b6040516020818303038152906040529392505050565b6001600160a01b0382166000908152600860205260408120548211156114f55760405162461bcd60e51b815260206004820152602c60248201527f45706f636820616e6420636f6c6c6574696f6e207265636f726473207765726560448201526b081b9bdd081d5c19185d195960a21b6064820152608401610784565b506001600160a01b03919091166000908152600b60209081526040808320938352929052206002015490565b6000818152600c602052604090203361153983610b07565b6001600160a01b03161461154c57600080fd5b6000611557426108be565b82549091504210156115ab5760405162461bcd60e51b815260206004820152601860248201527f74696d65206c6f636b20646f65736e27742065787069726500000000000000006044820152606401610784565b600754600183015460405163a9059cbb60e01b815233600482015260248101919091526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015611602573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116269190612756565b50611630836120c0565b600282015460018301546040519081526001600160a01b039091169033907f74f04e611d4f59a7f28d6c41980e2dacad949899d48456264f9c5ca48dee1d15906020015b60405180910390a3505050565b6000546001600160a01b031633146116ab5760405162461bcd60e51b815260040161078490612721565b6001600160a01b0381166117105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610784565b61171981611a51565b50565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061175182610b07565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166118035760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610784565b600061180e83610b07565b9050806001600160a01b0316846001600160a01b031614806118495750836001600160a01b031661183e8461070f565b6001600160a01b0316145b8061187957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661189482610b07565b6001600160a01b0316146118f85760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610784565b6001600160a01b03821661195a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610784565b61196560008261171c565b6001600160a01b038316600090815260046020526040812080546001929061198e908490612677565b90915550506001600160a01b03821660009081526004602052604081208054600192906119bc9084906126b8565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166000908152600b602090815260408083208484529091528120600181015481546118799190612677565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b601154600090611ab184866127a2565b611abb91906126a4565b90506000611ac8426108be565b90506000611ad961031886426126b8565b90506000611ae786856126a4565b905060405180608001604052808742611b0091906126b8565b815260208082018a90526001600160a01b038b811660408085019190915260609384018690526012546000908152600c84528181208651815586850151600180830191909155928701516002820180546001600160a01b03191691909516179093559490930151600390910155828052600b905282917fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7691611ba39087906126b8565b81526020019081526020016000206000016000828254611bc391906126b8565b90915550506000808052600b60205284907fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7690611c018660016126b8565b81526020019081526020016000206002016000828254611c2191906126b8565b90915550506001600160a01b0388166000908152600b602052604081208291611c4b8660016126b8565b81526020019081526020016000206000016000828254611c6b91906126b8565b90915550506001600160a01b0388166000908152600b602052604081208591611c958660016126b8565b81526020019081526020016000206002016000828254611cb591906126b8565b909155505060008281527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f76602052604081206001018054839290611cfa9084906126b8565b90915550506001600160a01b0388166000908152600b6020908152604080832085845290915281206001018054839290611d359084906126b8565b909155505060405187815233906001600160a01b038a16907f89cd7995fe45ebee38fb26f557212eae693b49007beb7a2491b3b10453febdd79060200160405180910390a35050505050505050565b6001600160a01b038216611dda5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610784565b6000818152600360205260409020546001600160a01b031615611e3f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610784565b6001600160a01b0382166000908152600460205260408120805460019290611e689084906126b8565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031603611f275760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610784565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101611674565b611f97848484611881565b611fa38484848461215b565b6110975760405162461bcd60e51b8152600401610784906127f0565b606081600003611fe65750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120105780611ffa81612773565b91506120099050600a836126a4565b9150611fea565b60008167ffffffffffffffff81111561202b5761202b612513565b6040519080825280601f01601f191660200182016040528015612055576020820181803683370190505b5090505b84156118795761206a600183612677565b9150612077600a86612842565b6120829060306126b8565b60f81b8183815181106120975761209761278c565b60200101906001600160f81b031916908160001a9053506120b9600a866126a4565b9450612059565b60006120cb82610b07565b90506120d860008361171c565b6001600160a01b0381166000908152600460205260408120805460019290612101908490612677565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b1561225157604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061219f903390899088908890600401612856565b6020604051808303816000875af19250505080156121da575060408051601f3d908101601f191682019092526121d791810190612893565b60015b612237573d808015612208576040519150601f19603f3d011682016040523d82523d6000602084013e61220d565b606091505b50805160000361222f5760405162461bcd60e51b8152600401610784906127f0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611879565b506001949350505050565b6001600160e01b03198116811461171957600080fd5b60006020828403121561228457600080fd5b8135610a768161225c565b60005b838110156122aa578181015183820152602001612292565b838111156110975750506000910152565b600081518084526122d381602086016020860161228f565b601f01601f19169290920160200192915050565b602081526000610a7660208301846122bb565b60006020828403121561230c57600080fd5b5035919050565b80356001600160a01b038116811461232a57600080fd5b919050565b6000806040838503121561234257600080fd5b61234b83612313565b946020939093013593505050565b60006020828403121561236b57600080fd5b610a7682612313565b60008060006060848603121561238957600080fd5b61239284612313565b92506123a060208501612313565b9150604084013590509250925092565b600080604083850312156123c357600080fd5b6123cc83612313565b91506123da60208401612313565b90509250929050565b6000806000606084860312156123f857600080fd5b61240184612313565b95602085013595506040909401359392505050565b60008083601f84011261242857600080fd5b50813567ffffffffffffffff81111561244057600080fd5b6020830191508360208260051b850101111561245b57600080fd5b9250929050565b6000806000806040858703121561247857600080fd5b843567ffffffffffffffff8082111561249057600080fd5b61249c88838901612416565b909650945060208701359150808211156124b557600080fd5b506124c287828801612416565b95989497509550505050565b801515811461171957600080fd5b600080604083850312156124ef57600080fd5b6124f883612313565b91506020830135612508816124ce565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561253f57600080fd5b61254885612313565b935061255660208601612313565b925060408501359150606085013567ffffffffffffffff8082111561257a57600080fd5b818701915087601f83011261258e57600080fd5b8135818111156125a0576125a0612513565b604051601f8201601f19908116603f011681019083821181831017156125c8576125c8612513565b816040528281528a60208487010111156125e157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561261857600080fd5b50508035926020909101359150565b600181811c9082168061263b57607f821691505b60208210810361265b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561268957612689612661565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826126b3576126b361268e565b500490565b600082198211156126cb576126cb612661565b500190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561276857600080fd5b8151610a76816124ce565b60006001820161278557612785612661565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156127bc576127bc612661565b500290565b600083516127d381846020880161228f565b8351908301906127e781836020880161228f565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826128515761285161268e565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612889908301846122bb565b9695505050505050565b6000602082840312156128a557600080fd5b8151610a768161225c56fea26469706673582212201715bfcce81bef6d2128685ab9107510ec035864c0773a69017f5577af8b21e364736f6c634300080d0033000000000000000000000000f2921c91e92f5bfc76b54b9d1aa40b9787d7e1560000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000002a30000000000000000000000000000000000000000000000000000000000001baf80
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102485760003560e01c8063768e7f151161013b578063bc1fd34b116100b8578063da4525231161007c578063da452523146105ad578063e608ba3c146105c0578063e985e9c5146105d3578063f2fde38b1461060f578063f60656631461062257600080fd5b8063bc1fd34b146104b9578063c23ce493146104c2578063c87489ab146104d5578063c87b56dd14610545578063d13d9cab1461055857600080fd5b8063a22cb465116100ff578063a22cb46514610444578063ae11d18a14610457578063b79c5f5d1461046a578063b88d4fde14610493578063ba34b2b1146104a657600080fd5b8063768e7f15146103f25780637b6a8777146104055780638da5cb5b1461041857806395d89b41146104295780639f94ad9c1461043157600080fd5b80632f6ea097116101c95780635cfd894b1161018d5780635cfd894b1461038e5780636352211e146103a157806365845b78146103b457806370a08231146103d7578063715018a6146103ea57600080fd5b80632f6ea097146103395780632f745c591461034c57806342842e0e1461035f5780634ff0876a146103725780635364600c1461037b57600080fd5b8063141d7e8b11610210578063141d7e8b146102e15780631a70ff3b146102ea5780631c552f001461030a57806323b872dd1461031d57806325429e7d1461033057600080fd5b806301ffc9a71461024d57806306fdde0314610275578063081812fc1461028a578063095ea7b3146102b55780630b97bc86146102ca575b600080fd5b61026061025b366004612272565b61062b565b60405190151581526020015b60405180910390f35b61027d61067d565b60405161026c91906122e7565b61029d6102983660046122fa565b61070f565b6040516001600160a01b03909116815260200161026c565b6102c86102c336600461232f565b6107a9565b005b6102d3600f5481565b60405190815260200161026c565b6102d360125481565b6102d36102f8366004612359565b60086020526000908152604090205481565b6102d36103183660046122fa565b6108be565b6102c861032b366004612374565b6108e6565b6102d360105481565b6102c86103473660046123b0565b610917565b6102d361035a36600461232f565b6109b8565b6102c861036d366004612374565b6109e9565b6102d3600e5481565b6102d361038936600461232f565b610a04565b6102c861039c3660046123b0565b610a7d565b61029d6103af3660046122fa565b610b07565b6102606103c2366004612359565b60096020526000908152604090205460ff1681565b6102d36103e5366004612359565b610b7e565b6102c8610c05565b6102c86104003660046123e3565b610c3b565b60075461029d906001600160a01b031681565b6000546001600160a01b031661029d565b61027d610dc6565b6102c861043f366004612462565b610dd5565b6102c86104523660046124dc565b610f8e565b6102c86104653660046123b0565b610f9d565b61029d610478366004612359565b600a602052600090815260409020546001600160a01b031681565b6102c86104a1366004612529565b611065565b6102c86104b4366004612605565b61109d565b6102d360115481565b6102d36104d0366004612359565b61120b565b6105166104e33660046122fa565b600c602052600090815260409020805460018201546002830154600390930154919290916001600160a01b039091169084565b60405161026c949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b61027d6105533660046122fa565b611391565b61059261056636600461232f565b600b60209081526000928352604080842090915290825290208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161026c565b6102d36105bb36600461232f565b611478565b6102c86105ce3660046122fa565b611521565b6102606105e13660046123b0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6102c861061d366004612359565b611681565b6102d360135481565b60006001600160e01b031982166380ac58cd60e01b148061065c57506001600160e01b03198216635b5e139f60e01b145b8061067757506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461068c90612627565b80601f01602080910402602001604051908101604052809291908181526020018280546106b890612627565b80156107055780601f106106da57610100808354040283529160200191610705565b820191906000526020600020905b8154815290600101906020018083116106e857829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b031661078d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006107b482610b07565b9050806001600160a01b0316836001600160a01b0316036108215760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610784565b336001600160a01b038216148061083d575061083d81336105e1565b6108af5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610784565b6108b9838361171c565b505050565b6000600e54600f54836108d19190612677565b6108db91906126a4565b6106779060016126b8565b6108f0338261178a565b61090c5760405162461bcd60e51b8152600401610784906126d0565b6108b9838383611881565b6000546001600160a01b031633146109415760405162461bcd60e51b815260040161078490612721565b6001600160a01b038281166000818152600960209081526040808320805460ff19169055600a82529182902080546001600160a01b0319169486169485179055905192835290917fed56dcf731f82025e5167f49bf3757c45a353b06a7eb49f07b16bd1892fc0b7691015b60405180910390a25050565b600d60205281600052604060002081815481106109d457600080fd5b90600052602060002001600091509150505481565b6108b983838360405180602001604052806000815250611065565b6001600160a01b038216600090815260086020526040812054821115610a6c5760405162461bcd60e51b815260206004820152601c60248201527f45706f6368207265636f726420776173206e6f742075706461746564000000006044820152606401610784565b610a768383611a1d565b9392505050565b6000546001600160a01b03163314610aa75760405162461bcd60e51b815260040161078490612721565b6001600160a01b038281166000818152600a602090815260409182902080546001600160a01b0319169486169485179055905192835290917f6f0fdbd47473e03fab56da29ca709c25e097617616ec19757e8e686962a923bb91016109ac565b6000818152600360205260408120546001600160a01b0316806106775760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610784565b60006001600160a01b038216610be95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610784565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610c2f5760405162461bcd60e51b815260040161078490612721565b610c396000611a51565b565b6001600160a01b03831660009081526009602052604090205460ff16610ca35760405162461bcd60e51b815260206004820152601d60248201527f4e465420636f6c6c656374696f6e206973206e6f7420616c6c6f7765640000006044820152606401610784565b6011548111158015610cb757506010548110155b610cf85760405162461bcd60e51b8152602060048201526012602482015271696e636f7272656374206c6f636b54696d6560701b6044820152606401610784565b6007546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610d4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d739190612756565b50610d8083838333611aa1565b336000818152600d6020908152604082206012805482546001810184559285529284209091019190915580546108b99392909190610dbd83612773565b91905055611d84565b60606002805461068c90612627565b6000546001600160a01b03163314610dff5760405162461bcd60e51b815260040161078490612721565b60005b83811015610f8757600160096000878785818110610e2257610e2261278c565b9050602002016020810190610e379190612359565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055828282818110610e7157610e7161278c565b9050602002016020810190610e869190612359565b600a6000878785818110610e9c57610e9c61278c565b9050602002016020810190610eb19190612359565b6001600160a01b039081168252602082019290925260400160002080546001600160a01b03191692909116919091179055848482818110610ef457610ef461278c565b9050602002016020810190610f099190612359565b6001600160a01b03167f8158d99f2329effc889e3e6ffc3c31903fb2bcba179a7041e58f8a9cec06786e848484818110610f4557610f4561278c565b9050602002016020810190610f5a9190612359565b6040516001600160a01b03909116815260200160405180910390a280610f7f81612773565b915050610e02565b5050505050565b610f99338383611ec6565b5050565b6000546001600160a01b03163314610fc75760405162461bcd60e51b815260040161078490612721565b6001600160a01b038083166000908152600960209081526040808320805460ff19166001179055600a909152902080549183166001600160a01b0319909216919091179055611015426108be565b6001600160a01b0383811660008181526008602090815260409182902094909455519184168252917f8158d99f2329effc889e3e6ffc3c31903fb2bcba179a7041e58f8a9cec06786e91016109ac565b61106f338361178a565b61108b5760405162461bcd60e51b8152600401610784906126d0565b61109784848484611f8c565b50505050565b60115481111580156110b157506010548110155b6110f25760405162461bcd60e51b8152602060048201526012602482015271696e636f7272656374206c6f636b54696d6560701b6044820152606401610784565b6000828152600c602052604090203361110a84610b07565b6001600160a01b03161461111d57600080fd5b6000611128426108be565b9050600061113983600001546108be565b600284015460038501549192506001600160a01b0316906111598261120b565b50611164600061120b565b5084544211156111f2576001600160a01b0382166000908152600b60209081526040808320868452909152812060010180548392906111a4908490612677565b90915550506001600160a01b0382166000908152600b6020526040812082916111cc426108be565b815260200190815260200160002060010160008282546111ec91906126b8565b90915550505b6112028286600101548833611aa1565b50505050505050565b600080611217426108be565b6001600160a01b03841660009081526008602052604090205490915061123d8482611478565b92505b81811015611370576001600160a01b0384166000908152600b602052604081208161126c8460016126b8565b8152602080820192909252604090810160009081206001600160a01b0389168252600b8452828220868352909352908120600e54929350916112ae8886611a1d565b6112b891906127a2565b905080836002015483600201546112cf91906126b8565b1061131357600e546112e18886611a1d565b6112eb91906127a2565b826002015484600201546112ff91906126b8565b6113099190612677565b600284015561131b565b600060028401555b81548354849060009061132f9084906126b8565b92505081905550816001015483600101600082825461134e91906126b8565b9091555084905061135e81612773565b94505082600201549550505050611240565b506001600160a01b0390921660009081526008602052604090209190915590565b6000818152600360205260409020546060906001600160a01b03166114105760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610784565b600061142760408051602081019091526000815290565b905060008151116114475760405180602001604052806000815250610a76565b8061145184611fbf565b6040516020016114629291906127c1565b6040516020818303038152906040529392505050565b6001600160a01b0382166000908152600860205260408120548211156114f55760405162461bcd60e51b815260206004820152602c60248201527f45706f636820616e6420636f6c6c6574696f6e207265636f726473207765726560448201526b081b9bdd081d5c19185d195960a21b6064820152608401610784565b506001600160a01b03919091166000908152600b60209081526040808320938352929052206002015490565b6000818152600c602052604090203361153983610b07565b6001600160a01b03161461154c57600080fd5b6000611557426108be565b82549091504210156115ab5760405162461bcd60e51b815260206004820152601860248201527f74696d65206c6f636b20646f65736e27742065787069726500000000000000006044820152606401610784565b600754600183015460405163a9059cbb60e01b815233600482015260248101919091526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015611602573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116269190612756565b50611630836120c0565b600282015460018301546040519081526001600160a01b039091169033907f74f04e611d4f59a7f28d6c41980e2dacad949899d48456264f9c5ca48dee1d15906020015b60405180910390a3505050565b6000546001600160a01b031633146116ab5760405162461bcd60e51b815260040161078490612721565b6001600160a01b0381166117105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610784565b61171981611a51565b50565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061175182610b07565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166118035760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610784565b600061180e83610b07565b9050806001600160a01b0316846001600160a01b031614806118495750836001600160a01b031661183e8461070f565b6001600160a01b0316145b8061187957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661189482610b07565b6001600160a01b0316146118f85760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610784565b6001600160a01b03821661195a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610784565b61196560008261171c565b6001600160a01b038316600090815260046020526040812080546001929061198e908490612677565b90915550506001600160a01b03821660009081526004602052604081208054600192906119bc9084906126b8565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166000908152600b602090815260408083208484529091528120600181015481546118799190612677565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b601154600090611ab184866127a2565b611abb91906126a4565b90506000611ac8426108be565b90506000611ad961031886426126b8565b90506000611ae786856126a4565b905060405180608001604052808742611b0091906126b8565b815260208082018a90526001600160a01b038b811660408085019190915260609384018690526012546000908152600c84528181208651815586850151600180830191909155928701516002820180546001600160a01b03191691909516179093559490930151600390910155828052600b905282917fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7691611ba39087906126b8565b81526020019081526020016000206000016000828254611bc391906126b8565b90915550506000808052600b60205284907fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7690611c018660016126b8565b81526020019081526020016000206002016000828254611c2191906126b8565b90915550506001600160a01b0388166000908152600b602052604081208291611c4b8660016126b8565b81526020019081526020016000206000016000828254611c6b91906126b8565b90915550506001600160a01b0388166000908152600b602052604081208591611c958660016126b8565b81526020019081526020016000206002016000828254611cb591906126b8565b909155505060008281527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f76602052604081206001018054839290611cfa9084906126b8565b90915550506001600160a01b0388166000908152600b6020908152604080832085845290915281206001018054839290611d359084906126b8565b909155505060405187815233906001600160a01b038a16907f89cd7995fe45ebee38fb26f557212eae693b49007beb7a2491b3b10453febdd79060200160405180910390a35050505050505050565b6001600160a01b038216611dda5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610784565b6000818152600360205260409020546001600160a01b031615611e3f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610784565b6001600160a01b0382166000908152600460205260408120805460019290611e689084906126b8565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031603611f275760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610784565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101611674565b611f97848484611881565b611fa38484848461215b565b6110975760405162461bcd60e51b8152600401610784906127f0565b606081600003611fe65750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120105780611ffa81612773565b91506120099050600a836126a4565b9150611fea565b60008167ffffffffffffffff81111561202b5761202b612513565b6040519080825280601f01601f191660200182016040528015612055576020820181803683370190505b5090505b84156118795761206a600183612677565b9150612077600a86612842565b6120829060306126b8565b60f81b8183815181106120975761209761278c565b60200101906001600160f81b031916908160001a9053506120b9600a866126a4565b9450612059565b60006120cb82610b07565b90506120d860008361171c565b6001600160a01b0381166000908152600460205260408120805460019290612101908490612677565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b1561225157604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061219f903390899088908890600401612856565b6020604051808303816000875af19250505080156121da575060408051601f3d908101601f191682019092526121d791810190612893565b60015b612237573d808015612208576040519150601f19603f3d011682016040523d82523d6000602084013e61220d565b606091505b50805160000361222f5760405162461bcd60e51b8152600401610784906127f0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611879565b506001949350505050565b6001600160e01b03198116811461171957600080fd5b60006020828403121561228457600080fd5b8135610a768161225c565b60005b838110156122aa578181015183820152602001612292565b838111156110975750506000910152565b600081518084526122d381602086016020860161228f565b601f01601f19169290920160200192915050565b602081526000610a7660208301846122bb565b60006020828403121561230c57600080fd5b5035919050565b80356001600160a01b038116811461232a57600080fd5b919050565b6000806040838503121561234257600080fd5b61234b83612313565b946020939093013593505050565b60006020828403121561236b57600080fd5b610a7682612313565b60008060006060848603121561238957600080fd5b61239284612313565b92506123a060208501612313565b9150604084013590509250925092565b600080604083850312156123c357600080fd5b6123cc83612313565b91506123da60208401612313565b90509250929050565b6000806000606084860312156123f857600080fd5b61240184612313565b95602085013595506040909401359392505050565b60008083601f84011261242857600080fd5b50813567ffffffffffffffff81111561244057600080fd5b6020830191508360208260051b850101111561245b57600080fd5b9250929050565b6000806000806040858703121561247857600080fd5b843567ffffffffffffffff8082111561249057600080fd5b61249c88838901612416565b909650945060208701359150808211156124b557600080fd5b506124c287828801612416565b95989497509550505050565b801515811461171957600080fd5b600080604083850312156124ef57600080fd5b6124f883612313565b91506020830135612508816124ce565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561253f57600080fd5b61254885612313565b935061255660208601612313565b925060408501359150606085013567ffffffffffffffff8082111561257a57600080fd5b818701915087601f83011261258e57600080fd5b8135818111156125a0576125a0612513565b604051601f8201601f19908116603f011681019083821181831017156125c8576125c8612513565b816040528281528a60208487010111156125e157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561261857600080fd5b50508035926020909101359150565b600181811c9082168061263b57607f821691505b60208210810361265b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561268957612689612661565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826126b3576126b361268e565b500490565b600082198211156126cb576126cb612661565b500190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561276857600080fd5b8151610a76816124ce565b60006001820161278557612785612661565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156127bc576127bc612661565b500290565b600083516127d381846020880161228f565b8351908301906127e781836020880161228f565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826128515761285161268e565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612889908301846122bb565b9695505050505050565b6000602082840312156128a557600080fd5b8151610a768161225c56fea26469706673582212201715bfcce81bef6d2128685ab9107510ec035864c0773a69017f5577af8b21e364736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f2921c91e92f5bfc76b54b9d1aa40b9787d7e1560000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000002a30000000000000000000000000000000000000000000000000000000000001baf80
-----Decoded View---------------
Arg [0] : _zoo (address): 0xf2921C91E92F5BFc76B54b9D1aa40B9787D7e156
Arg [1] : _duration (uint256): 3000
Arg [2] : _minTimelock (uint256): 300
Arg [3] : _maxTimelock (uint256): 172800
Arg [4] : _incentiveRewardsDuration (uint256): 1814400
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000f2921c91e92f5bfc76b54b9d1aa40b9787d7e156
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000bb8
Arg [2] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [3] : 000000000000000000000000000000000000000000000000000000000002a300
Arg [4] : 00000000000000000000000000000000000000000000000000000000001baf80
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in GLMR
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.