ETH Price: $1,969.97 (+1.15%)

Contract

0x45F52502aF87e7e4E446BA15BDf223A19b47DA98

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Recover1864569812024-03-02 20:29:32711 days ago1709411372IN
Tigris : Token Sale
0 ETH0.000095360.1
Claim Public1046966472023-06-25 7:46:08962 days ago1687679168IN
Tigris : Token Sale
0 ETH0.000021340.1
Claim Public1025466912023-06-18 21:38:02969 days ago1687124282IN
Tigris : Token Sale
0 ETH0.000023170.1
Claim Public1013684992023-06-15 9:08:48972 days ago1686820128IN
Tigris : Token Sale
0 ETH0.000026610.1
Claim Public997593772023-06-10 15:12:54977 days ago1686409974IN
Tigris : Token Sale
0 ETH0.000036740.1
Claim Public989139692023-06-08 3:04:47980 days ago1686193487IN
Tigris : Token Sale
0 ETH0.000026520.1
Claim Public983039262023-06-06 7:37:41981 days ago1686037061IN
Tigris : Token Sale
0 ETH0.000028930.1
Claim Public980007322023-06-05 10:01:50982 days ago1685959310IN
Tigris : Token Sale
0 ETH0.000030350.1
Claim Public979431402023-06-05 6:01:45983 days ago1685944905IN
Tigris : Token Sale
0 ETH0.000029810.1
Claim Public977343182023-06-04 15:08:12983 days ago1685891292IN
Tigris : Token Sale
0 ETH0.000035480.1
Claim Public977303712023-06-04 14:51:46983 days ago1685890306IN
Tigris : Token Sale
0 ETH0.000030280.1
Claim Public976079072023-06-04 6:21:24983 days ago1685859684IN
Tigris : Token Sale
0 ETH0.000028050.1
Claim Public975673132023-06-04 3:25:24984 days ago1685849124IN
Tigris : Token Sale
0 ETH0.000028830.1
Claim Public975049742023-06-03 22:47:58984 days ago1685832478IN
Tigris : Token Sale
0 ETH0.000027190.1
Claim Public974456642023-06-03 18:32:27984 days ago1685817147IN
Tigris : Token Sale
0 ETH0.000036270.1
Claim Public974263732023-06-03 17:11:57984 days ago1685812317IN
Tigris : Token Sale
0 ETH0.000041470.1
Claim Public974101752023-06-03 16:04:56984 days ago1685808296IN
Tigris : Token Sale
0 ETH0.000033580.1
Claim Public973760552023-06-03 13:42:21984 days ago1685799741IN
Tigris : Token Sale
0 ETH0.000037010.1
Claim Public973723782023-06-03 13:27:03984 days ago1685798823IN
Tigris : Token Sale
0 ETH0.000036140.1
Claim Public973642352023-06-03 12:53:06984 days ago1685796786IN
Tigris : Token Sale
0 ETH0.000029730.1
Claim Public973448962023-06-03 11:32:37984 days ago1685791957IN
Tigris : Token Sale
0 ETH0.000030970.1
Claim Public973370052023-06-03 10:59:45984 days ago1685789985IN
Tigris : Token Sale
0 ETH0.000028230.1
Claim Public973195782023-06-03 9:47:07984 days ago1685785627IN
Tigris : Token Sale
0 ETH0.000031120.1
Claim Public973152392023-06-03 9:29:04984 days ago1685784544IN
Tigris : Token Sale
0 ETH0.000031870.1
Claim Public972952562023-06-03 8:05:54984 days ago1685779554IN
Tigris : Token Sale
0 ETH0.000029710.1
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenSale

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

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

interface IWhitelist {
    function isWhitelisted(address) external view returns (bool);
    function canWhitelist(address) external view returns (bool);
}

contract TokenSale is Ownable {

    using SafeERC20 for IERC20;

    uint256 public constant WHITELIST_PRICE = 850_000; // $0.85
    uint256 public constant PUBLIC_FLOOR_PRICE = 900_000; // $0.90
    uint256 public constant WHITELIST_SALE = 300_000 ether;
    uint256 public constant PUBLIC_SALE = 400_000 ether;
    uint256 public constant PUBLIC_RAISE_GOAL = 760000e6; // $760k

    IWhitelist public immutable whitelist;
    IERC20 public immutable tigrisToken;
    IERC20 public immutable token;
    uint256 public immutable startTime;
    uint256 public immutable endTime;
    address public immutable treasury;
    
    uint256 public whitelistSold;
    uint256 public publicRaised;

    mapping(address => uint256) public publicBuyerRaised;

    /**
     * @param _tigrisToken 18 decimals
     * @param _token token used to purchase tigris
     * @param _startTime token sale start
     * @param _treasury address to receive sale funds
     */
    constructor(IERC20 _tigrisToken, IERC20 _token, uint256 _startTime, address _treasury, IWhitelist _whitelist) {
        require(address(_tigrisToken) != address(0)
            && address(_token) != address(0)
            && _treasury != address(0)
            && address(_whitelist) != address(0),
            "Constructor"
        );
        tigrisToken = _tigrisToken;
        token = _token;
        startTime = _startTime;
        endTime = _startTime + 1 days;
        treasury = _treasury;
        whitelist = _whitelist;
    }

    /**
     * @notice Function to buy tigris tokens
     * @param _spendAmount amount of tokens to spend to buy tigris
     * @param _buyPublicIfWhitelistSoldOut true if whitelisted user wants to buy from public sale in case they're late to whitelist sale
     */
    function buy(uint256 _spendAmount, bool _buyPublicIfWhitelistSoldOut) external {

        require(block.timestamp >= startTime, "Sale not started");
        require(block.timestamp < endTime, "Sale ended");
        require(token.balanceOf(msg.sender) >= _spendAmount, "Insufficient balance");

        // Transfer here in case some need to be refunded
        token.safeTransferFrom(msg.sender, address(this), _spendAmount);

        if (whitelist.isWhitelisted(msg.sender) || whitelist.canWhitelist(msg.sender)) {
            _handleWhitelistBuy(_spendAmount, _buyPublicIfWhitelistSoldOut);
        } else {
            _handlePublicBuy(_spendAmount);
        }

        // Send everything to treasury
        token.safeTransfer(treasury, token.balanceOf(address(this)));
    }

    function claimPublic() external {
        require(block.timestamp > endTime, "Sale not ended");
        uint256 _allocation = publicSaleAllocation(msg.sender);
        delete publicBuyerRaised[msg.sender];
        tigrisToken.safeTransfer(msg.sender, _allocation);
    }

    function recover(IERC20 _token, uint256 _amount) external onlyOwner {
        _token.safeTransfer(treasury, _amount);
    }

    function _handleWhitelistBuy(uint256 _spendAmount, bool _buyPublicIfWhitelistSoldOut) internal {
        uint256 _tigrisTokenAmount = _spendAmount * 1e18 / WHITELIST_PRICE;

        // If whitelist is or would be sold out
        if (whitelistSold + _tigrisTokenAmount > WHITELIST_SALE) {
            uint256 _missingWhitelistTokens = whitelistSold + _tigrisTokenAmount - WHITELIST_SALE;
            uint256 _publicSaleSpendAmount = _spendAmount * _missingWhitelistTokens / _tigrisTokenAmount;
            whitelistSold += _tigrisTokenAmount - _missingWhitelistTokens;
            require(whitelistSold <= WHITELIST_SALE, "Whitelist sale reached cap");
            tigrisToken.safeTransfer(msg.sender, _tigrisTokenAmount - _missingWhitelistTokens);
            if (_buyPublicIfWhitelistSoldOut) {
                _handlePublicBuy(_publicSaleSpendAmount);
            } else {
                if (_publicSaleSpendAmount == _spendAmount) {
                    revert("Whitelist sale reached cap");
                }
                token.safeTransfer(msg.sender, _publicSaleSpendAmount);
            }
        } else {
            whitelistSold = whitelistSold + _tigrisTokenAmount;
            tigrisToken.safeTransfer(msg.sender, _tigrisTokenAmount);
        }
    }

    function _handlePublicBuy(uint256 _spendAmount) internal {
        require(PUBLIC_RAISE_GOAL > publicRaised, "Public sale reached cap");
        if (publicRaised + _spendAmount > PUBLIC_RAISE_GOAL) {
            uint256 _toRefund = publicRaised + _spendAmount - PUBLIC_RAISE_GOAL;
            _spendAmount = _spendAmount - _toRefund;
            if (_spendAmount == 0) {
                revert("Public sale reached cap");
            }
            token.safeTransfer(msg.sender, _toRefund);
        }
        publicRaised = publicRaised + _spendAmount;
        publicBuyerRaised[msg.sender] += _spendAmount;
    }

    function publicFinalPrice() public view returns (uint256 _finalPrice) {
        _finalPrice = publicRaised * 1e18 / PUBLIC_SALE;
        if (_finalPrice < PUBLIC_FLOOR_PRICE) {
            _finalPrice = PUBLIC_FLOOR_PRICE;
        }
    }

    function publicSaleAllocation(address _account) public view returns (uint256) {
        if (publicRaised == 0) {
            return 0;
        }
        if (publicFinalPrice() == PUBLIC_FLOOR_PRICE) {
            return publicBuyerRaised[_account] * 1e18 / PUBLIC_FLOOR_PRICE;
        }
        return PUBLIC_SALE * publicBuyerRaised[_account] / publicRaised;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev 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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

/**
 * @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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../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;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) 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(errorMessage);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_tigrisToken","type":"address"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"contract IWhitelist","name":"_whitelist","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"PUBLIC_FLOOR_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_RAISE_GOAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_SALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_spendAmount","type":"uint256"},{"internalType":"bool","name":"_buyPublicIfWhitelistSoldOut","type":"bool"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicBuyerRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicFinalPrice","outputs":[{"internalType":"uint256","name":"_finalPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"publicSaleAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tigrisToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelist","outputs":[{"internalType":"contract IWhitelist","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6101406040523480156200001257600080fd5b5060405162001a2938038062001a2983398101604081905262000035916200017b565b620000403362000112565b6001600160a01b038516158015906200006157506001600160a01b03841615155b80156200007657506001600160a01b03821615155b80156200008b57506001600160a01b03811615155b620000ca5760405162461bcd60e51b815260206004820152600b60248201526a21b7b739ba393ab1ba37b960a91b604482015260640160405180910390fd5b6001600160a01b0380861660a052841660c05260e0839052620000f18362015180620001ef565b610100526001600160a01b0391821661012052166080525062000217915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200017857600080fd5b50565b600080600080600060a086880312156200019457600080fd5b8551620001a18162000162565b6020870151909550620001b48162000162565b604087015160608801519195509350620001ce8162000162565b6080870151909250620001e18162000162565b809150509295509295909350565b808201808211156200021157634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c05160e0516101005161012051611752620002d7600039600081816102a10152818161080701526109be0152600081816101e20152818161047501526109f90152600081816102d001526103e601526000818161037f0152818161052c0152818161062e0152818161083e015281816108c001528181610e75015261103601526000818161021e01528181610aa401528181610db70152610ece01526000818161032601528181610684015261073801526117526000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063715018a6116100d857806393e59dc11161008c578063f2fde38b11610066578063f2fde38b1461035d578063f4f7ef3214610370578063fc0c546a1461037a57600080fd5b806393e59dc114610321578063d9f463e414610348578063e78b9d0b1461035457600080fd5b8063820ff26c116100bd578063820ff26c146102f25780638da5cb5b146102fb57806390e48a071461031957600080fd5b8063715018a6146102c357806378e97925146102cb57600080fd5b806331c26b111161013a5780635705ae43116101145780635705ae43146102785780635f89584e1461028b57806361d027b31461029c57600080fd5b806331c26b11146102045780633b1ab256146102195780635560f7971461026557600080fd5b80630c00b4801161016b5780630c00b480146101b357806317e7f295146101d35780633197cbb6146101dd57600080fd5b806302944652146101875780630539b698146101ab575b600080fd5b610198693f870857a3e0e380000081565b6040519081526020015b60405180910390f35b6101986103a1565b6101986101c1366004611520565b60036020526000908152604090205481565b610198620cf85081565b6101987f000000000000000000000000000000000000000000000000000000000000000081565b610217610212366004611552565b6103e4565b005b6102407f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a2565b610198610273366004611520565b6108eb565b610217610286366004611582565b61099a565b6101986954b40b1f852bda00000081565b6102407f000000000000000000000000000000000000000000000000000000000000000081565b6102176109e3565b6101987f000000000000000000000000000000000000000000000000000000000000000081565b61019860025481565b60005473ffffffffffffffffffffffffffffffffffffffff16610240565b6102176109f7565b6102407f000000000000000000000000000000000000000000000000000000000000000081565b61019864b0f387b00081565b61019860015481565b61021761036b366004611520565b610ae3565b610198620dbba081565b6102407f000000000000000000000000000000000000000000000000000000000000000081565b60006954b40b1f852bda000000600254670de0b6b3a76400006103c491906115dd565b6103ce91906115f4565b9050620dbba08110156103e15750620dbba05b90565b7f0000000000000000000000000000000000000000000000000000000000000000421015610473576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f53616c65206e6f7420737461727465640000000000000000000000000000000060448201526064015b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000042106104fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f53616c6520656e64656400000000000000000000000000000000000000000000604482015260640161046a565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015282907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610588573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ac919061162f565b1015610614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f496e73756666696369656e742062616c616e6365000000000000000000000000604482015260640161046a565b61065673ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016333085610b97565b6040517f3af32abf0000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690633af32abf90602401602060405180830381865afa1580156106e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107049190611648565b806107b857506040517f1e5f815b0000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690631e5f815b90602401602060405180830381865afa158015610794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b89190611648565b156107cc576107c78282610c79565b6107d5565b6107d582610efa565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526108e7907f00000000000000000000000000000000000000000000000000000000000000009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a9919061162f565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169190611097565b5050565b60006002546000036108ff57506000919050565b620dbba061090b6103a1565b0361095d5773ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040902054620dbba09061094d90670de0b6b3a76400006115dd565b61095791906115f4565b92915050565b60025473ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604090205461094d906954b40b1f852bda0000006115dd565b6109a26110ed565b6108e773ffffffffffffffffffffffffffffffffffffffff83167f000000000000000000000000000000000000000000000000000000000000000083611097565b6109eb6110ed565b6109f5600061116e565b565b7f00000000000000000000000000000000000000000000000000000000000000004211610a80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f53616c65206e6f7420656e646564000000000000000000000000000000000000604482015260640161046a565b6000610a8b336108eb565b33600081815260036020526040812055909150610ae0907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169083611097565b50565b610aeb6110ed565b73ffffffffffffffffffffffffffffffffffffffff8116610b8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161046a565b610ae08161116e565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610c739085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526111e3565b50505050565b6000620cf850610c9184670de0b6b3a76400006115dd565b610c9b91906115f4565b9050693f870857a3e0e380000081600154610cb69190611665565b1115610ea3576000693f870857a3e0e380000082600154610cd79190611665565b610ce19190611678565b9050600082610cf083876115dd565b610cfa91906115f4565b9050610d068284611678565b60016000828254610d179190611665565b9091555050600154693f870857a3e0e38000001015610d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f57686974656c6973742073616c65207265616368656420636170000000000000604482015260640161046a565b610dde33610da08486611678565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169190611097565b8315610df257610ded81610efa565b610e9c565b848103610e5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f57686974656c6973742073616c65207265616368656420636170000000000000604482015260640161046a565b610e9c73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383611097565b5050505050565b80600154610eb19190611665565b600155610ef573ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383611097565b505050565b60025464b0f387b00011610f6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5075626c69632073616c65207265616368656420636170000000000000000000604482015260640161046a565b64b0f387b00081600254610f7e9190611665565b111561105f57600064b0f387b00082600254610f9a9190611665565b610fa49190611678565b9050610fb08183611678565b91508160000361101c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5075626c69632073616c65207265616368656420636170000000000000000000604482015260640161046a565b61105d73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383611097565b505b8060025461106d9190611665565b600255336000908152600360205260408120805483929061108f908490611665565b909155505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610ef59084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610bf1565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161046a565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611245826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166112ef9092919063ffffffff16565b805190915015610ef557808060200190518101906112639190611648565b610ef5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161046a565b60606112fe8484600085611306565b949350505050565b606082471015611398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161046a565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516113c191906116af565b60006040518083038185875af1925050503d80600081146113fe576040519150601f19603f3d011682016040523d82523d6000602084013e611403565b606091505b50915091506114148783838761141f565b979650505050505050565b606083156114b55782516000036114ae5773ffffffffffffffffffffffffffffffffffffffff85163b6114ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161046a565b50816112fe565b6112fe83838151156114ca5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046a91906116cb565b73ffffffffffffffffffffffffffffffffffffffff81168114610ae057600080fd5b60006020828403121561153257600080fd5b813561153d816114fe565b9392505050565b8015158114610ae057600080fd5b6000806040838503121561156557600080fd5b82359150602083013561157781611544565b809150509250929050565b6000806040838503121561159557600080fd5b82356115a0816114fe565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610957576109576115ae565b60008261162a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561164157600080fd5b5051919050565b60006020828403121561165a57600080fd5b815161153d81611544565b80820180821115610957576109576115ae565b81810381811115610957576109576115ae565b60005b838110156116a657818101518382015260200161168e565b50506000910152565b600082516116c181846020870161168b565b9190910192915050565b60208152600082518060208401526116ea81604085016020870161168b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220ceb5dec76581f7c9ef9a8a294c34680b2c64ec8896f24af98b5aab1595e389b564736f6c634300081200330000000000000000000000003a33473d7990a605a88ac72a78ad4efc40a54adb000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9000000000000000000000000000000000000000000000000000000006478b270000000000000000000000000f416c2b41fb6c592c9ba7cb6b2f985ed593a51d7000000000000000000000000551add713b558bacae7ff5c9407ccb353aa1f478

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101825760003560e01c8063715018a6116100d857806393e59dc11161008c578063f2fde38b11610066578063f2fde38b1461035d578063f4f7ef3214610370578063fc0c546a1461037a57600080fd5b806393e59dc114610321578063d9f463e414610348578063e78b9d0b1461035457600080fd5b8063820ff26c116100bd578063820ff26c146102f25780638da5cb5b146102fb57806390e48a071461031957600080fd5b8063715018a6146102c357806378e97925146102cb57600080fd5b806331c26b111161013a5780635705ae43116101145780635705ae43146102785780635f89584e1461028b57806361d027b31461029c57600080fd5b806331c26b11146102045780633b1ab256146102195780635560f7971461026557600080fd5b80630c00b4801161016b5780630c00b480146101b357806317e7f295146101d35780633197cbb6146101dd57600080fd5b806302944652146101875780630539b698146101ab575b600080fd5b610198693f870857a3e0e380000081565b6040519081526020015b60405180910390f35b6101986103a1565b6101986101c1366004611520565b60036020526000908152604090205481565b610198620cf85081565b6101987f00000000000000000000000000000000000000000000000000000000647a03f081565b610217610212366004611552565b6103e4565b005b6102407f0000000000000000000000003a33473d7990a605a88ac72a78ad4efc40a54adb81565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a2565b610198610273366004611520565b6108eb565b610217610286366004611582565b61099a565b6101986954b40b1f852bda00000081565b6102407f000000000000000000000000f416c2b41fb6c592c9ba7cb6b2f985ed593a51d781565b6102176109e3565b6101987f000000000000000000000000000000000000000000000000000000006478b27081565b61019860025481565b60005473ffffffffffffffffffffffffffffffffffffffff16610240565b6102176109f7565b6102407f000000000000000000000000551add713b558bacae7ff5c9407ccb353aa1f47881565b61019864b0f387b00081565b61019860015481565b61021761036b366004611520565b610ae3565b610198620dbba081565b6102407f000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb981565b60006954b40b1f852bda000000600254670de0b6b3a76400006103c491906115dd565b6103ce91906115f4565b9050620dbba08110156103e15750620dbba05b90565b7f000000000000000000000000000000000000000000000000000000006478b270421015610473576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f53616c65206e6f7420737461727465640000000000000000000000000000000060448201526064015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000647a03f042106104fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f53616c6520656e64656400000000000000000000000000000000000000000000604482015260640161046a565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015282907f000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb973ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610588573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ac919061162f565b1015610614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f496e73756666696369656e742062616c616e6365000000000000000000000000604482015260640161046a565b61065673ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb916333085610b97565b6040517f3af32abf0000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000551add713b558bacae7ff5c9407ccb353aa1f47873ffffffffffffffffffffffffffffffffffffffff1690633af32abf90602401602060405180830381865afa1580156106e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107049190611648565b806107b857506040517f1e5f815b0000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000551add713b558bacae7ff5c9407ccb353aa1f47873ffffffffffffffffffffffffffffffffffffffff1690631e5f815b90602401602060405180830381865afa158015610794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b89190611648565b156107cc576107c78282610c79565b6107d5565b6107d582610efa565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526108e7907f000000000000000000000000f416c2b41fb6c592c9ba7cb6b2f985ed593a51d79073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb916906370a0823190602401602060405180830381865afa158015610885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a9919061162f565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9169190611097565b5050565b60006002546000036108ff57506000919050565b620dbba061090b6103a1565b0361095d5773ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040902054620dbba09061094d90670de0b6b3a76400006115dd565b61095791906115f4565b92915050565b60025473ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604090205461094d906954b40b1f852bda0000006115dd565b6109a26110ed565b6108e773ffffffffffffffffffffffffffffffffffffffff83167f000000000000000000000000f416c2b41fb6c592c9ba7cb6b2f985ed593a51d783611097565b6109eb6110ed565b6109f5600061116e565b565b7f00000000000000000000000000000000000000000000000000000000647a03f04211610a80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f53616c65206e6f7420656e646564000000000000000000000000000000000000604482015260640161046a565b6000610a8b336108eb565b33600081815260036020526040812055909150610ae0907f0000000000000000000000003a33473d7990a605a88ac72a78ad4efc40a54adb73ffffffffffffffffffffffffffffffffffffffff169083611097565b50565b610aeb6110ed565b73ffffffffffffffffffffffffffffffffffffffff8116610b8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161046a565b610ae08161116e565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610c739085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526111e3565b50505050565b6000620cf850610c9184670de0b6b3a76400006115dd565b610c9b91906115f4565b9050693f870857a3e0e380000081600154610cb69190611665565b1115610ea3576000693f870857a3e0e380000082600154610cd79190611665565b610ce19190611678565b9050600082610cf083876115dd565b610cfa91906115f4565b9050610d068284611678565b60016000828254610d179190611665565b9091555050600154693f870857a3e0e38000001015610d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f57686974656c6973742073616c65207265616368656420636170000000000000604482015260640161046a565b610dde33610da08486611678565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003a33473d7990a605a88ac72a78ad4efc40a54adb169190611097565b8315610df257610ded81610efa565b610e9c565b848103610e5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f57686974656c6973742073616c65207265616368656420636170000000000000604482015260640161046a565b610e9c73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9163383611097565b5050505050565b80600154610eb19190611665565b600155610ef573ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003a33473d7990a605a88ac72a78ad4efc40a54adb163383611097565b505050565b60025464b0f387b00011610f6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5075626c69632073616c65207265616368656420636170000000000000000000604482015260640161046a565b64b0f387b00081600254610f7e9190611665565b111561105f57600064b0f387b00082600254610f9a9190611665565b610fa49190611678565b9050610fb08183611678565b91508160000361101c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5075626c69632073616c65207265616368656420636170000000000000000000604482015260640161046a565b61105d73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9163383611097565b505b8060025461106d9190611665565b600255336000908152600360205260408120805483929061108f908490611665565b909155505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610ef59084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610bf1565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161046a565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611245826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166112ef9092919063ffffffff16565b805190915015610ef557808060200190518101906112639190611648565b610ef5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161046a565b60606112fe8484600085611306565b949350505050565b606082471015611398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161046a565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516113c191906116af565b60006040518083038185875af1925050503d80600081146113fe576040519150601f19603f3d011682016040523d82523d6000602084013e611403565b606091505b50915091506114148783838761141f565b979650505050505050565b606083156114b55782516000036114ae5773ffffffffffffffffffffffffffffffffffffffff85163b6114ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161046a565b50816112fe565b6112fe83838151156114ca5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046a91906116cb565b73ffffffffffffffffffffffffffffffffffffffff81168114610ae057600080fd5b60006020828403121561153257600080fd5b813561153d816114fe565b9392505050565b8015158114610ae057600080fd5b6000806040838503121561156557600080fd5b82359150602083013561157781611544565b809150509250929050565b6000806040838503121561159557600080fd5b82356115a0816114fe565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610957576109576115ae565b60008261162a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561164157600080fd5b5051919050565b60006020828403121561165a57600080fd5b815161153d81611544565b80820180821115610957576109576115ae565b81810381811115610957576109576115ae565b60005b838110156116a657818101518382015260200161168e565b50506000910152565b600082516116c181846020870161168b565b9190910192915050565b60208152600082518060208401526116ea81604085016020870161168b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220ceb5dec76581f7c9ef9a8a294c34680b2c64ec8896f24af98b5aab1595e389b564736f6c63430008120033

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

0000000000000000000000003a33473d7990a605a88ac72a78ad4efc40a54adb000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9000000000000000000000000000000000000000000000000000000006478b270000000000000000000000000f416c2b41fb6c592c9ba7cb6b2f985ed593a51d7000000000000000000000000551add713b558bacae7ff5c9407ccb353aa1f478

-----Decoded View---------------
Arg [0] : _tigrisToken (address): 0x3A33473d7990a605a88ac72A78aD4EFC40a54ADB
Arg [1] : _token (address): 0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9
Arg [2] : _startTime (uint256): 1685631600
Arg [3] : _treasury (address): 0xF416C2b41Fb6c592c9BA7cB6B2f985ed593A51d7
Arg [4] : _whitelist (address): 0x551add713B558bACaE7ff5C9407ccB353Aa1F478

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000003a33473d7990a605a88ac72a78ad4efc40a54adb
Arg [1] : 000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9
Arg [2] : 000000000000000000000000000000000000000000000000000000006478b270
Arg [3] : 000000000000000000000000f416c2b41fb6c592c9ba7cb6b2f985ed593a51d7
Arg [4] : 000000000000000000000000551add713b558bacae7ff5c9407ccb353aa1f478


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.