More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 676 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 17694245 | 594 days ago | IN | 0 ETH | 0.00481754 | ||||
Claim | 17694243 | 594 days ago | IN | 0 ETH | 0.00254557 | ||||
Claim | 17684003 | 596 days ago | IN | 0 ETH | 0.00270442 | ||||
Claim | 17660436 | 599 days ago | IN | 0 ETH | 0.01129488 | ||||
Claim | 17660329 | 599 days ago | IN | 0 ETH | 0.02891789 | ||||
Claim | 17588976 | 609 days ago | IN | 0 ETH | 0.00458839 | ||||
Claim | 17588974 | 609 days ago | IN | 0 ETH | 0.00207915 | ||||
Claim | 17533921 | 617 days ago | IN | 0 ETH | 0.00725856 | ||||
Claim | 17533916 | 617 days ago | IN | 0 ETH | 0.00332313 | ||||
Claim | 17468009 | 626 days ago | IN | 0 ETH | 0.01515109 | ||||
Claim | 17430379 | 632 days ago | IN | 0 ETH | 0.00512754 | ||||
Stake | 17426146 | 632 days ago | IN | 0 ETH | 0.00641396 | ||||
Stake | 17396704 | 636 days ago | IN | 0 ETH | 0.00454356 | ||||
Claim | 17393413 | 637 days ago | IN | 0 ETH | 0.00489745 | ||||
Claim | 17393404 | 637 days ago | IN | 0 ETH | 0.00276479 | ||||
Claim | 17333867 | 645 days ago | IN | 0 ETH | 0.02630044 | ||||
Claim | 17295429 | 651 days ago | IN | 0 ETH | 0.00759218 | ||||
Stake | 17248916 | 657 days ago | IN | 0 ETH | 0.01247059 | ||||
Stake | 17213008 | 662 days ago | IN | 0 ETH | 0.01633252 | ||||
Stake | 17212967 | 662 days ago | IN | 0 ETH | 0.01909557 | ||||
Claim | 17156603 | 670 days ago | IN | 0 ETH | 0.0038215 | ||||
Stake | 17156191 | 670 days ago | IN | 0 ETH | 0.00667166 | ||||
Claim | 17140074 | 672 days ago | IN | 0 ETH | 0.02266251 | ||||
Stake | 17071314 | 682 days ago | IN | 0 ETH | 0.00591912 | ||||
Stake | 17015851 | 690 days ago | IN | 0 ETH | 0.00405596 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
TheGrowOperationV2
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT LICENSE pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; interface IRandomizer { function random( uint256 from, uint256 to, uint256 salty ) external view returns (uint256); } interface ITOKE { function mint(address to, uint256 amount) external; function burn(address from, uint256 amount) external; function updateOriginAccess() external; function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); } interface ISTAC { function ownerOf(uint256 tokenId) external view returns (address owner); function transferFrom( address from, address to, uint256 tokenId ) external; function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; function getTokenTraits(uint256 tokenId) external view returns (bool, uint256); } contract TheGrowOperationV2 is Ownable, IERC721Receiver, ReentrancyGuard { uint8 public constant MAX_ALPHA = 10; uint256 public ALPHA_RATIO = 1000; //can ajust the alpha ratio of gains per alpha level if needed //store a stake's token, owner, and earning values struct Stake { uint256 tokenId; uint256 value; address owner; } event TokenStaked(address indexed owner, uint256 indexed tokenId, uint256 value); event FedApeClaimed(uint256 indexed tokenId, uint256 earned, bool unstaked); event StonedApeClaimed(uint256 indexed tokenId, uint256 earned, bool unstaked); // reference to the STAC NFT contract ISTAC public stac; ITOKE public toke; IRandomizer randomizer; address private devWallet; // maps tokenId to stake mapping(uint256 => Stake) public GrowOperation; // maps alpha to all Ape stakes mapping(uint256 => Stake[]) public dea; // tracks location of each Apes in DEA mapping(uint256 => uint256) public deaIndices; // total alpha scores staked uint256 public totalAlphaStaked = 0; // any rewards dialphaibuted when no Fed Apes are staked uint256 public unaccountedRewards = 0; // amount of $TOKE due for each alpha point staked uint256 public TokePerAlpha = 0; // Stoned Ape earn $TOKE per day uint256 public DAILY_TOKE_RATE = 10000 ether; // Stoned Pets earn $TOKE per day uint256 public PETS_DAILY_TOKE_RATE = 2000 ether; // Pets start and end tokenId uint256 public petsStartTokenId = 7500; uint256 public petsEndTokenId = 10000; // Stoned Ape must have 2 days worth of $TOKE to unstake or else it's too cold uint256 public MINIMUM_TO_EXIT = 2 days; // Fed Apes take a 20% tax on all $TOKE claimed uint256 public constant TOKE_CLAIM_TAX_PERCENTAGE = 20; // there will only ever be (roughly) 6 billion $TOKE earned through staking uint256 public MAXIMUM_GLOBAL_TOKE = 4200000000 ether; // amount of $TOKE earned so far uint256 public totalTOKEEarned; // number of Stoned Apes staked in the Grow Operation uint256 public totalStonedApesStaked; // the last time $TOKE was claimed uint256 public lastClaimTimestamp; // start of stake time uint256 public stakeStartTime = block.timestamp - 1; // emergency rescue to allow unstaking without any checks but without $TOKE bool public rescueEnabled = false; modifier onlyDev() { require(msg.sender == devWallet, "only dev"); _; } constructor() { devWallet = msg.sender; } /** STAKING */ /* * adds Fed Ape and Stoned Ape to the Grow Operation * requires allowance * @param tokenId the ID of the Fed Ape or Stoned Ape to stake */ function stake(uint256[] calldata tokenIds) external nonReentrant { require(block.timestamp > stakeStartTime, "not live"); for (uint256 i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; require(stac.ownerOf(tokenId) == msg.sender, "msg.sender not owner of tokenID"); stac.transferFrom(msg.sender, address(this), tokenId); if (!isFed(tokenId)) { _addApeToGrowOperation(tokenId); } else { _addFedApeToDEA(tokenId); } } } /** * adds a single Ape to the Grow Operation * @param tokenId the ID of the Stoned Ape to add to the Grow Operation */ function _addApeToGrowOperation(uint256 tokenId) internal _updateEarnings { GrowOperation[tokenId] = Stake({ owner: msg.sender, tokenId: tokenId, value: block.timestamp }); totalStonedApesStaked += 1; emit TokenStaked(msg.sender, tokenId, block.timestamp); } /** * adds a single Fed Ape to the DEA * @param tokenId the ID of the Fed Ape to add to the DEA */ function _addFedApeToDEA(uint256 tokenId) internal { uint256 alpha = _alphaForApe(tokenId); totalAlphaStaked += alpha; deaIndices[tokenId] = dea[alpha].length; // Store the location of the Fed Ape in the DEA dea[alpha].push(Stake({ owner: msg.sender, tokenId: tokenId, value: TokePerAlpha })); // Add the Fed Ape to the DEA emit TokenStaked(msg.sender, tokenId, TokePerAlpha); } /** CLAIMING / UNSTAKING */ /** * realize $TOKE earnings and optionally unstake tokens from the Grow Operation / DEA * to unstake an Ape it will require it has 2 days worth of $TOKE unclaimed * @param tokenIds the IDs of the tokens to claim earnings from * @param unstake whether or not to unstake ALL of the tokens listed in tokenIds */ function claim(uint256[] calldata tokenIds, bool unstake) external _updateEarnings nonReentrant { uint256 owed = 0; for (uint256 i = 0; i < tokenIds.length; i++) { if (!isFed(tokenIds[i])) { //Stoned Ape pay Stoned Ape tax owed += _claimStonedApeFromGrowOperation(tokenIds[i], unstake); } else { //Stoned Ape realise earnings owed += _claimFedApeFromDEA(tokenIds[i], unstake); } } toke.updateOriginAccess(); if (owed != 0) { toke.mint(msg.sender, owed); } } /** * realize $TOKE earnings for a single Stoned Ape and optionally unstake it * if not unstaking, pay a 20% tax to the staked Fed Apes * if unstaking, there is a 50% chance all $TOKE is stolen * @param tokenId the ID of the Stoned Ape to claim earnings from * @param unstake whether or not to unstake the Stoned Ape * @return owed - the amount of $TOKE earned */ function _claimStonedApeFromGrowOperation(uint256 tokenId, bool unstake) internal returns (uint256 owed) { Stake memory _stake = GrowOperation[tokenId]; require(_stake.owner == msg.sender, "msg.sender not stake.owner"); require( !(unstake && block.timestamp - _stake.value < MINIMUM_TO_EXIT), "block.timestamp - stake.value < MINIMUM_TO_EXIT" ); owed = getOwedToke(tokenId); if (unstake) { if (randomizer.random(0, 100, tokenId) > 50) { // 50% chance of all $TOKE stolen _payStonedApeTax(owed); owed = 0; } stac.safeTransferFrom(address(this), msg.sender, tokenId, ""); // send back Stoned Ape delete GrowOperation[tokenId]; totalStonedApesStaked -= 1; } else { _payStonedApeTax((owed * TOKE_CLAIM_TAX_PERCENTAGE) / 100); // percentage tax to staked Feds owed = (owed * (100 - TOKE_CLAIM_TAX_PERCENTAGE)) / 100; // remainder goes to Stoned Ape owner GrowOperation[tokenId] = Stake({ owner: msg.sender, tokenId: uint256(tokenId), value: uint256(block.timestamp) }); // reset stake } emit StonedApeClaimed(tokenId, owed, unstake); } /** * realize $TOKE earnings for a single Stoned Ape and optionally unstake it * Wolves earn $TOKE proportional to their alpha rank * @param tokenId the ID of the Stoned Ape to claim earnings from * @param unstake whether or not to unstake the Stoned Ape * @return owed - the amount of $TOKE earned */ function _claimFedApeFromDEA(uint256 tokenId, bool unstake) internal returns (uint256 owed) { require(stac.ownerOf(tokenId) == address(this), "Fed Ape is not staked in the DEA"); uint256 alpha = _alphaForApe(tokenId); Stake memory _stake = dea[alpha][deaIndices[tokenId]]; require(_stake.owner == msg.sender, "msg.sender is not stake.owner"); owed = getOwedToke(tokenId); if (unstake) { totalAlphaStaked -= alpha; // Remove alpha from total staked stac.safeTransferFrom(address(this), msg.sender, tokenId, ""); // Send back Fed Ape Stake memory lastStake = dea[alpha][dea[alpha].length - 1]; dea[alpha][deaIndices[tokenId]] = lastStake; // Shuffle last Fed Ape to current position deaIndices[lastStake.tokenId] = deaIndices[tokenId]; dea[alpha].pop(); // Remove duplicate delete deaIndices[tokenId]; // Delete old mapping } else { dea[alpha][deaIndices[tokenId]] = Stake({ owner: msg.sender, tokenId: uint256(tokenId), value: uint256(TokePerAlpha) }); // reset stake } emit FedApeClaimed(tokenId, owed, unstake); } /** * emergency unstake tokens * @param tokenIds the IDs of the tokens to claim earnings from */ function rescue(uint256[] calldata tokenIds) external nonReentrant { require(rescueEnabled, "RESCUE DISABLED"); uint256 tokenId; Stake memory _stake; Stake memory lastStake; uint256 alpha; for (uint256 i = 0; i < tokenIds.length; i++) { tokenId = tokenIds[i]; if (!isFed(tokenId)) { _stake = GrowOperation[tokenId]; require(_stake.owner == msg.sender, "msg.sender is not stake.owner"); stac.safeTransferFrom(address(this), msg.sender, tokenId, ""); // send back Ape delete GrowOperation[tokenId]; totalStonedApesStaked -= 1; emit StonedApeClaimed(tokenId, 0, true); } else { alpha = _alphaForApe(tokenId); _stake = dea[alpha][deaIndices[tokenId]]; require(_stake.owner == msg.sender, "msg.sender is not stake.owner"); totalAlphaStaked -= alpha; // Remove alpha from total staked stac.safeTransferFrom(address(this), msg.sender, tokenId, ""); // Send back Ape lastStake = dea[alpha][dea[alpha].length - 1]; dea[alpha][deaIndices[tokenId]] = lastStake; // Shuffle last Ape to current position deaIndices[lastStake.tokenId] = deaIndices[tokenId]; dea[alpha].pop(); // Remove duplicate delete deaIndices[tokenId]; // Delete old mapping emit FedApeClaimed(tokenId, 0, true); } } } /** ACCOUNTING */ /** * add $TOKE to claimable pot for the DEA * @param amount $TOKE to add to the pot */ function _payStonedApeTax(uint256 amount) internal { if (totalAlphaStaked == 0) { // if there's no staked wolves unaccountedRewards += amount; // keep track of $TOKE due to wolves return; } // makes sure to include any unaccounted $TOKE TokePerAlpha += (amount + unaccountedRewards) / totalAlphaStaked; unaccountedRewards = 0; } /** * tracks $TOKE earnings to ensure it stops once 2.4 billion is eclipsed */ modifier _updateEarnings() { if (totalTOKEEarned < MAXIMUM_GLOBAL_TOKE) { totalTOKEEarned += ((block.timestamp - lastClaimTimestamp) * totalStonedApesStaked * DAILY_TOKE_RATE) / 1 days; lastClaimTimestamp = block.timestamp; } _; } /** ADMIN */ /** * allows owner to enable "rescue mode" * simplifies accounting, prioritizes tokens out in emergency */ function setMinimumToExit(uint256 _amount) external onlyOwner { MINIMUM_TO_EXIT = _amount; } function setMaximumToke(uint256 _max) external onlyOwner { MAXIMUM_GLOBAL_TOKE = _max; } function setStakeStartTime(uint256 newTime) external onlyOwner { stakeStartTime = newTime; } function setDailyTokeRate(uint256 _newRate) external onlyOwner { DAILY_TOKE_RATE = _newRate; } function setPetsDailyTokeRate(uint256 _newRate) external onlyOwner { PETS_DAILY_TOKE_RATE = _newRate; } function setPetsStartTokenId(uint256 _tokenId) external onlyOwner { petsStartTokenId = _tokenId; } function setPetsEndTokenId(uint256 _tokenId) external onlyOwner { petsEndTokenId = _tokenId; } function setRescueEnabled(bool _enabled) external onlyDev { rescueEnabled = _enabled; } function setToke(address payable _toke) external onlyOwner { toke = ITOKE(_toke); } function setSTAC(address _stac) external onlyOwner { stac = ISTAC(_stac); } function setRandomizer(address _newRandomizer) external onlyOwner { randomizer = IRandomizer(_newRandomizer); } //if needed, economy tweaks function setalphaRatio(uint256 _newRatio) external onlyDev { ALPHA_RATIO = _newRatio; } /** READ ONLY */ function isFed(uint256 tokenId) public view returns (bool _isFed) { (_isFed, ) = stac.getTokenTraits(tokenId); if(isPet(tokenId) && _isFed) { _isFed = false; } } function isPet(uint256 tokenId) public view returns (bool _isPet) { _isPet = (tokenId >= petsStartTokenId && tokenId <= petsEndTokenId); } /** * gets the alphaengh score for a Stoned Ape (higher is better) * @param tokenId the ID of the Stoned Ape to get the alpha score for * @return the alpha score of the Stoned Ape */ function _alphaForApe(uint256 tokenId) internal view returns (uint256) { (, uint256 alphaIndex) = stac.getTokenTraits(tokenId); (tokenId); return alphaIndex; // higher is better } /** * Chooses a random Fed Ape when a newly minted token is stolen * @param seed a random value to choose a Stoned Ape from * @return the owner of the randomly selected Fed Ape */ function randomFedApeOwner(uint256 seed) external view returns (address) { if (totalAlphaStaked == 0) return address(0x0); uint256 bucket = (seed & 0xFFFFFFFF) % totalAlphaStaked; // choose a value from 0 to total alpha staked uint256 cumulative; seed >>= 32; // loop through each bucket of Feds with the same alpha score for (uint256 i = 1; i <= MAX_ALPHA; i++) { cumulative += dea[i].length * i; // if the value is not inside of that bucket, keep going if (bucket >= cumulative) continue; // get the address of a random Fed Ape with that alpha score return dea[i][seed % dea[i].length].owner; } return address(0x0); } /** * Get owed $TOKE from staked tokenId * @param tokenId staked token id * @return owed in $TOKE */ function getOwedToke(uint256 tokenId) public view returns (uint256 owed) { require(stac.ownerOf(tokenId) == address(this), "Token is not staked."); Stake memory _stake = GrowOperation[tokenId]; // default to Grow Operation // for each Ape if (!isFed(tokenId)) { if (totalTOKEEarned < MAXIMUM_GLOBAL_TOKE && !isPet(tokenId)) { owed = ((block.timestamp - _stake.value) * DAILY_TOKE_RATE) / 1 days; } else if (totalTOKEEarned < MAXIMUM_GLOBAL_TOKE && isPet(tokenId)) { owed = ((block.timestamp - _stake.value) * PETS_DAILY_TOKE_RATE) / 1 days; } else if (_stake.value > lastClaimTimestamp) { owed = 0; // $TOKE production stopped already } else { owed = ((lastClaimTimestamp - _stake.value) * DAILY_TOKE_RATE) / 1 days; // stop earning additional $TOKE if it's all been earned } return owed; } // for Fed Ape uint256 alpha = _alphaForApe(tokenId); _stake = dea[alpha][deaIndices[tokenId]]; owed = ((alpha * ALPHA_RATIO) / 1000) * (TokePerAlpha - _stake.value); // Calculate portion of tokens based on alpha return owed; } function onERC721Received( address, address, uint256, bytes calldata ) external pure override returns (bytes4) { return IERC721Receiver.onERC721Received.selector; } // withdrawal ETH (not used) function withdraw() external { uint256 totalBalance = address(this).balance; uint256 devFee = _calcPercentage(totalBalance, 500); payable(owner()).transfer(totalBalance - devFee); payable(devWallet).transfer(devFee); } function reclaimERC20(IERC20 erc20Token) external onlyOwner { erc20Token.transfer(msg.sender, erc20Token.balanceOf(address(this))); } function reclaimERC721(IERC721 erc721Token, uint256 id) external onlyOwner { erc721Token.safeTransferFrom(address(this), msg.sender, id); } //300 = 3%, 1 = 0.01% function _calcPercentage(uint256 amount, uint256 basisPoints) internal pure returns (uint256) { require(basisPoints >= 0); return (amount * basisPoints) / 10000; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // 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 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 (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 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens 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 amount ) 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, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// 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); }
{ "optimizer": { "enabled": true, "runs": 2000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"earned","type":"uint256"},{"indexed":false,"internalType":"bool","name":"unstaked","type":"bool"}],"name":"FedApeClaimed","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"earned","type":"uint256"},{"indexed":false,"internalType":"bool","name":"unstaked","type":"bool"}],"name":"StonedApeClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokenStaked","type":"event"},{"inputs":[],"name":"ALPHA_RATIO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAILY_TOKE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"GrowOperation","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_GLOBAL_TOKE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALPHA","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_TO_EXIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PETS_DAILY_TOKE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKE_CLAIM_TAX_PERCENTAGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TokePerAlpha","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bool","name":"unstake","type":"bool"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"dea","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deaIndices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwedToke","outputs":[{"internalType":"uint256","name":"owed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isFed","outputs":[{"internalType":"bool","name":"_isFed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isPet","outputs":[{"internalType":"bool","name":"_isPet","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastClaimTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"petsEndTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"petsStartTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"randomFedApeOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"erc20Token","type":"address"}],"name":"reclaimERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"erc721Token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"reclaimERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescueEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newRate","type":"uint256"}],"name":"setDailyTokeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaximumToke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMinimumToExit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newRate","type":"uint256"}],"name":"setPetsDailyTokeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"setPetsEndTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"setPetsStartTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRandomizer","type":"address"}],"name":"setRandomizer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setRescueEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stac","type":"address"}],"name":"setSTAC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTime","type":"uint256"}],"name":"setStakeStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_toke","type":"address"}],"name":"setToke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newRatio","type":"uint256"}],"name":"setalphaRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stac","outputs":[{"internalType":"contract ISTAC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toke","outputs":[{"internalType":"contract ITOKE","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAlphaStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStonedApesStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTOKEEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unaccountedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526103e86002556000600a556000600b556000600c5569021e19e0c9bab2400000600d55686c6b935b8bbd400000600e55611d4c600f556127106010556202a3006011556b0d92289838d21a9968000000601255600142620000669190620000f8565b6016556017805460ff191690553480156200008057600080fd5b506200008c33620000a8565b60018055600680546001600160a01b031916331790556200011e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000828210156200011957634e487b7160e01b600052601160045260246000fd5b500390565b612e0a806200012e6000396000f3fe608060405234801561001057600080fd5b50600436106103205760003560e01c80637419f190116101a7578063c50cda12116100ee578063ecdc863711610097578063f43c18f111610071578063f43c18f1146106c1578063f543bb0e146106d4578063f94c00f4146106e757600080fd5b8063ecdc86371461069c578063f2fde38b146106a5578063f3f51498146106b857600080fd5b8063d8377efc116100c8578063d8377efc14610678578063d8e1def51461068b578063dc318cd81461069457600080fd5b8063c50cda121461061a578063cc1b63d51461062d578063d4a0ef421461064057600080fd5b80638e3d691b11610150578063b6f9b60a1161012a578063b6f9b60a146105eb578063b9335cb1146105fe578063c0c472c01461061157600080fd5b80638e3d691b146105bc5780639cf2763d146105c5578063b5fd4fad146105d857600080fd5b806382b3caf21161018157806382b3caf2146105855780638905fd4f146105985780638da5cb5b146105ab57600080fd5b80637419f19014610556578063765310081461055f578063767bcab51461057257600080fd5b80635baa6fd51161026b5780636b6b3a3d11610214578063715018a6116101ee578063715018a61461050e5780637277a7e514610516578063736f827a1461054d57600080fd5b80636b6b3a3d146104d25780636b7d2470146104f25780636f2578751461050557600080fd5b8063643887371161024557806364388737146104815780636509cb4b146104945780636a3ef057146104bf57600080fd5b80635baa6fd51461045c5780635fed717014610465578063607af3971461047857600080fd5b806339db714f116102cd5780634524b659116102a75780634524b6591461042d57806348e691891461044057806359de1c421461044957600080fd5b806339db714f146103f55780633ccfd60b14610412578063419509131461041a57600080fd5b8063201ef2a4116102fe578063201ef2a4146103bf57806335c0043c146103d957806337a386b9146103ec57600080fd5b80630fbf0a9314610325578063124ac33b1461033a578063150b7a0214610356575b600080fd5b610338610333366004612a6e565b6106f0565b005b610343600d5481565b6040519081526020015b60405180910390f35b61038e610364366004612ac5565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff00000000000000000000000000000000000000000000000000000000909116815260200161034d565b6103c7600a81565b60405160ff909116815260200161034d565b6103386103e7366004612b64565b610951565b61034360115481565b6017546104029060ff1681565b604051901515815260200161034d565b6103386109b0565b610402610428366004612b64565b610a51565b61033861043b366004612b64565b610a6d565b61034360125481565b610343610457366004612b64565b610acc565b61034360105481565b610338610473366004612b64565b610d66565b61034360155481565b61033861048f366004612b64565b610dc5565b6003546104a7906001600160a01b031681565b6040516001600160a01b03909116815260200161034d565b6103386104cd366004612a6e565b610e24565b6103436104e0366004612b64565b60096020526000908152604090205481565b610338610500366004612b7d565b6113ca565b610343600a5481565b6103386114a7565b610529610524366004612ba9565b61150d565b6040805193845260208401929092526001600160a01b03169082015260600161034d565b61034360145481565b61034360165481565b61033861056d366004612bd9565b611558565b610338610580366004612bf6565b6115e3565b610338610593366004612b64565b61165f565b6103386105a6366004612bf6565b6116be565b6000546001600160a01b03166104a7565b61034360025481565b6104a76105d3366004612b64565b61182e565b6103386105e6366004612b64565b61190e565b6103386105f9366004612bf6565b61196d565b61033861060c366004612bf6565b6119e9565b610343600b5481565b610338610628366004612c13565b611a65565b61033861063b366004612b64565b611cc5565b61052961064e366004612b64565b6007602052600090815260409020805460018201546002909201549091906001600160a01b031683565b610338610686366004612b64565b611d24565b610343600c5481565b610343601481565b61034360135481565b6103386106b3366004612bf6565b611d83565b610343600f5481565b6104026106cf366004612b64565b611e65565b6004546104a7906001600160a01b031681565b610343600e5481565b600260015414156107485760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155601654421161079e5760405162461bcd60e51b815260206004820152600860248201527f6e6f74206c697665000000000000000000000000000000000000000000000000604482015260640161073f565b60005b818110156109485760008383838181106107bd576107bd612c6a565b6003546040516331a9108f60e11b8152602092909202939093013560048201819052935033926001600160a01b03169150636352211e90602401602060405180830381865afa158015610814573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108389190612c80565b6001600160a01b03161461088e5760405162461bcd60e51b815260206004820152601f60248201527f6d73672e73656e646572206e6f74206f776e6572206f6620746f6b656e494400604482015260640161073f565b6003546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156108f957600080fd5b505af115801561090d573d6000803e3d6000fd5b5050505061091a81611e65565b61092c5761092781611f0e565b610935565b6109358161201a565b508061094081612cb3565b9150506107a1565b50506001805550565b6000546001600160a01b031633146109ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600d55565b4760006109bf826101f46120fe565b90506109d36000546001600160a01b031690565b6001600160a01b03166108fc6109e98385612cce565b6040518115909202916000818181858888f19350505050158015610a11573d6000803e3d6000fd5b506006546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610a4c573d6000803e3d6000fd5b505050565b6000600f548210158015610a6757506010548211155b92915050565b6006546001600160a01b03163314610ac75760405162461bcd60e51b815260206004820152600860248201527f6f6e6c7920646576000000000000000000000000000000000000000000000000604482015260640161073f565b600255565b6003546040516331a9108f60e11b81526004810183905260009130916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610b1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3e9190612c80565b6001600160a01b031614610b945760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206973206e6f74207374616b65642e000000000000000000000000604482015260640161073f565b600082815260076020908152604091829020825160608101845281548152600182015492810192909252600201546001600160a01b031691810191909152610bdb83611e65565b610caf57601254601354108015610bf85750610bf683610a51565b155b15610c2f5762015180600d54826020015142610c149190612cce565b610c1e9190612ce5565b610c289190612d1a565b9150610ca9565b601254601354108015610c465750610c4683610a51565b15610c625762015180600e54826020015142610c149190612cce565b60155481602001511115610c795760009150610ca9565b62015180600d548260200151601554610c929190612cce565b610c9c9190612ce5565b610ca69190612d1a565b91505b50919050565b6000610cba8461211e565b6000818152600860209081526040808320888452600990925290912054815492935090918110610cec57610cec612c6a565b6000918252602091829020604080516060810182526003909302909101805483526001810154938301849052600201546001600160a01b031690820152600c54909350610d399190612cce565b6103e860025483610d4a9190612ce5565b610d549190612d1a565b610d5e9190612ce5565b949350505050565b6000546001600160a01b03163314610dc05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600f55565b6000546001600160a01b03163314610e1f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600e55565b60026001541415610e775760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161073f565b600260015560175460ff16610ece5760405162461bcd60e51b815260206004820152600f60248201527f5245534355452044495341424c45440000000000000000000000000000000000604482015260640161073f565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281018390526000805b858110156113bd57868682818110610f1f57610f1f612c6a565b905060200201359450610f3185611e65565b6110bf57600085815260076020908152604091829020825160608101845281548152600182015492810192909252600201546001600160a01b031691810182905294503314610fc25760405162461bcd60e51b815260206004820152601d60248201527f6d73672e73656e646572206973206e6f74207374616b652e6f776e6572000000604482015260640161073f565b600354604051635c46a7ef60e11b81523060048201523360248201526044810187905260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b15801561102257600080fd5b505af1158015611036573d6000803e3d6000fd5b50505060008681526007602052604081208181556001808201839055600290910180546001600160a01b0319169055601480549193509190611079908490612cce565b909155505060408051600081526001602082015286917f81e75478048d796b4c345d80df0142a7c6d4e467905ab242b37c425217db3e79910160405180910390a26113ab565b6110c88561211e565b60008181526008602090815260408083208984526009909252909120548154929450909181106110fa576110fa612c6a565b6000918252602091829020604080516060810182526003909302909101805483526001810154938301939093526002909201546001600160a01b03169181018290529450331461118c5760405162461bcd60e51b815260206004820152601d60248201527f6d73672e73656e646572206973206e6f74207374616b652e6f776e6572000000604482015260640161073f565b81600a600082825461119e9190612cce565b9091555050600354604051635c46a7ef60e11b81523060048201523360248201526044810187905260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b15801561120357600080fd5b505af1158015611217573d6000803e3d6000fd5b5050506000838152600860205260409020805490915061123990600190612cce565b8154811061124957611249612c6a565b6000918252602080832060408051606081018252600390940290910180548452600181015484840152600201546001600160a01b03168382015285845260088252808420898552600990925290922054825491955085929181106112af576112af612c6a565b60009182526020808320845160039390930201918255838101516001830155604093840151600290920180546001600160a01b0319166001600160a01b039093169290921790915587825260098152828220548651835283832055848252600890522080548061132157611321612d2e565b600082815260208082206003600019909401938402018281556001818101849055600290910180546001600160a01b031916905592909355878152600990925260408083208390555187927fffbbc7fbe9ebc8bcc1196721b29335ea46f5998db64728d7eee06f875c40e93f926113a2929182521515602082015260400190565b60405180910390a25b806113b581612cb3565b915050610f05565b5050600180555050505050565b6000546001600160a01b031633146114245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b6040517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b15801561148b57600080fd5b505af115801561149f573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146115015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b61150b60006121a8565b565b6008602052816000526040600020818154811061152957600080fd5b60009182526020909120600390910201805460018201546002909201549093509091506001600160a01b031683565b6006546001600160a01b031633146115b25760405162461bcd60e51b815260206004820152600860248201527f6f6e6c7920646576000000000000000000000000000000000000000000000000604482015260640161073f565b601780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000546001600160a01b0316331461163d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146116b95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b601155565b6000546001600160a01b031633146117185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa15801561177f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a39190612d44565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611806573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061182a9190612d5d565b5050565b6000600a546000141561184357506000919050565b6000600a548363ffffffff166118599190612d7a565b60209390931c929050600060015b600a811161190357600081815260086020526040902054611889908290612ce5565b6118939083612d8e565b91508183106118a1576118f1565b600081815260086020526040902080546118bb9087612d7a565b815481106118cb576118cb612c6a565b60009182526020909120600260039092020101546001600160a01b031695945050505050565b806118fb81612cb3565b915050611867565b506000949350505050565b6000546001600160a01b031633146119685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b601055565b6000546001600160a01b031633146119c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6012546013541015611ac25762015180600d5460145460155442611a899190612cce565b611a939190612ce5565b611a9d9190612ce5565b611aa79190612d1a565b60136000828254611ab89190612d8e565b9091555050426015555b60026001541415611b155760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161073f565b60026001556000805b83811015611bbf57611b47858583818110611b3b57611b3b612c6a565b90506020020135611e65565b611b7e57611b6d858583818110611b6057611b60612c6a565b90506020020135846121f8565b611b779083612d8e565b9150611bad565b611ba0858583818110611b9357611b93612c6a565b905060200201358461256b565b611baa9083612d8e565b91505b80611bb781612cb3565b915050611b1e565b5060048054604080517f9c47ee3b00000000000000000000000000000000000000000000000000000000815290516001600160a01b0390921692639c47ee3b92828201926000929082900301818387803b158015611c1c57600080fd5b505af1158015611c30573d6000803e3d6000fd5b5050505080600014611cbb57600480546040517f40c10f190000000000000000000000000000000000000000000000000000000081523392810192909252602482018390526001600160a01b0316906340c10f1990604401600060405180830381600087803b158015611ca257600080fd5b505af1158015611cb6573d6000803e3d6000fd5b505050505b5050600180555050565b6000546001600160a01b03163314611d1f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b601655565b6000546001600160a01b03163314611d7e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b601255565b6000546001600160a01b03163314611ddd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b6001600160a01b038116611e595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161073f565b611e62816121a8565b50565b6003546040517f94e56847000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b0316906394e56847906024016040805180830381865afa158015611ec7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eeb9190612da6565b509050611ef782610a51565b8015611f005750805b15611f09575060005b919050565b6012546013541015611f6b5762015180600d5460145460155442611f329190612cce565b611f3c9190612ce5565b611f469190612ce5565b611f509190612d1a565b60136000828254611f619190612d8e565b9091555050426015555b6040805160608101825282815242602080830191825233838501908152600086815260079092529381209251835590516001808401919091559251600290920180546001600160a01b0319166001600160a01b039093169290921790915560148054909190611fdb908490612d8e565b9091555050604051428152819033907f6173e4d2d9dd52aae0ed37afed3adcf924a490639b759ca93d32dc43366c17d29060200160405180910390a350565b60006120258261211e565b905080600a60008282546120399190612d8e565b909155505060008181526008602081815260408084208054878652600984528286208190559383528151606081018352878152600c8054828601908152338386018181526001808a018755958a52988790209351600390980290930196875551928601929092559451600290940180546001600160a01b0319166001600160a01b0390951694909417909355915491519182528492917f6173e4d2d9dd52aae0ed37afed3adcf924a490639b759ca93d32dc43366c17d2910160405180910390a35050565b600061271061210d8385612ce5565b6121179190612d1a565b9392505050565b6003546040517f94e568470000000000000000000000000000000000000000000000000000000081526004810183905260009182916001600160a01b03909116906394e56847906024016040805180830381865afa158015612184573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5e9190612da6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000828152600760209081526040808320815160608101835281548152600182015493810193909352600201546001600160a01b031690820181905233146122825760405162461bcd60e51b815260206004820152601a60248201527f6d73672e73656e646572206e6f74207374616b652e6f776e6572000000000000604482015260640161073f565b82801561229e5750601154602082015161229c9042612cce565b105b156123115760405162461bcd60e51b815260206004820152602f60248201527f626c6f636b2e74696d657374616d70202d207374616b652e76616c7565203c2060448201527f4d494e494d554d5f544f5f455849540000000000000000000000000000000000606482015260840161073f565b61231a84610acc565b9150821561248d576005546040517f7299054c00000000000000000000000000000000000000000000000000000000815260006004820152606460248201819052604482018790526032926001600160a01b031691637299054c9101602060405180830381865afa158015612393573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123b79190612d44565b11156123cb576123c6826129c9565b600091505b600354604051635c46a7ef60e11b81523060048201523360248201526044810186905260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b15801561242b57600080fd5b505af115801561243f573d6000803e3d6000fd5b50505060008581526007602052604081208181556001808201839055600290910180546001600160a01b0319169055601480549193509190612482908490612cce565b909155506125289050565b6124ac606461249d601485612ce5565b6124a79190612d1a565b6129c9565b60646124b9601482612cce565b6124c39084612ce5565b6124cd9190612d1a565b604080516060810182528681524260208083019182523383850190815260008a81526007909252939020915182555160018201559051600290910180546001600160a01b0319166001600160a01b0390921691909117905591505b60408051838152841515602082015285917f81e75478048d796b4c345d80df0142a7c6d4e467905ab242b37c425217db3e79910160405180910390a25092915050565b6003546040516331a9108f60e11b81526004810184905260009130916001600160a01b0390911690636352211e90602401602060405180830381865afa1580156125b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125dd9190612c80565b6001600160a01b0316146126335760405162461bcd60e51b815260206004820181905260248201527f46656420417065206973206e6f74207374616b656420696e2074686520444541604482015260640161073f565b600061263e8461211e565b6000818152600860209081526040808320888452600990925282205481549394509192909190811061267257612672612c6a565b6000918252602091829020604080516060810182526003909302909101805483526001810154938301939093526002909201546001600160a01b0316918101829052915033146127045760405162461bcd60e51b815260206004820152601d60248201527f6d73672e73656e646572206973206e6f74207374616b652e6f776e6572000000604482015260640161073f565b61270d85610acc565b925083156128f25781600a60008282546127279190612cce565b9091555050600354604051635c46a7ef60e11b81523060048201523360248201526044810187905260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b15801561278c57600080fd5b505af11580156127a0573d6000803e3d6000fd5b50505060008381526008602052604081208054919250906127c390600190612cce565b815481106127d3576127d3612c6a565b6000918252602080832060408051606081018252600390940290910180548452600181015484840152600201546001600160a01b031683820152868452600882528084208a85526009909252909220548254919350839291811061283957612839612c6a565b60009182526020808320845160039390930201918255838101516001830155604093840151600290920180546001600160a01b0319166001600160a01b03909316929092179091558882526009815282822054845183528383205585825260089052208054806128ab576128ab612d2e565b600082815260208082206003600019909401938402018281556001810183905560020180546001600160a01b03191690559190925587825260099052604081205550612985565b60408051606081018252868152600c546020808301919091523382840152600085815260088252838120898252600990925292909220548254919291811061293c5761293c612c6a565b6000918252602091829020835160039290920201908155908201516001820155604090910151600290910180546001600160a01b0319166001600160a01b039092169190911790555b60408051848152851515602082015286917fffbbc7fbe9ebc8bcc1196721b29335ea46f5998db64728d7eee06f875c40e93f910160405180910390a2505092915050565b600a546129ea5780600b60008282546129e29190612d8e565b909155505050565b600a54600b546129fa9083612d8e565b612a049190612d1a565b600c6000828254612a159190612d8e565b90915550506000600b5550565b60008083601f840112612a3457600080fd5b50813567ffffffffffffffff811115612a4c57600080fd5b6020830191508360208260051b8501011115612a6757600080fd5b9250929050565b60008060208385031215612a8157600080fd5b823567ffffffffffffffff811115612a9857600080fd5b612aa485828601612a22565b90969095509350505050565b6001600160a01b0381168114611e6257600080fd5b600080600080600060808688031215612add57600080fd5b8535612ae881612ab0565b94506020860135612af881612ab0565b935060408601359250606086013567ffffffffffffffff80821115612b1c57600080fd5b818801915088601f830112612b3057600080fd5b813581811115612b3f57600080fd5b896020828501011115612b5157600080fd5b9699959850939650602001949392505050565b600060208284031215612b7657600080fd5b5035919050565b60008060408385031215612b9057600080fd5b8235612b9b81612ab0565b946020939093013593505050565b60008060408385031215612bbc57600080fd5b50508035926020909101359150565b8015158114611e6257600080fd5b600060208284031215612beb57600080fd5b813561211781612bcb565b600060208284031215612c0857600080fd5b813561211781612ab0565b600080600060408486031215612c2857600080fd5b833567ffffffffffffffff811115612c3f57600080fd5b612c4b86828701612a22565b9094509250506020840135612c5f81612bcb565b809150509250925092565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612c9257600080fd5b815161211781612ab0565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cc757612cc7612c9d565b5060010190565b600082821015612ce057612ce0612c9d565b500390565b6000816000190483118215151615612cff57612cff612c9d565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612d2957612d29612d04565b500490565b634e487b7160e01b600052603160045260246000fd5b600060208284031215612d5657600080fd5b5051919050565b600060208284031215612d6f57600080fd5b815161211781612bcb565b600082612d8957612d89612d04565b500690565b60008219821115612da157612da1612c9d565b500190565b60008060408385031215612db957600080fd5b8251612dc481612bcb565b602093909301519294929350505056fea26469706673582212209539e0f62da23f554cc3a7ce4df966a32abc768f56ea6c9a22a140f6e0b4b3a064736f6c634300080b0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103205760003560e01c80637419f190116101a7578063c50cda12116100ee578063ecdc863711610097578063f43c18f111610071578063f43c18f1146106c1578063f543bb0e146106d4578063f94c00f4146106e757600080fd5b8063ecdc86371461069c578063f2fde38b146106a5578063f3f51498146106b857600080fd5b8063d8377efc116100c8578063d8377efc14610678578063d8e1def51461068b578063dc318cd81461069457600080fd5b8063c50cda121461061a578063cc1b63d51461062d578063d4a0ef421461064057600080fd5b80638e3d691b11610150578063b6f9b60a1161012a578063b6f9b60a146105eb578063b9335cb1146105fe578063c0c472c01461061157600080fd5b80638e3d691b146105bc5780639cf2763d146105c5578063b5fd4fad146105d857600080fd5b806382b3caf21161018157806382b3caf2146105855780638905fd4f146105985780638da5cb5b146105ab57600080fd5b80637419f19014610556578063765310081461055f578063767bcab51461057257600080fd5b80635baa6fd51161026b5780636b6b3a3d11610214578063715018a6116101ee578063715018a61461050e5780637277a7e514610516578063736f827a1461054d57600080fd5b80636b6b3a3d146104d25780636b7d2470146104f25780636f2578751461050557600080fd5b8063643887371161024557806364388737146104815780636509cb4b146104945780636a3ef057146104bf57600080fd5b80635baa6fd51461045c5780635fed717014610465578063607af3971461047857600080fd5b806339db714f116102cd5780634524b659116102a75780634524b6591461042d57806348e691891461044057806359de1c421461044957600080fd5b806339db714f146103f55780633ccfd60b14610412578063419509131461041a57600080fd5b8063201ef2a4116102fe578063201ef2a4146103bf57806335c0043c146103d957806337a386b9146103ec57600080fd5b80630fbf0a9314610325578063124ac33b1461033a578063150b7a0214610356575b600080fd5b610338610333366004612a6e565b6106f0565b005b610343600d5481565b6040519081526020015b60405180910390f35b61038e610364366004612ac5565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff00000000000000000000000000000000000000000000000000000000909116815260200161034d565b6103c7600a81565b60405160ff909116815260200161034d565b6103386103e7366004612b64565b610951565b61034360115481565b6017546104029060ff1681565b604051901515815260200161034d565b6103386109b0565b610402610428366004612b64565b610a51565b61033861043b366004612b64565b610a6d565b61034360125481565b610343610457366004612b64565b610acc565b61034360105481565b610338610473366004612b64565b610d66565b61034360155481565b61033861048f366004612b64565b610dc5565b6003546104a7906001600160a01b031681565b6040516001600160a01b03909116815260200161034d565b6103386104cd366004612a6e565b610e24565b6103436104e0366004612b64565b60096020526000908152604090205481565b610338610500366004612b7d565b6113ca565b610343600a5481565b6103386114a7565b610529610524366004612ba9565b61150d565b6040805193845260208401929092526001600160a01b03169082015260600161034d565b61034360145481565b61034360165481565b61033861056d366004612bd9565b611558565b610338610580366004612bf6565b6115e3565b610338610593366004612b64565b61165f565b6103386105a6366004612bf6565b6116be565b6000546001600160a01b03166104a7565b61034360025481565b6104a76105d3366004612b64565b61182e565b6103386105e6366004612b64565b61190e565b6103386105f9366004612bf6565b61196d565b61033861060c366004612bf6565b6119e9565b610343600b5481565b610338610628366004612c13565b611a65565b61033861063b366004612b64565b611cc5565b61052961064e366004612b64565b6007602052600090815260409020805460018201546002909201549091906001600160a01b031683565b610338610686366004612b64565b611d24565b610343600c5481565b610343601481565b61034360135481565b6103386106b3366004612bf6565b611d83565b610343600f5481565b6104026106cf366004612b64565b611e65565b6004546104a7906001600160a01b031681565b610343600e5481565b600260015414156107485760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155601654421161079e5760405162461bcd60e51b815260206004820152600860248201527f6e6f74206c697665000000000000000000000000000000000000000000000000604482015260640161073f565b60005b818110156109485760008383838181106107bd576107bd612c6a565b6003546040516331a9108f60e11b8152602092909202939093013560048201819052935033926001600160a01b03169150636352211e90602401602060405180830381865afa158015610814573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108389190612c80565b6001600160a01b03161461088e5760405162461bcd60e51b815260206004820152601f60248201527f6d73672e73656e646572206e6f74206f776e6572206f6620746f6b656e494400604482015260640161073f565b6003546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156108f957600080fd5b505af115801561090d573d6000803e3d6000fd5b5050505061091a81611e65565b61092c5761092781611f0e565b610935565b6109358161201a565b508061094081612cb3565b9150506107a1565b50506001805550565b6000546001600160a01b031633146109ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600d55565b4760006109bf826101f46120fe565b90506109d36000546001600160a01b031690565b6001600160a01b03166108fc6109e98385612cce565b6040518115909202916000818181858888f19350505050158015610a11573d6000803e3d6000fd5b506006546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610a4c573d6000803e3d6000fd5b505050565b6000600f548210158015610a6757506010548211155b92915050565b6006546001600160a01b03163314610ac75760405162461bcd60e51b815260206004820152600860248201527f6f6e6c7920646576000000000000000000000000000000000000000000000000604482015260640161073f565b600255565b6003546040516331a9108f60e11b81526004810183905260009130916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610b1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3e9190612c80565b6001600160a01b031614610b945760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206973206e6f74207374616b65642e000000000000000000000000604482015260640161073f565b600082815260076020908152604091829020825160608101845281548152600182015492810192909252600201546001600160a01b031691810191909152610bdb83611e65565b610caf57601254601354108015610bf85750610bf683610a51565b155b15610c2f5762015180600d54826020015142610c149190612cce565b610c1e9190612ce5565b610c289190612d1a565b9150610ca9565b601254601354108015610c465750610c4683610a51565b15610c625762015180600e54826020015142610c149190612cce565b60155481602001511115610c795760009150610ca9565b62015180600d548260200151601554610c929190612cce565b610c9c9190612ce5565b610ca69190612d1a565b91505b50919050565b6000610cba8461211e565b6000818152600860209081526040808320888452600990925290912054815492935090918110610cec57610cec612c6a565b6000918252602091829020604080516060810182526003909302909101805483526001810154938301849052600201546001600160a01b031690820152600c54909350610d399190612cce565b6103e860025483610d4a9190612ce5565b610d549190612d1a565b610d5e9190612ce5565b949350505050565b6000546001600160a01b03163314610dc05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600f55565b6000546001600160a01b03163314610e1f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600e55565b60026001541415610e775760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161073f565b600260015560175460ff16610ece5760405162461bcd60e51b815260206004820152600f60248201527f5245534355452044495341424c45440000000000000000000000000000000000604482015260640161073f565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281018390526000805b858110156113bd57868682818110610f1f57610f1f612c6a565b905060200201359450610f3185611e65565b6110bf57600085815260076020908152604091829020825160608101845281548152600182015492810192909252600201546001600160a01b031691810182905294503314610fc25760405162461bcd60e51b815260206004820152601d60248201527f6d73672e73656e646572206973206e6f74207374616b652e6f776e6572000000604482015260640161073f565b600354604051635c46a7ef60e11b81523060048201523360248201526044810187905260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b15801561102257600080fd5b505af1158015611036573d6000803e3d6000fd5b50505060008681526007602052604081208181556001808201839055600290910180546001600160a01b0319169055601480549193509190611079908490612cce565b909155505060408051600081526001602082015286917f81e75478048d796b4c345d80df0142a7c6d4e467905ab242b37c425217db3e79910160405180910390a26113ab565b6110c88561211e565b60008181526008602090815260408083208984526009909252909120548154929450909181106110fa576110fa612c6a565b6000918252602091829020604080516060810182526003909302909101805483526001810154938301939093526002909201546001600160a01b03169181018290529450331461118c5760405162461bcd60e51b815260206004820152601d60248201527f6d73672e73656e646572206973206e6f74207374616b652e6f776e6572000000604482015260640161073f565b81600a600082825461119e9190612cce565b9091555050600354604051635c46a7ef60e11b81523060048201523360248201526044810187905260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b15801561120357600080fd5b505af1158015611217573d6000803e3d6000fd5b5050506000838152600860205260409020805490915061123990600190612cce565b8154811061124957611249612c6a565b6000918252602080832060408051606081018252600390940290910180548452600181015484840152600201546001600160a01b03168382015285845260088252808420898552600990925290922054825491955085929181106112af576112af612c6a565b60009182526020808320845160039390930201918255838101516001830155604093840151600290920180546001600160a01b0319166001600160a01b039093169290921790915587825260098152828220548651835283832055848252600890522080548061132157611321612d2e565b600082815260208082206003600019909401938402018281556001818101849055600290910180546001600160a01b031916905592909355878152600990925260408083208390555187927fffbbc7fbe9ebc8bcc1196721b29335ea46f5998db64728d7eee06f875c40e93f926113a2929182521515602082015260400190565b60405180910390a25b806113b581612cb3565b915050610f05565b5050600180555050505050565b6000546001600160a01b031633146114245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b6040517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b15801561148b57600080fd5b505af115801561149f573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146115015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b61150b60006121a8565b565b6008602052816000526040600020818154811061152957600080fd5b60009182526020909120600390910201805460018201546002909201549093509091506001600160a01b031683565b6006546001600160a01b031633146115b25760405162461bcd60e51b815260206004820152600860248201527f6f6e6c7920646576000000000000000000000000000000000000000000000000604482015260640161073f565b601780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000546001600160a01b0316331461163d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146116b95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b601155565b6000546001600160a01b031633146117185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa15801561177f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a39190612d44565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611806573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061182a9190612d5d565b5050565b6000600a546000141561184357506000919050565b6000600a548363ffffffff166118599190612d7a565b60209390931c929050600060015b600a811161190357600081815260086020526040902054611889908290612ce5565b6118939083612d8e565b91508183106118a1576118f1565b600081815260086020526040902080546118bb9087612d7a565b815481106118cb576118cb612c6a565b60009182526020909120600260039092020101546001600160a01b031695945050505050565b806118fb81612cb3565b915050611867565b506000949350505050565b6000546001600160a01b031633146119685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b601055565b6000546001600160a01b031633146119c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6012546013541015611ac25762015180600d5460145460155442611a899190612cce565b611a939190612ce5565b611a9d9190612ce5565b611aa79190612d1a565b60136000828254611ab89190612d8e565b9091555050426015555b60026001541415611b155760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161073f565b60026001556000805b83811015611bbf57611b47858583818110611b3b57611b3b612c6a565b90506020020135611e65565b611b7e57611b6d858583818110611b6057611b60612c6a565b90506020020135846121f8565b611b779083612d8e565b9150611bad565b611ba0858583818110611b9357611b93612c6a565b905060200201358461256b565b611baa9083612d8e565b91505b80611bb781612cb3565b915050611b1e565b5060048054604080517f9c47ee3b00000000000000000000000000000000000000000000000000000000815290516001600160a01b0390921692639c47ee3b92828201926000929082900301818387803b158015611c1c57600080fd5b505af1158015611c30573d6000803e3d6000fd5b5050505080600014611cbb57600480546040517f40c10f190000000000000000000000000000000000000000000000000000000081523392810192909252602482018390526001600160a01b0316906340c10f1990604401600060405180830381600087803b158015611ca257600080fd5b505af1158015611cb6573d6000803e3d6000fd5b505050505b5050600180555050565b6000546001600160a01b03163314611d1f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b601655565b6000546001600160a01b03163314611d7e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b601255565b6000546001600160a01b03163314611ddd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073f565b6001600160a01b038116611e595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161073f565b611e62816121a8565b50565b6003546040517f94e56847000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b0316906394e56847906024016040805180830381865afa158015611ec7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eeb9190612da6565b509050611ef782610a51565b8015611f005750805b15611f09575060005b919050565b6012546013541015611f6b5762015180600d5460145460155442611f329190612cce565b611f3c9190612ce5565b611f469190612ce5565b611f509190612d1a565b60136000828254611f619190612d8e565b9091555050426015555b6040805160608101825282815242602080830191825233838501908152600086815260079092529381209251835590516001808401919091559251600290920180546001600160a01b0319166001600160a01b039093169290921790915560148054909190611fdb908490612d8e565b9091555050604051428152819033907f6173e4d2d9dd52aae0ed37afed3adcf924a490639b759ca93d32dc43366c17d29060200160405180910390a350565b60006120258261211e565b905080600a60008282546120399190612d8e565b909155505060008181526008602081815260408084208054878652600984528286208190559383528151606081018352878152600c8054828601908152338386018181526001808a018755958a52988790209351600390980290930196875551928601929092559451600290940180546001600160a01b0319166001600160a01b0390951694909417909355915491519182528492917f6173e4d2d9dd52aae0ed37afed3adcf924a490639b759ca93d32dc43366c17d2910160405180910390a35050565b600061271061210d8385612ce5565b6121179190612d1a565b9392505050565b6003546040517f94e568470000000000000000000000000000000000000000000000000000000081526004810183905260009182916001600160a01b03909116906394e56847906024016040805180830381865afa158015612184573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5e9190612da6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000828152600760209081526040808320815160608101835281548152600182015493810193909352600201546001600160a01b031690820181905233146122825760405162461bcd60e51b815260206004820152601a60248201527f6d73672e73656e646572206e6f74207374616b652e6f776e6572000000000000604482015260640161073f565b82801561229e5750601154602082015161229c9042612cce565b105b156123115760405162461bcd60e51b815260206004820152602f60248201527f626c6f636b2e74696d657374616d70202d207374616b652e76616c7565203c2060448201527f4d494e494d554d5f544f5f455849540000000000000000000000000000000000606482015260840161073f565b61231a84610acc565b9150821561248d576005546040517f7299054c00000000000000000000000000000000000000000000000000000000815260006004820152606460248201819052604482018790526032926001600160a01b031691637299054c9101602060405180830381865afa158015612393573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123b79190612d44565b11156123cb576123c6826129c9565b600091505b600354604051635c46a7ef60e11b81523060048201523360248201526044810186905260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b15801561242b57600080fd5b505af115801561243f573d6000803e3d6000fd5b50505060008581526007602052604081208181556001808201839055600290910180546001600160a01b0319169055601480549193509190612482908490612cce565b909155506125289050565b6124ac606461249d601485612ce5565b6124a79190612d1a565b6129c9565b60646124b9601482612cce565b6124c39084612ce5565b6124cd9190612d1a565b604080516060810182528681524260208083019182523383850190815260008a81526007909252939020915182555160018201559051600290910180546001600160a01b0319166001600160a01b0390921691909117905591505b60408051838152841515602082015285917f81e75478048d796b4c345d80df0142a7c6d4e467905ab242b37c425217db3e79910160405180910390a25092915050565b6003546040516331a9108f60e11b81526004810184905260009130916001600160a01b0390911690636352211e90602401602060405180830381865afa1580156125b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125dd9190612c80565b6001600160a01b0316146126335760405162461bcd60e51b815260206004820181905260248201527f46656420417065206973206e6f74207374616b656420696e2074686520444541604482015260640161073f565b600061263e8461211e565b6000818152600860209081526040808320888452600990925282205481549394509192909190811061267257612672612c6a565b6000918252602091829020604080516060810182526003909302909101805483526001810154938301939093526002909201546001600160a01b0316918101829052915033146127045760405162461bcd60e51b815260206004820152601d60248201527f6d73672e73656e646572206973206e6f74207374616b652e6f776e6572000000604482015260640161073f565b61270d85610acc565b925083156128f25781600a60008282546127279190612cce565b9091555050600354604051635c46a7ef60e11b81523060048201523360248201526044810187905260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b15801561278c57600080fd5b505af11580156127a0573d6000803e3d6000fd5b50505060008381526008602052604081208054919250906127c390600190612cce565b815481106127d3576127d3612c6a565b6000918252602080832060408051606081018252600390940290910180548452600181015484840152600201546001600160a01b031683820152868452600882528084208a85526009909252909220548254919350839291811061283957612839612c6a565b60009182526020808320845160039390930201918255838101516001830155604093840151600290920180546001600160a01b0319166001600160a01b03909316929092179091558882526009815282822054845183528383205585825260089052208054806128ab576128ab612d2e565b600082815260208082206003600019909401938402018281556001810183905560020180546001600160a01b03191690559190925587825260099052604081205550612985565b60408051606081018252868152600c546020808301919091523382840152600085815260088252838120898252600990925292909220548254919291811061293c5761293c612c6a565b6000918252602091829020835160039290920201908155908201516001820155604090910151600290910180546001600160a01b0319166001600160a01b039092169190911790555b60408051848152851515602082015286917fffbbc7fbe9ebc8bcc1196721b29335ea46f5998db64728d7eee06f875c40e93f910160405180910390a2505092915050565b600a546129ea5780600b60008282546129e29190612d8e565b909155505050565b600a54600b546129fa9083612d8e565b612a049190612d1a565b600c6000828254612a159190612d8e565b90915550506000600b5550565b60008083601f840112612a3457600080fd5b50813567ffffffffffffffff811115612a4c57600080fd5b6020830191508360208260051b8501011115612a6757600080fd5b9250929050565b60008060208385031215612a8157600080fd5b823567ffffffffffffffff811115612a9857600080fd5b612aa485828601612a22565b90969095509350505050565b6001600160a01b0381168114611e6257600080fd5b600080600080600060808688031215612add57600080fd5b8535612ae881612ab0565b94506020860135612af881612ab0565b935060408601359250606086013567ffffffffffffffff80821115612b1c57600080fd5b818801915088601f830112612b3057600080fd5b813581811115612b3f57600080fd5b896020828501011115612b5157600080fd5b9699959850939650602001949392505050565b600060208284031215612b7657600080fd5b5035919050565b60008060408385031215612b9057600080fd5b8235612b9b81612ab0565b946020939093013593505050565b60008060408385031215612bbc57600080fd5b50508035926020909101359150565b8015158114611e6257600080fd5b600060208284031215612beb57600080fd5b813561211781612bcb565b600060208284031215612c0857600080fd5b813561211781612ab0565b600080600060408486031215612c2857600080fd5b833567ffffffffffffffff811115612c3f57600080fd5b612c4b86828701612a22565b9094509250506020840135612c5f81612bcb565b809150509250925092565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612c9257600080fd5b815161211781612ab0565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cc757612cc7612c9d565b5060010190565b600082821015612ce057612ce0612c9d565b500390565b6000816000190483118215151615612cff57612cff612c9d565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612d2957612d29612d04565b500490565b634e487b7160e01b600052603160045260246000fd5b600060208284031215612d5657600080fd5b5051919050565b600060208284031215612d6f57600080fd5b815161211781612bcb565b600082612d8957612d89612d04565b500690565b60008219821115612da157612da1612c9d565b500190565b60008060408385031215612db957600080fd5b8251612dc481612bcb565b602093909301519294929350505056fea26469706673582212209539e0f62da23f554cc3a7ce4df966a32abc768f56ea6c9a22a140f6e0b4b3a064736f6c634300080b0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.