ETH Price: $2,877.71 (-9.50%)
Gas: 16 Gwei

Token

STONE Carnival LP (cSTONE)
 

Overview

Max Total Supply

18,172.235921624954941887 cSTONE

Holders

3,442

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.000497250846583292 cSTONE

Value
$0.00
0xaaab7892c01ed784b99aa77044f2bd4adc85653b
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
StoneCarnival

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 10 runs

Other Settings:
shanghai EvmVersion
File 1 of 9 : StoneCarnival.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

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

import {TransferHelper} from "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol";
import {Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol";

contract StoneCarnival is ERC20, Ownable2Step {
    address public immutable stoneAddr;
    address public immutable stoneVaultAddr;

    uint256 public immutable lockPeriod = 90 days;
    uint256 public immutable startTime;
    uint256 public immutable minStoneAllowed;

    uint256 public cap;
    uint256 public totalStoneDeposited;
    uint256 public finalStoneAmount;

    bool public depositPaused;
    bool public terminated;

    mapping(address => uint256) public stoneDeposited;

    event StoneDeposited(address _user, uint256 _amount);
    event StoneWithdrawn(
        address _user,
        uint256 _amount,
        uint256 _burnAmount,
        uint256 _withAmount
    );
    event RequestMade(uint256 _amount);
    event DepositMade(uint256 _ethAmount, uint256 _stoneAmount);
    event ETHWithdrawn(uint256 _amount);
    event DepositPause(uint256 totalStone);
    event WithdrawalCancelled(uint256 _amount);
    event Terminate(uint256 timestamp);
    event SetCap(uint256 oldCap, uint256 newCap);

    constructor(
        address _stoneAddr,
        address _stoneVaultAddr,
        uint256 _cap,
        uint256 _minStoneAllowed
    ) ERC20("STONE Carnival LP", "cSTONE") {
        require(
            _stoneAddr != address(0) && _stoneVaultAddr != address(0),
            "invalid addr"
        );

        stoneAddr = _stoneAddr;
        stoneVaultAddr = _stoneVaultAddr;
        cap = _cap;
        startTime = block.timestamp;
        minStoneAllowed = _minStoneAllowed;
    }

    modifier DepositNotPaused() {
        require(!depositPaused, "deposit paused");
        _;
    }

    modifier DepositPaused() {
        require(depositPaused, "deposit not paused");
        _;
    }

    modifier OnlyTerminated() {
        require(terminated, "not terminated");
        _;
    }

    modifier NotTerminated() {
        require(!terminated, " terminated");
        _;
    }

    function depositStone(
        uint256 _amount
    ) external DepositNotPaused returns (uint256 cStoneAmount) {
        TransferHelper.safeTransferFrom(
            stoneAddr,
            msg.sender,
            address(this),
            _amount
        );

        cStoneAmount = _depositStone(msg.sender, _amount);
    }

    function depositStoneFor(
        address _user,
        uint256 _amount
    ) external DepositNotPaused returns (uint256 cStoneAmount) {
        TransferHelper.safeTransferFrom(
            stoneAddr,
            msg.sender,
            address(this),
            _amount
        );

        cStoneAmount = _depositStone(_user, _amount);
    }

    function _depositStone(
        address _user,
        uint256 _amount
    ) internal returns (uint256 cStoneAmount) {
        require(cap >= _amount + totalStoneDeposited, "cap");
        require(
            _amount + stoneDeposited[_user] >= minStoneAllowed,
            "not allowed"
        );

        stoneDeposited[_user] += _amount;
        totalStoneDeposited += _amount;

        _mint(_user, _amount);

        cStoneAmount = _amount;

        emit StoneDeposited(_user, _amount);
    }

    function withdrawStone() external OnlyTerminated {
        uint256 stoneShare = balanceOf(msg.sender);

        uint256 stoneAmountWith = (stoneShare * finalStoneAmount) /
            totalStoneDeposited;

        require(stoneAmountWith != 0, "zero amount");

        _burn(msg.sender, stoneShare);

        TransferHelper.safeTransfer(stoneAddr, msg.sender, stoneAmountWith);

        emit StoneWithdrawn(
            msg.sender,
            stoneDeposited[msg.sender],
            stoneShare,
            stoneAmountWith
        );
    }

    function terminate() external NotTerminated {
        require(block.timestamp >= startTime + lockPeriod, "cannot terminate");

        finalStoneAmount = IERC20(stoneAddr).balanceOf(address(this));

        depositPaused = true;
        terminated = true;

        emit Terminate(block.timestamp);
    }

    function setCap(uint256 _cap) external onlyOwner DepositNotPaused {
        emit SetCap(cap, _cap);
        cap = _cap;
    }

    function forceTerminate() external onlyOwner DepositPaused {
        finalStoneAmount = IERC20(stoneAddr).balanceOf(address(this));

        depositPaused = true;
        terminated = true;

        emit Terminate(block.timestamp);
    }

    function pauseDeposit() external onlyOwner DepositNotPaused {
        depositPaused = true;

        emit DepositPause(totalStoneDeposited);
    }

    function makeRequest(
        uint256 _amount
    ) external onlyOwner DepositPaused NotTerminated {
        require(
            _amount <= IERC20(stoneAddr).balanceOf(address(this)),
            "STONE not enough"
        );

        TransferHelper.safeApprove(stoneAddr, stoneVaultAddr, _amount);
        IStoneVault(stoneVaultAddr).requestWithdraw(_amount);

        emit RequestMade(_amount);
    }

    function withdrawETH(
        uint256 _amount
    ) external onlyOwner DepositPaused NotTerminated {
        uint256 amount = IStoneVault(stoneVaultAddr).instantWithdraw(
            _amount,
            0
        );

        emit ETHWithdrawn(amount);
    }

    function cancelWithdraw(
        uint256 _amount
    ) external onlyOwner DepositPaused NotTerminated {
        IStoneVault(stoneVaultAddr).cancelWithdraw(_amount);

        emit WithdrawalCancelled(_amount);
    }

    function makeDeposit(
        uint256 _amount
    ) external onlyOwner DepositPaused NotTerminated {
        require(_amount <= address(this).balance, "ether not enough");

        uint256 stoneAmount = IStoneVault(stoneVaultAddr).deposit{
            value: _amount
        }();

        emit DepositMade(_amount, stoneAmount);
    }

    receive() external payable {}
}

File 2 of 9 : IStoneVault.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

interface IStoneVault {
    function deposit() external payable returns (uint256 mintAmount);

    function requestWithdraw(uint256 _shares) external;

    function instantWithdraw(
        uint256 _amount,
        uint256 _shares
    ) external returns (uint256 actualWithdrawn);

    function cancelWithdraw(uint256 _shares) external;

    function rollToNextRound() external;
}

File 3 of 9 : TransferHelper.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.0;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';

library TransferHelper {
    /// @notice Transfers tokens from the targeted address to the given destination
    /// @notice Errors with 'STF' if transfer fails
    /// @param token The contract address of the token to be transferred
    /// @param from The originating address from which the tokens will be transferred
    /// @param to The destination address of the transfer
    /// @param value The amount to be transferred
    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) =
            token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF');
    }

    /// @notice Transfers tokens from msg.sender to a recipient
    /// @dev Errors with ST if transfer fails
    /// @param token The contract address of the token which will be transferred
    /// @param to The recipient of the transfer
    /// @param value The value of the transfer
    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST');
    }

    /// @notice Approves the stipulated contract to spend the given allowance in the given token
    /// @dev Errors with 'SA' if transfer fails
    /// @param token The contract address of the token to be approved
    /// @param to The target of the approval
    /// @param value The amount of the given token the target will be allowed to spend
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA');
    }

    /// @notice Transfers ETH to the recipient address
    /// @dev Fails with `STE`
    /// @param to The destination of the transfer
    /// @param value The value to be transferred
    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'STE');
    }
}

File 4 of 9 : Context.sol
// 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;
    }
}

File 5 of 9 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

File 7 of 9 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}

File 8 of 9 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.0;

import "./Ownable.sol";

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

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

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

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

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

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
        _transferOwnership(sender);
    }
}

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stoneAddr","type":"address"},{"internalType":"address","name":"_stoneVaultAddr","type":"address"},{"internalType":"uint256","name":"_cap","type":"uint256"},{"internalType":"uint256","name":"_minStoneAllowed","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_stoneAmount","type":"uint256"}],"name":"DepositMade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalStone","type":"uint256"}],"name":"DepositPause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ETHWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"RequestMade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldCap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"SetCap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"StoneDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_burnAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_withAmount","type":"uint256"}],"name":"StoneWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Terminate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"WithdrawalCancelled","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"cancelWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositStone","outputs":[{"internalType":"uint256","name":"cStoneAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositStoneFor","outputs":[{"internalType":"uint256","name":"cStoneAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalStoneAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forceTerminate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"makeDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"makeRequest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minStoneAllowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cap","type":"uint256"}],"name":"setCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stoneAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stoneDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stoneVaultAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terminate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"terminated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStoneDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawStone","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101206040526276a70060c05234801562000018575f80fd5b5060405162002496380380620024968339810160408190526200003b91620001da565b60405180604001604052806011815260200170053544f4e45204361726e6976616c204c5607c1b815250604051806040016040528060068152602001656353544f4e4560d01b8152508160039081620000959190620002bf565b506004620000a48282620002bf565b505050620000c1620000bb6200014b60201b60201c565b6200014f565b6001600160a01b03841615801590620000e257506001600160a01b03831615155b620001225760405162461bcd60e51b815260206004820152600c60248201526b34b73b30b634b21030b2323960a11b604482015260640160405180910390fd5b6001600160a01b039384166080529190921660a0526007919091554260e0526101005262000387565b3390565b600680546001600160a01b03191690556200016a816200016d565b50565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b80516001600160a01b0381168114620001d5575f80fd5b919050565b5f805f8060808587031215620001ee575f80fd5b620001f985620001be565b93506200020960208601620001be565b6040860151606090960151949790965092505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200024857607f821691505b6020821081036200026757634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620002ba575f81815260208120601f850160051c81016020861015620002955750805b601f850160051c820191505b81811015620002b657828155600101620002a1565b5050505b505050565b81516001600160401b03811115620002db57620002db6200021f565b620002f381620002ec845462000233565b846200026d565b602080601f83116001811462000329575f8415620003115750858301515b5f19600386901b1c1916600185901b178555620002b6565b5f85815260208120601f198616915b82811015620003595788860151825594840194600190910190840162000338565b50858210156200037757878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e0516101005161206f620004275f395f81816105b70152611a5301525f81816104a401526109f501525f81816103e001526109d401525f81816103320152818161084401528181610d1201528181610d4d0152818161101c015261123f01525f81816105840152818161072c01528181610a7201528181610b7b01528181610c3601528181610cf1015261115d015261206f5ff3fe6080604052600436106101b7575f3560e01c8063018d5861146101c257806302befd24146101ea5780630517f8b914610213578063059a500c1461022957806306fdde0314610248578063095ea7b3146102695780630c08bf881461028857806318160ddd1461029c578063194307bf146102b057806323b872dd146102ce5780632b2d14a4146102ed5780632c0f6d7f1461030c5780632e09300a14610321578063313ce56714610361578063355274ea1461037c57806339509351146103915780633b40075d146103b05780633fd8b02f146103cf57806347786d371461040257806369026e881461042157806370a0823114610435578063715018a614610454578063726425d31461046857806378e979251461049357806379ba5097146104c65780638da5cb5b146104da57806393a96512146104ee57806395d89b41146105025780639f01f7ba14610516578063a457c2d714610535578063a9059cbb14610554578063aeebda7e14610573578063b491cb64146105a6578063cafc06c5146105d9578063dd62ed3e146105f8578063e30c397814610617578063f14210a61461062b578063f2fde38b1461064a575f80fd5b366101be57005b5f80fd5b3480156101cd575f80fd5b506101d760095481565b6040519081526020015b60405180910390f35b3480156101f5575f80fd5b50600a546102039060ff1681565b60405190151581526020016101e1565b34801561021e575f80fd5b50610227610669565b005b348015610234575f80fd5b50610227610243366004611d5c565b6107ac565b348015610253575f80fd5b5061025c6108fe565b6040516101e19190611d95565b348015610274575f80fd5b50610203610283366004611de2565b61098e565b348015610293575f80fd5b506102276109a7565b3480156102a7575f80fd5b506002546101d7565b3480156102bb575f80fd5b50600a5461020390610100900460ff1681565b3480156102d9575f80fd5b506102036102e8366004611e0a565b610b2e565b3480156102f8575f80fd5b506101d7610307366004611d5c565b610b51565b348015610317575f80fd5b506101d760085481565b34801561032c575f80fd5b506103547f000000000000000000000000000000000000000000000000000000000000000081565b6040516101e19190611e43565b34801561036c575f80fd5b50604051601281526020016101e1565b348015610387575f80fd5b506101d760075481565b34801561039c575f80fd5b506102036103ab366004611de2565b610bac565b3480156103bb575f80fd5b506102276103ca366004611d5c565b610bcd565b3480156103da575f80fd5b506101d77f000000000000000000000000000000000000000000000000000000000000000081565b34801561040d575f80fd5b5061022761041c366004611d5c565b610de8565b34801561042c575f80fd5b50610227610e54565b348015610440575f80fd5b506101d761044f366004611e57565b610ec1565b34801561045f575f80fd5b50610227610edb565b348015610473575f80fd5b506101d7610482366004611e57565b600b6020525f908152604090205481565b34801561049e575f80fd5b506101d77f000000000000000000000000000000000000000000000000000000000000000081565b3480156104d1575f80fd5b50610227610eee565b3480156104e5575f80fd5b50610354610f6c565b3480156104f9575f80fd5b50610227610f7b565b34801561050d575f80fd5b5061025c610fa5565b348015610521575f80fd5b50610227610530366004611d5c565b610fb4565b348015610540575f80fd5b5061020361054f366004611de2565b6110ac565b34801561055f575f80fd5b5061020361056e366004611de2565b611126565b34801561057e575f80fd5b506103547f000000000000000000000000000000000000000000000000000000000000000081565b3480156105b1575f80fd5b506101d77f000000000000000000000000000000000000000000000000000000000000000081565b3480156105e4575f80fd5b506101d76105f3366004611de2565b611133565b348015610603575f80fd5b506101d7610612366004611e70565b611195565b348015610622575f80fd5b506103546111bf565b348015610636575f80fd5b50610227610645366004611d5c565b6111ce565b348015610655575f80fd5b50610227610664366004611e57565b6112e4565b600a54610100900460ff166106b65760405162461bcd60e51b815260206004820152600e60248201526d1b9bdd081d195c9b5a5b985d195960921b60448201526064015b60405180910390fd5b5f6106c033610ec1565b90505f600854600954836106d49190611eb5565b6106de9190611ecc565b9050805f0361071d5760405162461bcd60e51b815260206004820152600b60248201526a1e995c9bc8185b5bdd5b9d60aa1b60448201526064016106ad565b610727338361134a565b6107527f00000000000000000000000000000000000000000000000000000000000000003383611468565b335f818152600b6020908152604091829020548251938452908301528101839052606081018290527f5a13a50356887b0a6bec5f812e539967cf56e9bd2bf6c79671790f7eab11b8b1906080015b60405180910390a15050565b6107b461156d565b600a5460ff166107d65760405162461bcd60e51b81526004016106ad90611eeb565b600a54610100900460ff16156107fe5760405162461bcd60e51b81526004016106ad90611f17565b478111156108415760405162461bcd60e51b815260206004820152601060248201526f0cae8d0cae440dcdee840cadcdeeaced60831b60448201526064016106ad565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0836040518263ffffffff1660e01b815260040160206040518083038185885af11580156108a0573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906108c59190611f3c565b60408051848152602081018390529192507f0793979a87d9a8a3698d9afc4736042bcc2a41b10151127638dcdef36ede4ce191016107a0565b60606003805461090d90611f53565b80601f016020809104026020016040519081016040528092919081815260200182805461093990611f53565b80156109845780601f1061095b57610100808354040283529160200191610984565b820191905f5260205f20905b81548152906001019060200180831161096757829003601f168201915b5050505050905090565b5f3361099b8185856115cc565b60019150505b92915050565b600a54610100900460ff16156109cf5760405162461bcd60e51b81526004016106ad90611f17565b610a197f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611f8b565b421015610a5b5760405162461bcd60e51b815260206004820152601060248201526f63616e6e6f74207465726d696e61746560801b60448201526064016106ad565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610aa7903090600401611e43565b602060405180830381865afa158015610ac2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ae69190611f3c565b600955600a805461ffff19166101011790556040514281527fd681175168470800567b22d50d831df189686adc5b155827823a5ada6a97a4fe906020015b60405180910390a1565b5f33610b3b8582856116e7565b610b4685858561175f565b506001949350505050565b600a545f9060ff1615610b765760405162461bcd60e51b81526004016106ad90611f9e565b610ba27f00000000000000000000000000000000000000000000000000000000000000003330856118ee565b6109a133836119f3565b5f3361099b818585610bbe8383611195565b610bc89190611f8b565b6115cc565b610bd561156d565b600a5460ff16610bf75760405162461bcd60e51b81526004016106ad90611eeb565b600a54610100900460ff1615610c1f5760405162461bcd60e51b81526004016106ad90611f17565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610c6b903090600401611e43565b602060405180830381865afa158015610c86573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610caa9190611f3c565b811115610cec5760405162461bcd60e51b815260206004820152601060248201526f0a6a89e9c8a40dcdee840cadcdeeaced60831b60448201526064016106ad565b610d377f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000083611b4a565b60405163745400c960e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063745400c9906024015f604051808303815f87803b158015610d96575f80fd5b505af1158015610da8573d5f803e3d5ffd5b505050507f3943fa4974de4196c692c87397a511446a82f2d2e61be40d73ecaae88fc7331c81604051610ddd91815260200190565b60405180910390a150565b610df061156d565b600a5460ff1615610e135760405162461bcd60e51b81526004016106ad90611f9e565b60075460408051918252602082018390527fdbbbb176683582b710ef3349793b8d62658724a9d9b54deccf193c4b0aa90c4c910160405180910390a1600755565b610e5c61156d565b600a5460ff1615610e7f5760405162461bcd60e51b81526004016106ad90611f9e565b600a805460ff191660011790556008546040517fe239024a023ea7c58b3973fa745ab8e45e2733ebb10f3e5c41112cfe754493f691610b249190815260200190565b6001600160a01b03165f9081526020819052604090205490565b610ee361156d565b610eec5f611c48565b565b3380610ef86111bf565b6001600160a01b031614610f605760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084016106ad565b610f6981611c48565b50565b6005546001600160a01b031690565b610f8361156d565b600a5460ff16610a5b5760405162461bcd60e51b81526004016106ad90611eeb565b60606004805461090d90611f53565b610fbc61156d565b600a5460ff16610fde5760405162461bcd60e51b81526004016106ad90611eeb565b600a54610100900460ff16156110065760405162461bcd60e51b81526004016106ad90611f17565b604051634f80fbdd60e11b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639f01f7ba906024015f604051808303815f87803b158015611065575f80fd5b505af1158015611077573d5f803e3d5ffd5b505050507fe8de1e631ea541ac8e6cb398aafb71b991eb58d489298f7bc93ba7e17fa2042b81604051610ddd91815260200190565b5f33816110b98286611195565b9050838110156111195760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106ad565b610b4682868684036115cc565b5f3361099b81858561175f565b600a545f9060ff16156111585760405162461bcd60e51b81526004016106ad90611f9e565b6111847f00000000000000000000000000000000000000000000000000000000000000003330856118ee565b61118e83836119f3565b9392505050565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6006546001600160a01b031690565b6111d661156d565b600a5460ff166111f85760405162461bcd60e51b81526004016106ad90611eeb565b600a54610100900460ff16156112205760405162461bcd60e51b81526004016106ad90611f17565b60405163b18f2e9160e01b8152600481018290525f60248201819052907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b18f2e91906044016020604051808303815f875af115801561128d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112b19190611f3c565b90507f043f607a14d3b4f0a11a0b2e192bbfcd894298ba5abf22553be6081406db28aa816040516107a091815260200190565b6112ec61156d565b600680546001600160a01b0319166001600160a01b038316908117909155611312610f6c565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6001600160a01b0382166113aa5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106ad565b6001600160a01b0382165f908152602081905260409020548181101561141d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106ad565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192915f8051602061201a83398151915291015b60405180910390a3505050565b5f80846001600160a01b031663a9059cbb60e01b858560405160240161148f929190611fc6565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516114cd9190611fdf565b5f604051808303815f865af19150503d805f8114611506576040519150601f19603f3d011682016040523d82523d5f602084013e61150b565b606091505b50915091508180156115355750805115806115355750808060200190518101906115359190611ffa565b6115665760405162461bcd60e51b815260206004820152600260248201526114d560f21b60448201526064016106ad565b5050505050565b33611576610f6c565b6001600160a01b031614610eec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ad565b6001600160a01b03831661162e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106ad565b6001600160a01b03821661168f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106ad565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910161145b565b5f6116f28484611195565b90505f198114611759578181101561174c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106ad565b61175984848484036115cc565b50505050565b6001600160a01b0383166117c35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106ad565b6001600160a01b0382166118255760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106ad565b6001600160a01b0383165f908152602081905260409020548181101561189c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106ad565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290925f8051602061201a833981519152910160405180910390a3611759565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17905291515f928392908816916119519190611fdf565b5f604051808303815f865af19150503d805f811461198a576040519150601f19603f3d011682016040523d82523d5f602084013e61198f565b606091505b50915091508180156119b95750805115806119b95750808060200190518101906119b99190611ffa565b6119eb5760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b60448201526064016106ad565b505050505050565b5f60085482611a029190611f8b565b6007541015611a395760405162461bcd60e51b815260206004820152600360248201526206361760ec1b60448201526064016106ad565b6001600160a01b0383165f908152600b60205260409020547f000000000000000000000000000000000000000000000000000000000000000090611a7d9084611f8b565b1015611ab95760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b60448201526064016106ad565b6001600160a01b0383165f908152600b602052604081208054849290611ae0908490611f8b565b925050819055508160085f828254611af89190611f8b565b90915550611b0890508383611c61565b8190507ff087a71b778a7c3b329d6a6978cd75fa110d939b6979d54e7def8ce8018f7d538383604051611b3c929190611fc6565b60405180910390a192915050565b5f80846001600160a01b031663095ea7b360e01b8585604051602401611b71929190611fc6565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611baf9190611fdf565b5f604051808303815f865af19150503d805f8114611be8576040519150601f19603f3d011682016040523d82523d5f602084013e611bed565b606091505b5091509150818015611c17575080511580611c17575080806020019051810190611c179190611ffa565b6115665760405162461bcd60e51b8152602060048201526002602482015261534160f01b60448201526064016106ad565b600680546001600160a01b0319169055610f6981611d0b565b6001600160a01b038216611cb75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106ad565b8060025f828254611cc89190611f8b565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481525f8051602061201a833981519152910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f60208284031215611d6c575f80fd5b5035919050565b5f5b83811015611d8d578181015183820152602001611d75565b50505f910152565b602081525f8251806020840152611db3816040850160208701611d73565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611ddd575f80fd5b919050565b5f8060408385031215611df3575f80fd5b611dfc83611dc7565b946020939093013593505050565b5f805f60608486031215611e1c575f80fd5b611e2584611dc7565b9250611e3360208501611dc7565b9150604084013590509250925092565b6001600160a01b0391909116815260200190565b5f60208284031215611e67575f80fd5b61118e82611dc7565b5f8060408385031215611e81575f80fd5b611e8a83611dc7565b9150611e9860208401611dc7565b90509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176109a1576109a1611ea1565b5f82611ee657634e487b7160e01b5f52601260045260245ffd5b500490565b60208082526012908201527119195c1bdcda5d081b9bdd081c185d5cd95960721b604082015260600190565b6020808252600b908201526a081d195c9b5a5b985d195960aa1b604082015260600190565b5f60208284031215611f4c575f80fd5b5051919050565b600181811c90821680611f6757607f821691505b602082108103611f8557634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156109a1576109a1611ea1565b6020808252600e908201526d19195c1bdcda5d081c185d5cd95960921b604082015260600190565b6001600160a01b03929092168252602082015260400190565b5f8251611ff0818460208701611d73565b9190910192915050565b5f6020828403121561200a575f80fd5b8151801515811461118e575f80fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220029575a090d2929026469c5fa1c8d4bb0b035eb004d16e50ee96f18f4448515a64736f6c634300081500330000000000000000000000007122985656e38bdc0302db86685bb972b145bd3c000000000000000000000000a62f9c5af106feee069f38de51098d9d81b90572000000000000000000000000000000000000000000002a5a058fc295ed00000000000000000000000000000000000000000000000000000003782dace9d90000

Deployed Bytecode

0x6080604052600436106101b7575f3560e01c8063018d5861146101c257806302befd24146101ea5780630517f8b914610213578063059a500c1461022957806306fdde0314610248578063095ea7b3146102695780630c08bf881461028857806318160ddd1461029c578063194307bf146102b057806323b872dd146102ce5780632b2d14a4146102ed5780632c0f6d7f1461030c5780632e09300a14610321578063313ce56714610361578063355274ea1461037c57806339509351146103915780633b40075d146103b05780633fd8b02f146103cf57806347786d371461040257806369026e881461042157806370a0823114610435578063715018a614610454578063726425d31461046857806378e979251461049357806379ba5097146104c65780638da5cb5b146104da57806393a96512146104ee57806395d89b41146105025780639f01f7ba14610516578063a457c2d714610535578063a9059cbb14610554578063aeebda7e14610573578063b491cb64146105a6578063cafc06c5146105d9578063dd62ed3e146105f8578063e30c397814610617578063f14210a61461062b578063f2fde38b1461064a575f80fd5b366101be57005b5f80fd5b3480156101cd575f80fd5b506101d760095481565b6040519081526020015b60405180910390f35b3480156101f5575f80fd5b50600a546102039060ff1681565b60405190151581526020016101e1565b34801561021e575f80fd5b50610227610669565b005b348015610234575f80fd5b50610227610243366004611d5c565b6107ac565b348015610253575f80fd5b5061025c6108fe565b6040516101e19190611d95565b348015610274575f80fd5b50610203610283366004611de2565b61098e565b348015610293575f80fd5b506102276109a7565b3480156102a7575f80fd5b506002546101d7565b3480156102bb575f80fd5b50600a5461020390610100900460ff1681565b3480156102d9575f80fd5b506102036102e8366004611e0a565b610b2e565b3480156102f8575f80fd5b506101d7610307366004611d5c565b610b51565b348015610317575f80fd5b506101d760085481565b34801561032c575f80fd5b506103547f000000000000000000000000a62f9c5af106feee069f38de51098d9d81b9057281565b6040516101e19190611e43565b34801561036c575f80fd5b50604051601281526020016101e1565b348015610387575f80fd5b506101d760075481565b34801561039c575f80fd5b506102036103ab366004611de2565b610bac565b3480156103bb575f80fd5b506102276103ca366004611d5c565b610bcd565b3480156103da575f80fd5b506101d77f000000000000000000000000000000000000000000000000000000000076a70081565b34801561040d575f80fd5b5061022761041c366004611d5c565b610de8565b34801561042c575f80fd5b50610227610e54565b348015610440575f80fd5b506101d761044f366004611e57565b610ec1565b34801561045f575f80fd5b50610227610edb565b348015610473575f80fd5b506101d7610482366004611e57565b600b6020525f908152604090205481565b34801561049e575f80fd5b506101d77f000000000000000000000000000000000000000000000000000000006607fc7f81565b3480156104d1575f80fd5b50610227610eee565b3480156104e5575f80fd5b50610354610f6c565b3480156104f9575f80fd5b50610227610f7b565b34801561050d575f80fd5b5061025c610fa5565b348015610521575f80fd5b50610227610530366004611d5c565b610fb4565b348015610540575f80fd5b5061020361054f366004611de2565b6110ac565b34801561055f575f80fd5b5061020361056e366004611de2565b611126565b34801561057e575f80fd5b506103547f0000000000000000000000007122985656e38bdc0302db86685bb972b145bd3c81565b3480156105b1575f80fd5b506101d77f00000000000000000000000000000000000000000000000003782dace9d9000081565b3480156105e4575f80fd5b506101d76105f3366004611de2565b611133565b348015610603575f80fd5b506101d7610612366004611e70565b611195565b348015610622575f80fd5b506103546111bf565b348015610636575f80fd5b50610227610645366004611d5c565b6111ce565b348015610655575f80fd5b50610227610664366004611e57565b6112e4565b600a54610100900460ff166106b65760405162461bcd60e51b815260206004820152600e60248201526d1b9bdd081d195c9b5a5b985d195960921b60448201526064015b60405180910390fd5b5f6106c033610ec1565b90505f600854600954836106d49190611eb5565b6106de9190611ecc565b9050805f0361071d5760405162461bcd60e51b815260206004820152600b60248201526a1e995c9bc8185b5bdd5b9d60aa1b60448201526064016106ad565b610727338361134a565b6107527f0000000000000000000000007122985656e38bdc0302db86685bb972b145bd3c3383611468565b335f818152600b6020908152604091829020548251938452908301528101839052606081018290527f5a13a50356887b0a6bec5f812e539967cf56e9bd2bf6c79671790f7eab11b8b1906080015b60405180910390a15050565b6107b461156d565b600a5460ff166107d65760405162461bcd60e51b81526004016106ad90611eeb565b600a54610100900460ff16156107fe5760405162461bcd60e51b81526004016106ad90611f17565b478111156108415760405162461bcd60e51b815260206004820152601060248201526f0cae8d0cae440dcdee840cadcdeeaced60831b60448201526064016106ad565b5f7f000000000000000000000000a62f9c5af106feee069f38de51098d9d81b905726001600160a01b031663d0e30db0836040518263ffffffff1660e01b815260040160206040518083038185885af11580156108a0573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906108c59190611f3c565b60408051848152602081018390529192507f0793979a87d9a8a3698d9afc4736042bcc2a41b10151127638dcdef36ede4ce191016107a0565b60606003805461090d90611f53565b80601f016020809104026020016040519081016040528092919081815260200182805461093990611f53565b80156109845780601f1061095b57610100808354040283529160200191610984565b820191905f5260205f20905b81548152906001019060200180831161096757829003601f168201915b5050505050905090565b5f3361099b8185856115cc565b60019150505b92915050565b600a54610100900460ff16156109cf5760405162461bcd60e51b81526004016106ad90611f17565b610a197f000000000000000000000000000000000000000000000000000000000076a7007f000000000000000000000000000000000000000000000000000000006607fc7f611f8b565b421015610a5b5760405162461bcd60e51b815260206004820152601060248201526f63616e6e6f74207465726d696e61746560801b60448201526064016106ad565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000007122985656e38bdc0302db86685bb972b145bd3c16906370a0823190610aa7903090600401611e43565b602060405180830381865afa158015610ac2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ae69190611f3c565b600955600a805461ffff19166101011790556040514281527fd681175168470800567b22d50d831df189686adc5b155827823a5ada6a97a4fe906020015b60405180910390a1565b5f33610b3b8582856116e7565b610b4685858561175f565b506001949350505050565b600a545f9060ff1615610b765760405162461bcd60e51b81526004016106ad90611f9e565b610ba27f0000000000000000000000007122985656e38bdc0302db86685bb972b145bd3c3330856118ee565b6109a133836119f3565b5f3361099b818585610bbe8383611195565b610bc89190611f8b565b6115cc565b610bd561156d565b600a5460ff16610bf75760405162461bcd60e51b81526004016106ad90611eeb565b600a54610100900460ff1615610c1f5760405162461bcd60e51b81526004016106ad90611f17565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000007122985656e38bdc0302db86685bb972b145bd3c16906370a0823190610c6b903090600401611e43565b602060405180830381865afa158015610c86573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610caa9190611f3c565b811115610cec5760405162461bcd60e51b815260206004820152601060248201526f0a6a89e9c8a40dcdee840cadcdeeaced60831b60448201526064016106ad565b610d377f0000000000000000000000007122985656e38bdc0302db86685bb972b145bd3c7f000000000000000000000000a62f9c5af106feee069f38de51098d9d81b9057283611b4a565b60405163745400c960e01b8152600481018290527f000000000000000000000000a62f9c5af106feee069f38de51098d9d81b905726001600160a01b03169063745400c9906024015f604051808303815f87803b158015610d96575f80fd5b505af1158015610da8573d5f803e3d5ffd5b505050507f3943fa4974de4196c692c87397a511446a82f2d2e61be40d73ecaae88fc7331c81604051610ddd91815260200190565b60405180910390a150565b610df061156d565b600a5460ff1615610e135760405162461bcd60e51b81526004016106ad90611f9e565b60075460408051918252602082018390527fdbbbb176683582b710ef3349793b8d62658724a9d9b54deccf193c4b0aa90c4c910160405180910390a1600755565b610e5c61156d565b600a5460ff1615610e7f5760405162461bcd60e51b81526004016106ad90611f9e565b600a805460ff191660011790556008546040517fe239024a023ea7c58b3973fa745ab8e45e2733ebb10f3e5c41112cfe754493f691610b249190815260200190565b6001600160a01b03165f9081526020819052604090205490565b610ee361156d565b610eec5f611c48565b565b3380610ef86111bf565b6001600160a01b031614610f605760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084016106ad565b610f6981611c48565b50565b6005546001600160a01b031690565b610f8361156d565b600a5460ff16610a5b5760405162461bcd60e51b81526004016106ad90611eeb565b60606004805461090d90611f53565b610fbc61156d565b600a5460ff16610fde5760405162461bcd60e51b81526004016106ad90611eeb565b600a54610100900460ff16156110065760405162461bcd60e51b81526004016106ad90611f17565b604051634f80fbdd60e11b8152600481018290527f000000000000000000000000a62f9c5af106feee069f38de51098d9d81b905726001600160a01b031690639f01f7ba906024015f604051808303815f87803b158015611065575f80fd5b505af1158015611077573d5f803e3d5ffd5b505050507fe8de1e631ea541ac8e6cb398aafb71b991eb58d489298f7bc93ba7e17fa2042b81604051610ddd91815260200190565b5f33816110b98286611195565b9050838110156111195760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106ad565b610b4682868684036115cc565b5f3361099b81858561175f565b600a545f9060ff16156111585760405162461bcd60e51b81526004016106ad90611f9e565b6111847f0000000000000000000000007122985656e38bdc0302db86685bb972b145bd3c3330856118ee565b61118e83836119f3565b9392505050565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6006546001600160a01b031690565b6111d661156d565b600a5460ff166111f85760405162461bcd60e51b81526004016106ad90611eeb565b600a54610100900460ff16156112205760405162461bcd60e51b81526004016106ad90611f17565b60405163b18f2e9160e01b8152600481018290525f60248201819052907f000000000000000000000000a62f9c5af106feee069f38de51098d9d81b905726001600160a01b03169063b18f2e91906044016020604051808303815f875af115801561128d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112b19190611f3c565b90507f043f607a14d3b4f0a11a0b2e192bbfcd894298ba5abf22553be6081406db28aa816040516107a091815260200190565b6112ec61156d565b600680546001600160a01b0319166001600160a01b038316908117909155611312610f6c565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6001600160a01b0382166113aa5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106ad565b6001600160a01b0382165f908152602081905260409020548181101561141d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106ad565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192915f8051602061201a83398151915291015b60405180910390a3505050565b5f80846001600160a01b031663a9059cbb60e01b858560405160240161148f929190611fc6565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516114cd9190611fdf565b5f604051808303815f865af19150503d805f8114611506576040519150601f19603f3d011682016040523d82523d5f602084013e61150b565b606091505b50915091508180156115355750805115806115355750808060200190518101906115359190611ffa565b6115665760405162461bcd60e51b815260206004820152600260248201526114d560f21b60448201526064016106ad565b5050505050565b33611576610f6c565b6001600160a01b031614610eec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ad565b6001600160a01b03831661162e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106ad565b6001600160a01b03821661168f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106ad565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910161145b565b5f6116f28484611195565b90505f198114611759578181101561174c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106ad565b61175984848484036115cc565b50505050565b6001600160a01b0383166117c35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106ad565b6001600160a01b0382166118255760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106ad565b6001600160a01b0383165f908152602081905260409020548181101561189c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106ad565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290925f8051602061201a833981519152910160405180910390a3611759565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17905291515f928392908816916119519190611fdf565b5f604051808303815f865af19150503d805f811461198a576040519150601f19603f3d011682016040523d82523d5f602084013e61198f565b606091505b50915091508180156119b95750805115806119b95750808060200190518101906119b99190611ffa565b6119eb5760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b60448201526064016106ad565b505050505050565b5f60085482611a029190611f8b565b6007541015611a395760405162461bcd60e51b815260206004820152600360248201526206361760ec1b60448201526064016106ad565b6001600160a01b0383165f908152600b60205260409020547f00000000000000000000000000000000000000000000000003782dace9d9000090611a7d9084611f8b565b1015611ab95760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b60448201526064016106ad565b6001600160a01b0383165f908152600b602052604081208054849290611ae0908490611f8b565b925050819055508160085f828254611af89190611f8b565b90915550611b0890508383611c61565b8190507ff087a71b778a7c3b329d6a6978cd75fa110d939b6979d54e7def8ce8018f7d538383604051611b3c929190611fc6565b60405180910390a192915050565b5f80846001600160a01b031663095ea7b360e01b8585604051602401611b71929190611fc6565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611baf9190611fdf565b5f604051808303815f865af19150503d805f8114611be8576040519150601f19603f3d011682016040523d82523d5f602084013e611bed565b606091505b5091509150818015611c17575080511580611c17575080806020019051810190611c179190611ffa565b6115665760405162461bcd60e51b8152602060048201526002602482015261534160f01b60448201526064016106ad565b600680546001600160a01b0319169055610f6981611d0b565b6001600160a01b038216611cb75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106ad565b8060025f828254611cc89190611f8b565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481525f8051602061201a833981519152910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f60208284031215611d6c575f80fd5b5035919050565b5f5b83811015611d8d578181015183820152602001611d75565b50505f910152565b602081525f8251806020840152611db3816040850160208701611d73565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611ddd575f80fd5b919050565b5f8060408385031215611df3575f80fd5b611dfc83611dc7565b946020939093013593505050565b5f805f60608486031215611e1c575f80fd5b611e2584611dc7565b9250611e3360208501611dc7565b9150604084013590509250925092565b6001600160a01b0391909116815260200190565b5f60208284031215611e67575f80fd5b61118e82611dc7565b5f8060408385031215611e81575f80fd5b611e8a83611dc7565b9150611e9860208401611dc7565b90509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176109a1576109a1611ea1565b5f82611ee657634e487b7160e01b5f52601260045260245ffd5b500490565b60208082526012908201527119195c1bdcda5d081b9bdd081c185d5cd95960721b604082015260600190565b6020808252600b908201526a081d195c9b5a5b985d195960aa1b604082015260600190565b5f60208284031215611f4c575f80fd5b5051919050565b600181811c90821680611f6757607f821691505b602082108103611f8557634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156109a1576109a1611ea1565b6020808252600e908201526d19195c1bdcda5d081c185d5cd95960921b604082015260600190565b6001600160a01b03929092168252602082015260400190565b5f8251611ff0818460208701611d73565b9190910192915050565b5f6020828403121561200a575f80fd5b8151801515811461118e575f80fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220029575a090d2929026469c5fa1c8d4bb0b035eb004d16e50ee96f18f4448515a64736f6c63430008150033

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

0000000000000000000000007122985656e38bdc0302db86685bb972b145bd3c000000000000000000000000a62f9c5af106feee069f38de51098d9d81b90572000000000000000000000000000000000000000000002a5a058fc295ed00000000000000000000000000000000000000000000000000000003782dace9d90000

-----Decoded View---------------
Arg [0] : _stoneAddr (address): 0x7122985656e38BDC0302Db86685bb972b145bD3C
Arg [1] : _stoneVaultAddr (address): 0xA62F9C5af106FeEE069F38dE51098D9d81B90572
Arg [2] : _cap (uint256): 200000000000000000000000
Arg [3] : _minStoneAllowed (uint256): 250000000000000000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000007122985656e38bdc0302db86685bb972b145bd3c
Arg [1] : 000000000000000000000000a62f9c5af106feee069f38de51098d9d81b90572
Arg [2] : 000000000000000000000000000000000000000000002a5a058fc295ed000000
Arg [3] : 00000000000000000000000000000000000000000000000003782dace9d90000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.