ETH Price: $2,958.43 (+0.93%)
Gas: 2 Gwei

Contract

0x8E8913197114c911F13cfBfCBBD138C1DC74B964
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Mint199275852024-05-22 19:43:4744 days ago1716407027IN
0x8E891319...1DC74B964
0 ETH0.0027468910.2439153
Claim198199642024-05-07 18:25:3559 days ago1715106335IN
0x8E891319...1DC74B964
0 ETH0.000593696.7833109
Claim198193712024-05-07 16:26:2359 days ago1715099183IN
0x8E891319...1DC74B964
0 ETH0.000737297.04793353
Mint197821812024-05-02 11:36:4764 days ago1714649807IN
0x8E891319...1DC74B964
0 ETH0.002077437.82382515
Mint196886992024-04-19 9:49:5977 days ago1713520199IN
0x8E891319...1DC74B964
0 ETH0.002306758.74539212
Claim194181602024-03-12 9:39:35115 days ago1710236375IN
0x8E891319...1DC74B964
0 ETH0.0040826645.53239354
Transfer Ownersh...194129942024-03-11 16:18:11116 days ago1710173891IN
0x8E891319...1DC74B964
0 ETH0.00291322101.7472881
Claim193906052024-03-08 12:59:35119 days ago1709902775IN
0x8E891319...1DC74B964
0 ETH0.0066808550.4657586
Mint193904812024-03-08 12:34:47119 days ago1709901287IN
0x8E891319...1DC74B964
0 ETH0.0155355259.30382451
Mint193890392024-03-08 7:44:35119 days ago1709883875IN
0x8E891319...1DC74B964
0 ETH0.0193597947.68621883

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
193889902024-03-08 7:34:47119 days ago1709883287  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Boost

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 10000 runs

Other Settings:
paris EvmVersion
File 1 of 21 : Boost.sol
/**
 * SPDX-License-Identifier: MIT
 *
 *   ____                      _
 *  |  _ \                    | |
 *  | |_) |  ___    ___   ___ | |_
 *  |  _ <  / _ \  / _ \ / __|| __|
 *  | |_) || (_) || (_) |\__ \| |_
 *  |____/  \___/  \___/ |___/ \__|
 */

pragma solidity ^0.8.23;

import "openzeppelin-contracts/access/Ownable.sol";
import "openzeppelin-contracts/utils/cryptography/SignatureChecker.sol";
import "openzeppelin-contracts/utils/cryptography/EIP712.sol";
import "openzeppelin-contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "openzeppelin-contracts/token/ERC20/utils/SafeERC20.sol";

import "./IBoost.sol";

/**
 * @title Boost
 * @author @SnapshotLabs - [email protected]
 * @notice Incentivize actions with ERC20 token disbursals
 */
contract Boost is IBoost, EIP712, Ownable, ERC721URIStorage {
    using SafeERC20 for IERC20;

    /// @dev The divisor used to calculate the per-myriad fee
    uint256 private constant MYRIAD = 10000;

    /// @dev The EIP712 typehash for the claim struct
    bytes32 private constant CLAIM_TYPE_HASH =
        keccak256("Claim(uint256 boostId,address recipient,uint256 amount)");

    /// @inheritdoc IBoost
    mapping(uint256 => BoostConfig) public override boosts;

    /// @inheritdoc IBoost
    mapping(uint256 => mapping(address => bool)) public override claimed;

    /// @inheritdoc IBoost
    mapping(address => uint256) public override tokenFeeBalances;

    /// @inheritdoc IBoost
    uint256 public override nextBoostId;

    /// @inheritdoc IBoost
    uint256 public override ethFee;

    /// @inheritdoc IBoost
    uint256 public override tokenFee;

    /// @notice Initializes the boost contract
    /// @param _protocolOwner The address of the owner of the protocol
    /// @param _ethFee The eth protocol fee
    /// @param _tokenFee The token protocol fee
    constructor(
        address _protocolOwner,
        string memory name,
        string memory symbol,
        string memory version,
        uint256 _ethFee,
        uint256 _tokenFee
    ) ERC721(name, symbol) EIP712(name, version) {
        setEthFee(_ethFee);
        setTokenFee(_tokenFee);
        transferOwnership(_protocolOwner);
    }

    /// @inheritdoc IBoost
    function setEthFee(uint256 _ethFee) public override onlyOwner {
        ethFee = _ethFee;
        emit EthFeeSet(_ethFee);
    }

    /// @inheritdoc IBoost
    function setTokenFee(uint256 _tokenFee) public override onlyOwner {
        tokenFee = _tokenFee;
        emit TokenFeeSet(_tokenFee);
    }

    /// @inheritdoc IBoost
    function collectEthFees(address _recipient) external override onlyOwner {
        payable(_recipient).transfer(address(this).balance);
        emit EthFeesCollected(_recipient);
    }

    /// @inheritdoc IBoost
    function collectTokenFees(
        IERC20 _token,
        address _recipient
    ) external override onlyOwner {
        uint256 fees = tokenFeeBalances[address(_token)];
        tokenFeeBalances[address(_token)] = 0;
        _token.safeTransfer(_recipient, fees);
        emit TokenFeesCollected(_token, _recipient);
    }

    /// @inheritdoc IBoost
    function mint(
        string calldata _strategyURI,
        IERC20 _token,
        uint256 _amount,
        address _owner,
        address _guard,
        uint48 _start,
        uint48 _end
    ) external payable override {
        if (_amount == 0) revert BoostDepositRequired();
        if (_end <= block.timestamp) revert BoostEndDateInPast();
        if (_start >= _end) revert BoostEndDateBeforeStart();
        if (_guard == address(0)) revert InvalidGuard();
        if (msg.value < ethFee) revert InsufficientEthFee();

        (uint256 balanceIncrease, uint256 tokenFeeAmount) = calculateFee(
            _amount
        );

        tokenFeeBalances[address(_token)] += tokenFeeAmount;

        uint256 boostId = nextBoostId;
        unchecked {
            // Overflows if 2**128 boosts are minted
            nextBoostId++;
        }

        // Minting the boost as an ERC721 and storing the config data
        _safeMint(_owner, boostId);
        _setTokenURI(boostId, _strategyURI);
        boosts[boostId] = BoostConfig({
            token: _token,
            balance: balanceIncrease,
            guard: _guard,
            start: _start,
            end: _end
        });

        // Transferring the deposit amount of the ERC20 token to the contract
        _token.safeTransferFrom(msg.sender, address(this), _amount);

        emit Mint(boostId, _owner, boosts[boostId], _strategyURI);
    }

    /// @inheritdoc IBoost
    function deposit(uint256 _boostId, uint256 _amount) external override {
        BoostConfig storage boost = boosts[_boostId];
        if (_amount == 0) revert BoostDepositRequired();
        if (!_exists(_boostId)) revert BoostDoesNotExist();
        if (boost.end <= block.timestamp) revert BoostEnded();
        if (block.timestamp >= boost.start) revert ClaimingPeriodStarted();

        (uint256 balanceIncrease, uint256 tokenFeeAmount) = calculateFee(
            _amount
        );

        tokenFeeBalances[address(boost.token)] += tokenFeeAmount;

        boost.balance += balanceIncrease;
        boost.token.safeTransferFrom(msg.sender, address(this), _amount);

        emit Deposit(_boostId, msg.sender, balanceIncrease);
    }

    /// @inheritdoc IBoost
    function withdrawAndBurn(uint256 _boostId, address _to) external override {
        BoostConfig storage boost = boosts[_boostId];
        if (!_exists(_boostId)) revert BoostDoesNotExist();
        if (boost.balance == 0) revert InsufficientBoostBalance();
        if (boost.end > block.timestamp) revert BoostNotEnded(boost.end);
        if (ownerOf(_boostId) != msg.sender) revert OnlyBoostOwner();
        if (_to == address(0)) revert InvalidRecipient();

        uint256 amount = boost.balance;

        // Transferring remaining ERC20 token balance to the designated address
        boost.token.safeTransfer(_to, amount);

        // Deleting the boost data
        _burn(_boostId);
        delete boosts[_boostId];

        emit Burn(_boostId);
    }

    /// @inheritdoc IBoost
    function claim(
        ClaimConfig calldata _claimConfig,
        bytes calldata _signature
    ) external override {
        _claim(_claimConfig, _signature);
    }

    /// @inheritdoc IBoost
    function claimMultiple(
        ClaimConfig[] calldata _claimConfigs,
        bytes[] calldata _signatures
    ) external override {
        for (uint256 i = 0; i < _signatures.length; i++) {
            _claim(_claimConfigs[i], _signatures[i]);
        }
    }

    /// @notice Claims a boost
    /// @param _claimConfig The claim
    /// @param _signature The signature of the claim, signed by the boost guard
    function _claim(
        ClaimConfig memory _claimConfig,
        bytes memory _signature
    ) internal {
        BoostConfig storage boost = boosts[_claimConfig.boostId];
        if (boost.start > block.timestamp) revert BoostNotStarted(boost.start);
        if (boost.balance < _claimConfig.amount) {
            revert InsufficientBoostBalance();
        }
        if (boost.end <= block.timestamp) revert BoostEnded();
        if (claimed[_claimConfig.boostId][_claimConfig.recipient]) {
            revert RecipientAlreadyClaimed();
        }
        if (_claimConfig.recipient == address(0)) revert InvalidRecipient();

        bytes32 digest = _hashTypedDataV4(
            keccak256(
                abi.encode(
                    CLAIM_TYPE_HASH,
                    _claimConfig.boostId,
                    _claimConfig.recipient,
                    _claimConfig.amount
                )
            )
        );

        if (
            !SignatureChecker.isValidSignatureNow(
                boost.guard,
                digest,
                _signature
            )
        ) revert InvalidSignature();

        // Storing recipients that claimed to prevent reusing signatures
        claimed[_claimConfig.boostId][_claimConfig.recipient] = true;

        // Calculating the boost balance after the claim, will not underflow as we have already checked
        // that the claim amount is less than the balance
        boost.balance -= _claimConfig.amount;

        // Transferring claim amount to recipient address
        boost.token.safeTransfer(_claimConfig.recipient, _claimConfig.amount);

        emit Claim(_claimConfig);
    }

    /// @dev Calculates the boost balance increase and token fee amount for a given deposit amount
    function calculateFee(
        uint256 _amount
    ) internal view returns (uint256, uint256) {
        // Using this non-intuitive computation to make it easier for the depositor to calculate the fee.
        // This way, depositing 110 tokens with a tokenFee of 10% will result in a balance increase of 100 tokens
        // and a fee of 10 tokens.
        uint256 balanceIncrease = (_amount * MYRIAD) / (MYRIAD + tokenFee);
        uint256 tokenFeeAmount = _amount - balanceIncrease;
        return (balanceIncrease, tokenFeeAmount);
    }
}

File 2 of 21 : Ownable.sol
// 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);
    }
}

File 3 of 21 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";
import "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
        if (error == ECDSA.RecoverError.NoError && recovered == signer) {
            return true;
        }

        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
        );
        return (success &&
            result.length == 32 &&
            abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
    }
}

File 4 of 21 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 5 of 21 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 6 of 21 : SafeERC20.sol
// 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/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");
        }
    }
}

File 7 of 21 : IBoost.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.23;

import "openzeppelin-contracts/token/ERC20/IERC20.sol";

interface IBoost {
    struct BoostConfig {
        // The token that is being distributed as a boost
        IERC20 token;
        // The current balance of the boost
        uint256 balance;
        // The boost guard, which is the address of the account that should sign claims
        address guard;
        // The start timestamp of the boost, after which claims can be made
        uint48 start;
        // The end timestamp of the boost, after which no more claims can be made
        uint48 end;
    }

    struct ClaimConfig {
        // The boost id where the claim is being made
        uint256 boostId;
        // The address of the recipient for the claim
        address recipient;
        // The amount of boost token in the claim
        uint256 amount;
    }

    error BoostDoesNotExist();
    error BoostDepositRequired();
    error BoostEndDateInPast();
    error BoostEndDateBeforeStart();
    error BoostEnded();
    error BoostNotEnded(uint256 end);
    error BoostNotStarted(uint256 start);
    error ClaimingPeriodStarted();
    error OnlyBoostOwner();
    error InvalidRecipient();
    error InvalidGuard();
    error InvalidTokenFee();
    error RecipientAlreadyClaimed();
    error InvalidSignature();
    error InsufficientBoostBalance();
    error InsufficientEthFee();

    /// @notice Emitted when a boost is minted
    /// @param boostId The boost id
    /// @param owner The boost owner
    /// @param boost The boost config
    /// @param strategyURI The URI of the boost strategy
    event Mint(
        uint256 boostId,
        address owner,
        BoostConfig boost,
        string strategyURI
    );

    /// @notice Emitted when a claim is made
    /// @param claim The claim config
    event Claim(ClaimConfig claim);

    /// @notice Emitted when a boost is deposited into
    /// @param boostId The boost id
    /// @param sender The address of the depositor sender
    /// @param amount The amount of the boost token deposited
    event Deposit(uint256 boostId, address sender, uint256 amount);

    /// @notice Emitted when a boost is burned
    /// @param boostId The boost id
    event Burn(uint256 boostId);

    /// @notice Emitted when the ETH fee is set
    /// @param ethFee The ETH fee
    event EthFeeSet(uint256 ethFee);

    /// @notice Emitted when the token fee is set
    /// @param tokenFee The token fee
    event TokenFeeSet(uint256 tokenFee);

    /// @notice Emitted when ETH fees are collected
    /// @param recipient The recipient of the ETH fees
    event EthFeesCollected(address recipient);

    /// @notice Emitted when token fees are collected
    /// @param token The token of the fees
    /// @param recipient The recipient of the token fees
    event TokenFeesCollected(IERC20 token, address recipient);

    /// @notice Returns the boost config for a given boost id
    /// @param boostId The boost id
    function boosts(
        uint256 boostId
    )
        external
        view
        returns (
            IERC20 token,
            uint256 balance,
            address guard,
            uint48 start,
            uint48 end
        );

    /// @notice Returns whether a recipient has claimed a boost
    /// @param boostId The boost id
    /// @param recipient The recipient address
    function claimed(
        uint256 boostId,
        address recipient
    ) external view returns (bool);

    /// @notice Returns the accumulated protocol fees for a given token
    /// @param token The token to get the fee balance for
    function tokenFeeBalances(address token) external view returns (uint256);

    /// @notice Returns the id of the next boost to be minted
    function nextBoostId() external view returns (uint256);

    /// @notice Returns the constant eth protocol fee (in wei) that must be paid by all boost creators
    function ethFee() external view returns (uint256);

    /// @notice Returns the per-myriad (parts per ten-thousand) proportion of the boost size that is taken as a fee.
    /// Eg with a token fee of 200, 2% of the boost size is taken as a fee. So a 102 token deposit would result in a
    /// 100 token boost and 2 token fee.
    function tokenFee() external view returns (uint256);

    /// @notice Updates the eth protocol fee
    /// @param ethFee The new eth fee in wei
    function setEthFee(uint256 ethFee) external;

    /// @notice Updates the token protocol fee
    /// @param tokenFee The new token fee, represented as an integer denominator (100/x)%
    function setTokenFee(uint256 tokenFee) external;

    /// @notice Collects the accumulated Eth protocol fees
    /// @param recipient The address to send the fees to
    function collectEthFees(address recipient) external;

    /// @notice Collects the accumulated token protocol fees
    /// @param token The token to collect fees for
    /// @param recipient The address to send the fees to
    function collectTokenFees(IERC20 token, address recipient) external;

    /// @notice Mints a new boost
    /// @param strategyURI The URI of the boost strategy
    /// @param token The token that is being distributed as a boost
    /// @param amount The amount of the boost token that will be distributed
    /// @param owner The owner of the boost
    /// @param guard The address of the account that should sign claims
    /// @param start The start timestamp of the boost, after which claims can be made
    /// @param end The end timestamp of the boost, after which no more claims can be made
    function mint(
        string calldata strategyURI,
        IERC20 token,
        uint256 amount,
        address owner,
        address guard,
        uint48 start,
        uint48 end
    ) external payable;

    /// @notice Deposits more tokens into a boost
    /// @param boostId The boost id
    /// @param amount The amount of the token to deposit
    function deposit(uint256 boostId, uint256 amount) external;

    /// @notice Withdraws the remaining funds and burns the boost
    /// @param boostId The boost id
    /// @param to The address to send the remaining boost balance to
    function withdrawAndBurn(uint256 boostId, address to) external;

    /// @notice Claims a boost
    /// @param claimConfig The claim
    /// @param signature The signature of the claim, signed by the boost guard
    function claim(
        ClaimConfig calldata claimConfig,
        bytes calldata signature
    ) external;

    /// @notice Wrapper function to claim multiple boosts in a single transaction
    /// @param claimConfigs Array of claims
    /// @param signatures Array of signatures, that correspond to the claims array
    function claimMultiple(
        ClaimConfig[] calldata claimConfigs,
        bytes[] calldata signatures
    ) external;
}

File 8 of 21 : 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 9 of 21 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 10 of 21 : IERC1271.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

File 11 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

File 12 of 21 : IERC20.sol
// 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);
}

File 13 of 21 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/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);
}

File 14 of 21 : Address.sol
// 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://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.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);
        }
    }
}

File 15 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 16 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 17 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 18 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 19 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 20 of 21 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 21 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "forge-gas-snapshot/=lib/forge-gas-snapshot/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_protocolOwner","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"_ethFee","type":"uint256"},{"internalType":"uint256","name":"_tokenFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BoostDepositRequired","type":"error"},{"inputs":[],"name":"BoostDoesNotExist","type":"error"},{"inputs":[],"name":"BoostEndDateBeforeStart","type":"error"},{"inputs":[],"name":"BoostEndDateInPast","type":"error"},{"inputs":[],"name":"BoostEnded","type":"error"},{"inputs":[{"internalType":"uint256","name":"end","type":"uint256"}],"name":"BoostNotEnded","type":"error"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"}],"name":"BoostNotStarted","type":"error"},{"inputs":[],"name":"ClaimingPeriodStarted","type":"error"},{"inputs":[],"name":"InsufficientBoostBalance","type":"error"},{"inputs":[],"name":"InsufficientEthFee","type":"error"},{"inputs":[],"name":"InvalidGuard","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidTokenFee","type":"error"},{"inputs":[],"name":"OnlyBoostOwner","type":"error"},{"inputs":[],"name":"RecipientAlreadyClaimed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"boostId","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"boostId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"indexed":false,"internalType":"struct IBoost.ClaimConfig","name":"claim","type":"tuple"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"boostId","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ethFee","type":"uint256"}],"name":"EthFeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"EthFeesCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"boostId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"address","name":"guard","type":"address"},{"internalType":"uint48","name":"start","type":"uint48"},{"internalType":"uint48","name":"end","type":"uint48"}],"indexed":false,"internalType":"struct IBoost.BoostConfig","name":"boost","type":"tuple"},{"indexed":false,"internalType":"string","name":"strategyURI","type":"string"}],"name":"Mint","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":"tokenFee","type":"uint256"}],"name":"TokenFeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"TokenFeesCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"boosts","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"address","name":"guard","type":"address"},{"internalType":"uint48","name":"start","type":"uint48"},{"internalType":"uint48","name":"end","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"boostId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct IBoost.ClaimConfig","name":"_claimConfig","type":"tuple"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"boostId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct IBoost.ClaimConfig[]","name":"_claimConfigs","type":"tuple[]"},{"internalType":"bytes[]","name":"_signatures","type":"bytes[]"}],"name":"claimMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"collectEthFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"collectTokenFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boostId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_strategyURI","type":"string"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_guard","type":"address"},{"internalType":"uint48","name":"_start","type":"uint48"},{"internalType":"uint48","name":"_end","type":"uint48"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextBoostId","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":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethFee","type":"uint256"}],"name":"setEthFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenFee","type":"uint256"}],"name":"setTokenFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenFeeBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boostId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawAndBurn","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040523480156200001257600080fd5b506040516200425f3803806200425f8339810160408190526200003591620003a3565b845160208087019190912084518583012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818801819052818301969096526060810194909452608080850193909352308483018190528151808603909301835260c094850190915281519190950120905291909152610120528484620000d13362000124565b6001620000df8382620004f8565b506002620000ee8282620004f8565b50505062000102826200017460201b60201c565b6200010d81620001ba565b6200011886620001fa565b505050505050620005c4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200017e6200027d565b600c8190556040518181527f40aad3f991f16f7936e7bc012b939cd59d22ae8b4de6f4cbae0b2ad3046f76f1906020015b60405180910390a150565b620001c46200027d565b600d8190556040518181527fe0f21afeaf06687adebfef3b6eaa2f9ab4501423ccf6e33bf2ee5b21a4001f5990602001620001af565b620002046200027d565b6001600160a01b0381166200026f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6200027a8162000124565b50565b6000546001600160a01b03163314620002d95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000266565b565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200030357600080fd5b81516001600160401b0380821115620003205762000320620002db565b604051601f8301601f19908116603f011681019082821181831017156200034b576200034b620002db565b81604052838152602092508660208588010111156200036957600080fd5b600091505b838210156200038d57858201830151818301840152908201906200036e565b6000602085830101528094505050505092915050565b60008060008060008060c08789031215620003bd57600080fd5b86516001600160a01b0381168114620003d557600080fd5b60208801519096506001600160401b0380821115620003f357600080fd5b620004018a838b01620002f1565b965060408901519150808211156200041857600080fd5b620004268a838b01620002f1565b955060608901519150808211156200043d57600080fd5b506200044c89828a01620002f1565b9350506080870151915060a087015190509295509295509295565b600181811c908216806200047c57607f821691505b6020821081036200049d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004f3576000816000526020600020601f850160051c81016020861015620004ce5750805b601f850160051c820191505b81811015620004ef57828155600101620004da565b5050505b505050565b81516001600160401b03811115620005145762000514620002db565b6200052c8162000525845462000467565b84620004a3565b602080601f8311600181146200056457600084156200054b5750858301515b600019600386901b1c1916600185901b178555620004ef565b600085815260208120601f198616915b82811015620005955788860151825594840194600190910190840162000574565b5085821015620005b45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e0516101005161012051613c4b620006146000396000612d8901526000612dd801526000612db301526000612d0c01526000612d3601526000612d600152613c4b6000f3fe6080604052600436106101d85760003560e01c806370a0823111610102578063b9741c6b11610095578063e985e9c511610064578063e985e9c514610601578063e98798e81461064a578063f2fde38b1461066a578063f6e671b71461068a57600080fd5b8063b9741c6b14610581578063c87b56dd146105a1578063d9da1917146105c1578063e2bbb158146105e157600080fd5b806395d89b41116100d157806395d89b411461050c578063994e3ba014610521578063a22cb46514610541578063b88d4fde1461056157600080fd5b806370a08231146104a6578063715018a6146104c65780638d8fa6e9146104db5780638da5cb5b146104ee57600080fd5b806331b31b881161017a5780634afd82e7116101495780634afd82e7146103835780634cf1115d146104505780636352211e146104665780636f42d1611461048657600080fd5b806331b31b881461030d5780633f6738a91461032d57806342842e0e1461034d578063455991361461036d57600080fd5b8063095ea7b3116101b6578063095ea7b31461026c578063120aa8771461028e57806323b872dd146102c95780632f751013146102e957600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f836600461321d565b6106b7565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b5061022761079c565b604051610209919061328a565b34801561024057600080fd5b5061025461024f36600461329d565b61082e565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c6102873660046132cb565b610855565b005b34801561029a57600080fd5b506101fd6102a93660046132f7565b600960209081526000928352604080842090915290825290205460ff1681565b3480156102d557600080fd5b5061028c6102e4366004613327565b6109a9565b3480156102f557600080fd5b506102ff600b5481565b604051908152602001610209565b34801561031957600080fd5b5061028c61032836600461329d565b610a30565b34801561033957600080fd5b5061028c61034836600461329d565b610a74565b34801561035957600080fd5b5061028c610368366004613327565b610ab1565b34801561037957600080fd5b506102ff600d5481565b34801561038f57600080fd5b5061040d61039e36600461329d565b6008602052600090815260409020805460018201546002909201546001600160a01b03918216929181169065ffffffffffff7401000000000000000000000000000000000000000082048116917a01000000000000000000000000000000000000000000000000000090041685565b604080516001600160a01b0396871681526020810195909552929094169183019190915265ffffffffffff9081166060830152909116608082015260a001610209565b34801561045c57600080fd5b506102ff600c5481565b34801561047257600080fd5b5061025461048136600461329d565b610acc565b34801561049257600080fd5b5061028c6104a13660046132f7565b610b31565b3480156104b257600080fd5b506102ff6104c1366004613368565b610d88565b3480156104d257600080fd5b5061028c610e22565b61028c6104e93660046133e2565b610e36565b3480156104fa57600080fd5b506000546001600160a01b0316610254565b34801561051857600080fd5b50610227611192565b34801561052d57600080fd5b5061028c61053c366004613368565b6111a1565b34801561054d57600080fd5b5061028c61055c366004613495565b611218565b34801561056d57600080fd5b5061028c61057c366004613523565b611227565b34801561058d57600080fd5b5061028c61059c3660046135e7565b6112b5565b3480156105ad57600080fd5b506102276105bc36600461329d565b611303565b3480156105cd57600080fd5b5061028c6105dc366004613642565b611413565b3480156105ed57600080fd5b5061028c6105fc36600461370a565b6114b6565b34801561060d57600080fd5b506101fd61061c36600461372c565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561065657600080fd5b5061028c61066536600461372c565b6116c5565b34801561067657600080fd5b5061028c610685366004613368565b61173e565b34801561069657600080fd5b506102ff6106a5366004613368565b600a6020526000908152604090205481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061074a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061079657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600180546107ab9061375a565b80601f01602080910402602001604051908101604052809291908181526020018280546107d79061375a565b80156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b5050505050905090565b6000610839826117ce565b506000908152600560205260409020546001600160a01b031690565b600061086082610acc565b9050806001600160a01b0316836001600160a01b0316036108ee5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b038216148061092857506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b61099a5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016108e5565b6109a48383611832565b505050565b6109b333826118b8565b610a255760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016108e5565b6109a4838383611936565b610a38611ba2565b600d8190556040518181527fe0f21afeaf06687adebfef3b6eaa2f9ab4501423ccf6e33bf2ee5b21a4001f59906020015b60405180910390a150565b610a7c611ba2565b600c8190556040518181527f40aad3f991f16f7936e7bc012b939cd59d22ae8b4de6f4cbae0b2ad3046f76f190602001610a69565b6109a483838360405180602001604052806000815250611227565b6000818152600360205260408120546001600160a01b0316806107965760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108e5565b60008281526008602090815260408083206003909252909120546001600160a01b0316610b8a576040517f9f528f6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010154600003610bc8576040517fd783b17400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002810154427a01000000000000000000000000000000000000000000000000000090910465ffffffffffff161115610c595760028101546040517ec155bb0000000000000000000000000000000000000000000000000000000081527a01000000000000000000000000000000000000000000000000000090910465ffffffffffff1660048201526024016108e5565b33610c6384610acc565b6001600160a01b031614610ca3576040517fcd6a87db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038216610ce3576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018101548154610cfe906001600160a01b03168483611bfc565b610d0784611ca5565b60008481526008602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001681556001810183905560020191909155517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb90610d7a9086815260200190565b60405180910390a150505050565b60006001600160a01b038216610e065760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016108e5565b506001600160a01b031660009081526004602052604090205490565b610e2a611ba2565b610e346000611ce5565b565b84600003610e70576040517ff1aadac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b428165ffffffffffff1611610eb1576040517f67c39f0600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8065ffffffffffff168265ffffffffffff1610610efa576040517f4b3aed6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316610f3a576040517f15e33ca300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54341015610f76576040517f7a16d84f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610f8287611d4d565b6001600160a01b038a166000908152600a6020526040812080549395509193508392610faf9084906137dc565b9091555050600b805460018101909155610fc98782611d92565b611009818c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611dac92505050565b6040805160a0810182526001600160a01b03808c1680835260208084018881528b841685870190815265ffffffffffff808d16606088019081528c82166080890190815260008b8152600890965298909420965187549087167fffffffffffffffffffffffff00000000000000000000000000000000000000009091161787559151600187015551600290950180549251965182167a0100000000000000000000000000000000000000000000000000000279ffffffffffffffffffffffffffffffffffffffffffffffffffff9790921674010000000000000000000000000000000000000000027fffffffffffff0000000000000000000000000000000000000000000000000000909316959094169490941717939093169190911790556111349033308b611e4e565b7f3a7e0d469a7bd21a015d8821d34adbd16968f3b3ff8ae56049b7046b06f338f68188600860008581526020019081526020016000208e8e60405161117d9594939291906137ef565b60405180910390a15050505050505050505050565b6060600280546107ab9061375a565b6111a9611ba2565b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156111de573d6000803e3d6000fd5b506040516001600160a01b03821681527fe3cd833cc7fc10bb3836944d086e3d3c67bb967d62e47a1779a01077bba43c0290602001610a69565b611223338383611e9f565b5050565b61123133836118b8565b6112a35760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016108e5565b6112af84848484611f8b565b50505050565b6109a46112c736859003850185613875565b83838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061201492505050565b606061130e826117ce565b600082815260076020526040812080546113279061375a565b80601f01602080910402602001604051908101604052809291908181526020018280546113539061375a565b80156113a05780601f10611375576101008083540402835291602001916113a0565b820191906000526020600020905b81548152906001019060200180831161138357829003601f168201915b5050505050905060006113be60408051602081019091526000815290565b905080516000036113d0575092915050565b8151156114025780826040516020016113ea9291906138d7565b60405160208183030381529060405292505050919050565b61140b846123ac565b949350505050565b60005b818110156114af576114a785858381811061143357611433613906565b9050606002018036038101906114499190613875565b84848481811061145b5761145b613906565b905060200281019061146d9190613935565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061201492505050565b600101611416565b5050505050565b6000828152600860205260408120908290036114fe576040517ff1aadac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600360205260409020546001600160a01b031661154c576040517f9f528f6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002810154427a01000000000000000000000000000000000000000000000000000090910465ffffffffffff16116115b0576040517f9a3d505f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600281015474010000000000000000000000000000000000000000900465ffffffffffff16421061160d576040517fe8a7bc2d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061161984611d4d565b84546001600160a01b03166000908152600a60205260408120805493955091935083926116479084906137dc565b925050819055508183600101600082825461166291906137dc565b9091555050825461167e906001600160a01b0316333087611e4e565b604080518681523360208201529081018390527feaa18152488ce5959073c9c79c88ca90b3d96c00de1f118cfaad664c3dab06b99060600160405180910390a15050505050565b6116cd611ba2565b6001600160a01b0382166000818152600a602052604081208054919055906116f6908383611bfc565b604080516001600160a01b038086168252841660208201527f181de6876cbd262a8d7ee2e7ba6accacc21f564765246b69a24da3b0db6d1eb3910160405180910390a1505050565b611746611ba2565b6001600160a01b0381166117c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108e5565b6117cb81611ce5565b50565b6000818152600360205260409020546001600160a01b03166117cb5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108e5565b600081815260056020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061187f82610acc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806118c483610acc565b9050806001600160a01b0316846001600160a01b0316148061190b57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b8061140b5750836001600160a01b03166119248461082e565b6001600160a01b031614949350505050565b826001600160a01b031661194982610acc565b6001600160a01b0316146119c55760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016108e5565b6001600160a01b038216611a405760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108e5565b611a4d8383836001612420565b826001600160a01b0316611a6082610acc565b6001600160a01b031614611adc5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016108e5565b600081815260056020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b038781168086526004855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b03163314610e345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108e5565b6040516001600160a01b0383166024820152604481018290526109a49084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526124a8565b611cae8161258d565b60008181526007602052604090208054611cc79061375a565b1590506117cb5760008181526007602052604081206117cb916131a1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000600d54612710611d6291906137dc565b611d6e6127108661399a565b611d7891906139b1565b90506000611d8682866139ec565b91959194509092505050565b611223828260405180602001604052806000815250612666565b6000828152600360205260409020546001600160a01b0316611e365760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e00000000000000000000000000000000000060648201526084016108e5565b60008281526007602052604090206109a48282613a4f565b6040516001600160a01b03808516602483015283166044820152606481018290526112af9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611c41565b816001600160a01b0316836001600160a01b031603611f005760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108e5565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611f96848484611936565b611fa2848484846126ef565b6112af5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108e5565b815160009081526008602052604090206002810154427401000000000000000000000000000000000000000090910465ffffffffffff1611156120aa5760028101546040517f268e14e30000000000000000000000000000000000000000000000000000000081527401000000000000000000000000000000000000000090910465ffffffffffff1660048201526024016108e5565b8260400151816001015410156120ec576040517fd783b17400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002810154427a01000000000000000000000000000000000000000000000000000090910465ffffffffffff1611612150576040517f9a3d505f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82516000908152600960209081526040808320828701516001600160a01b0316845290915290205460ff16156121b2576040517f9d822f6a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60208301516001600160a01b03166121f6576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006122787f56369833052c65190d29e71cd23382c2caef1cbd6fe3a194b615c8dd6025225d85600001518660200151876040015160405160200161225d949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b60405160208183030381529060405280519060200120612890565b6002830154909150612294906001600160a01b031682856128f9565b6122ca576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83516000908152600960209081526040808320828801516001600160a01b0316845290915280822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155908601519084018054919290916123369084906139ec565b909155505060208401516040850151835461235c926001600160a01b0390911691611bfc565b60408051855181526020808701516001600160a01b03169082015281860151918101919091527f3b51800d03d69dee2e14ade46700f7c428bca48e471251b94407cfd5f3b335d290606001610d7a565b60606123b7826117ce565b60006123ce60408051602081019091526000815290565b905060008151116123ee5760405180602001604052806000815250612419565b806123f884612a81565b6040516020016124099291906138d7565b6040516020818303038152906040525b9392505050565b60018111156112af576001600160a01b03841615612466576001600160a01b038416600090815260046020526040812080548392906124609084906139ec565b90915550505b6001600160a01b038316156112af576001600160a01b0383166000908152600460205260408120805483929061249d9084906137dc565b909155505050505050565b60006124fd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612b3f9092919063ffffffff16565b8051909150156109a4578080602001905181019061251b9190613b4b565b6109a45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016108e5565b600061259882610acc565b90506125a8816000846001612420565b6125b182610acc565b600083815260056020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b0385168085526004845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558785526003909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6126708383612b4e565b61267d60008484846126ef565b6109a45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108e5565b60006001600160a01b0384163b15612885576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061274c903390899088908890600401613b68565b6020604051808303816000875af1925050508015612787575060408051601f3d908101601f1916820190925261278491810190613ba4565b60015b61283a573d8080156127b5576040519150601f19603f3d011682016040523d82523d6000602084013e6127ba565b606091505b5080516000036128325760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108e5565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061140b565b506001949350505050565b600061079661289d612cff565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006129088585612e26565b9092509050600081600481111561292157612921613bc1565b14801561293f5750856001600160a01b0316826001600160a01b0316145b1561294f57600192505050612419565b600080876001600160a01b0316631626ba7e60e01b8888604051602401612977929190613bf0565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516129e29190613c09565b600060405180830381855afa9150503d8060008114612a1d576040519150601f19603f3d011682016040523d82523d6000602084013e612a22565b606091505b5091509150818015612a35575080516020145b8015612a75575080517f1626ba7e0000000000000000000000000000000000000000000000000000000090612a739083016020908101908401613c25565b145b98975050505050505050565b60606000612a8e83612e6b565b600101905060008167ffffffffffffffff811115612aae57612aae6134c3565b6040519080825280601f01601f191660200182016040528015612ad8576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612ae257509392505050565b606061140b8484600085612f4d565b6001600160a01b038216612ba45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108e5565b6000818152600360205260409020546001600160a01b031615612c095760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108e5565b612c17600083836001612420565b6000818152600360205260409020546001600160a01b031615612c7c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108e5565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015612d5857507f000000000000000000000000000000000000000000000000000000000000000046145b15612d8257507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000808251604103612e5c5760208301516040840151606085015160001a612e508782858561303f565b94509450505050612e64565b506000905060025b9250929050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612eb4577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310612ee0576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612efe57662386f26fc10000830492506010015b6305f5e1008310612f16576305f5e100830492506008015b6127108310612f2a57612710830492506004015b60648310612f3c576064830492506002015b600a83106107965760010192915050565b606082471015612fc55760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016108e5565b600080866001600160a01b03168587604051612fe19190613c09565b60006040518083038185875af1925050503d806000811461301e576040519150601f19603f3d011682016040523d82523d6000602084013e613023565b606091505b509150915061303487838387613103565b979650505050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561307657506000905060036130fa565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156130ca573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166130f3576000600192509250506130fa565b9150600090505b94509492505050565b6060831561317257825160000361316b576001600160a01b0385163b61316b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108e5565b508161140b565b61140b83838151156131875781518083602001fd5b8060405162461bcd60e51b81526004016108e5919061328a565b5080546131ad9061375a565b6000825580601f106131bd575050565b601f0160209004906000526020600020908101906117cb91905b808211156131eb57600081556001016131d7565b5090565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146117cb57600080fd5b60006020828403121561322f57600080fd5b8135612419816131ef565b60005b8381101561325557818101518382015260200161323d565b50506000910152565b6000815180845261327681602086016020860161323a565b601f01601f19169290920160200192915050565b602081526000612419602083018461325e565b6000602082840312156132af57600080fd5b5035919050565b6001600160a01b03811681146117cb57600080fd5b600080604083850312156132de57600080fd5b82356132e9816132b6565b946020939093013593505050565b6000806040838503121561330a57600080fd5b82359150602083013561331c816132b6565b809150509250929050565b60008060006060848603121561333c57600080fd5b8335613347816132b6565b92506020840135613357816132b6565b929592945050506040919091013590565b60006020828403121561337a57600080fd5b8135612419816132b6565b60008083601f84011261339757600080fd5b50813567ffffffffffffffff8111156133af57600080fd5b602083019150836020828501011115612e6457600080fd5b803565ffffffffffff811681146133dd57600080fd5b919050565b60008060008060008060008060e0898b0312156133fe57600080fd5b883567ffffffffffffffff81111561341557600080fd5b6134218b828c01613385565b9099509750506020890135613435816132b6565b955060408901359450606089013561344c816132b6565b9350608089013561345c816132b6565b925061346a60a08a016133c7565b915061347860c08a016133c7565b90509295985092959890939650565b80151581146117cb57600080fd5b600080604083850312156134a857600080fd5b82356134b3816132b6565b9150602083013561331c81613487565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561351b5761351b6134c3565b604052919050565b6000806000806080858703121561353957600080fd5b8435613544816132b6565b9350602085810135613555816132b6565b935060408601359250606086013567ffffffffffffffff8082111561357957600080fd5b818801915088601f83011261358d57600080fd5b81358181111561359f5761359f6134c3565b6135b184601f19601f840116016134f2565b915080825289848285010111156135c757600080fd5b808484018584013760008482840101525080935050505092959194509250565b600080600083850360808112156135fd57600080fd5b606081121561360b57600080fd5b50839250606084013567ffffffffffffffff81111561362957600080fd5b61363586828701613385565b9497909650939450505050565b6000806000806040858703121561365857600080fd5b843567ffffffffffffffff8082111561367057600080fd5b818701915087601f83011261368457600080fd5b81358181111561369357600080fd5b8860206060830285010111156136a857600080fd5b6020928301965094509086013590808211156136c357600080fd5b818701915087601f8301126136d757600080fd5b8135818111156136e657600080fd5b8860208260051b85010111156136fb57600080fd5b95989497505060200194505050565b6000806040838503121561371d57600080fd5b50508035926020909101359150565b6000806040838503121561373f57600080fd5b823561374a816132b6565b9150602083013561331c816132b6565b600181811c9082168061376e57607f821691505b6020821081036137a7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610796576107966137ad565b8581526001600160a01b038581166020830152845481166040830152600185015460608301526002850154908116608083015260a081811c65ffffffffffff169083015260d01c60c082015261010060e08201819052810182905260006101208385828501376000838501820152601f909301601f191690910190910195945050505050565b60006060828403121561388757600080fd5b6040516060810181811067ffffffffffffffff821117156138aa576138aa6134c3565b6040528235815260208301356138bf816132b6565b60208201526040928301359281019290925250919050565b600083516138e981846020880161323a565b8351908301906138fd81836020880161323a565b01949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261396a57600080fd5b83018035915067ffffffffffffffff82111561398557600080fd5b602001915036819003821315612e6457600080fd5b8082028115828204841417610796576107966137ad565b6000826139e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b81810381811115610796576107966137ad565b601f8211156109a4576000816000526020600020601f850160051c81016020861015613a285750805b601f850160051c820191505b81811015613a4757828155600101613a34565b505050505050565b815167ffffffffffffffff811115613a6957613a696134c3565b613a7d81613a77845461375a565b846139ff565b602080601f831160018114613ad05760008415613a9a5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555613a47565b600085815260208120601f198616915b82811015613aff57888601518255948401946001909101908401613ae0565b5085821015613b3b57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215613b5d57600080fd5b815161241981613487565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613b9a608083018461325e565b9695505050505050565b600060208284031215613bb657600080fd5b8151612419816131ef565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b82815260406020820152600061140b604083018461325e565b60008251613c1b81846020870161323a565b9190910192915050565b600060208284031215613c3757600080fd5b505191905056fea164736f6c6343000817000a000000000000000000000000c83a9e69012312513328992d454290be85e9510100000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005626f6f73740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005424f4f53540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005302e312e30000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101d85760003560e01c806370a0823111610102578063b9741c6b11610095578063e985e9c511610064578063e985e9c514610601578063e98798e81461064a578063f2fde38b1461066a578063f6e671b71461068a57600080fd5b8063b9741c6b14610581578063c87b56dd146105a1578063d9da1917146105c1578063e2bbb158146105e157600080fd5b806395d89b41116100d157806395d89b411461050c578063994e3ba014610521578063a22cb46514610541578063b88d4fde1461056157600080fd5b806370a08231146104a6578063715018a6146104c65780638d8fa6e9146104db5780638da5cb5b146104ee57600080fd5b806331b31b881161017a5780634afd82e7116101495780634afd82e7146103835780634cf1115d146104505780636352211e146104665780636f42d1611461048657600080fd5b806331b31b881461030d5780633f6738a91461032d57806342842e0e1461034d578063455991361461036d57600080fd5b8063095ea7b3116101b6578063095ea7b31461026c578063120aa8771461028e57806323b872dd146102c95780632f751013146102e957600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f836600461321d565b6106b7565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b5061022761079c565b604051610209919061328a565b34801561024057600080fd5b5061025461024f36600461329d565b61082e565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c6102873660046132cb565b610855565b005b34801561029a57600080fd5b506101fd6102a93660046132f7565b600960209081526000928352604080842090915290825290205460ff1681565b3480156102d557600080fd5b5061028c6102e4366004613327565b6109a9565b3480156102f557600080fd5b506102ff600b5481565b604051908152602001610209565b34801561031957600080fd5b5061028c61032836600461329d565b610a30565b34801561033957600080fd5b5061028c61034836600461329d565b610a74565b34801561035957600080fd5b5061028c610368366004613327565b610ab1565b34801561037957600080fd5b506102ff600d5481565b34801561038f57600080fd5b5061040d61039e36600461329d565b6008602052600090815260409020805460018201546002909201546001600160a01b03918216929181169065ffffffffffff7401000000000000000000000000000000000000000082048116917a01000000000000000000000000000000000000000000000000000090041685565b604080516001600160a01b0396871681526020810195909552929094169183019190915265ffffffffffff9081166060830152909116608082015260a001610209565b34801561045c57600080fd5b506102ff600c5481565b34801561047257600080fd5b5061025461048136600461329d565b610acc565b34801561049257600080fd5b5061028c6104a13660046132f7565b610b31565b3480156104b257600080fd5b506102ff6104c1366004613368565b610d88565b3480156104d257600080fd5b5061028c610e22565b61028c6104e93660046133e2565b610e36565b3480156104fa57600080fd5b506000546001600160a01b0316610254565b34801561051857600080fd5b50610227611192565b34801561052d57600080fd5b5061028c61053c366004613368565b6111a1565b34801561054d57600080fd5b5061028c61055c366004613495565b611218565b34801561056d57600080fd5b5061028c61057c366004613523565b611227565b34801561058d57600080fd5b5061028c61059c3660046135e7565b6112b5565b3480156105ad57600080fd5b506102276105bc36600461329d565b611303565b3480156105cd57600080fd5b5061028c6105dc366004613642565b611413565b3480156105ed57600080fd5b5061028c6105fc36600461370a565b6114b6565b34801561060d57600080fd5b506101fd61061c36600461372c565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561065657600080fd5b5061028c61066536600461372c565b6116c5565b34801561067657600080fd5b5061028c610685366004613368565b61173e565b34801561069657600080fd5b506102ff6106a5366004613368565b600a6020526000908152604090205481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061074a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061079657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600180546107ab9061375a565b80601f01602080910402602001604051908101604052809291908181526020018280546107d79061375a565b80156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b5050505050905090565b6000610839826117ce565b506000908152600560205260409020546001600160a01b031690565b600061086082610acc565b9050806001600160a01b0316836001600160a01b0316036108ee5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b038216148061092857506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b61099a5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016108e5565b6109a48383611832565b505050565b6109b333826118b8565b610a255760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016108e5565b6109a4838383611936565b610a38611ba2565b600d8190556040518181527fe0f21afeaf06687adebfef3b6eaa2f9ab4501423ccf6e33bf2ee5b21a4001f59906020015b60405180910390a150565b610a7c611ba2565b600c8190556040518181527f40aad3f991f16f7936e7bc012b939cd59d22ae8b4de6f4cbae0b2ad3046f76f190602001610a69565b6109a483838360405180602001604052806000815250611227565b6000818152600360205260408120546001600160a01b0316806107965760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108e5565b60008281526008602090815260408083206003909252909120546001600160a01b0316610b8a576040517f9f528f6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010154600003610bc8576040517fd783b17400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002810154427a01000000000000000000000000000000000000000000000000000090910465ffffffffffff161115610c595760028101546040517ec155bb0000000000000000000000000000000000000000000000000000000081527a01000000000000000000000000000000000000000000000000000090910465ffffffffffff1660048201526024016108e5565b33610c6384610acc565b6001600160a01b031614610ca3576040517fcd6a87db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038216610ce3576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018101548154610cfe906001600160a01b03168483611bfc565b610d0784611ca5565b60008481526008602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001681556001810183905560020191909155517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb90610d7a9086815260200190565b60405180910390a150505050565b60006001600160a01b038216610e065760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016108e5565b506001600160a01b031660009081526004602052604090205490565b610e2a611ba2565b610e346000611ce5565b565b84600003610e70576040517ff1aadac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b428165ffffffffffff1611610eb1576040517f67c39f0600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8065ffffffffffff168265ffffffffffff1610610efa576040517f4b3aed6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316610f3a576040517f15e33ca300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54341015610f76576040517f7a16d84f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610f8287611d4d565b6001600160a01b038a166000908152600a6020526040812080549395509193508392610faf9084906137dc565b9091555050600b805460018101909155610fc98782611d92565b611009818c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611dac92505050565b6040805160a0810182526001600160a01b03808c1680835260208084018881528b841685870190815265ffffffffffff808d16606088019081528c82166080890190815260008b8152600890965298909420965187549087167fffffffffffffffffffffffff00000000000000000000000000000000000000009091161787559151600187015551600290950180549251965182167a0100000000000000000000000000000000000000000000000000000279ffffffffffffffffffffffffffffffffffffffffffffffffffff9790921674010000000000000000000000000000000000000000027fffffffffffff0000000000000000000000000000000000000000000000000000909316959094169490941717939093169190911790556111349033308b611e4e565b7f3a7e0d469a7bd21a015d8821d34adbd16968f3b3ff8ae56049b7046b06f338f68188600860008581526020019081526020016000208e8e60405161117d9594939291906137ef565b60405180910390a15050505050505050505050565b6060600280546107ab9061375a565b6111a9611ba2565b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156111de573d6000803e3d6000fd5b506040516001600160a01b03821681527fe3cd833cc7fc10bb3836944d086e3d3c67bb967d62e47a1779a01077bba43c0290602001610a69565b611223338383611e9f565b5050565b61123133836118b8565b6112a35760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016108e5565b6112af84848484611f8b565b50505050565b6109a46112c736859003850185613875565b83838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061201492505050565b606061130e826117ce565b600082815260076020526040812080546113279061375a565b80601f01602080910402602001604051908101604052809291908181526020018280546113539061375a565b80156113a05780601f10611375576101008083540402835291602001916113a0565b820191906000526020600020905b81548152906001019060200180831161138357829003601f168201915b5050505050905060006113be60408051602081019091526000815290565b905080516000036113d0575092915050565b8151156114025780826040516020016113ea9291906138d7565b60405160208183030381529060405292505050919050565b61140b846123ac565b949350505050565b60005b818110156114af576114a785858381811061143357611433613906565b9050606002018036038101906114499190613875565b84848481811061145b5761145b613906565b905060200281019061146d9190613935565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061201492505050565b600101611416565b5050505050565b6000828152600860205260408120908290036114fe576040517ff1aadac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600360205260409020546001600160a01b031661154c576040517f9f528f6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002810154427a01000000000000000000000000000000000000000000000000000090910465ffffffffffff16116115b0576040517f9a3d505f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600281015474010000000000000000000000000000000000000000900465ffffffffffff16421061160d576040517fe8a7bc2d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061161984611d4d565b84546001600160a01b03166000908152600a60205260408120805493955091935083926116479084906137dc565b925050819055508183600101600082825461166291906137dc565b9091555050825461167e906001600160a01b0316333087611e4e565b604080518681523360208201529081018390527feaa18152488ce5959073c9c79c88ca90b3d96c00de1f118cfaad664c3dab06b99060600160405180910390a15050505050565b6116cd611ba2565b6001600160a01b0382166000818152600a602052604081208054919055906116f6908383611bfc565b604080516001600160a01b038086168252841660208201527f181de6876cbd262a8d7ee2e7ba6accacc21f564765246b69a24da3b0db6d1eb3910160405180910390a1505050565b611746611ba2565b6001600160a01b0381166117c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108e5565b6117cb81611ce5565b50565b6000818152600360205260409020546001600160a01b03166117cb5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108e5565b600081815260056020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061187f82610acc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806118c483610acc565b9050806001600160a01b0316846001600160a01b0316148061190b57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b8061140b5750836001600160a01b03166119248461082e565b6001600160a01b031614949350505050565b826001600160a01b031661194982610acc565b6001600160a01b0316146119c55760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016108e5565b6001600160a01b038216611a405760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108e5565b611a4d8383836001612420565b826001600160a01b0316611a6082610acc565b6001600160a01b031614611adc5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016108e5565b600081815260056020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b038781168086526004855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b03163314610e345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108e5565b6040516001600160a01b0383166024820152604481018290526109a49084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526124a8565b611cae8161258d565b60008181526007602052604090208054611cc79061375a565b1590506117cb5760008181526007602052604081206117cb916131a1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000600d54612710611d6291906137dc565b611d6e6127108661399a565b611d7891906139b1565b90506000611d8682866139ec565b91959194509092505050565b611223828260405180602001604052806000815250612666565b6000828152600360205260409020546001600160a01b0316611e365760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e00000000000000000000000000000000000060648201526084016108e5565b60008281526007602052604090206109a48282613a4f565b6040516001600160a01b03808516602483015283166044820152606481018290526112af9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611c41565b816001600160a01b0316836001600160a01b031603611f005760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108e5565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611f96848484611936565b611fa2848484846126ef565b6112af5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108e5565b815160009081526008602052604090206002810154427401000000000000000000000000000000000000000090910465ffffffffffff1611156120aa5760028101546040517f268e14e30000000000000000000000000000000000000000000000000000000081527401000000000000000000000000000000000000000090910465ffffffffffff1660048201526024016108e5565b8260400151816001015410156120ec576040517fd783b17400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002810154427a01000000000000000000000000000000000000000000000000000090910465ffffffffffff1611612150576040517f9a3d505f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82516000908152600960209081526040808320828701516001600160a01b0316845290915290205460ff16156121b2576040517f9d822f6a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60208301516001600160a01b03166121f6576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006122787f56369833052c65190d29e71cd23382c2caef1cbd6fe3a194b615c8dd6025225d85600001518660200151876040015160405160200161225d949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b60405160208183030381529060405280519060200120612890565b6002830154909150612294906001600160a01b031682856128f9565b6122ca576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83516000908152600960209081526040808320828801516001600160a01b0316845290915280822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155908601519084018054919290916123369084906139ec565b909155505060208401516040850151835461235c926001600160a01b0390911691611bfc565b60408051855181526020808701516001600160a01b03169082015281860151918101919091527f3b51800d03d69dee2e14ade46700f7c428bca48e471251b94407cfd5f3b335d290606001610d7a565b60606123b7826117ce565b60006123ce60408051602081019091526000815290565b905060008151116123ee5760405180602001604052806000815250612419565b806123f884612a81565b6040516020016124099291906138d7565b6040516020818303038152906040525b9392505050565b60018111156112af576001600160a01b03841615612466576001600160a01b038416600090815260046020526040812080548392906124609084906139ec565b90915550505b6001600160a01b038316156112af576001600160a01b0383166000908152600460205260408120805483929061249d9084906137dc565b909155505050505050565b60006124fd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612b3f9092919063ffffffff16565b8051909150156109a4578080602001905181019061251b9190613b4b565b6109a45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016108e5565b600061259882610acc565b90506125a8816000846001612420565b6125b182610acc565b600083815260056020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b0385168085526004845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558785526003909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6126708383612b4e565b61267d60008484846126ef565b6109a45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108e5565b60006001600160a01b0384163b15612885576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061274c903390899088908890600401613b68565b6020604051808303816000875af1925050508015612787575060408051601f3d908101601f1916820190925261278491810190613ba4565b60015b61283a573d8080156127b5576040519150601f19603f3d011682016040523d82523d6000602084013e6127ba565b606091505b5080516000036128325760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108e5565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061140b565b506001949350505050565b600061079661289d612cff565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006129088585612e26565b9092509050600081600481111561292157612921613bc1565b14801561293f5750856001600160a01b0316826001600160a01b0316145b1561294f57600192505050612419565b600080876001600160a01b0316631626ba7e60e01b8888604051602401612977929190613bf0565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516129e29190613c09565b600060405180830381855afa9150503d8060008114612a1d576040519150601f19603f3d011682016040523d82523d6000602084013e612a22565b606091505b5091509150818015612a35575080516020145b8015612a75575080517f1626ba7e0000000000000000000000000000000000000000000000000000000090612a739083016020908101908401613c25565b145b98975050505050505050565b60606000612a8e83612e6b565b600101905060008167ffffffffffffffff811115612aae57612aae6134c3565b6040519080825280601f01601f191660200182016040528015612ad8576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612ae257509392505050565b606061140b8484600085612f4d565b6001600160a01b038216612ba45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108e5565b6000818152600360205260409020546001600160a01b031615612c095760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108e5565b612c17600083836001612420565b6000818152600360205260409020546001600160a01b031615612c7c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108e5565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000306001600160a01b037f0000000000000000000000008e8913197114c911f13cfbfcbbd138c1dc74b96416148015612d5857507f000000000000000000000000000000000000000000000000000000000000000146145b15612d8257507f3fc4dd3f0c5d055694490abac8dd593256ebd1cf792ee672a30652b7ddad460a90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fb11f0630abdc3c49238c394684d47c0a22fb6922fdf83b64cfdd3d9769f1a263828401527faa7cdbe2cce2ec7b606b0e199ddd9b264a6e645e767fb8479a7917dcd1b8693f60608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000808251604103612e5c5760208301516040840151606085015160001a612e508782858561303f565b94509450505050612e64565b506000905060025b9250929050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612eb4577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310612ee0576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612efe57662386f26fc10000830492506010015b6305f5e1008310612f16576305f5e100830492506008015b6127108310612f2a57612710830492506004015b60648310612f3c576064830492506002015b600a83106107965760010192915050565b606082471015612fc55760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016108e5565b600080866001600160a01b03168587604051612fe19190613c09565b60006040518083038185875af1925050503d806000811461301e576040519150601f19603f3d011682016040523d82523d6000602084013e613023565b606091505b509150915061303487838387613103565b979650505050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561307657506000905060036130fa565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156130ca573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166130f3576000600192509250506130fa565b9150600090505b94509492505050565b6060831561317257825160000361316b576001600160a01b0385163b61316b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108e5565b508161140b565b61140b83838151156131875781518083602001fd5b8060405162461bcd60e51b81526004016108e5919061328a565b5080546131ad9061375a565b6000825580601f106131bd575050565b601f0160209004906000526020600020908101906117cb91905b808211156131eb57600081556001016131d7565b5090565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146117cb57600080fd5b60006020828403121561322f57600080fd5b8135612419816131ef565b60005b8381101561325557818101518382015260200161323d565b50506000910152565b6000815180845261327681602086016020860161323a565b601f01601f19169290920160200192915050565b602081526000612419602083018461325e565b6000602082840312156132af57600080fd5b5035919050565b6001600160a01b03811681146117cb57600080fd5b600080604083850312156132de57600080fd5b82356132e9816132b6565b946020939093013593505050565b6000806040838503121561330a57600080fd5b82359150602083013561331c816132b6565b809150509250929050565b60008060006060848603121561333c57600080fd5b8335613347816132b6565b92506020840135613357816132b6565b929592945050506040919091013590565b60006020828403121561337a57600080fd5b8135612419816132b6565b60008083601f84011261339757600080fd5b50813567ffffffffffffffff8111156133af57600080fd5b602083019150836020828501011115612e6457600080fd5b803565ffffffffffff811681146133dd57600080fd5b919050565b60008060008060008060008060e0898b0312156133fe57600080fd5b883567ffffffffffffffff81111561341557600080fd5b6134218b828c01613385565b9099509750506020890135613435816132b6565b955060408901359450606089013561344c816132b6565b9350608089013561345c816132b6565b925061346a60a08a016133c7565b915061347860c08a016133c7565b90509295985092959890939650565b80151581146117cb57600080fd5b600080604083850312156134a857600080fd5b82356134b3816132b6565b9150602083013561331c81613487565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561351b5761351b6134c3565b604052919050565b6000806000806080858703121561353957600080fd5b8435613544816132b6565b9350602085810135613555816132b6565b935060408601359250606086013567ffffffffffffffff8082111561357957600080fd5b818801915088601f83011261358d57600080fd5b81358181111561359f5761359f6134c3565b6135b184601f19601f840116016134f2565b915080825289848285010111156135c757600080fd5b808484018584013760008482840101525080935050505092959194509250565b600080600083850360808112156135fd57600080fd5b606081121561360b57600080fd5b50839250606084013567ffffffffffffffff81111561362957600080fd5b61363586828701613385565b9497909650939450505050565b6000806000806040858703121561365857600080fd5b843567ffffffffffffffff8082111561367057600080fd5b818701915087601f83011261368457600080fd5b81358181111561369357600080fd5b8860206060830285010111156136a857600080fd5b6020928301965094509086013590808211156136c357600080fd5b818701915087601f8301126136d757600080fd5b8135818111156136e657600080fd5b8860208260051b85010111156136fb57600080fd5b95989497505060200194505050565b6000806040838503121561371d57600080fd5b50508035926020909101359150565b6000806040838503121561373f57600080fd5b823561374a816132b6565b9150602083013561331c816132b6565b600181811c9082168061376e57607f821691505b6020821081036137a7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610796576107966137ad565b8581526001600160a01b038581166020830152845481166040830152600185015460608301526002850154908116608083015260a081811c65ffffffffffff169083015260d01c60c082015261010060e08201819052810182905260006101208385828501376000838501820152601f909301601f191690910190910195945050505050565b60006060828403121561388757600080fd5b6040516060810181811067ffffffffffffffff821117156138aa576138aa6134c3565b6040528235815260208301356138bf816132b6565b60208201526040928301359281019290925250919050565b600083516138e981846020880161323a565b8351908301906138fd81836020880161323a565b01949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261396a57600080fd5b83018035915067ffffffffffffffff82111561398557600080fd5b602001915036819003821315612e6457600080fd5b8082028115828204841417610796576107966137ad565b6000826139e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b81810381811115610796576107966137ad565b601f8211156109a4576000816000526020600020601f850160051c81016020861015613a285750805b601f850160051c820191505b81811015613a4757828155600101613a34565b505050505050565b815167ffffffffffffffff811115613a6957613a696134c3565b613a7d81613a77845461375a565b846139ff565b602080601f831160018114613ad05760008415613a9a5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555613a47565b600085815260208120601f198616915b82811015613aff57888601518255948401946001909101908401613ae0565b5085821015613b3b57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215613b5d57600080fd5b815161241981613487565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613b9a608083018461325e565b9695505050505050565b600060208284031215613bb657600080fd5b8151612419816131ef565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b82815260406020820152600061140b604083018461325e565b60008251613c1b81846020870161323a565b9190910192915050565b600060208284031215613c3757600080fd5b505191905056fea164736f6c6343000817000a

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

000000000000000000000000c83a9e69012312513328992d454290be85e9510100000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005626f6f73740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005424f4f53540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005302e312e30000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _protocolOwner (address): 0xc83A9e69012312513328992d454290be85e95101
Arg [1] : name (string): boost
Arg [2] : symbol (string): BOOST
Arg [3] : version (string): 0.1.0
Arg [4] : _ethFee (uint256): 0
Arg [5] : _tokenFee (uint256): 0

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000c83a9e69012312513328992d454290be85e95101
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 626f6f7374000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 424f4f5354000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [11] : 302e312e30000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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