ETH Price: $3,659.20 (-5.79%)

Contract

0x37D83d194e6b3dFB7155bD2cE9D385E66C2D707C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x1c9b6ae796cfaf7dd808abe0133ecd11f9e2f9a867beca8569d361ca43e8ac62 Claim Airdrop(pending)2024-12-18 10:20:3514 hrs ago1734517235IN
0x37D83d19...66C2D707C
0 ETH(Pending)(Pending)
0x364a2ce8aae9803bbc528b0dc8985058d6ab206ba86e9b97130b4d99adf8b3ad Claim Airdrop(pending)2024-12-18 9:55:1914 hrs ago1734515719IN
0x37D83d19...66C2D707C
0 ETH(Pending)(Pending)
0x18019a74ea327ab7b102e64948d4c70cb9a1f801bfefff009cfa982b490b8368 Claim Airdrop(pending)2024-12-18 4:17:2420 hrs ago1734495444IN
0x37D83d19...66C2D707C
0 ETH(Pending)(Pending)
0x005962083f1858916f4ce5d13184e5d70bf3bed05f91c31043d904239eaf01ee Claim Airdrop(pending)2024-12-17 23:13:4425 hrs ago1734477224IN
0x37D83d19...66C2D707C
0 ETH(Pending)(Pending)
0xc1f5a1557ed84a4171239d66944ade0b191bc6ac32df835c1028d2ed1920483d Claim Airdrop(pending)2024-12-17 19:21:4929 hrs ago1734463309IN
0x37D83d19...66C2D707C
0 ETH(Pending)(Pending)
0xd1bd8b2ca5eff1b26457b1107796931348db0a60d1b577b970021abb98e95a72 Claim Airdrop(pending)2024-12-17 16:35:1831 hrs ago1734453318IN
0x37D83d19...66C2D707C
0 ETH(Pending)(Pending)
0x34f8226efbe23795201b505597f82ceb1577e76a1568659e34fa42439b98ca82 Claim Airdrop(pending)2024-12-17 16:16:3532 hrs ago1734452195IN
0x37D83d19...66C2D707C
0 ETH(Pending)(Pending)
0x711c4ef3421b83f0daa6b3332822e97eeca982d7ac3e414bbfaee4b3621b57d7 Claim Airdrop(pending)2024-12-17 16:15:0632 hrs ago1734452106IN
0x37D83d19...66C2D707C
0 ETH(Pending)(Pending)
0xbe78f497ad11bd7822693b902eb36085e87aef280f3004219cb9bb2da974d0d0 Claim Airdrop(pending)2024-12-17 16:12:1032 hrs ago1734451930IN
0x37D83d19...66C2D707C
0 ETH(Pending)(Pending)
Claim Airdrop214330182024-12-19 0:33:118 secs ago1734568391IN
0x37D83d19...66C2D707C
0 ETH0.0012359211.69950327
Claim Airdrop214330142024-12-19 0:32:2356 secs ago1734568343IN
0x37D83d19...66C2D707C
0 ETH0.0012935212.2448126
Claim Airdrop214329932024-12-19 0:28:115 mins ago1734568091IN
0x37D83d19...66C2D707C
0 ETH0.0013765513.03521643
Claim Airdrop214329912024-12-19 0:27:475 mins ago1734568067IN
0x37D83d19...66C2D707C
0 ETH0.00117113.35638871
Claim Airdrop214329672024-12-19 0:22:5910 mins ago1734567779IN
0x37D83d19...66C2D707C
0 ETH0.0020589815.48559771
Claim Airdrop214329062024-12-19 0:10:4722 mins ago1734567047IN
0x37D83d19...66C2D707C
0 ETH0.0027205720.45438126
Claim Airdrop214328792024-12-19 0:05:2327 mins ago1734566723IN
0x37D83d19...66C2D707C
0 ETH0.0006941323.31832105
Claim Airdrop214328722024-12-19 0:03:5929 mins ago1734566639IN
0x37D83d19...66C2D707C
0 ETH0.0024959118.768078
Claim Airdrop214328632024-12-19 0:02:1131 mins ago1734566531IN
0x37D83d19...66C2D707C
0 ETH0.0015569814.86296682
Claim Airdrop214328452024-12-18 23:58:3534 mins ago1734566315IN
0x37D83d19...66C2D707C
0 ETH0.0012422511.75942165
Claim Airdrop214328442024-12-18 23:58:2334 mins ago1734566303IN
0x37D83d19...66C2D707C
0 ETH0.0014400513.74389094
Claim Airdrop214327832024-12-18 23:46:1147 mins ago1734565571IN
0x37D83d19...66C2D707C
0 ETH0.001676612.60877335
Claim Airdrop214327472024-12-18 23:38:4754 mins ago1734565127IN
0x37D83d19...66C2D707C
0 ETH0.0014290413.63152246
Claim Airdrop214327362024-12-18 23:36:3556 mins ago1734564995IN
0x37D83d19...66C2D707C
0 ETH0.0012952712.26553862
Claim Airdrop214327312024-12-18 23:35:3557 mins ago1734564935IN
0x37D83d19...66C2D707C
0 ETH0.0014265713.50731401
Claim Airdrop214327192024-12-18 23:33:111 hr ago1734564791IN
0x37D83d19...66C2D707C
0 ETH0.0015709314.9880819
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
214167472024-12-16 18:02:472 days ago1734372167  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NiftyIslandAirdrop

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 14 : NiftyIslandAirdrop.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol";
import {Ownable2Step, Ownable} from "@openzeppelin/contracts/access/Ownable2Step.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {INiftyIslandAirdrop} from "./interfaces/INiftyIslandAirdrop.sol";
import {INiftyIslandStaking} from "./interfaces/INiftyIslandStaking.sol";

contract NiftyIslandAirdrop is Pausable, ReentrancyGuard, Ownable2Step, INiftyIslandAirdrop {
    IERC20 public immutable ISLAND_TOKEN;
    address public islandStakingAddress;
    bytes32 public merkleRoot;
    mapping(uint256 userId => bool status) public airdropClaimedStatusByUserId;

    constructor(
        address _multisigAddress,
        address _islandTokenAddress,
        address _islandStakingAddress,
        bytes32 _merkleRoot
    ) Ownable(_multisigAddress) {
        if (_islandTokenAddress == address(0) || _islandStakingAddress == address(0)) {
            revert ZeroAddressNotAllowed();
        }

        ISLAND_TOKEN = IERC20(_islandTokenAddress);
        _setIslandStakingAddress(_islandStakingAddress, false);
        _setMerkleRoot(_merkleRoot);
    }

    function depositNiftyIslandAirdrop(uint256 amount) external nonReentrant onlyOwner {
        if (amount == 0) {
            revert AirdropDepositAmountZero();
        }

        SafeERC20.safeTransferFrom(ISLAND_TOKEN, msg.sender, address(this), amount);

        bool grantApprovalSuccess = ISLAND_TOKEN.approve(islandStakingAddress, ISLAND_TOKEN.balanceOf(address(this)));
        if (!grantApprovalSuccess) {
            revert ApprovalFailure(islandStakingAddress, amount);
        }

        emit NiftyIslandAirdropDeposited(msg.sender, amount);
    }

    function withdrawNiftyIslandAirdrop() external nonReentrant onlyOwner {
        uint256 balance = ISLAND_TOKEN.balanceOf(address(this));

        bool revokeApprovalSuccess = ISLAND_TOKEN.approve(islandStakingAddress, 0);
        if (!revokeApprovalSuccess) {
            revert ApprovalFailure(islandStakingAddress, 0);
        }

        SafeERC20.safeTransfer(ISLAND_TOKEN, msg.sender, balance);

        emit NiftyIslandAirdropWithdrawn(msg.sender, balance);
    }

    function getClaimHash(address account, uint256 userId, uint256 amount) private pure returns (bytes32) {
        return keccak256(bytes.concat(keccak256(abi.encode(account, userId, amount))));
    }

    function claimAirdrop(
        uint256 airdropAmount,
        uint256 stakeAmount,
        uint256 userId,
        bytes32[] calldata proof
    ) external nonReentrant whenNotPaused {
        if (stakeAmount > airdropAmount) {
            revert InvalidStakeAmount();
        }

        _processAirdropClaim(airdropAmount, userId, proof);

        if (stakeAmount > 0) {
            INiftyIslandStaking(islandStakingAddress).stakeNiftyIslandToken(msg.sender, stakeAmount);
        }

        uint256 claimAmount = airdropAmount - stakeAmount;

        if (claimAmount > 0) {
            SafeERC20.safeTransfer(ISLAND_TOKEN, msg.sender, claimAmount);
        }

        emit AirdropClaimed(msg.sender, userId, claimAmount, stakeAmount);
    }

    function _processAirdropClaim(uint256 amount, uint256 userId, bytes32[] calldata proof) private {
        _validateMerkleProof(amount, userId, proof);

        if (airdropClaimedStatusByUserId[userId]) {
            revert AirdropAlreadyClaimed();
        }

        airdropClaimedStatusByUserId[userId] = true;
    }

    function _validateMerkleProof(uint256 amount, uint256 userId, bytes32[] calldata proof) private view {
        bool isValidProof = MerkleProof.verify(proof, merkleRoot, getClaimHash(msg.sender, userId, amount));

        if (!isValidProof) {
            revert InvalidAirdropClaimProof();
        }
    }

    /**
     * @dev Allows the owner to modify the the merkle root.
     */
    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        _setMerkleRoot(_merkleRoot);
    }

    /**
     * @dev Allows the owner to modify the island staking contract address.
     */
    function setIslandStakingAddress(address _islandStakingAddress) external nonReentrant onlyOwner {
        _setIslandStakingAddress(_islandStakingAddress, true);
    }

    function _setMerkleRoot(bytes32 _merkleRoot) private {
        if (merkleRoot == _merkleRoot) {
            revert StateUnchanged();
        }

        merkleRoot = _merkleRoot;

        emit NewMerkleRoot(_merkleRoot);
    }

    function _setIslandStakingAddress(address _islandStakingAddress, bool setApproval) private {
        if (islandStakingAddress == _islandStakingAddress) {
            revert StateUnchanged();
        }

        if (_islandStakingAddress == address(0)) {
            revert ZeroAddressNotAllowed();
        }

        address oldIslandStakingAddress = islandStakingAddress;

        islandStakingAddress = _islandStakingAddress;

        emit NewIslandStakingAddress(_islandStakingAddress);

        if (setApproval) {
            // Revoke approval from the old islandStakingAddress
            bool revokeApprovalSuccess = ISLAND_TOKEN.approve(oldIslandStakingAddress, 0);
            if (!revokeApprovalSuccess) {
                revert ApprovalFailure(oldIslandStakingAddress, 0);
            }

            // Grant approval to the new islandStakingAddress
            uint256 balance = ISLAND_TOKEN.balanceOf(address(this));
            bool grantApprovalSuccess = ISLAND_TOKEN.approve(islandStakingAddress, balance);
            if (!grantApprovalSuccess) {
                revert ApprovalFailure(islandStakingAddress, balance);
            }
        }
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function renounceOwnership() public view override onlyOwner {
        revert OwnerCannotRenounceOwnership();
    }
}

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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 14 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.20;

import {Ownable} from "./Ownable.sol";

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is specified at deployment time in the constructor for `Ownable`. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Returns the address of the pending owner.
     */
    function pendingOwner() public view virtual returns (address) {
        return _pendingOwner;
    }

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}

File 4 of 14 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 5 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool);

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

File 6 of 14 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

File 7 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

File 8 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 9 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.20;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the Merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates Merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     *@dev The multiproof provided is not valid.
     */
    error MerkleProofInvalidMultiproof();

    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Sorts the pair (a, b) and hashes the result.
     */
    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    /**
     * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.
     */
    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 10 of 14 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    bool private _paused;

    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 11 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @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;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 12 of 14 : INiftyIslandAirdrop.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

interface INiftyIslandAirdrop {
    /**
     * @dev Revert with an error when the caller has already claimed their airdrop.
     */
    error AirdropAlreadyClaimed();

    /**
     * @dev Revert with an error when the airdrop deposit amount is zero.
     */
    error AirdropDepositAmountZero();

    /**
     * @dev Revert with an error when the airdrop claim proof is invalid.
     */
    error InvalidAirdropClaimProof();

    /**
     * @dev Revert with an error when the stake amount is invalid.
     */
    error InvalidStakeAmount();

    /**
     * @dev Revert with an error if the owner attempts to renounce their ownership.
     */
    error OwnerCannotRenounceOwnership();

    /**
     * @dev Revert with an error when the address is the zero address.
     */
    error ZeroAddressNotAllowed();

    /**
     * @dev Revert with an error if the state has not been changed.
     */
    error StateUnchanged();

    /**
     * @dev Revert with an error if an approval fails
     */
    error ApprovalFailure(address target, uint256 amount);

    /**
     * @dev Emitted when the claimer claims their airdrop.
     */
    event AirdropClaimed(address indexed claimer, uint256 userId, uint256 claimAmount, uint256 stakeAmount);

    /**
     * @dev Emitted when the owner updates the merkle root.
     */
    event NewMerkleRoot(bytes32 merkleRoot);

    /**
     * @dev Emitted when the owner updates the island staking address.
     */
    event NewIslandStakingAddress(address islandStakingAddress);

    /**
     * @dev Emitted when the owner deposits the airdrop.
     */
    event NiftyIslandAirdropDeposited(address indexed caller, uint256 amount);

    /**
     * @dev Emitted when the owner withdraws the airdrop.
     */
    event NiftyIslandAirdropWithdrawn(address indexed caller, uint256 amount);
}

File 13 of 14 : INiftyIslandStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

import {ClaimRequest} from "../types/NiftyIslandStaking.sol";

interface INiftyIslandStaking {
    /**
     * @dev Stakes the specified amount of ISLAND tokens.
     * @param staker The address of the caller.
     * @param amount The amount of tokens to deposit.
     */
    function stakeNiftyIslandToken(address staker, uint256 amount) external;

    /**
     * @dev Unstakes the specified amount of ISLAND tokens.
     * @param amount The amount of tokens to deposit.
     */
    function unstakeNiftyIslandToken(uint256 amount) external;

    /**
     * @notice Allows authorized reward operators to deposit staking rewards.
     * @param amount The amount of Nifty Island token to deposit.
     */
    function depositStakingRewards(uint256 amount) external;

    /**
     * @notice Allows callers with the DEFAULT_ADMIN_ROLE to withdraw staking rewards.
     */
    function withdrawStakingRewards() external;

    /**
     * @dev Revert with an error if the staker attempts to withdraw more than their staked balance.
     */
    error InsufficientStakingBalance(uint256 requested, uint256 available);

    /**
     * @dev Revert with an error if the amount to stake or unstake is invalid.
     */
    error InvalidStakeAmount();

    /**
     * @dev Revert with an error when the address is the zero address.
     */
    error ZeroAddressNotAllowed();

    /**
     * @dev Revert with an error if the state has not been changed.
     */
    error StateUnchanged();

    /**
     * @dev Revert with an error if the caller is unauthorized.
     */
    error UnauthorizedCaller(address caller);

    /**
     * @dev Revert with an error when the claim reward request signer is unauthorized.
     */
    error UnauthorizedSigner(address recoveredSigner);

    /**
     * @dev Revert with an error when the claimer is unauthorized.
     */
    error UnauthorizedClaimer(address expectedAddress, address receivedAddress);

    /**
     * @dev Revert with an error when the claim id has already been used.
     */
    error ClaimRequestUsed(uint256 claimId);

    /**
     * @dev Revert with an error when the claim request has expired.
     */
    error ClaimRequestExpired(uint256 blockTimestamp, uint256 expiresAt);

    /**
     * @dev Revert with an error when the claim request is inactive.
     */
    error ClaimRequestInactive(uint256 blockTimestamp, uint256 activeAt);

    /**
     * @dev Revert with an error when the deposit amount is zero.
     */
    error DepositAmountZero();

    /**
     * @dev Reverts if the provided platform fee is insufficient.
     */
    error InsufficientPlatformFee(uint256 providedFee, uint256 requiredFee);

    /**
     * @dev Revert with an error if there are not enough staking rewards for a reward claim.
     */
    error InsufficientStakingRewardSupply(uint256 requested, uint256 available);

    /**
     * @dev Revert with an error if the token transfer fails.
     */
    error TokenTransferFailed(address token, address from, address to, uint256 tokenId, uint256 amount);

    /**
     * @dev Revert with an error if the owner attempts to renounce their ownership.
     */
    error OwnerCannotRenounceOwnership();

    /**
     * @dev Emitted when the staker stakes their ISLAND tokens.
     */
    event NiftyIslandTokenStaked(address indexed staker, address operator, uint256 amount);

    /**
     * @dev Emitted when the staker unstakes their ISLAND tokens.
     */
    event NiftyIslandTokenUnstaked(address indexed staker, uint256 amount);

    /**
     * @dev Emitted when ab authorized reward operator deposits the staking rewards.
     */
    event StakingRewardsDeposited(address indexed staker, uint256 amount);

    /**
     * @dev Emitted when an authorized reward operator withdraws the unclaimed staking reward supply.
     */
    event StakingRewardsWithdrawn(address indexed staker, uint256 amount);

    /**
     * @dev Emitted when a claim request has been fulfilled.
     */
    event ClaimRequestFulfilled(address indexed to, ClaimRequest request);

    /**
     * @dev Emitted when the owner sets the claim request address.
     */
    event NewClaimRequestSigner(address indexed claimRequestSigner);
}

File 14 of 14 : NiftyIslandStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

struct ClaimRequest {
    uint256 startTimestamp;
    uint256 endTimestamp;
    uint256 platformFee;
    address platformFeeRecipient;
    address to;
    uint256 claimId;
    uint256 amount;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_multisigAddress","type":"address"},{"internalType":"address","name":"_islandTokenAddress","type":"address"},{"internalType":"address","name":"_islandStakingAddress","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"AirdropAlreadyClaimed","type":"error"},{"inputs":[],"name":"AirdropDepositAmountZero","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ApprovalFailure","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InvalidAirdropClaimProof","type":"error"},{"inputs":[],"name":"InvalidStakeAmount","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerCannotRenounceOwnership","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"StateUnchanged","type":"error"},{"inputs":[],"name":"ZeroAddressNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"userId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeAmount","type":"uint256"}],"name":"AirdropClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"islandStakingAddress","type":"address"}],"name":"NewIslandStakingAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"NewMerkleRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NiftyIslandAirdropDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NiftyIslandAirdropWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ISLAND_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"userId","type":"uint256"}],"name":"airdropClaimedStatusByUserId","outputs":[{"internalType":"bool","name":"status","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"airdropAmount","type":"uint256"},{"internalType":"uint256","name":"stakeAmount","type":"uint256"},{"internalType":"uint256","name":"userId","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claimAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositNiftyIslandAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"islandStakingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_islandStakingAddress","type":"address"}],"name":"setIslandStakingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawNiftyIslandAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162002af038038062002af0833981810160405281019062000037919062000810565b8360008060006101000a81548160ff02191690831515021790555060018081905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000ce5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000c5919062000893565b60405180910390fd5b620000df81620001e260201b60201c565b50600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480620001485750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1562000180576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050620001c78260006200021b60201b60201c565b620001d8816200062660201b60201c565b5050505062000a72565b600360006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556200021881620006a560201b60201c565b50565b8173ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603620002a3576040517f73fa69fd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200030a576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f6567ed2e19a37fcd9a56580a50adc97d0b37fb59dc5db0e2086bfc6f848a61b383604051620003a3919062000893565b60405180910390a181156200062157600060805173ffffffffffffffffffffffffffffffffffffffff1663095ea7b38360006040518363ffffffff1660e01b8152600401620003f492919062000907565b6020604051808303816000875af115801562000414573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200043a919062000971565b90508062000484578160006040517f3f8ed02a0000000000000000000000000000000000000000000000000000000081526004016200047b92919062000907565b60405180910390fd5b600060805173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401620004c3919062000893565b602060405180830381865afa158015620004e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005079190620009d4565b9050600060805173ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b81526004016200056c92919062000a17565b6020604051808303816000875af11580156200058c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005b2919062000971565b9050806200061d57600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826040517f3f8ed02a0000000000000000000000000000000000000000000000000000000081526004016200061492919062000a17565b60405180910390fd5b5050505b505050565b806005540362000662576040517f73fa69fd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806005819055507f2f4f633f2174c8fce0ce6b22ea3cc69675584063adfd3d25e4dc3fd50cb631fc816040516200069a919062000a55565b60405180910390a150565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200079d8262000770565b9050919050565b620007af8162000790565b8114620007bb57600080fd5b50565b600081519050620007cf81620007a4565b92915050565b6000819050919050565b620007ea81620007d5565b8114620007f657600080fd5b50565b6000815190506200080a81620007df565b92915050565b600080600080608085870312156200082d576200082c6200076b565b5b60006200083d87828801620007be565b94505060206200085087828801620007be565b93505060406200086387828801620007be565b92505060606200087687828801620007f9565b91505092959194509250565b6200088d8162000790565b82525050565b6000602082019050620008aa600083018462000882565b92915050565b6000819050919050565b6000819050919050565b6000819050919050565b6000620008ef620008e9620008e384620008b0565b620008c4565b620008ba565b9050919050565b6200090181620008ce565b82525050565b60006040820190506200091e600083018562000882565b6200092d6020830184620008f6565b9392505050565b60008115159050919050565b6200094b8162000934565b81146200095757600080fd5b50565b6000815190506200096b8162000940565b92915050565b6000602082840312156200098a57620009896200076b565b5b60006200099a848285016200095a565b91505092915050565b620009ae81620008ba565b8114620009ba57600080fd5b50565b600081519050620009ce81620009a3565b92915050565b600060208284031215620009ed57620009ec6200076b565b5b6000620009fd84828501620009bd565b91505092915050565b62000a1181620008ba565b82525050565b600060408201905062000a2e600083018562000882565b62000a3d602083018462000a06565b9392505050565b62000a4f81620007d5565b82525050565b600060208201905062000a6c600083018462000a44565b92915050565b60805161201c62000ad4600039600081816103f7015281816106240152818161064f015281816106ae0152818161086a015281816108a00152818161093e01528181610a6b015281816111230152818161120b01526112a9015261201c6000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80638456cb59116100a2578063a0324bb911610071578063a0324bb914610232578063b584c7f014610250578063c6b3c3331461025a578063e30c397814610278578063f2fde38b146102965761010b565b80638456cb59146101d25780638c605df9146101dc5780638da5cb5b146101f85780638df2b02c146102165761010b565b80635c975abb116100de5780635c975abb14610184578063715018a6146101a257806379ba5097146101ac5780637cb64759146101b65761010b565b80632eb4a7ab1461011057806339c393ba1461012e5780633f4ba83a1461015e57806351fcf82214610168575b600080fd5b6101186102b2565b6040516101259190611966565b60405180910390f35b610148600480360381019061014391906119c1565b6102b8565b6040516101559190611a09565b60405180910390f35b6101666102d8565b005b610182600480360381019061017d9190611a89565b6102ea565b005b61018c610480565b6040516101999190611a09565b60405180910390f35b6101aa610496565b005b6101b46104d0565b005b6101d060048036038101906101cb9190611b3d565b61055f565b005b6101da610573565b005b6101f660048036038101906101f19190611bc8565b610585565b005b6102006105ab565b60405161020d9190611c04565b60405180910390f35b610230600480360381019061022b91906119c1565b6105d5565b005b61023a610868565b6040516102479190611c7e565b60405180910390f35b61025861088c565b005b610262610aeb565b60405161026f9190611c04565b60405180910390f35b610280610b11565b60405161028d9190611c04565b60405180910390f35b6102b060048036038101906102ab9190611bc8565b610b3b565b005b60055481565b60066020528060005260406000206000915054906101000a900460ff1681565b6102e0610be8565b6102e8610c6f565b565b6102f2610cd1565b6102fa610d17565b84841115610334576040517f040ef8ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61034085848484610d58565b60008411156103d957600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663746c727b33866040518363ffffffff1660e01b81526004016103a6929190611ca8565b600060405180830381600087803b1580156103c057600080fd5b505af11580156103d4573d6000803e3d6000fd5b505050505b600084866103e79190611d00565b9050600081111561041e5761041d7f00000000000000000000000000000000000000000000000000000000000000003383610dee565b5b3373ffffffffffffffffffffffffffffffffffffffff167ffedf0b5680f1b4c33012be9dc9002760386b67e06ee715d4e62ded585fb312ee85838860405161046893929190611d34565b60405180910390a250610479610e6d565b5050505050565b60008060009054906101000a900460ff16905090565b61049e610be8565b6040517fd79f908000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006104da610e76565b90508073ffffffffffffffffffffffffffffffffffffffff166104fb610b11565b73ffffffffffffffffffffffffffffffffffffffff161461055357806040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161054a9190611c04565b60405180910390fd5b61055c81610e7e565b50565b610567610be8565b61057081610eaf565b50565b61057b610be8565b610583610f2b565b565b61058d610cd1565b610595610be8565b6105a0816001610f8d565b6105a8610e6d565b50565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6105dd610cd1565b6105e5610be8565b6000810361061f576040517fcf0f6f8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61064b7f00000000000000000000000000000000000000000000000000000000000000003330846113d8565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107059190611c04565b602060405180830381865afa158015610722573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107469190611d80565b6040518363ffffffff1660e01b8152600401610763929190611ca8565b6020604051808303816000875af1158015610782573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a69190611dd9565b90508061080e57600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826040517f3f8ed02a000000000000000000000000000000000000000000000000000000008152600401610805929190611ca8565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f564f4485fbf8352de0bf1d3eeaf2b870d732d71533aa0d19e3f1df78e2c9cc60836040516108549190611e06565b60405180910390a250610865610e6d565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b610894610cd1565b61089c610be8565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108f79190611c04565b602060405180830381865afa158015610914573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109389190611d80565b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040518363ffffffff1660e01b81526004016109ba929190611e5c565b6020604051808303816000875af11580156109d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fd9190611dd9565b905080610a6657600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040517f3f8ed02a000000000000000000000000000000000000000000000000000000008152600401610a5d929190611e5c565b60405180910390fd5b610a917f00000000000000000000000000000000000000000000000000000000000000003384610dee565b3373ffffffffffffffffffffffffffffffffffffffff167f77b9f33295db5edfa387aea9d334adc356e2bd129c3a05143353ad5c31ae939883604051610ad79190611e06565b60405180910390a25050610ae9610e6d565b565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610b43610be8565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16610ba36105ab565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b610bf0610e76565b73ffffffffffffffffffffffffffffffffffffffff16610c0e6105ab565b73ffffffffffffffffffffffffffffffffffffffff1614610c6d57610c31610e76565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610c649190611c04565b60405180910390fd5b565b610c7761145a565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610cba610e76565b604051610cc79190611c04565b60405180910390a1565b600260015403610d0d576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b610d1f610480565b15610d56576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610d648484848461149a565b6006600084815260200190815260200160002060009054906101000a900460ff1615610dbc576040517fe4ca4c0b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016006600085815260200190815260200160002060006101000a81548160ff02191690831515021790555050505050565b610e68838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401610e21929190611ca8565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611534565b505050565b60018081905550565b600033905090565b600360006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055610eac816115cb565b50565b8060055403610eea576040517f73fa69fd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806005819055507f2f4f633f2174c8fce0ce6b22ea3cc69675584063adfd3d25e4dc3fd50cb631fc81604051610f209190611966565b60405180910390a150565b610f33610d17565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610f76610e76565b604051610f839190611c04565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611014576040517f73fa69fd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361107a576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f6567ed2e19a37fcd9a56580a50adc97d0b37fb59dc5db0e2086bfc6f848a61b3836040516111119190611c04565b60405180910390a181156113d35760007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b38360006040518363ffffffff1660e01b815260040161117d929190611e5c565b6020604051808303816000875af115801561119c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c09190611dd9565b905080611207578160006040517f3f8ed02a0000000000000000000000000000000000000000000000000000000081526004016111fe929190611e5c565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112629190611c04565b602060405180830381865afa15801561127f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a39190611d80565b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b8152600401611324929190611ca8565b6020604051808303816000875af1158015611343573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113679190611dd9565b9050806113cf57600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826040517f3f8ed02a0000000000000000000000000000000000000000000000000000000081526004016113c6929190611ca8565b60405180910390fd5b5050505b505050565b611454848573ffffffffffffffffffffffffffffffffffffffff166323b872dd86868660405160240161140d93929190611e85565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611534565b50505050565b611462610480565b611498576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60006114f4838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506005546114ef33888a611691565b6116ed565b90508061152d576040517ff091617b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b600061155f828473ffffffffffffffffffffffffffffffffffffffff1661170490919063ffffffff16565b905060008151141580156115845750808060200190518101906115829190611dd9565b155b156115c657826040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016115bd9190611c04565b60405180910390fd5b505050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008383836040516020016116a893929190611ebc565b604051602081830303815290604052805190602001206040516020016116ce9190611f14565b6040516020818303038152906040528051906020012090509392505050565b6000826116fa858461171a565b1490509392505050565b60606117128383600061176a565b905092915050565b60008082905060005b845181101561175f576117508286838151811061174357611742611f2f565b5b6020026020010151611837565b91508080600101915050611723565b508091505092915050565b6060814710156117b157306040517fcd7860590000000000000000000000000000000000000000000000000000000081526004016117a89190611c04565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1684866040516117da9190611fcf565b60006040518083038185875af1925050503d8060008114611817576040519150601f19603f3d011682016040523d82523d6000602084013e61181c565b606091505b509150915061182c868383611862565b925050509392505050565b600081831061184f5761184a82846118f1565b61185a565b61185983836118f1565b5b905092915050565b6060826118775761187282611908565b6118e9565b6000825114801561189f575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156118e157836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016118d89190611c04565b60405180910390fd5b8190506118ea565b5b9392505050565b600082600052816020526040600020905092915050565b60008151111561191b5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000819050919050565b6119608161194d565b82525050565b600060208201905061197b6000830184611957565b92915050565b600080fd5b600080fd5b6000819050919050565b61199e8161198b565b81146119a957600080fd5b50565b6000813590506119bb81611995565b92915050565b6000602082840312156119d7576119d6611981565b5b60006119e5848285016119ac565b91505092915050565b60008115159050919050565b611a03816119ee565b82525050565b6000602082019050611a1e60008301846119fa565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112611a4957611a48611a24565b5b8235905067ffffffffffffffff811115611a6657611a65611a29565b5b602083019150836020820283011115611a8257611a81611a2e565b5b9250929050565b600080600080600060808688031215611aa557611aa4611981565b5b6000611ab3888289016119ac565b9550506020611ac4888289016119ac565b9450506040611ad5888289016119ac565b935050606086013567ffffffffffffffff811115611af657611af5611986565b5b611b0288828901611a33565b92509250509295509295909350565b611b1a8161194d565b8114611b2557600080fd5b50565b600081359050611b3781611b11565b92915050565b600060208284031215611b5357611b52611981565b5b6000611b6184828501611b28565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611b9582611b6a565b9050919050565b611ba581611b8a565b8114611bb057600080fd5b50565b600081359050611bc281611b9c565b92915050565b600060208284031215611bde57611bdd611981565b5b6000611bec84828501611bb3565b91505092915050565b611bfe81611b8a565b82525050565b6000602082019050611c196000830184611bf5565b92915050565b6000819050919050565b6000611c44611c3f611c3a84611b6a565b611c1f565b611b6a565b9050919050565b6000611c5682611c29565b9050919050565b6000611c6882611c4b565b9050919050565b611c7881611c5d565b82525050565b6000602082019050611c936000830184611c6f565b92915050565b611ca28161198b565b82525050565b6000604082019050611cbd6000830185611bf5565b611cca6020830184611c99565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611d0b8261198b565b9150611d168361198b565b9250828203905081811115611d2e57611d2d611cd1565b5b92915050565b6000606082019050611d496000830186611c99565b611d566020830185611c99565b611d636040830184611c99565b949350505050565b600081519050611d7a81611995565b92915050565b600060208284031215611d9657611d95611981565b5b6000611da484828501611d6b565b91505092915050565b611db6816119ee565b8114611dc157600080fd5b50565b600081519050611dd381611dad565b92915050565b600060208284031215611def57611dee611981565b5b6000611dfd84828501611dc4565b91505092915050565b6000602082019050611e1b6000830184611c99565b92915050565b6000819050919050565b6000611e46611e41611e3c84611e21565b611c1f565b61198b565b9050919050565b611e5681611e2b565b82525050565b6000604082019050611e716000830185611bf5565b611e7e6020830184611e4d565b9392505050565b6000606082019050611e9a6000830186611bf5565b611ea76020830185611bf5565b611eb46040830184611c99565b949350505050565b6000606082019050611ed16000830186611bf5565b611ede6020830185611c99565b611eeb6040830184611c99565b949350505050565b6000819050919050565b611f0e611f098261194d565b611ef3565b82525050565b6000611f208284611efd565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600081905092915050565b60005b83811015611f92578082015181840152602081019050611f77565b60008484015250505050565b6000611fa982611f5e565b611fb38185611f69565b9350611fc3818560208601611f74565b80840191505092915050565b6000611fdb8284611f9e565b91508190509291505056fea2646970667358221220fd101851c9057de48af606f62f135a0e0ce6e47c1f2d712c9803b16c984380e664736f6c63430008180033000000000000000000000000586fbf5fadb63ba1e28f4987d7e6d6f1bfb9f490000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a66200000000000000000000000070c2c33eaecae0f6a0002f4b4ee2fc10aa36c1026b063ba54181ed2c694c6e82f579ad472837f653df8ee453bd4a59172b588d3b

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80638456cb59116100a2578063a0324bb911610071578063a0324bb914610232578063b584c7f014610250578063c6b3c3331461025a578063e30c397814610278578063f2fde38b146102965761010b565b80638456cb59146101d25780638c605df9146101dc5780638da5cb5b146101f85780638df2b02c146102165761010b565b80635c975abb116100de5780635c975abb14610184578063715018a6146101a257806379ba5097146101ac5780637cb64759146101b65761010b565b80632eb4a7ab1461011057806339c393ba1461012e5780633f4ba83a1461015e57806351fcf82214610168575b600080fd5b6101186102b2565b6040516101259190611966565b60405180910390f35b610148600480360381019061014391906119c1565b6102b8565b6040516101559190611a09565b60405180910390f35b6101666102d8565b005b610182600480360381019061017d9190611a89565b6102ea565b005b61018c610480565b6040516101999190611a09565b60405180910390f35b6101aa610496565b005b6101b46104d0565b005b6101d060048036038101906101cb9190611b3d565b61055f565b005b6101da610573565b005b6101f660048036038101906101f19190611bc8565b610585565b005b6102006105ab565b60405161020d9190611c04565b60405180910390f35b610230600480360381019061022b91906119c1565b6105d5565b005b61023a610868565b6040516102479190611c7e565b60405180910390f35b61025861088c565b005b610262610aeb565b60405161026f9190611c04565b60405180910390f35b610280610b11565b60405161028d9190611c04565b60405180910390f35b6102b060048036038101906102ab9190611bc8565b610b3b565b005b60055481565b60066020528060005260406000206000915054906101000a900460ff1681565b6102e0610be8565b6102e8610c6f565b565b6102f2610cd1565b6102fa610d17565b84841115610334576040517f040ef8ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61034085848484610d58565b60008411156103d957600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663746c727b33866040518363ffffffff1660e01b81526004016103a6929190611ca8565b600060405180830381600087803b1580156103c057600080fd5b505af11580156103d4573d6000803e3d6000fd5b505050505b600084866103e79190611d00565b9050600081111561041e5761041d7f000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a6623383610dee565b5b3373ffffffffffffffffffffffffffffffffffffffff167ffedf0b5680f1b4c33012be9dc9002760386b67e06ee715d4e62ded585fb312ee85838860405161046893929190611d34565b60405180910390a250610479610e6d565b5050505050565b60008060009054906101000a900460ff16905090565b61049e610be8565b6040517fd79f908000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006104da610e76565b90508073ffffffffffffffffffffffffffffffffffffffff166104fb610b11565b73ffffffffffffffffffffffffffffffffffffffff161461055357806040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161054a9190611c04565b60405180910390fd5b61055c81610e7e565b50565b610567610be8565b61057081610eaf565b50565b61057b610be8565b610583610f2b565b565b61058d610cd1565b610595610be8565b6105a0816001610f8d565b6105a8610e6d565b50565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6105dd610cd1565b6105e5610be8565b6000810361061f576040517fcf0f6f8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61064b7f000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a6623330846113d8565b60007f000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a66273ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a66273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107059190611c04565b602060405180830381865afa158015610722573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107469190611d80565b6040518363ffffffff1660e01b8152600401610763929190611ca8565b6020604051808303816000875af1158015610782573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a69190611dd9565b90508061080e57600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826040517f3f8ed02a000000000000000000000000000000000000000000000000000000008152600401610805929190611ca8565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f564f4485fbf8352de0bf1d3eeaf2b870d732d71533aa0d19e3f1df78e2c9cc60836040516108549190611e06565b60405180910390a250610865610e6d565b50565b7f000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a66281565b610894610cd1565b61089c610be8565b60007f000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a66273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108f79190611c04565b602060405180830381865afa158015610914573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109389190611d80565b905060007f000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a66273ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040518363ffffffff1660e01b81526004016109ba929190611e5c565b6020604051808303816000875af11580156109d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fd9190611dd9565b905080610a6657600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040517f3f8ed02a000000000000000000000000000000000000000000000000000000008152600401610a5d929190611e5c565b60405180910390fd5b610a917f000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a6623384610dee565b3373ffffffffffffffffffffffffffffffffffffffff167f77b9f33295db5edfa387aea9d334adc356e2bd129c3a05143353ad5c31ae939883604051610ad79190611e06565b60405180910390a25050610ae9610e6d565b565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610b43610be8565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16610ba36105ab565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b610bf0610e76565b73ffffffffffffffffffffffffffffffffffffffff16610c0e6105ab565b73ffffffffffffffffffffffffffffffffffffffff1614610c6d57610c31610e76565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610c649190611c04565b60405180910390fd5b565b610c7761145a565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610cba610e76565b604051610cc79190611c04565b60405180910390a1565b600260015403610d0d576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b610d1f610480565b15610d56576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610d648484848461149a565b6006600084815260200190815260200160002060009054906101000a900460ff1615610dbc576040517fe4ca4c0b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016006600085815260200190815260200160002060006101000a81548160ff02191690831515021790555050505050565b610e68838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401610e21929190611ca8565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611534565b505050565b60018081905550565b600033905090565b600360006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055610eac816115cb565b50565b8060055403610eea576040517f73fa69fd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806005819055507f2f4f633f2174c8fce0ce6b22ea3cc69675584063adfd3d25e4dc3fd50cb631fc81604051610f209190611966565b60405180910390a150565b610f33610d17565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610f76610e76565b604051610f839190611c04565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611014576040517f73fa69fd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361107a576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f6567ed2e19a37fcd9a56580a50adc97d0b37fb59dc5db0e2086bfc6f848a61b3836040516111119190611c04565b60405180910390a181156113d35760007f000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a66273ffffffffffffffffffffffffffffffffffffffff1663095ea7b38360006040518363ffffffff1660e01b815260040161117d929190611e5c565b6020604051808303816000875af115801561119c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c09190611dd9565b905080611207578160006040517f3f8ed02a0000000000000000000000000000000000000000000000000000000081526004016111fe929190611e5c565b60405180910390fd5b60007f000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a66273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112629190611c04565b602060405180830381865afa15801561127f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a39190611d80565b905060007f000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a66273ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b8152600401611324929190611ca8565b6020604051808303816000875af1158015611343573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113679190611dd9565b9050806113cf57600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826040517f3f8ed02a0000000000000000000000000000000000000000000000000000000081526004016113c6929190611ca8565b60405180910390fd5b5050505b505050565b611454848573ffffffffffffffffffffffffffffffffffffffff166323b872dd86868660405160240161140d93929190611e85565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611534565b50505050565b611462610480565b611498576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60006114f4838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506005546114ef33888a611691565b6116ed565b90508061152d576040517ff091617b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b600061155f828473ffffffffffffffffffffffffffffffffffffffff1661170490919063ffffffff16565b905060008151141580156115845750808060200190518101906115829190611dd9565b155b156115c657826040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016115bd9190611c04565b60405180910390fd5b505050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008383836040516020016116a893929190611ebc565b604051602081830303815290604052805190602001206040516020016116ce9190611f14565b6040516020818303038152906040528051906020012090509392505050565b6000826116fa858461171a565b1490509392505050565b60606117128383600061176a565b905092915050565b60008082905060005b845181101561175f576117508286838151811061174357611742611f2f565b5b6020026020010151611837565b91508080600101915050611723565b508091505092915050565b6060814710156117b157306040517fcd7860590000000000000000000000000000000000000000000000000000000081526004016117a89190611c04565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1684866040516117da9190611fcf565b60006040518083038185875af1925050503d8060008114611817576040519150601f19603f3d011682016040523d82523d6000602084013e61181c565b606091505b509150915061182c868383611862565b925050509392505050565b600081831061184f5761184a82846118f1565b61185a565b61185983836118f1565b5b905092915050565b6060826118775761187282611908565b6118e9565b6000825114801561189f575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156118e157836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016118d89190611c04565b60405180910390fd5b8190506118ea565b5b9392505050565b600082600052816020526040600020905092915050565b60008151111561191b5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000819050919050565b6119608161194d565b82525050565b600060208201905061197b6000830184611957565b92915050565b600080fd5b600080fd5b6000819050919050565b61199e8161198b565b81146119a957600080fd5b50565b6000813590506119bb81611995565b92915050565b6000602082840312156119d7576119d6611981565b5b60006119e5848285016119ac565b91505092915050565b60008115159050919050565b611a03816119ee565b82525050565b6000602082019050611a1e60008301846119fa565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112611a4957611a48611a24565b5b8235905067ffffffffffffffff811115611a6657611a65611a29565b5b602083019150836020820283011115611a8257611a81611a2e565b5b9250929050565b600080600080600060808688031215611aa557611aa4611981565b5b6000611ab3888289016119ac565b9550506020611ac4888289016119ac565b9450506040611ad5888289016119ac565b935050606086013567ffffffffffffffff811115611af657611af5611986565b5b611b0288828901611a33565b92509250509295509295909350565b611b1a8161194d565b8114611b2557600080fd5b50565b600081359050611b3781611b11565b92915050565b600060208284031215611b5357611b52611981565b5b6000611b6184828501611b28565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611b9582611b6a565b9050919050565b611ba581611b8a565b8114611bb057600080fd5b50565b600081359050611bc281611b9c565b92915050565b600060208284031215611bde57611bdd611981565b5b6000611bec84828501611bb3565b91505092915050565b611bfe81611b8a565b82525050565b6000602082019050611c196000830184611bf5565b92915050565b6000819050919050565b6000611c44611c3f611c3a84611b6a565b611c1f565b611b6a565b9050919050565b6000611c5682611c29565b9050919050565b6000611c6882611c4b565b9050919050565b611c7881611c5d565b82525050565b6000602082019050611c936000830184611c6f565b92915050565b611ca28161198b565b82525050565b6000604082019050611cbd6000830185611bf5565b611cca6020830184611c99565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611d0b8261198b565b9150611d168361198b565b9250828203905081811115611d2e57611d2d611cd1565b5b92915050565b6000606082019050611d496000830186611c99565b611d566020830185611c99565b611d636040830184611c99565b949350505050565b600081519050611d7a81611995565b92915050565b600060208284031215611d9657611d95611981565b5b6000611da484828501611d6b565b91505092915050565b611db6816119ee565b8114611dc157600080fd5b50565b600081519050611dd381611dad565b92915050565b600060208284031215611def57611dee611981565b5b6000611dfd84828501611dc4565b91505092915050565b6000602082019050611e1b6000830184611c99565b92915050565b6000819050919050565b6000611e46611e41611e3c84611e21565b611c1f565b61198b565b9050919050565b611e5681611e2b565b82525050565b6000604082019050611e716000830185611bf5565b611e7e6020830184611e4d565b9392505050565b6000606082019050611e9a6000830186611bf5565b611ea76020830185611bf5565b611eb46040830184611c99565b949350505050565b6000606082019050611ed16000830186611bf5565b611ede6020830185611c99565b611eeb6040830184611c99565b949350505050565b6000819050919050565b611f0e611f098261194d565b611ef3565b82525050565b6000611f208284611efd565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600081905092915050565b60005b83811015611f92578082015181840152602081019050611f77565b60008484015250505050565b6000611fa982611f5e565b611fb38185611f69565b9350611fc3818560208601611f74565b80840191505092915050565b6000611fdb8284611f9e565b91508190509291505056fea2646970667358221220fd101851c9057de48af606f62f135a0e0ce6e47c1f2d712c9803b16c984380e664736f6c63430008180033

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

000000000000000000000000586fbf5fadb63ba1e28f4987d7e6d6f1bfb9f490000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a66200000000000000000000000070c2c33eaecae0f6a0002f4b4ee2fc10aa36c1026b063ba54181ed2c694c6e82f579ad472837f653df8ee453bd4a59172b588d3b

-----Decoded View---------------
Arg [0] : _multisigAddress (address): 0x586FBF5fADB63bA1e28f4987D7e6D6F1BFB9F490
Arg [1] : _islandTokenAddress (address): 0x157a6df6B74F4E5E45af4E4615FDe7B49225a662
Arg [2] : _islandStakingAddress (address): 0x70c2c33EAEcAe0F6A0002f4B4EE2FC10AA36C102
Arg [3] : _merkleRoot (bytes32): 0x6b063ba54181ed2c694c6e82f579ad472837f653df8ee453bd4a59172b588d3b

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000586fbf5fadb63ba1e28f4987d7e6d6f1bfb9f490
Arg [1] : 000000000000000000000000157a6df6b74f4e5e45af4e4615fde7b49225a662
Arg [2] : 00000000000000000000000070c2c33eaecae0f6a0002f4b4ee2fc10aa36c102
Arg [3] : 6b063ba54181ed2c694c6e82f579ad472837f653df8ee453bd4a59172b588d3b


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  ]
[ 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.