ETH Price: $1,961.95 (-2.52%)
Gas: 0.04 Gwei
 

More Info

Private Name Tags

Multichain Info

Transaction Hash
Method
Block
From
To
Withdraw Shifu T...214839612024-12-26 3:29:35430 days ago1735183775IN
0x0Ec5b7fe...640911516
0 ETH0.000271814.79365557
Update Shifu Con...214839592024-12-26 3:29:11430 days ago1735183751IN
0x0Ec5b7fe...640911516
0 ETH0.000135314.66252331
Withdraw Shifu T...214839522024-12-26 3:27:47430 days ago1735183667IN
0x0Ec5b7fe...640911516
0 ETH0.000318955.20344229
Update Shifu Con...214839502024-12-26 3:27:23430 days ago1735183643IN
0x0Ec5b7fe...640911516
0 ETH0.000153415.28622393
Withdraw Shifu T...214839452024-12-26 3:26:23430 days ago1735183583IN
0x0Ec5b7fe...640911516
0 ETH0.000311145.39734312
Airdrop214445432024-12-20 15:11:47436 days ago1734707507IN
0x0Ec5b7fe...640911516
0 ETH0.3056459554.6824576
Airdrop214445412024-12-20 15:11:23436 days ago1734707483IN
0x0Ec5b7fe...640911516
0 ETH0.5061268749.11325538
Airdrop214445382024-12-20 15:10:47436 days ago1734707447IN
0x0Ec5b7fe...640911516
0 ETH0.5172845849.86430642
Airdrop214445352024-12-20 15:10:11436 days ago1734707411IN
0x0Ec5b7fe...640911516
0 ETH0.4961744147.51634035
Airdrop214445302024-12-20 15:09:11436 days ago1734707351IN
0x0Ec5b7fe...640911516
0 ETH0.5064093348.8972521
Airdrop214445272024-12-20 15:08:35436 days ago1734707315IN
0x0Ec5b7fe...640911516
0 ETH0.4730580745.536163
Airdrop214445242024-12-20 15:07:59436 days ago1734707279IN
0x0Ec5b7fe...640911516
0 ETH0.4309413841.88661044
Airdrop214445212024-12-20 15:07:23436 days ago1734707243IN
0x0Ec5b7fe...640911516
0 ETH0.455183144.39052009
Airdrop214445182024-12-20 15:06:47436 days ago1734707207IN
0x0Ec5b7fe...640911516
0 ETH0.460263544.4413022
Airdrop214445152024-12-20 15:06:11436 days ago1734707171IN
0x0Ec5b7fe...640911516
0 ETH0.4414395642.8358644
Airdrop214445042024-12-20 15:03:59436 days ago1734707039IN
0x0Ec5b7fe...640911516
0 ETH0.3634368135.09958389
Airdrop214444992024-12-20 15:02:59436 days ago1734706979IN
0x0Ec5b7fe...640911516
0 ETH0.352645334.05005731
Airdrop214444932024-12-20 15:01:47436 days ago1734706907IN
0x0Ec5b7fe...640911516
0 ETH0.3382759632.44838126
Update Shifu Con...214443622024-12-20 14:35:23436 days ago1734705323IN
0x0Ec5b7fe...640911516
0 ETH0.0016544835.87272203
Transfer214398332024-12-19 23:24:47437 days ago1734650687IN
0x0Ec5b7fe...640911516
0.07620839 ETH0.0004234820.16582898
Transfer214327652024-12-18 23:42:23438 days ago1734565343IN
0x0Ec5b7fe...640911516
0.0843396 ETH0.0002850212.25380349
Transfer214314302024-12-18 19:13:59438 days ago1734549239IN
0x0Ec5b7fe...640911516
0.1 ETH0.0004749722.6178495
Transfer214305002024-12-18 16:06:35438 days ago1734537995IN
0x0Ec5b7fe...640911516
0.11 ETH0.0006167529.36948756
Transfer214304932024-12-18 16:05:11438 days ago1734537911IN
0x0Ec5b7fe...640911516
0.12 ETH0.0006491930.91388222
Withdraw214304542024-12-18 15:57:11438 days ago1734537431IN
0x0Ec5b7fe...640911516
0 ETH0.0012700730.718314
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer214403092024-12-20 1:00:11437 days ago1734656411
0x0Ec5b7fe...640911516
0.2 ETH
Transfer214304542024-12-18 15:57:11438 days ago1734537431
0x0Ec5b7fe...640911516
575.08867747 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.78791169 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.90564562 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
1.31318615 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
1.17733931 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
1.81129125 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.09962101 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.21735495 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.07527519 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.10867747 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
9.05645625 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
1.35846843 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.36225825 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
9.05645625 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.09056456 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.18565735 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
1.04873763 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
2.71693687 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
7.15460044 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.45282281 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
2.71693687 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.03622582 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.90564562 ETH
Transfer214304412024-12-18 15:54:35438 days ago1734537275
0x0Ec5b7fe...640911516
0.09056456 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ShifuPreSale

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.28;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';

contract ShifuPreSale is Ownable {
    using SafeERC20 for IERC20;

    struct UserFund {
        uint80 deposits;
        uint80 airdrops;
        uint80 refunds;
    }

    uint256 public constant TOTAL_SHIFU_ALLOCATION = 15_000_000_000 * 10 ** 18;

    uint80 public totalDeposits;

    uint80 public maxCap;
    address public withdrawalAddress;
    address public shifuContractAddress;
    bool public isPreSaleActive;

    mapping(address => UserFund) public userFunds;

    /// @notice Reverted if pre-sale is inactive
    error PreSaleInactive();

    /// @notice Reverted if withdrawing fails
    error WithdrawalFailed();

    /// @notice Reverted if refunding is inactive
    error RefundInactive();

    /// @notice Reverted if refunds not rquired due to underfunding
    error RefundingNotRequired();

    /// @notice Reverted if airdropping is inactive
    error AirdropInactive();

    /// @notice Emitted when an ETH deposit has been made
    /// @param depositor EOA of depositor
    /// @param amount Amount deposited
    event Deposit(address indexed depositor, uint256 amount);

    /// @notice Emitted when airdrop of $SHIFU has been processed
    /// @param depositor EOA of depositor that has been airdropped to
    /// @param amount Amount deposited
    /// @param allocation Allocation that has been airdropped
    event Airdrop(
        address indexed depositor,
        uint256 amount,
        uint256 allocation
    );

    /// @notice Emitted when refund of ETH has been processed
    /// @param depositor EOA of depositor that has been refunded to
    /// @param amount Amount refunded
    event Refund(address indexed depositor, uint256 amount);

    constructor(address _withdrawalAddress) Ownable(msg.sender) {
        withdrawalAddress = _withdrawalAddress;
    }

    /// @dev Allow accepting ETH programatically
    receive() external payable {
        deposit();
    }

    /// @dev Allow accepting ETH programatically
    fallback() external payable {
        deposit();
    }

    /// @notice Main: Process ETH deposits
    function deposit() public payable {
        if (!isPreSaleActive) revert PreSaleInactive();

        unchecked {
            userFunds[_msgSender()].deposits += uint80(msg.value);
            totalDeposits += uint80(msg.value);
        }

        emit Deposit(_msgSender(), msg.value);
    }

    /// @notice Owner: Withdraw ETH
    /// @dev Full ETH balance on contract will be withdrawn to `withdrawalAddress`
    function withdraw() external onlyOwner {
        (bool success, ) = payable(withdrawalAddress).call{
            value: address(this).balance
        }('');

        if (!success) revert WithdrawalFailed();
    }

    /// @notice Owner: Withdraw $SHIFU tokens
    /// @dev Full $SHIFU balance on contract will be withdrawn to `withdrawalAddress`
    function withdrawShifuTokens() external onlyOwner {
        IERC20 shifu = IERC20(shifuContractAddress);
        shifu.safeTransfer(withdrawalAddress, shifu.balanceOf(address(this)));
    }

    /// @notice Owner: Process refund
    /// @param _depositors List of depositors' addresses for refund
    function refund(address[] calldata _depositors) external onlyOwner {
        if (isPreSaleActive || maxCap == 0) revert RefundInactive();

        if (totalDeposits <= maxCap) revert RefundingNotRequired();

        for (uint256 i; i < _depositors.length; ++i) {
            if (userFunds[_depositors[i]].refunds > 0) {
                continue;
            }

            uint80 refundAmount = uint80(
                userFunds[_depositors[i]].deposits -
                    (uint256(userFunds[_depositors[i]].deposits) * maxCap) /
                    totalDeposits
            );

            (bool success, ) = payable(_depositors[i]).call{
                value: refundAmount
            }('');

            if (success) {
                unchecked {
                    userFunds[_depositors[i]].refunds += refundAmount;
                }
                emit Refund(_depositors[i], refundAmount);
            }
        }
    }

    /// @notice Owner: Process airdrop
    /// @param _depositors List of depositors' addresses for airdrop
    function airdrop(address[] calldata _depositors) external onlyOwner {
        if (
            isPreSaleActive || maxCap == 0 || shifuContractAddress == address(0)
        ) revert AirdropInactive();

        for (uint256 i; i < _depositors.length; ++i) {
            if (userFunds[_depositors[i]].airdrops > 0) {
                continue;
            }

            uint80 allocatedAmount = totalDeposits > maxCap
                ? uint80(
                    (uint256(userFunds[_depositors[i]].deposits) * maxCap) /
                        totalDeposits
                )
                : uint80(userFunds[_depositors[i]].deposits);

            uint256 shifuAllocation = totalDeposits > maxCap
                ? (TOTAL_SHIFU_ALLOCATION * allocatedAmount) / maxCap
                : (allocatedAmount * TOTAL_SHIFU_ALLOCATION) / totalDeposits;

            IERC20(shifuContractAddress).safeTransfer(
                _depositors[i],
                shifuAllocation
            );

            unchecked {
                userFunds[_depositors[i]].airdrops += allocatedAmount;
            }

            emit Airdrop(_depositors[i], allocatedAmount, shifuAllocation);
        }
    }

    /// @notice Toggle pre-sale state
    function togglePreSaleState() external onlyOwner {
        isPreSaleActive = !isPreSaleActive;
    }

    /// @notice Update max cap
    /// @param _maxCap Max cap (in numerical wei) for pre-sale
    function updateMaxCap(uint80 _maxCap) external onlyOwner {
        maxCap = _maxCap;
    }

    /// @notice Update withdraw address
    /// @param _withdrawalAddress Address where ETH and $SHIFU tokens will be withdrawn to
    function updateWithdrawalAddress(
        address _withdrawalAddress
    ) external onlyOwner {
        withdrawalAddress = _withdrawalAddress;
    }

    /// @notice Update $SHIFU contract address
    /// @param _shifuContractAddress CA for $SHIFU token
    function updateShifuContractAddress(
        address _shifuContractAddress
    ) external onlyOwner {
        shifuContractAddress = _shifuContractAddress;
    }
}

// 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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

File 4 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

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

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 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 {
    /**
     * @dev An operation with an ERC-20 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.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    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.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    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.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    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 Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            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 silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @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 Errors.InsufficientBalance(address(this).balance, amount);
        }

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

    /**
     * @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
     * {Errors.FailedCall} 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 Errors.InsufficientBalance(address(this).balance, value);
        }
        (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 {Errors.FailedCall}) 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 {Errors.FailedCall} 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 {Errors.FailedCall}.
     */
    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
            assembly ("memory-safe") {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert Errors.FailedCall();
        }
    }
}

// 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 10 of 11 : Errors.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of common custom errors used in multiple contracts
 *
 * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
 * It is recommended to avoid relying on the error API for critical functionality.
 *
 * _Available since v5.1._
 */
library Errors {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error InsufficientBalance(uint256 balance, uint256 needed);

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

    /**
     * @dev The deployment failed.
     */
    error FailedDeployment();

    /**
     * @dev A necessary precompile is missing.
     */
    error MissingPrecompile(address);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_withdrawalAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AirdropInactive","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":"PreSaleInactive","type":"error"},{"inputs":[],"name":"RefundInactive","type":"error"},{"inputs":[],"name":"RefundingNotRequired","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"WithdrawalFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocation","type":"uint256"}],"name":"Airdrop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Refund","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"TOTAL_SHIFU_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_depositors","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isPreSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCap","outputs":[{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_depositors","type":"address[]"}],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shifuContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalDeposits","outputs":[{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint80","name":"_maxCap","type":"uint80"}],"name":"updateMaxCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_shifuContractAddress","type":"address"}],"name":"updateShifuContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawalAddress","type":"address"}],"name":"updateWithdrawalAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userFunds","outputs":[{"internalType":"uint80","name":"deposits","type":"uint80"},{"internalType":"uint80","name":"airdrops","type":"uint80"},{"internalType":"uint80","name":"refunds","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawShifuTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b506040516111cb3803806111cb83398101604081905261002f916100e5565b338061005557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61005e81610095565b50600180546001600160a01b039092166a010000000000000000000002600160501b600160f01b0319909216919091179055610115565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100f757600080fd5b81516001600160a01b038116811461010e57600080fd5b9392505050565b6110a7806101246000396000f3fe6080604052600436106101185760003560e01c8063729ad39e116100a0578063d0e30db011610064578063d0e30db014610127578063d91f1ad41461037d578063e02cec5114610392578063f2bcd022146103b2578063f2fde38b146103d957610127565b8063729ad39e146102715780637d882097146102915780638387c6e1146102b85780638da5cb5b1461032e5780639d044ed31461034c57610127565b80633e3003c6116100e75780633e3003c6146101c457806349fe1416146101fc5780635e72fc5d1461021c57806362110ed01461023c578063715018a61461025c57610127565b80630caeec471461012f5780630ec1623d1461014457806323548b8b146101775780633ccfd60b146101af57610127565b36610127576101256103f9565b005b6101256103f9565b34801561013b57600080fd5b506101256104c6565b34801561015057600080fd5b506101646b3077b58d5d3783919800000081565b6040519081526020015b60405180910390f35b34801561018357600080fd5b50600154610197906001600160501b031681565b6040516001600160501b03909116815260200161016e565b3480156101bb57600080fd5b50610125610560565b3480156101d057600080fd5b506002546101e4906001600160a01b031681565b6040516001600160a01b03909116815260200161016e565b34801561020857600080fd5b50610125610217366004610f0a565b6105e3565b34801561022857600080fd5b50610125610237366004610f3a565b610610565b34801561024857600080fd5b50610125610257366004610f3a565b610659565b34801561026857600080fd5b50610125610683565b34801561027d57600080fd5b5061012561028c366004610f63565b610697565b34801561029d57600080fd5b5060005461019790600160a01b90046001600160501b031681565b3480156102c457600080fd5b506103046102d3366004610f3a565b6003602052600090815260409020546001600160501b0380821691600160501b8104821691600160a01b9091041683565b604080516001600160501b039485168152928416602084015292169181019190915260600161016e565b34801561033a57600080fd5b506000546001600160a01b03166101e4565b34801561035857600080fd5b5060025461036d90600160a01b900460ff1681565b604051901515815260200161016e565b34801561038957600080fd5b50610125610a1e565b34801561039e57600080fd5b506101256103ad366004610f63565b610a47565b3480156103be57600080fd5b506001546101e490600160501b90046001600160a01b031681565b3480156103e557600080fd5b506101256103f4366004610f3a565b610d84565b600254600160a01b900460ff166104235760405163fc7d083760e01b815260040160405180910390fd5b336000818152600360205260408120805469ffffffffffffffffffff1981166001600160501b0391821634908101831691909117909255825469ffffffffffffffffffff60a01b198116600160a01b918290048316909301909116021790556001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c346040516104bc91815260200190565b60405180910390a2565b6104ce610dc4565b6002546001546040516370a0823160e01b81523060048201526001600160a01b039283169261055d92600160501b9004169083906370a0823190602401602060405180830381865afa158015610528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c9190610fda565b6001600160a01b0384169190610df1565b50565b610568610dc4565b600154604051600091600160501b90046001600160a01b03169047908381818185875af1925050503d80600081146105bc576040519150601f19603f3d011682016040523d82523d6000602084013e6105c1565b606091505b505090508061055d576040516327fcd9d160e01b815260040160405180910390fd5b6105eb610dc4565b6001805469ffffffffffffffffffff19166001600160501b0392909216919091179055565b610618610dc4565b600180546001600160a01b03909216600160501b027fffff0000000000000000000000000000000000000000ffffffffffffffffffff909216919091179055565b610661610dc4565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61068b610dc4565b6106956000610e43565b565b61069f610dc4565b600254600160a01b900460ff16806106c057506001546001600160501b0316155b806106d457506002546001600160a01b0316155b156106f25760405163133c07dd60e21b815260040160405180910390fd5b60005b81811015610a195760006003600085858581811061071557610715610ff3565b905060200201602081019061072a9190610f3a565b6001600160a01b03168152602081019190915260400160002054600160501b90046001600160501b031611610a11576001546000805490916001600160501b03908116600160a01b90920416116107ce576003600085858581811061079157610791610ff3565b90506020020160208101906107a69190610f3a565b6001600160a01b031681526020810191909152604001600020546001600160501b031661084c565b600080546001546001600160501b03600160a01b90920482169291169060039087878781811061080057610800610ff3565b90506020020160208101906108159190610f3a565b6001600160a01b0316815260208101919091526040016000205461084291906001600160501b031661101f565b61084c919061103c565b60015460008054929350916001600160501b03918216600160a01b909104909116116108b0576000546001600160501b03600160a01b9091048116906108a1906b3077b58d5d3783919800000090851661101f565b6108ab919061103c565b6108e1565b6001546001600160501b03908116906108d79084166b3077b58d5d3783919800000061101f565b6108e1919061103c565b90506109208585858181106108f8576108f8610ff3565b905060200201602081019061090d9190610f3a565b6002546001600160a01b03169083610df1565b816003600087878781811061093757610937610ff3565b905060200201602081019061094c9190610f3a565b6001600160a01b03168152602081019190915260400160002080546001600160501b03600160501b80830482169094011690920269ffffffffffffffffffff60501b199092169190911790558484848181106109aa576109aa610ff3565b90506020020160208101906109bf9190610f3a565b604080516001600160501b0385168152602081018490526001600160a01b0392909216917fada993ad066837289fe186cd37227aa338d27519a8a1547472ecb9831486d272910160405180910390a250505b6001016106f5565b505050565b610a26610dc4565b6002805460ff60a01b198116600160a01b9182900460ff1615909102179055565b610a4f610dc4565b600254600160a01b900460ff1680610a7057506001546001600160501b0316155b15610a8e57604051631cf939d160e21b815260040160405180910390fd5b6001546000546001600160501b03918216600160a01b90910490911611610ac857604051639dc7e68b60e01b815260040160405180910390fd5b60005b81811015610a1957600060036000858585818110610aeb57610aeb610ff3565b9050602002016020810190610b009190610f3a565b6001600160a01b03168152602081019190915260400160002054600160a01b90046001600160501b031611610d7c57600080546001546001600160501b03600160a01b90920482169116600383878787818110610b5f57610b5f610ff3565b9050602002016020810190610b749190610f3a565b6001600160a01b03168152602081019190915260400160002054610ba191906001600160501b031661101f565b610bab919061103c565b60036000868686818110610bc157610bc1610ff3565b9050602002016020810190610bd69190610f3a565b6001600160a01b03168152602081019190915260400160002054610c0391906001600160501b031661105e565b90506000848484818110610c1957610c19610ff3565b9050602002016020810190610c2e9190610f3a565b6001600160a01b0316826001600160501b031660405160006040518083038185875af1925050503d8060008114610c81576040519150601f19603f3d011682016040523d82523d6000602084013e610c86565b606091505b505090508015610d79578160036000878787818110610ca757610ca7610ff3565b9050602002016020810190610cbc9190610f3a565b6001600160a01b03168152602081019190915260400160002080546001600160501b03600160a01b80830482169094011690920269ffffffffffffffffffff60a01b19909216919091179055848484818110610d1a57610d1a610ff3565b9050602002016020810190610d2f9190610f3a565b6040516001600160501b03841681526001600160a01b0391909116907fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d9060200160405180910390a25b50505b600101610acb565b610d8c610dc4565b6001600160a01b038116610dbb57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61055d81610e43565b6000546001600160a01b031633146106955760405163118cdaa760e01b8152336004820152602401610db2565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a19908490610e93565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080602060008451602086016000885af180610eb6576040513d6000823e3d81fd5b50506000513d91508115610ece578060011415610edb565b6001600160a01b0384163b155b15610f0457604051635274afe760e01b81526001600160a01b0385166004820152602401610db2565b50505050565b600060208284031215610f1c57600080fd5b81356001600160501b0381168114610f3357600080fd5b9392505050565b600060208284031215610f4c57600080fd5b81356001600160a01b0381168114610f3357600080fd5b60008060208385031215610f7657600080fd5b823567ffffffffffffffff811115610f8d57600080fd5b8301601f81018513610f9e57600080fd5b803567ffffffffffffffff811115610fb557600080fd5b8560208260051b8401011115610fca57600080fd5b6020919091019590945092505050565b600060208284031215610fec57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761103657611036611009565b92915050565b60008261105957634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156110365761103661100956fea264697066735822122076c68debf29353364136693ad433a4d185436e174584419bb4303ec0da60fb6e64736f6c634300081c0033000000000000000000000000108ff4799874c96b96da21ff61bca9010eb533ca

Deployed Bytecode

0x6080604052600436106101185760003560e01c8063729ad39e116100a0578063d0e30db011610064578063d0e30db014610127578063d91f1ad41461037d578063e02cec5114610392578063f2bcd022146103b2578063f2fde38b146103d957610127565b8063729ad39e146102715780637d882097146102915780638387c6e1146102b85780638da5cb5b1461032e5780639d044ed31461034c57610127565b80633e3003c6116100e75780633e3003c6146101c457806349fe1416146101fc5780635e72fc5d1461021c57806362110ed01461023c578063715018a61461025c57610127565b80630caeec471461012f5780630ec1623d1461014457806323548b8b146101775780633ccfd60b146101af57610127565b36610127576101256103f9565b005b6101256103f9565b34801561013b57600080fd5b506101256104c6565b34801561015057600080fd5b506101646b3077b58d5d3783919800000081565b6040519081526020015b60405180910390f35b34801561018357600080fd5b50600154610197906001600160501b031681565b6040516001600160501b03909116815260200161016e565b3480156101bb57600080fd5b50610125610560565b3480156101d057600080fd5b506002546101e4906001600160a01b031681565b6040516001600160a01b03909116815260200161016e565b34801561020857600080fd5b50610125610217366004610f0a565b6105e3565b34801561022857600080fd5b50610125610237366004610f3a565b610610565b34801561024857600080fd5b50610125610257366004610f3a565b610659565b34801561026857600080fd5b50610125610683565b34801561027d57600080fd5b5061012561028c366004610f63565b610697565b34801561029d57600080fd5b5060005461019790600160a01b90046001600160501b031681565b3480156102c457600080fd5b506103046102d3366004610f3a565b6003602052600090815260409020546001600160501b0380821691600160501b8104821691600160a01b9091041683565b604080516001600160501b039485168152928416602084015292169181019190915260600161016e565b34801561033a57600080fd5b506000546001600160a01b03166101e4565b34801561035857600080fd5b5060025461036d90600160a01b900460ff1681565b604051901515815260200161016e565b34801561038957600080fd5b50610125610a1e565b34801561039e57600080fd5b506101256103ad366004610f63565b610a47565b3480156103be57600080fd5b506001546101e490600160501b90046001600160a01b031681565b3480156103e557600080fd5b506101256103f4366004610f3a565b610d84565b600254600160a01b900460ff166104235760405163fc7d083760e01b815260040160405180910390fd5b336000818152600360205260408120805469ffffffffffffffffffff1981166001600160501b0391821634908101831691909117909255825469ffffffffffffffffffff60a01b198116600160a01b918290048316909301909116021790556001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c346040516104bc91815260200190565b60405180910390a2565b6104ce610dc4565b6002546001546040516370a0823160e01b81523060048201526001600160a01b039283169261055d92600160501b9004169083906370a0823190602401602060405180830381865afa158015610528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c9190610fda565b6001600160a01b0384169190610df1565b50565b610568610dc4565b600154604051600091600160501b90046001600160a01b03169047908381818185875af1925050503d80600081146105bc576040519150601f19603f3d011682016040523d82523d6000602084013e6105c1565b606091505b505090508061055d576040516327fcd9d160e01b815260040160405180910390fd5b6105eb610dc4565b6001805469ffffffffffffffffffff19166001600160501b0392909216919091179055565b610618610dc4565b600180546001600160a01b03909216600160501b027fffff0000000000000000000000000000000000000000ffffffffffffffffffff909216919091179055565b610661610dc4565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61068b610dc4565b6106956000610e43565b565b61069f610dc4565b600254600160a01b900460ff16806106c057506001546001600160501b0316155b806106d457506002546001600160a01b0316155b156106f25760405163133c07dd60e21b815260040160405180910390fd5b60005b81811015610a195760006003600085858581811061071557610715610ff3565b905060200201602081019061072a9190610f3a565b6001600160a01b03168152602081019190915260400160002054600160501b90046001600160501b031611610a11576001546000805490916001600160501b03908116600160a01b90920416116107ce576003600085858581811061079157610791610ff3565b90506020020160208101906107a69190610f3a565b6001600160a01b031681526020810191909152604001600020546001600160501b031661084c565b600080546001546001600160501b03600160a01b90920482169291169060039087878781811061080057610800610ff3565b90506020020160208101906108159190610f3a565b6001600160a01b0316815260208101919091526040016000205461084291906001600160501b031661101f565b61084c919061103c565b60015460008054929350916001600160501b03918216600160a01b909104909116116108b0576000546001600160501b03600160a01b9091048116906108a1906b3077b58d5d3783919800000090851661101f565b6108ab919061103c565b6108e1565b6001546001600160501b03908116906108d79084166b3077b58d5d3783919800000061101f565b6108e1919061103c565b90506109208585858181106108f8576108f8610ff3565b905060200201602081019061090d9190610f3a565b6002546001600160a01b03169083610df1565b816003600087878781811061093757610937610ff3565b905060200201602081019061094c9190610f3a565b6001600160a01b03168152602081019190915260400160002080546001600160501b03600160501b80830482169094011690920269ffffffffffffffffffff60501b199092169190911790558484848181106109aa576109aa610ff3565b90506020020160208101906109bf9190610f3a565b604080516001600160501b0385168152602081018490526001600160a01b0392909216917fada993ad066837289fe186cd37227aa338d27519a8a1547472ecb9831486d272910160405180910390a250505b6001016106f5565b505050565b610a26610dc4565b6002805460ff60a01b198116600160a01b9182900460ff1615909102179055565b610a4f610dc4565b600254600160a01b900460ff1680610a7057506001546001600160501b0316155b15610a8e57604051631cf939d160e21b815260040160405180910390fd5b6001546000546001600160501b03918216600160a01b90910490911611610ac857604051639dc7e68b60e01b815260040160405180910390fd5b60005b81811015610a1957600060036000858585818110610aeb57610aeb610ff3565b9050602002016020810190610b009190610f3a565b6001600160a01b03168152602081019190915260400160002054600160a01b90046001600160501b031611610d7c57600080546001546001600160501b03600160a01b90920482169116600383878787818110610b5f57610b5f610ff3565b9050602002016020810190610b749190610f3a565b6001600160a01b03168152602081019190915260400160002054610ba191906001600160501b031661101f565b610bab919061103c565b60036000868686818110610bc157610bc1610ff3565b9050602002016020810190610bd69190610f3a565b6001600160a01b03168152602081019190915260400160002054610c0391906001600160501b031661105e565b90506000848484818110610c1957610c19610ff3565b9050602002016020810190610c2e9190610f3a565b6001600160a01b0316826001600160501b031660405160006040518083038185875af1925050503d8060008114610c81576040519150601f19603f3d011682016040523d82523d6000602084013e610c86565b606091505b505090508015610d79578160036000878787818110610ca757610ca7610ff3565b9050602002016020810190610cbc9190610f3a565b6001600160a01b03168152602081019190915260400160002080546001600160501b03600160a01b80830482169094011690920269ffffffffffffffffffff60a01b19909216919091179055848484818110610d1a57610d1a610ff3565b9050602002016020810190610d2f9190610f3a565b6040516001600160501b03841681526001600160a01b0391909116907fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d9060200160405180910390a25b50505b600101610acb565b610d8c610dc4565b6001600160a01b038116610dbb57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61055d81610e43565b6000546001600160a01b031633146106955760405163118cdaa760e01b8152336004820152602401610db2565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a19908490610e93565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080602060008451602086016000885af180610eb6576040513d6000823e3d81fd5b50506000513d91508115610ece578060011415610edb565b6001600160a01b0384163b155b15610f0457604051635274afe760e01b81526001600160a01b0385166004820152602401610db2565b50505050565b600060208284031215610f1c57600080fd5b81356001600160501b0381168114610f3357600080fd5b9392505050565b600060208284031215610f4c57600080fd5b81356001600160a01b0381168114610f3357600080fd5b60008060208385031215610f7657600080fd5b823567ffffffffffffffff811115610f8d57600080fd5b8301601f81018513610f9e57600080fd5b803567ffffffffffffffff811115610fb557600080fd5b8560208260051b8401011115610fca57600080fd5b6020919091019590945092505050565b600060208284031215610fec57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761103657611036611009565b92915050565b60008261105957634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156110365761103661100956fea264697066735822122076c68debf29353364136693ad433a4d185436e174584419bb4303ec0da60fb6e64736f6c634300081c0033

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

000000000000000000000000108ff4799874c96b96da21ff61bca9010eb533ca

-----Decoded View---------------
Arg [0] : _withdrawalAddress (address): 0x108ff4799874c96b96Da21FF61BCa9010eB533cA

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000108ff4799874c96b96da21ff61bca9010eb533ca


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
0x0Ec5b7fe8F8f13C57daCf2B617Deff1640911516
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.