ETH Price: $3,277.16 (-1.59%)

Contract

0xC3503192343EAE4B435E4A1211C5d28BF6f6a696
 
Transaction Hash
Method
Block
From
To
Withdraw210266132024-10-23 6:52:1161 days ago1729666331IN
Creepz: Invasion Grounds
0 ETH0.007393086.42414261
Withdraw201376062024-06-21 4:07:59185 days ago1718942879IN
Creepz: Invasion Grounds
0 ETH0.001378943.82075689
Withdraw201375162024-06-21 3:49:35185 days ago1718941775IN
Creepz: Invasion Grounds
0 ETH0.000679973.57711801
Withdraw201375122024-06-21 3:48:47185 days ago1718941727IN
Creepz: Invasion Grounds
0 ETH0.000768423.46253888
Withdraw201374642024-06-21 3:39:11185 days ago1718941151IN
Creepz: Invasion Grounds
0 ETH0.001349733.71076651
Withdraw201374332024-06-21 3:32:59185 days ago1718940779IN
Creepz: Invasion Grounds
0 ETH0.001013394.21235258
Withdraw201373922024-06-21 3:24:47185 days ago1718940287IN
Creepz: Invasion Grounds
0 ETH0.004240573.1725998
Withdraw201373672024-06-21 3:19:47185 days ago1718939987IN
Creepz: Invasion Grounds
0 ETH0.004096173.06457161
Withdraw201373112024-06-21 3:08:35185 days ago1718939315IN
Creepz: Invasion Grounds
0 ETH0.003708312.77438914
Withdraw201369932024-06-21 2:04:11185 days ago1718935451IN
Creepz: Invasion Grounds
0 ETH0.000985472.90773848
Withdraw200562712024-06-09 19:11:23196 days ago1717960283IN
Creepz: Invasion Grounds
0 ETH0.0019554118.24967224
Withdraw173981882023-06-03 5:50:35569 days ago1685771435IN
Creepz: Invasion Grounds
0 ETH0.0047113719.54862358
Withdraw173872452023-06-01 16:48:23570 days ago1685638103IN
Creepz: Invasion Grounds
0 ETH0.0064048329.26387107
Withdraw173863712023-06-01 13:51:35570 days ago1685627495IN
Creepz: Invasion Grounds
0 ETH0.0031019336.67328641
Withdraw173863682023-06-01 13:50:59570 days ago1685627459IN
Creepz: Invasion Grounds
0 ETH0.0173227636.30221356
Withdraw173848472023-06-01 8:42:47570 days ago1685608967IN
Creepz: Invasion Grounds
0 ETH0.0030221735.73025691
Withdraw173848112023-06-01 8:35:23570 days ago1685608523IN
Creepz: Invasion Grounds
0 ETH0.0059387130.95195034
Withdraw173827892023-06-01 1:46:23571 days ago1685583983IN
Creepz: Invasion Grounds
0 ETH0.0027497236.64196646
Withdraw173827852023-06-01 1:45:35571 days ago1685583935IN
Creepz: Invasion Grounds
0 ETH0.0057916835.41664517
Withdraw173827592023-06-01 1:40:11571 days ago1685583611IN
Creepz: Invasion Grounds
0 ETH0.0029512234.89144859
Withdraw173827562023-06-01 1:39:35571 days ago1685583575IN
Creepz: Invasion Grounds
0 ETH0.0046935328.71733882
Withdraw173827542023-06-01 1:39:11571 days ago1685583551IN
Creepz: Invasion Grounds
0 ETH0.0050054236.05253956
Withdraw173827242023-06-01 1:33:11571 days ago1685583191IN
Creepz: Invasion Grounds
0 ETH0.0027909130.6548859
Withdraw173827202023-06-01 1:32:23571 days ago1685583143IN
Creepz: Invasion Grounds
0 ETH0.0079382131.59515628
Withdraw173823742023-06-01 0:21:47571 days ago1685578907IN
Creepz: Invasion Grounds
0 ETH0.0038617923.3818899
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CreepzInvasionGrounds

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : CBCStaking.sol
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

pragma solidity ^0.8.7;


//   /$$$$$$
//  /$$__  $$
// | $$  \__/  /$$$$$$   /$$$$$$   /$$$$$$   /$$$$$$  /$$$$$$$$
// | $$       /$$__  $$ /$$__  $$ /$$__  $$ /$$__  $$|____ /$$/
// | $$      | $$  \__/| $$$$$$$$| $$$$$$$$| $$  \ $$   /$$$$/
// | $$    $$| $$      | $$_____/| $$_____/| $$  | $$  /$$__/
// |  $$$$$$/| $$      |  $$$$$$$|  $$$$$$$| $$$$$$$/ /$$$$$$$$
//  \______/ |__/       \_______/ \_______/| $$____/ |________/
//                                         | $$
//                                         | $$
//                                         |__/
//
//  /$$$$$$                                         /$$
// |_  $$_/                                        |__/
//   | $$   /$$$$$$$  /$$    /$$ /$$$$$$   /$$$$$$$ /$$  /$$$$$$  /$$$$$$$
//   | $$  | $$__  $$|  $$  /$$/|____  $$ /$$_____/| $$ /$$__  $$| $$__  $$
//   | $$  | $$  \ $$ \  $$/$$/  /$$$$$$$|  $$$$$$ | $$| $$  \ $$| $$  \ $$
//   | $$  | $$  | $$  \  $$$/  /$$__  $$ \____  $$| $$| $$  | $$| $$  | $$
//  /$$$$$$| $$  | $$   \  $/  |  $$$$$$$ /$$$$$$$/| $$|  $$$$$$/| $$  | $$
// |______/|__/  |__/    \_/    \_______/|_______/ |__/ \______/ |__/  |__/
//
//
//
//   /$$$$$$                                                /$$
//  /$$__  $$                                              | $$
// | $$  \__/  /$$$$$$   /$$$$$$  /$$   /$$ /$$$$$$$   /$$$$$$$  /$$$$$$$
// | $$ /$$$$ /$$__  $$ /$$__  $$| $$  | $$| $$__  $$ /$$__  $$ /$$_____/
// | $$|_  $$| $$  \__/| $$  \ $$| $$  | $$| $$  \ $$| $$  | $$|  $$$$$$
// | $$  \ $$| $$      | $$  | $$| $$  | $$| $$  | $$| $$  | $$ \____  $$
// |  $$$$$$/| $$      |  $$$$$$/|  $$$$$$/| $$  | $$|  $$$$$$$ /$$$$$$$/
//  \______/ |__/       \______/  \______/ |__/  |__/ \_______/|_______/


contract CreepzInvasionGrounds is Ownable, ReentrancyGuard {
    IERC721 public CBCNft;
    IERC721 public ARMSNft;
    IERC721 public BLACKBOXNft;

    uint256 public constant SECONDS_IN_DAY = 24 * 60 * 60;
    uint256 public constant ACCELERATED_YIELD_DAYS = 2;
    uint256 public constant ACCELERATED_YIELD_MULTIPLIER = 2;
    uint256 public acceleratedYield;

    address public signerAddress;
    address[] public authorisedLog;

    bool public stakingLaunched;
    bool public depositPaused;

    struct Staker {
      uint256 currentYield;
      uint256 accumulatedAmount;
      uint256 lastCheckpoint;
      uint256[] stakedCBC;
      uint256[] stakedARMS;
      uint256[] stakedBLACKBOX;
    }

    enum ContractTypes {
      CBC,
      ARMS,
      BLACKBOX
    }

    mapping(address => uint256) public _baseRates;
    mapping(address => Staker) private _stakers;
    mapping(address => mapping(uint256 => address)) private _ownerOfToken;
    mapping(address => ContractTypes) private _contractTypes;
    mapping(address => mapping(uint256 => uint256)) private _tokensMultiplier;
    mapping (address => bool) private _authorised;

    event Deposit(address indexed staker,address contractAddress,uint256 tokensAmount);
    event Withdraw(address indexed staker,address contractAddress,uint256 tokensAmount);
    event AutoDeposit(address indexed contractAddress,uint256 tokenId,address indexed owner);
    event WithdrawStuckERC721(address indexed receiver, address indexed tokenAddress, uint256 indexed tokenId);

    constructor(
      address _cbc,
      address _signer
    ) {
        CBCNft = IERC721(_cbc);
        _contractTypes[_cbc] = ContractTypes.CBC;
        _baseRates[_cbc] = 1500 ether;

        signerAddress = _signer;
    }

    modifier authorised() {
      require(_authorised[_msgSender()], "The token contract is not authorised");
        _;
    }

    function deposit(
      address contractAddress,
      uint256[] memory tokenIds,
      uint256[] memory tokenTraits,
      bytes calldata signature
    ) public nonReentrant {
      require(!depositPaused, "Deposit paused");
      require(stakingLaunched, "Staking is not launched yet");
      require(
        contractAddress != address(0) &&
        contractAddress == address(CBCNft)
        || contractAddress == address(BLACKBOXNft)
        || contractAddress == address(ARMSNft),
        "Unknown contract"
      );
      ContractTypes contractType = _contractTypes[contractAddress];

      if (tokenTraits.length > 0) {
        require(_validateSignature(
          signature,
          contractAddress,
          tokenIds,
          tokenTraits
        ), "Invalid data provided");
        _setTokensValues(contractAddress, tokenIds, tokenTraits);
      }

      Staker storage user = _stakers[_msgSender()];
      uint256 newYield = user.currentYield;

      for (uint256 i; i < tokenIds.length; i++) {
        require(IERC721(contractAddress).ownerOf(tokenIds[i]) == _msgSender(), "Not the owner");
        IERC721(contractAddress).safeTransferFrom(_msgSender(), address(this), tokenIds[i]);

        _ownerOfToken[contractAddress][tokenIds[i]] = _msgSender();

        if (user.currentYield != 0 || contractType != ContractTypes.ARMS) {
          newYield += getTokenYield(contractAddress, tokenIds[i]);
        }

        if (contractType == ContractTypes.CBC) { user.stakedCBC.push(tokenIds[i]); }
        if (contractType == ContractTypes.ARMS) { user.stakedARMS.push(tokenIds[i]); }
        if (contractType == ContractTypes.BLACKBOX) { user.stakedBLACKBOX.push(tokenIds[i]); }
      }

      if (user.currentYield == 0 && newYield != 0 && user.stakedARMS.length > 0) {
        for (uint256 i; i < user.stakedARMS.length; i++) {
          uint256 tokenYield = getTokenYield(address(ARMSNft), user.stakedARMS[i]);
          newYield += tokenYield;
        }
      }

      accumulate(_msgSender());
      user.currentYield = newYield;

      emit Deposit(_msgSender(), contractAddress, tokenIds.length);
    }

    function withdraw(
      address contractAddress,
      uint256[] memory tokenIds
    ) public nonReentrant {
      require(
        contractAddress != address(0) &&
        contractAddress == address(CBCNft)
        || contractAddress == address(BLACKBOXNft)
        || contractAddress == address(ARMSNft),
        "Unknown contract"
      );
      ContractTypes contractType = _contractTypes[contractAddress];
      Staker storage user = _stakers[_msgSender()];
      uint256 newYield = user.currentYield;

      for (uint256 i; i < tokenIds.length; i++) {
        require(IERC721(contractAddress).ownerOf(tokenIds[i]) == address(this), "Not the owner");

        _ownerOfToken[contractAddress][tokenIds[i]] = address(0);

        if (user.currentYield != 0) {
          uint256 tokenYield = getTokenYield(contractAddress, tokenIds[i]);
          newYield -= tokenYield;
        }

        if (contractType == ContractTypes.CBC) {
          user.stakedCBC = _moveTokenInTheList(user.stakedCBC, tokenIds[i]);
          user.stakedCBC.pop();
        }
        if (contractType == ContractTypes.ARMS) {
          user.stakedARMS = _moveTokenInTheList(user.stakedARMS, tokenIds[i]);
          user.stakedARMS.pop();
        }
        if (contractType == ContractTypes.BLACKBOX) {
          user.stakedBLACKBOX = _moveTokenInTheList(user.stakedBLACKBOX, tokenIds[i]);
          user.stakedBLACKBOX.pop();
        }

        IERC721(contractAddress).safeTransferFrom(address(this), _msgSender(), tokenIds[i]);
      }

      if (user.stakedCBC.length == 0 && user.stakedBLACKBOX.length == 0) {
        newYield = 0;
      }

      accumulate(_msgSender());
      user.currentYield = newYield;

      emit Withdraw(_msgSender(), contractAddress, tokenIds.length);
    }

    function registerDeposit(address owner, address contractAddress, uint256 tokenId) public authorised {
      require(
        contractAddress != address(0) &&
        (contractAddress == address(BLACKBOXNft)
        || contractAddress == address(ARMSNft)),
        "Unknown contract"
      );
      require(IERC721(contractAddress).ownerOf(tokenId) == address(this), "!Owner");
      require(ownerOf(contractAddress, tokenId) == address(0), "Already deposited");

      _ownerOfToken[contractAddress][tokenId] = owner;

      Staker storage user = _stakers[owner];
      ContractTypes contractType = _contractTypes[contractAddress];
      uint256 newYield = user.currentYield;

      if (user.currentYield != 0 || contractType != ContractTypes.ARMS) {
        newYield += getTokenYield(contractAddress, tokenId);
      }

      if (contractType == ContractTypes.ARMS) { user.stakedARMS.push(tokenId); }
      if (contractType == ContractTypes.BLACKBOX) { user.stakedBLACKBOX.push(tokenId); }

      if (user.currentYield == 0 && newYield != 0 && user.stakedARMS.length > 0) {
        for (uint256 i; i < user.stakedARMS.length; i++) {
          uint256 tokenYield = getTokenYield(address(ARMSNft), user.stakedARMS[i]);
          newYield += tokenYield;
        }
      }

      accumulate(owner);
      user.currentYield = newYield;

      emit AutoDeposit(contractAddress, tokenId, _msgSender());
    }

    function getAccumulatedAmount(address staker) external view returns (uint256) {
      return _stakers[staker].accumulatedAmount + getCurrentReward(staker);
    }

    function getTokenYield(address contractAddress, uint256 tokenId) public view returns (uint256) {
      uint256 tokenYield = _tokensMultiplier[contractAddress][tokenId];
      if (tokenYield == 0) { tokenYield = _baseRates[contractAddress]; }

      return tokenYield;
    }

    function getStakerYield(address staker) public view returns (uint256) {
      return _stakers[staker].currentYield;
    }

    function getStakerTokens(address staker) public view returns (uint256[] memory, uint256[] memory, uint256[] memory) {
      return (_stakers[staker].stakedCBC, _stakers[staker].stakedARMS, _stakers[staker].stakedBLACKBOX);
    }

    function isMultiplierSet(address contractAddress, uint256 tokenId) public view returns (bool) {
      return _tokensMultiplier[contractAddress][tokenId] > 0;
    }

    function _moveTokenInTheList(uint256[] memory list, uint256 tokenId) internal pure returns (uint256[] memory) {
      uint256 tokenIndex = 0;
      uint256 lastTokenIndex = list.length - 1;
      uint256 length = list.length;

      for(uint256 i = 0; i < length; i++) {
        if (list[i] == tokenId) {
          tokenIndex = i + 1;
          break;
        }
      }
      require(tokenIndex != 0, "msg.sender is not the owner");

      tokenIndex -= 1;

      if (tokenIndex != lastTokenIndex) {
        list[tokenIndex] = list[lastTokenIndex];
        list[lastTokenIndex] = tokenId;
      }

      return list;
    }

    function _validateSignature(
      bytes calldata signature,
      address contractAddress,
      uint256[] memory tokenIds,
      uint256[] memory tokenTraits
      ) internal view returns (bool) {
      bytes32 dataHash = keccak256(abi.encodePacked(contractAddress, tokenIds, tokenTraits));
      bytes32 message = ECDSA.toEthSignedMessageHash(dataHash);

      address receivedAddress = ECDSA.recover(message, signature);
      return (receivedAddress != address(0) && receivedAddress == signerAddress);
    }

    function _setTokensValues(
      address contractAddress,
      uint256[] memory tokenIds,
      uint256[] memory tokenTraits
    ) internal {
      require(tokenIds.length == tokenTraits.length, "Wrong arrays provided");
      for (uint256 i; i < tokenIds.length; i++) {
        if (tokenTraits[i] != 0 && tokenTraits[i] <= 3000 ether) {
          _tokensMultiplier[contractAddress][tokenIds[i]] = tokenTraits[i];
        }
      }
    }

    function getCurrentReward(address staker) public view returns (uint256) {
      Staker memory user = _stakers[staker];
      if (user.lastCheckpoint == 0) { return 0; }
      if (user.lastCheckpoint < acceleratedYield && block.timestamp < acceleratedYield) {
        return (block.timestamp - user.lastCheckpoint) * user.currentYield / SECONDS_IN_DAY * ACCELERATED_YIELD_MULTIPLIER;
      }
      if (user.lastCheckpoint < acceleratedYield && block.timestamp > acceleratedYield) {
        uint256 currentReward;
        currentReward += (acceleratedYield - user.lastCheckpoint) * user.currentYield / SECONDS_IN_DAY * ACCELERATED_YIELD_MULTIPLIER;
        currentReward += (block.timestamp - acceleratedYield) * user.currentYield / SECONDS_IN_DAY;
        return currentReward;
      }
      return (block.timestamp - user.lastCheckpoint) * user.currentYield / SECONDS_IN_DAY;
    }

    function accumulate(address staker) internal {
      _stakers[staker].accumulatedAmount += getCurrentReward(staker);
      _stakers[staker].lastCheckpoint = block.timestamp;
    }

    /**
    * @dev Returns token owner address (returns address(0) if token is not inside the gateway)
    */
    function ownerOf(address contractAddress, uint256 tokenId) public view returns (address) {
      return _ownerOfToken[contractAddress][tokenId];
    }

    function setArmsContract(address _arms, uint256 _baseReward) public onlyOwner {
      ARMSNft = IERC721(_arms);
      _contractTypes[_arms] = ContractTypes.ARMS;
      _baseRates[_arms] = _baseReward;
    }

    function setBlackboxContract(address _blackBox, uint256 _baseReward) public onlyOwner {
      BLACKBOXNft = IERC721(_blackBox);
      _contractTypes[_blackBox] = ContractTypes.BLACKBOX;
      _baseRates[_blackBox] = _baseReward;
    }

    /**
    * @dev Admin function to authorise the contract address
    */
    function authorise(address toAuth) public onlyOwner {
      _authorised[toAuth] = true;
      authorisedLog.push(toAuth);
    }

    /**
    * @dev Function allows admin add unauthorised address.
    */
    function unauthorise(address addressToUnAuth) public onlyOwner {
      _authorised[addressToUnAuth] = false;
    }

    /**
    * @dev Function allows admin withdraw ERC721 in case of emergency.
    */
    function emergencyWithdraw(address tokenAddress, uint256[] memory tokenIds) public onlyOwner {
      require(tokenIds.length <= 50, "50 is max per tx");
      pauseDeposit(true);
      for (uint256 i; i < tokenIds.length; i++) {
        address receiver = _ownerOfToken[tokenAddress][tokenIds[i]];
        if (receiver != address(0) && IERC721(tokenAddress).ownerOf(tokenIds[i]) == address(this)) {
          IERC721(tokenAddress).transferFrom(address(this), receiver, tokenIds[i]);
          emit WithdrawStuckERC721(receiver, tokenAddress, tokenIds[i]);
        }
      }
    }


    /**
    * @dev Function allows to pause deposits if needed. Withdraw remains active.
    */
    function pauseDeposit(bool _pause) public onlyOwner {
      depositPaused = _pause;
    }

    /**
    * @dev Function allows to pause deposits if needed. Withdraw remains active.
    */
    function updateSignerAddress(address _signer) public onlyOwner {
      signerAddress = _signer;
    }

    function launchStaking() public onlyOwner {
      require(!stakingLaunched, "Staking has been launched already");
      stakingLaunched = true;
      acceleratedYield = block.timestamp + (SECONDS_IN_DAY * ACCELERATED_YIELD_DAYS);
    }

    function updateBaseYield(address _contract, uint256 _yield) public onlyOwner {
      _baseRates[_contract] = _yield;
    }

    function onERC721Received(address, address, uint256, bytes calldata) external pure returns(bytes4){
      return bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"));
    }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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);
    }
}

File 3 of 9 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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;
}

File 4 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 5 of 9 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 6 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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;
    }
}

File 7 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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;
    }
}

File 8 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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);
}

File 9 of 9 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_cbc","type":"address"},{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"AutoDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokensAmount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokensAmount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"WithdrawStuckERC721","type":"event"},{"inputs":[],"name":"ACCELERATED_YIELD_DAYS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACCELERATED_YIELD_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ARMSNft","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BLACKBOXNft","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CBCNft","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECONDS_IN_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_baseRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceleratedYield","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toAuth","type":"address"}],"name":"authorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"authorisedLog","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"tokenTraits","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getAccumulatedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getCurrentReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getStakerTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getStakerYield","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenYield","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMultiplierSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchStaking","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"registerDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_arms","type":"address"},{"internalType":"uint256","name":"_baseReward","type":"uint256"}],"name":"setArmsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_blackBox","type":"address"},{"internalType":"uint256","name":"_baseReward","type":"uint256"}],"name":"setBlackboxContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingLaunched","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addressToUnAuth","type":"address"}],"name":"unauthorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"_yield","type":"uint256"}],"name":"updateBaseYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"updateSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002f1638038062002f16833981016040819052620000349162000110565b6200003f33620000a3565b60018055600280546001600160a01b039384166001600160a01b031991821681179092556000918252600c60209081526040808420805460ff191690556009909152909120685150ae84a8cdf0000090556006805492909316911617905562000148565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200010b57600080fd5b919050565b600080604083850312156200012457600080fd5b6200012f83620000f3565b91506200013f60208401620000f3565b90509250929050565b612dbe80620001586000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c8063715018a611610125578063c1c1ef98116100ad578063dfeaa74c1161007c578063dfeaa74c146104fb578063e1af56981461050e578063e34dc4601461051b578063edcb812c1461052e578063f2fde38b1461054157600080fd5b8063c1c1ef9814610442578063c3de7c9c146104c2578063c68e5161146104d5578063c82bc61d146104e857600080fd5b80638293744b116100f45780638293744b146104705780638da5cb5b146104835780638fa2a9f014610494578063a30a2474146104a7578063a7de105b146104af57600080fd5b8063715018a61461043a5780637486560d146104425780637af617751461044a57806380833d781461045d57600080fd5b806323101e27116101a857806352a664d91161017757806352a664d9146103e45780635b7633d0146103f757806361499ab91461040a57806361a52a361461041d57806366e6c8af1461042757600080fd5b806323101e2714610375578063415855d6146103955780634bee21d4146103a85780634d307e3f146103d157600080fd5b8063150b7a02116101e4578063150b7a021461027c5780631ae73557146102cd5780631f29d2dc146103055780632161a2b61461035357600080fd5b806302befd2414610216578063041296671461023d57806309828c9f1461025e5780631405943314610267575b600080fd5b60085461022890610100900460ff1681565b60405190151581526020015b60405180910390f35b61025061024b36600461290c565b610554565b604051908152602001610234565b61025060055481565b61027a610275366004612adb565b61058b565b005b6102b461028a366004612987565b7f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b6040516001600160e01b03199091168152602001610234565b6102286102db366004612adb565b6001600160a01b03919091166000908152600d602090815260408083209383529290522054151590565b61033b610313366004612adb565b6001600160a01b039182166000908152600b6020908152604080832093835292905220541690565b6040516001600160a01b039091168152602001610234565b61036661036136600461290c565b610618565b60405161023493929190612bd8565b61025061038336600461290c565b60096020526000908152604090205481565b61027a6103a3366004612b07565b610746565b6102506103b636600461290c565b6001600160a01b03166000908152600a602052604090205490565b6102506103df36600461290c565b61078a565b61027a6103f2366004612946565b610a08565b60065461033b906001600160a01b031681565b610250610418366004612adb565b610dcc565b6102506201518081565b61027a61043536600461290c565b610e13565b61027a610ea3565b610250600281565b61027a610458366004612a4a565b610ed9565b61027a61046b36600461290c565b611508565b61027a61047e3660046129fa565b611553565b6000546001600160a01b031661033b565b61027a6104a236600461290c565b611b50565b61027a611b9c565b60025461033b906001600160a01b031681565b60045461033b906001600160a01b031681565b61027a6104e3366004612adb565b611c4d565b61033b6104f6366004612b29565b611c93565b61027a6105093660046129fa565b611cbd565b6008546102289060ff1681565b60035461033b906001600160a01b031681565b61027a61053c366004612adb565b611f59565b61027a61054f36600461290c565b611fc1565b600061055f8261078a565b6001600160a01b0383166000908152600a60205260409020600101546105859190612c7a565b92915050565b6000546001600160a01b031633146105be5760405162461bcd60e51b81526004016105b590612c1b565b60405180910390fd5b600380546001600160a01b0319166001600160a01b0384169081179091556000908152600c6020526040902080546001919060ff191682805b02179055506001600160a01b03909116600090815260096020526040902055565b6001600160a01b0381166000908152600a60209081526040918290206003810180548451818502810185019095528085526060948594859460048101936005909101929185919083018282801561068e57602002820191906000526020600020905b81548152602001906001019080831161067a575b50505050509250818054806020026020016040519081016040528092919081815260200182805480156106e057602002820191906000526020600020905b8154815260200190600101908083116106cc575b505050505091508080548060200260200160405190810160405280929190818152602001828054801561073257602002820191906000526020600020905b81548152602001906001019080831161071e575b505050505090509250925092509193909250565b6000546001600160a01b031633146107705760405162461bcd60e51b81526004016105b590612c1b565b600880549115156101000261ff0019909216919091179055565b6001600160a01b0381166000908152600a60209081526040808320815160c081018352815481526001820154818501526002820154818401526003820180548451818702810187019095528085528695929460608601939092919083018282801561081457602002820191906000526020600020905b815481526020019060010190808311610800575b505050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561086c57602002820191906000526020600020905b815481526020019060010190808311610858575b50505050508152602001600582018054806020026020016040519081016040528092919081815260200182805480156108c457602002820191906000526020600020905b8154815260200190600101908083116108b0575b50505050508152505090508060400151600014156108e55750600092915050565b60055481604001511080156108fb575060055442105b1561093e578051604082015160029162015180916109199042612cd3565b6109239190612cb4565b61092d9190612c92565b6109379190612cb4565b9392505050565b6005548160400151108015610954575060055442115b156109dd576000600262015180836000015184604001516005546109789190612cd3565b6109829190612cb4565b61098c9190612c92565b6109969190612cb4565b6109a09082612c7a565b825160055491925062015180916109b79042612cd3565b6109c19190612cb4565b6109cb9190612c92565b6109d59082612c7a565b949350505050565b805160408201516201518091906109f49042612cd3565b6109fe9190612cb4565b6109379190612c92565b336000908152600e602052604090205460ff16610a735760405162461bcd60e51b8152602060048201526024808201527f54686520746f6b656e20636f6e7472616374206973206e6f7420617574686f726044820152631a5cd95960e21b60648201526084016105b5565b6001600160a01b03821615801590610aaf57506004546001600160a01b0383811691161480610aaf57506003546001600160a01b038381169116145b610acb5760405162461bcd60e51b81526004016105b590612c50565b6040516331a9108f60e11b81526004810182905230906001600160a01b03841690636352211e9060240160206040518083038186803b158015610b0d57600080fd5b505afa158015610b21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b459190612929565b6001600160a01b031614610b845760405162461bcd60e51b815260206004820152600660248201526510a7bbb732b960d11b60448201526064016105b5565b6001600160a01b038281166000908152600b602090815260408083208584529091529020541615610beb5760405162461bcd60e51b8152602060048201526011602482015270105b1c9958591e4819195c1bdcda5d1959607a1b60448201526064016105b5565b6001600160a01b038281166000818152600b60209081526040808320868452825280832080546001600160a01b0319169589169586179055938252600a8152838220928252600c90529190912054815460ff9091169080151580610c6157506001826002811115610c5e57610c5e612d1b565b14155b15610c7d57610c708585610dcc565b610c7a9082612c7a565b90505b6001826002811115610c9157610c91612d1b565b1415610cb25760048301805460018101825560009182526020909120018490555b6002826002811115610cc657610cc6612d1b565b1415610ce75760058301805460018101825560009182526020909120018490555b8254158015610cf557508015155b8015610d045750600483015415155b15610d785760005b6004840154811015610d7657600354600485018054600092610d54926001600160a01b039091169185908110610d4457610d44612d47565b9060005260206000200154610dcc565b9050610d608184612c7a565b9250508080610d6e90612cea565b915050610d0c565b505b610d818661205c565b80835560405184815233906001600160a01b038716907f436e7d6cb7f19c3131fe911670b5df727897621eb40f5feeca9b1a47baf2a5dc9060200160405180910390a3505050505050565b6001600160a01b0382166000908152600d6020908152604080832084845290915281205480610937575050506001600160a01b031660009081526009602052604090205490565b6000546001600160a01b03163314610e3d5760405162461bcd60e51b81526004016105b590612c1b565b6001600160a01b03166000818152600e60205260408120805460ff191660019081179091556007805491820181559091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319169091179055565b6000546001600160a01b03163314610ecd5760405162461bcd60e51b81526004016105b590612c1b565b610ed760006120b5565b565b60026001541415610f2c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b5565b6002600155600854610100900460ff1615610f7a5760405162461bcd60e51b815260206004820152600e60248201526d11195c1bdcda5d081c185d5cd95960921b60448201526064016105b5565b60085460ff16610fcc5760405162461bcd60e51b815260206004820152601b60248201527f5374616b696e67206973206e6f74206c61756e6368656420796574000000000060448201526064016105b5565b6001600160a01b03851615801590610ff157506002546001600160a01b038681169116145b8061100957506004546001600160a01b038681169116145b8061102157506003546001600160a01b038681169116145b61103d5760405162461bcd60e51b81526004016105b590612c50565b6001600160a01b0385166000908152600c6020526040902054835160ff90911690156110bf576110708383888888612105565b6110b45760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a590819185d18481c1c9bdd9a591959605a1b60448201526064016105b5565b6110bf868686612206565b336000908152600a60205260408120805490915b875181101561142557336001600160a01b0316896001600160a01b0316636352211e8a848151811061110757611107612d47565b60200260200101516040518263ffffffff1660e01b815260040161112d91815260200190565b60206040518083038186803b15801561114557600080fd5b505afa158015611159573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117d9190612929565b6001600160a01b0316146111c35760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b60448201526064016105b5565b6001600160a01b0389166342842e0e33308b85815181106111e6576111e6612d47565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561124057600080fd5b505af1158015611254573d6000803e3d6000fd5b5050505061125f3390565b6001600160a01b038a166000908152600b602052604081208a519091908b908590811061128e5761128e612d47565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550826000015460001415806112ee575060018460028111156112eb576112eb612d1b565b14155b15611323576113168989838151811061130957611309612d47565b6020026020010151610dcc565b6113209083612c7a565b91505b600084600281111561133757611337612d1b565b1415611373578260030188828151811061135357611353612d47565b602090810291909101810151825460018101845560009384529190922001555b600184600281111561138757611387612d1b565b14156113c357826004018882815181106113a3576113a3612d47565b602090810291909101810151825460018101845560009384529190922001555b60028460028111156113d7576113d7612d1b565b141561141357826005018882815181106113f3576113f3612d47565b602090810291909101810151825460018101845560009384529190922001555b8061141d81612cea565b9150506110d3565b50815415801561143457508015155b80156114435750600482015415155b156114a75760005b60048301548110156114a557600354600484018054600092611483926001600160a01b039091169185908110610d4457610d44612d47565b905061148f8184612c7a565b925050808061149d90612cea565b91505061144b565b505b6114b03361205c565b8082558651604080516001600160a01b038b168152602081019290925233917f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62910160405180910390a2505060018055505050505050565b6000546001600160a01b031633146115325760405162461bcd60e51b81526004016105b590612c1b565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b600260015414156115a65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b5565b60026001556001600160a01b038216158015906115d057506002546001600160a01b038381169116145b806115e857506004546001600160a01b038381169116145b8061160057506003546001600160a01b038381169116145b61161c5760405162461bcd60e51b81526004016105b590612c50565b6001600160a01b0382166000908152600c6020908152604080832054338452600a9092528220805460ff909216929091905b8451811015611ad457306001600160a01b0316866001600160a01b0316636352211e87848151811061168257611682612d47565b60200260200101516040518263ffffffff1660e01b81526004016116a891815260200190565b60206040518083038186803b1580156116c057600080fd5b505afa1580156116d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f89190612929565b6001600160a01b03161461173e5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b60448201526064016105b5565b6001600160a01b0386166000908152600b602052604081208651829088908590811061176c5761176c612d47565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555082600001546000146117da5760006117ca8787848151811061130957611309612d47565b90506117d68184612cd3565b9250505b60008460028111156117ee576117ee612d1b565b14156118aa576118698360030180548060200260200160405190810160405280929190818152602001828054801561184557602002820191906000526020600020905b815481526020019060010190808311611831575b505050505086838151811061185c5761185c612d47565b6020026020010151612332565b805161187f9160038601916020909101906127c9565b508260030180548061189357611893612d31565b600190038181906000526020600020016000905590555b60018460028111156118be576118be612d1b565b141561196b5761192a83600401805480602002602001604051908101604052809291908181526020018280548015611845576020028201919060005260206000209081548152602001906001019080831161183157505050505086838151811061185c5761185c612d47565b80516119409160048601916020909101906127c9565b508260040180548061195457611954612d31565b600190038181906000526020600020016000905590555b600284600281111561197f5761197f612d1b565b1415611a2c576119eb83600501805480602002602001604051908101604052809291908181526020018280548015611845576020028201919060005260206000209081548152602001906001019080831161183157505050505086838151811061185c5761185c612d47565b8051611a019160058601916020909101906127c9565b5082600501805480611a1557611a15612d31565b600190038181906000526020600020016000905590555b6001600160a01b0386166342842e0e3033888581518110611a4f57611a4f612d47565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611aa957600080fd5b505af1158015611abd573d6000803e3d6000fd5b505050508080611acc90612cea565b91505061164e565b506003820154158015611ae957506005820154155b15611af2575060005b611afb3361205c565b8082558351604080516001600160a01b0388168152602081019290925233917f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb910160405180910390a2505060018055505050565b6000546001600160a01b03163314611b7a5760405162461bcd60e51b81526004016105b590612c1b565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611bc65760405162461bcd60e51b81526004016105b590612c1b565b60085460ff1615611c235760405162461bcd60e51b815260206004820152602160248201527f5374616b696e6720686173206265656e206c61756e6368656420616c726561646044820152607960f81b60648201526084016105b5565b6008805460ff19166001179055611c3e600262015180612cb4565b611c489042612c7a565b600555565b6000546001600160a01b03163314611c775760405162461bcd60e51b81526004016105b590612c1b565b6001600160a01b03909116600090815260096020526040902055565b60078181548110611ca357600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314611ce75760405162461bcd60e51b81526004016105b590612c1b565b603281511115611d2c5760405162461bcd60e51b815260206004820152601060248201526f06a6040d2e640dac2f040e0cae440e8f60831b60448201526064016105b5565b611d366001610746565b60005b8151811015611f54576001600160a01b0383166000908152600b6020526040812083518290859085908110611d7057611d70612d47565b6020908102919091018101518252810191909152604001600020546001600160a01b031690508015801590611e4c5750306001600160a01b0316846001600160a01b0316636352211e858581518110611dcb57611dcb612d47565b60200260200101516040518263ffffffff1660e01b8152600401611df191815260200190565b60206040518083038186803b158015611e0957600080fd5b505afa158015611e1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e419190612929565b6001600160a01b0316145b15611f4157836001600160a01b03166323b872dd3083868681518110611e7457611e74612d47565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611ece57600080fd5b505af1158015611ee2573d6000803e3d6000fd5b50505050828281518110611ef857611ef8612d47565b6020026020010151846001600160a01b0316826001600160a01b03167ffefe036cac4ee3a4aca074a81cbcc4376e1484693289078dbec149c890101d5b60405160405180910390a45b5080611f4c81612cea565b915050611d39565b505050565b6000546001600160a01b03163314611f835760405162461bcd60e51b81526004016105b590612c1b565b600480546001600160a01b0319166001600160a01b0384169081179091556000908152600c6020526040902080546002919060ff19166001836105f7565b6000546001600160a01b03163314611feb5760405162461bcd60e51b81526004016105b590612c1b565b6001600160a01b0381166120505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b5565b612059816120b5565b50565b6120658161078a565b6001600160a01b0382166000908152600a602052604081206001018054909190612090908490612c7a565b90915550506001600160a01b03166000908152600a6020526040902042600290910155565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008084848460405160200161211d93929190612ba2565b604051602081830303815290604052805190602001209050600061218e826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905060006121d2828a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061245e92505050565b90506001600160a01b038116158015906121f957506006546001600160a01b038281169116145b9998505050505050505050565b805182511461224f5760405162461bcd60e51b815260206004820152601560248201527415dc9bdb99c8185c9c985e5cc81c1c9bdd9a591959605a1b60448201526064016105b5565b60005b825181101561232c5781818151811061226d5761226d612d47565b60200260200101516000141580156122a7575068a2a15d09519be0000082828151811061229c5761229c612d47565b602002602001015111155b1561231a578181815181106122be576122be612d47565b6020026020010151600d6000866001600160a01b03166001600160a01b0316815260200190815260200160002060008584815181106122ff576122ff612d47565b60200260200101518152602001908152602001600020819055505b8061232481612cea565b915050612252565b50505050565b6060600080600185516123459190612cd3565b855190915060005b8181101561239a578587828151811061236857612368612d47565b6020026020010151141561238857612381816001612c7a565b935061239a565b8061239281612cea565b91505061234d565b50826123e85760405162461bcd60e51b815260206004820152601b60248201527f6d73672e73656e646572206973206e6f7420746865206f776e6572000000000060448201526064016105b5565b6123f3600184612cd3565b92508183146124545785828151811061240e5761240e612d47565b602002602001015186848151811061242857612428612d47565b6020026020010181815250508486838151811061244757612447612d47565b6020026020010181815250505b5093949350505050565b600080600061246d8585612482565b9150915061247a816124f2565b509392505050565b6000808251604114156124b95760208301516040840151606085015160001a6124ad878285856126ad565b945094505050506124eb565b8251604014156124e357602083015160408401516124d886838361279a565b9350935050506124eb565b506000905060025b9250929050565b600081600481111561250657612506612d1b565b141561250f5750565b600181600481111561252357612523612d1b565b14156125715760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105b5565b600281600481111561258557612585612d1b565b14156125d35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105b5565b60038160048111156125e7576125e7612d1b565b14156126405760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105b5565b600481600481111561265457612654612d1b565b14156120595760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105b5565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156126e45750600090506003612791565b8460ff16601b141580156126fc57508460ff16601c14155b1561270d5750600090506004612791565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612761573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661278a57600060019250925050612791565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016127bb878288856126ad565b935093505050935093915050565b828054828255906000526020600020908101928215612804579160200282015b828111156128045782518255916020019190600101906127e9565b50612810929150612814565b5090565b5b808211156128105760008155600101612815565b600082601f83011261283a57600080fd5b8135602067ffffffffffffffff8083111561285757612857612d5d565b8260051b604051601f19603f8301168101818110848211171561287c5761287c612d5d565b6040528481528381019250868401828801850189101561289b57600080fd5b600092505b858310156128be5780358452928401926001929092019184016128a0565b50979650505050505050565b60008083601f8401126128dc57600080fd5b50813567ffffffffffffffff8111156128f457600080fd5b6020830191508360208285010111156124eb57600080fd5b60006020828403121561291e57600080fd5b813561093781612d73565b60006020828403121561293b57600080fd5b815161093781612d73565b60008060006060848603121561295b57600080fd5b833561296681612d73565b9250602084013561297681612d73565b929592945050506040919091013590565b60008060008060006080868803121561299f57600080fd5b85356129aa81612d73565b945060208601356129ba81612d73565b935060408601359250606086013567ffffffffffffffff8111156129dd57600080fd5b6129e9888289016128ca565b969995985093965092949392505050565b60008060408385031215612a0d57600080fd5b8235612a1881612d73565b9150602083013567ffffffffffffffff811115612a3457600080fd5b612a4085828601612829565b9150509250929050565b600080600080600060808688031215612a6257600080fd5b8535612a6d81612d73565b9450602086013567ffffffffffffffff80821115612a8a57600080fd5b612a9689838a01612829565b95506040880135915080821115612aac57600080fd5b612ab889838a01612829565b94506060880135915080821115612ace57600080fd5b506129e9888289016128ca565b60008060408385031215612aee57600080fd5b8235612af981612d73565b946020939093013593505050565b600060208284031215612b1957600080fd5b8135801515811461093757600080fd5b600060208284031215612b3b57600080fd5b5035919050565b600081518084526020808501945080840160005b83811015612b7257815187529582019590820190600101612b56565b509495945050505050565b80516000906020808401838315612b7257815187529582019590820190600101612b56565b6bffffffffffffffffffffffff198460601b1681526000612bcf612bc96014840186612b7d565b84612b7d565b95945050505050565b606081526000612beb6060830186612b42565b8281036020840152612bfd8186612b42565b90508281036040840152612c118185612b42565b9695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f155b9adb9bdddb8818dbdb9d1c9858dd60821b604082015260600190565b60008219821115612c8d57612c8d612d05565b500190565b600082612caf57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612cce57612cce612d05565b500290565b600082821015612ce557612ce5612d05565b500390565b6000600019821415612cfe57612cfe612d05565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461205957600080fdfea2646970667358221220842a88e2534bd1e631a691943166b4c7d79635bf1c0f299b7ac2f9d0d61bc03864736f6c63430008070033000000000000000000000000fe8c6d19365453d26af321d0e8c910428c23873f0000000000000000000000003f2c152b91d1ca6ab86a94f113e778aa2ee8dffc

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102115760003560e01c8063715018a611610125578063c1c1ef98116100ad578063dfeaa74c1161007c578063dfeaa74c146104fb578063e1af56981461050e578063e34dc4601461051b578063edcb812c1461052e578063f2fde38b1461054157600080fd5b8063c1c1ef9814610442578063c3de7c9c146104c2578063c68e5161146104d5578063c82bc61d146104e857600080fd5b80638293744b116100f45780638293744b146104705780638da5cb5b146104835780638fa2a9f014610494578063a30a2474146104a7578063a7de105b146104af57600080fd5b8063715018a61461043a5780637486560d146104425780637af617751461044a57806380833d781461045d57600080fd5b806323101e27116101a857806352a664d91161017757806352a664d9146103e45780635b7633d0146103f757806361499ab91461040a57806361a52a361461041d57806366e6c8af1461042757600080fd5b806323101e2714610375578063415855d6146103955780634bee21d4146103a85780634d307e3f146103d157600080fd5b8063150b7a02116101e4578063150b7a021461027c5780631ae73557146102cd5780631f29d2dc146103055780632161a2b61461035357600080fd5b806302befd2414610216578063041296671461023d57806309828c9f1461025e5780631405943314610267575b600080fd5b60085461022890610100900460ff1681565b60405190151581526020015b60405180910390f35b61025061024b36600461290c565b610554565b604051908152602001610234565b61025060055481565b61027a610275366004612adb565b61058b565b005b6102b461028a366004612987565b7f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b6040516001600160e01b03199091168152602001610234565b6102286102db366004612adb565b6001600160a01b03919091166000908152600d602090815260408083209383529290522054151590565b61033b610313366004612adb565b6001600160a01b039182166000908152600b6020908152604080832093835292905220541690565b6040516001600160a01b039091168152602001610234565b61036661036136600461290c565b610618565b60405161023493929190612bd8565b61025061038336600461290c565b60096020526000908152604090205481565b61027a6103a3366004612b07565b610746565b6102506103b636600461290c565b6001600160a01b03166000908152600a602052604090205490565b6102506103df36600461290c565b61078a565b61027a6103f2366004612946565b610a08565b60065461033b906001600160a01b031681565b610250610418366004612adb565b610dcc565b6102506201518081565b61027a61043536600461290c565b610e13565b61027a610ea3565b610250600281565b61027a610458366004612a4a565b610ed9565b61027a61046b36600461290c565b611508565b61027a61047e3660046129fa565b611553565b6000546001600160a01b031661033b565b61027a6104a236600461290c565b611b50565b61027a611b9c565b60025461033b906001600160a01b031681565b60045461033b906001600160a01b031681565b61027a6104e3366004612adb565b611c4d565b61033b6104f6366004612b29565b611c93565b61027a6105093660046129fa565b611cbd565b6008546102289060ff1681565b60035461033b906001600160a01b031681565b61027a61053c366004612adb565b611f59565b61027a61054f36600461290c565b611fc1565b600061055f8261078a565b6001600160a01b0383166000908152600a60205260409020600101546105859190612c7a565b92915050565b6000546001600160a01b031633146105be5760405162461bcd60e51b81526004016105b590612c1b565b60405180910390fd5b600380546001600160a01b0319166001600160a01b0384169081179091556000908152600c6020526040902080546001919060ff191682805b02179055506001600160a01b03909116600090815260096020526040902055565b6001600160a01b0381166000908152600a60209081526040918290206003810180548451818502810185019095528085526060948594859460048101936005909101929185919083018282801561068e57602002820191906000526020600020905b81548152602001906001019080831161067a575b50505050509250818054806020026020016040519081016040528092919081815260200182805480156106e057602002820191906000526020600020905b8154815260200190600101908083116106cc575b505050505091508080548060200260200160405190810160405280929190818152602001828054801561073257602002820191906000526020600020905b81548152602001906001019080831161071e575b505050505090509250925092509193909250565b6000546001600160a01b031633146107705760405162461bcd60e51b81526004016105b590612c1b565b600880549115156101000261ff0019909216919091179055565b6001600160a01b0381166000908152600a60209081526040808320815160c081018352815481526001820154818501526002820154818401526003820180548451818702810187019095528085528695929460608601939092919083018282801561081457602002820191906000526020600020905b815481526020019060010190808311610800575b505050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561086c57602002820191906000526020600020905b815481526020019060010190808311610858575b50505050508152602001600582018054806020026020016040519081016040528092919081815260200182805480156108c457602002820191906000526020600020905b8154815260200190600101908083116108b0575b50505050508152505090508060400151600014156108e55750600092915050565b60055481604001511080156108fb575060055442105b1561093e578051604082015160029162015180916109199042612cd3565b6109239190612cb4565b61092d9190612c92565b6109379190612cb4565b9392505050565b6005548160400151108015610954575060055442115b156109dd576000600262015180836000015184604001516005546109789190612cd3565b6109829190612cb4565b61098c9190612c92565b6109969190612cb4565b6109a09082612c7a565b825160055491925062015180916109b79042612cd3565b6109c19190612cb4565b6109cb9190612c92565b6109d59082612c7a565b949350505050565b805160408201516201518091906109f49042612cd3565b6109fe9190612cb4565b6109379190612c92565b336000908152600e602052604090205460ff16610a735760405162461bcd60e51b8152602060048201526024808201527f54686520746f6b656e20636f6e7472616374206973206e6f7420617574686f726044820152631a5cd95960e21b60648201526084016105b5565b6001600160a01b03821615801590610aaf57506004546001600160a01b0383811691161480610aaf57506003546001600160a01b038381169116145b610acb5760405162461bcd60e51b81526004016105b590612c50565b6040516331a9108f60e11b81526004810182905230906001600160a01b03841690636352211e9060240160206040518083038186803b158015610b0d57600080fd5b505afa158015610b21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b459190612929565b6001600160a01b031614610b845760405162461bcd60e51b815260206004820152600660248201526510a7bbb732b960d11b60448201526064016105b5565b6001600160a01b038281166000908152600b602090815260408083208584529091529020541615610beb5760405162461bcd60e51b8152602060048201526011602482015270105b1c9958591e4819195c1bdcda5d1959607a1b60448201526064016105b5565b6001600160a01b038281166000818152600b60209081526040808320868452825280832080546001600160a01b0319169589169586179055938252600a8152838220928252600c90529190912054815460ff9091169080151580610c6157506001826002811115610c5e57610c5e612d1b565b14155b15610c7d57610c708585610dcc565b610c7a9082612c7a565b90505b6001826002811115610c9157610c91612d1b565b1415610cb25760048301805460018101825560009182526020909120018490555b6002826002811115610cc657610cc6612d1b565b1415610ce75760058301805460018101825560009182526020909120018490555b8254158015610cf557508015155b8015610d045750600483015415155b15610d785760005b6004840154811015610d7657600354600485018054600092610d54926001600160a01b039091169185908110610d4457610d44612d47565b9060005260206000200154610dcc565b9050610d608184612c7a565b9250508080610d6e90612cea565b915050610d0c565b505b610d818661205c565b80835560405184815233906001600160a01b038716907f436e7d6cb7f19c3131fe911670b5df727897621eb40f5feeca9b1a47baf2a5dc9060200160405180910390a3505050505050565b6001600160a01b0382166000908152600d6020908152604080832084845290915281205480610937575050506001600160a01b031660009081526009602052604090205490565b6000546001600160a01b03163314610e3d5760405162461bcd60e51b81526004016105b590612c1b565b6001600160a01b03166000818152600e60205260408120805460ff191660019081179091556007805491820181559091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319169091179055565b6000546001600160a01b03163314610ecd5760405162461bcd60e51b81526004016105b590612c1b565b610ed760006120b5565b565b60026001541415610f2c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b5565b6002600155600854610100900460ff1615610f7a5760405162461bcd60e51b815260206004820152600e60248201526d11195c1bdcda5d081c185d5cd95960921b60448201526064016105b5565b60085460ff16610fcc5760405162461bcd60e51b815260206004820152601b60248201527f5374616b696e67206973206e6f74206c61756e6368656420796574000000000060448201526064016105b5565b6001600160a01b03851615801590610ff157506002546001600160a01b038681169116145b8061100957506004546001600160a01b038681169116145b8061102157506003546001600160a01b038681169116145b61103d5760405162461bcd60e51b81526004016105b590612c50565b6001600160a01b0385166000908152600c6020526040902054835160ff90911690156110bf576110708383888888612105565b6110b45760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a590819185d18481c1c9bdd9a591959605a1b60448201526064016105b5565b6110bf868686612206565b336000908152600a60205260408120805490915b875181101561142557336001600160a01b0316896001600160a01b0316636352211e8a848151811061110757611107612d47565b60200260200101516040518263ffffffff1660e01b815260040161112d91815260200190565b60206040518083038186803b15801561114557600080fd5b505afa158015611159573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117d9190612929565b6001600160a01b0316146111c35760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b60448201526064016105b5565b6001600160a01b0389166342842e0e33308b85815181106111e6576111e6612d47565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561124057600080fd5b505af1158015611254573d6000803e3d6000fd5b5050505061125f3390565b6001600160a01b038a166000908152600b602052604081208a519091908b908590811061128e5761128e612d47565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550826000015460001415806112ee575060018460028111156112eb576112eb612d1b565b14155b15611323576113168989838151811061130957611309612d47565b6020026020010151610dcc565b6113209083612c7a565b91505b600084600281111561133757611337612d1b565b1415611373578260030188828151811061135357611353612d47565b602090810291909101810151825460018101845560009384529190922001555b600184600281111561138757611387612d1b565b14156113c357826004018882815181106113a3576113a3612d47565b602090810291909101810151825460018101845560009384529190922001555b60028460028111156113d7576113d7612d1b565b141561141357826005018882815181106113f3576113f3612d47565b602090810291909101810151825460018101845560009384529190922001555b8061141d81612cea565b9150506110d3565b50815415801561143457508015155b80156114435750600482015415155b156114a75760005b60048301548110156114a557600354600484018054600092611483926001600160a01b039091169185908110610d4457610d44612d47565b905061148f8184612c7a565b925050808061149d90612cea565b91505061144b565b505b6114b03361205c565b8082558651604080516001600160a01b038b168152602081019290925233917f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62910160405180910390a2505060018055505050505050565b6000546001600160a01b031633146115325760405162461bcd60e51b81526004016105b590612c1b565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b600260015414156115a65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b5565b60026001556001600160a01b038216158015906115d057506002546001600160a01b038381169116145b806115e857506004546001600160a01b038381169116145b8061160057506003546001600160a01b038381169116145b61161c5760405162461bcd60e51b81526004016105b590612c50565b6001600160a01b0382166000908152600c6020908152604080832054338452600a9092528220805460ff909216929091905b8451811015611ad457306001600160a01b0316866001600160a01b0316636352211e87848151811061168257611682612d47565b60200260200101516040518263ffffffff1660e01b81526004016116a891815260200190565b60206040518083038186803b1580156116c057600080fd5b505afa1580156116d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f89190612929565b6001600160a01b03161461173e5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b60448201526064016105b5565b6001600160a01b0386166000908152600b602052604081208651829088908590811061176c5761176c612d47565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555082600001546000146117da5760006117ca8787848151811061130957611309612d47565b90506117d68184612cd3565b9250505b60008460028111156117ee576117ee612d1b565b14156118aa576118698360030180548060200260200160405190810160405280929190818152602001828054801561184557602002820191906000526020600020905b815481526020019060010190808311611831575b505050505086838151811061185c5761185c612d47565b6020026020010151612332565b805161187f9160038601916020909101906127c9565b508260030180548061189357611893612d31565b600190038181906000526020600020016000905590555b60018460028111156118be576118be612d1b565b141561196b5761192a83600401805480602002602001604051908101604052809291908181526020018280548015611845576020028201919060005260206000209081548152602001906001019080831161183157505050505086838151811061185c5761185c612d47565b80516119409160048601916020909101906127c9565b508260040180548061195457611954612d31565b600190038181906000526020600020016000905590555b600284600281111561197f5761197f612d1b565b1415611a2c576119eb83600501805480602002602001604051908101604052809291908181526020018280548015611845576020028201919060005260206000209081548152602001906001019080831161183157505050505086838151811061185c5761185c612d47565b8051611a019160058601916020909101906127c9565b5082600501805480611a1557611a15612d31565b600190038181906000526020600020016000905590555b6001600160a01b0386166342842e0e3033888581518110611a4f57611a4f612d47565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611aa957600080fd5b505af1158015611abd573d6000803e3d6000fd5b505050508080611acc90612cea565b91505061164e565b506003820154158015611ae957506005820154155b15611af2575060005b611afb3361205c565b8082558351604080516001600160a01b0388168152602081019290925233917f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb910160405180910390a2505060018055505050565b6000546001600160a01b03163314611b7a5760405162461bcd60e51b81526004016105b590612c1b565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611bc65760405162461bcd60e51b81526004016105b590612c1b565b60085460ff1615611c235760405162461bcd60e51b815260206004820152602160248201527f5374616b696e6720686173206265656e206c61756e6368656420616c726561646044820152607960f81b60648201526084016105b5565b6008805460ff19166001179055611c3e600262015180612cb4565b611c489042612c7a565b600555565b6000546001600160a01b03163314611c775760405162461bcd60e51b81526004016105b590612c1b565b6001600160a01b03909116600090815260096020526040902055565b60078181548110611ca357600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314611ce75760405162461bcd60e51b81526004016105b590612c1b565b603281511115611d2c5760405162461bcd60e51b815260206004820152601060248201526f06a6040d2e640dac2f040e0cae440e8f60831b60448201526064016105b5565b611d366001610746565b60005b8151811015611f54576001600160a01b0383166000908152600b6020526040812083518290859085908110611d7057611d70612d47565b6020908102919091018101518252810191909152604001600020546001600160a01b031690508015801590611e4c5750306001600160a01b0316846001600160a01b0316636352211e858581518110611dcb57611dcb612d47565b60200260200101516040518263ffffffff1660e01b8152600401611df191815260200190565b60206040518083038186803b158015611e0957600080fd5b505afa158015611e1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e419190612929565b6001600160a01b0316145b15611f4157836001600160a01b03166323b872dd3083868681518110611e7457611e74612d47565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611ece57600080fd5b505af1158015611ee2573d6000803e3d6000fd5b50505050828281518110611ef857611ef8612d47565b6020026020010151846001600160a01b0316826001600160a01b03167ffefe036cac4ee3a4aca074a81cbcc4376e1484693289078dbec149c890101d5b60405160405180910390a45b5080611f4c81612cea565b915050611d39565b505050565b6000546001600160a01b03163314611f835760405162461bcd60e51b81526004016105b590612c1b565b600480546001600160a01b0319166001600160a01b0384169081179091556000908152600c6020526040902080546002919060ff19166001836105f7565b6000546001600160a01b03163314611feb5760405162461bcd60e51b81526004016105b590612c1b565b6001600160a01b0381166120505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b5565b612059816120b5565b50565b6120658161078a565b6001600160a01b0382166000908152600a602052604081206001018054909190612090908490612c7a565b90915550506001600160a01b03166000908152600a6020526040902042600290910155565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008084848460405160200161211d93929190612ba2565b604051602081830303815290604052805190602001209050600061218e826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905060006121d2828a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061245e92505050565b90506001600160a01b038116158015906121f957506006546001600160a01b038281169116145b9998505050505050505050565b805182511461224f5760405162461bcd60e51b815260206004820152601560248201527415dc9bdb99c8185c9c985e5cc81c1c9bdd9a591959605a1b60448201526064016105b5565b60005b825181101561232c5781818151811061226d5761226d612d47565b60200260200101516000141580156122a7575068a2a15d09519be0000082828151811061229c5761229c612d47565b602002602001015111155b1561231a578181815181106122be576122be612d47565b6020026020010151600d6000866001600160a01b03166001600160a01b0316815260200190815260200160002060008584815181106122ff576122ff612d47565b60200260200101518152602001908152602001600020819055505b8061232481612cea565b915050612252565b50505050565b6060600080600185516123459190612cd3565b855190915060005b8181101561239a578587828151811061236857612368612d47565b6020026020010151141561238857612381816001612c7a565b935061239a565b8061239281612cea565b91505061234d565b50826123e85760405162461bcd60e51b815260206004820152601b60248201527f6d73672e73656e646572206973206e6f7420746865206f776e6572000000000060448201526064016105b5565b6123f3600184612cd3565b92508183146124545785828151811061240e5761240e612d47565b602002602001015186848151811061242857612428612d47565b6020026020010181815250508486838151811061244757612447612d47565b6020026020010181815250505b5093949350505050565b600080600061246d8585612482565b9150915061247a816124f2565b509392505050565b6000808251604114156124b95760208301516040840151606085015160001a6124ad878285856126ad565b945094505050506124eb565b8251604014156124e357602083015160408401516124d886838361279a565b9350935050506124eb565b506000905060025b9250929050565b600081600481111561250657612506612d1b565b141561250f5750565b600181600481111561252357612523612d1b565b14156125715760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105b5565b600281600481111561258557612585612d1b565b14156125d35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105b5565b60038160048111156125e7576125e7612d1b565b14156126405760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105b5565b600481600481111561265457612654612d1b565b14156120595760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105b5565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156126e45750600090506003612791565b8460ff16601b141580156126fc57508460ff16601c14155b1561270d5750600090506004612791565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612761573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661278a57600060019250925050612791565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016127bb878288856126ad565b935093505050935093915050565b828054828255906000526020600020908101928215612804579160200282015b828111156128045782518255916020019190600101906127e9565b50612810929150612814565b5090565b5b808211156128105760008155600101612815565b600082601f83011261283a57600080fd5b8135602067ffffffffffffffff8083111561285757612857612d5d565b8260051b604051601f19603f8301168101818110848211171561287c5761287c612d5d565b6040528481528381019250868401828801850189101561289b57600080fd5b600092505b858310156128be5780358452928401926001929092019184016128a0565b50979650505050505050565b60008083601f8401126128dc57600080fd5b50813567ffffffffffffffff8111156128f457600080fd5b6020830191508360208285010111156124eb57600080fd5b60006020828403121561291e57600080fd5b813561093781612d73565b60006020828403121561293b57600080fd5b815161093781612d73565b60008060006060848603121561295b57600080fd5b833561296681612d73565b9250602084013561297681612d73565b929592945050506040919091013590565b60008060008060006080868803121561299f57600080fd5b85356129aa81612d73565b945060208601356129ba81612d73565b935060408601359250606086013567ffffffffffffffff8111156129dd57600080fd5b6129e9888289016128ca565b969995985093965092949392505050565b60008060408385031215612a0d57600080fd5b8235612a1881612d73565b9150602083013567ffffffffffffffff811115612a3457600080fd5b612a4085828601612829565b9150509250929050565b600080600080600060808688031215612a6257600080fd5b8535612a6d81612d73565b9450602086013567ffffffffffffffff80821115612a8a57600080fd5b612a9689838a01612829565b95506040880135915080821115612aac57600080fd5b612ab889838a01612829565b94506060880135915080821115612ace57600080fd5b506129e9888289016128ca565b60008060408385031215612aee57600080fd5b8235612af981612d73565b946020939093013593505050565b600060208284031215612b1957600080fd5b8135801515811461093757600080fd5b600060208284031215612b3b57600080fd5b5035919050565b600081518084526020808501945080840160005b83811015612b7257815187529582019590820190600101612b56565b509495945050505050565b80516000906020808401838315612b7257815187529582019590820190600101612b56565b6bffffffffffffffffffffffff198460601b1681526000612bcf612bc96014840186612b7d565b84612b7d565b95945050505050565b606081526000612beb6060830186612b42565b8281036020840152612bfd8186612b42565b90508281036040840152612c118185612b42565b9695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f155b9adb9bdddb8818dbdb9d1c9858dd60821b604082015260600190565b60008219821115612c8d57612c8d612d05565b500190565b600082612caf57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612cce57612cce612d05565b500290565b600082821015612ce557612ce5612d05565b500390565b6000600019821415612cfe57612cfe612d05565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461205957600080fdfea2646970667358221220842a88e2534bd1e631a691943166b4c7d79635bf1c0f299b7ac2f9d0d61bc03864736f6c63430008070033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000fe8c6d19365453d26af321d0e8c910428c23873f0000000000000000000000003f2c152b91d1ca6ab86a94f113e778aa2ee8dffc

-----Decoded View---------------
Arg [0] : _cbc (address): 0xfE8C6d19365453D26af321D0e8c910428c23873F
Arg [1] : _signer (address): 0x3F2C152B91D1CA6Ab86a94f113e778Aa2eE8DFFc

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000fe8c6d19365453d26af321d0e8c910428c23873f
Arg [1] : 0000000000000000000000003f2c152b91d1ca6ab86a94f113e778aa2ee8dffc


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.